syzbot


KCSAN: data-race in batadv_interface_tx / batadv_interface_tx

Status: auto-closed as invalid on 2021/12/25 14:25
Subsystems: batman
[Documentation on labels]
First crash: 885d, last: 885d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in batadv_interface_tx / batadv_interface_tx

write to 0xffff8881381c1a88 of 8 bytes by task 1097 on cpu 1:
 netif_trans_update include/linux/netdevice.h:4459 [inline]
 batadv_interface_tx+0x132/0xc10 net/batman-adv/soft-interface.c:210
 __netdev_start_xmit include/linux/netdevice.h:4987 [inline]
 netdev_start_xmit include/linux/netdevice.h:5001 [inline]
 xmit_one+0x105/0x2f0 net/core/dev.c:3590
 dev_hard_start_xmit net/core/dev.c:3606 [inline]
 __dev_queue_xmit+0x869/0xf70 net/core/dev.c:4226
 dev_queue_xmit_accel+0x19/0x20 net/core/dev.c:4265
 macvlan_queue_xmit drivers/net/macvlan.c:543 [inline]
 macvlan_start_xmit+0x2b3/0x3d0 drivers/net/macvlan.c:567
 __netdev_start_xmit include/linux/netdevice.h:4987 [inline]
 netdev_start_xmit include/linux/netdevice.h:5001 [inline]
 xmit_one+0x105/0x2f0 net/core/dev.c:3590
 dev_hard_start_xmit net/core/dev.c:3606 [inline]
 __dev_queue_xmit+0x869/0xf70 net/core/dev.c:4226
 dev_queue_xmit+0x13/0x20 net/core/dev.c:4259
 neigh_hh_output include/net/neighbour.h:511 [inline]
 neigh_output include/net/neighbour.h:525 [inline]
 ip6_finish_output2+0x995/0xbb0 net/ipv6/ip6_output.c:126
 __ip6_finish_output net/ipv6/ip6_output.c:191 [inline]
 ip6_finish_output+0x444/0x4c0 net/ipv6/ip6_output.c:201
 NF_HOOK_COND include/linux/netfilter.h:296 [inline]
 ip6_output+0x10e/0x210 net/ipv6/ip6_output.c:224
 dst_output include/net/dst.h:450 [inline]
 NF_HOOK include/linux/netfilter.h:307 [inline]
 mld_sendpack+0x3c5/0x580 net/ipv6/mcast.c:1826
 mld_send_cr net/ipv6/mcast.c:2127 [inline]
 mld_ifc_work+0x586/0x810 net/ipv6/mcast.c:2659
 process_one_work+0x3fc/0x980 kernel/workqueue.c:2298
 worker_thread+0x616/0xa70 kernel/workqueue.c:2445
 kthread+0x2c7/0x2e0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30

read to 0xffff8881381c1a88 of 8 bytes by task 1917 on cpu 0:
 netif_trans_update include/linux/netdevice.h:4458 [inline]
 batadv_interface_tx+0xd4/0xc10 net/batman-adv/soft-interface.c:210
 __netdev_start_xmit include/linux/netdevice.h:4987 [inline]
 netdev_start_xmit include/linux/netdevice.h:5001 [inline]
 xmit_one+0x105/0x2f0 net/core/dev.c:3590
 dev_hard_start_xmit net/core/dev.c:3606 [inline]
 __dev_queue_xmit+0x869/0xf70 net/core/dev.c:4226
 dev_queue_xmit_accel+0x19/0x20 net/core/dev.c:4265
 macvlan_queue_xmit drivers/net/macvlan.c:543 [inline]
 macvlan_start_xmit+0x2b3/0x3d0 drivers/net/macvlan.c:567
 __netdev_start_xmit include/linux/netdevice.h:4987 [inline]
 netdev_start_xmit include/linux/netdevice.h:5001 [inline]
 xmit_one+0x105/0x2f0 net/core/dev.c:3590
 dev_hard_start_xmit net/core/dev.c:3606 [inline]
 __dev_queue_xmit+0x869/0xf70 net/core/dev.c:4226
 dev_queue_xmit+0x13/0x20 net/core/dev.c:4259
 neigh_hh_output include/net/neighbour.h:511 [inline]
 neigh_output include/net/neighbour.h:525 [inline]
 ip6_finish_output2+0x995/0xbb0 net/ipv6/ip6_output.c:126
 __ip6_finish_output net/ipv6/ip6_output.c:191 [inline]
 ip6_finish_output+0x444/0x4c0 net/ipv6/ip6_output.c:201
 NF_HOOK_COND include/linux/netfilter.h:296 [inline]
 ip6_output+0x10e/0x210 net/ipv6/ip6_output.c:224
 dst_output include/net/dst.h:450 [inline]
 NF_HOOK include/linux/netfilter.h:307 [inline]
 mld_sendpack+0x3c5/0x580 net/ipv6/mcast.c:1826
 mld_send_initial_cr net/ipv6/mcast.c:2245 [inline]
 mld_dad_work+0x19a/0x440 net/ipv6/mcast.c:2268
 process_one_work+0x3fc/0x980 kernel/workqueue.c:2298
 worker_thread+0x616/0xa70 kernel/workqueue.c:2445
 kthread+0x2c7/0x2e0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30

value changed: 0x00000001000407c7 -> 0x00000001000407c8

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1917 Comm: kworker/0:4 Not tainted 5.16.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: mld mld_dad_work
==================================================================
batman_adv: batadv0: Local translation table size (20240) exceeds maximum packet size (20160); Ignoring new local tt entry: 36:00:01:b6:1f:1e

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/11/20 14:22 upstream a90af8f15bdc 4eb20a4e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in batadv_interface_tx / batadv_interface_tx
* Struck through repros no longer work on HEAD.