With netdev_warn() in m_can_tx_handler I found, that before "BUG! echo_skb N" appears, m_can_next_echo_skb_occupied(dev, putidx) is true with putidx=N-1[11676.933800] tcan4x5x spi4.0 can1: m_can_tx_handler m_can_tx_fifo_full or m_can_next_echo_skb_occupied, putidx=12
[11676.934735] tcan4x5x spi4.0 can1: m_can_start_xmit: enter [11676.934744] tcan4x5x spi4.0 can1: m_can_start_xmit netif_stop_queue done[11676.934911] tcan4x5x spi4.0 can1: can_put_echo_skb: BUG! echo_skb 13 is occupied!