syzbot


KCSAN: data-race in __dev_queue_xmit / __dev_queue_xmit
Status: fixed on 2019/12/13 00:31
Reported-by: syzbot+@syzkaller.appspotmail.com
Fix commit: 90b2be27bb0e net/sched: annotate lockless accesses to qdisc->empty
First crash: 940d, last: 890d
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __dev_queue_xmit / __dev_queue_xmit (5) 1 180d 178d 22/22 fixed on 2022/03/08 16:11
upstream KCSAN: data-race in __dev_queue_xmit / __dev_queue_xmit (4) 2 476d 487d 0/22 auto-closed as invalid on 2021/03/05 12:45
upstream KCSAN: data-race in __dev_queue_xmit / __dev_queue_xmit (3) 1 645d 645d 0/22 auto-closed as invalid on 2020/09/17 17:51
upstream KCSAN: data-race in __dev_queue_xmit / __dev_queue_xmit (2) 37 704d 878d 0/22 closed as invalid on 2020/06/18 14:24

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

read to 0xffff8880a28a7108 of 1 bytes by task 25181 on cpu 0:
 __dev_xmit_skb net/core/dev.c:3389 [inline]
 __dev_queue_xmit+0x9db/0x1b40 net/core/dev.c:3761
 dev_queue_xmit+0x21/0x30 net/core/dev.c:3825
 neigh_hh_output include/net/neighbour.h:500 [inline]
 neigh_output include/net/neighbour.h:509 [inline]
 ip6_finish_output2+0x873/0xec0 net/ipv6/ip6_output.c:116
 __ip6_finish_output net/ipv6/ip6_output.c:142 [inline]
 __ip6_finish_output+0x2d7/0x330 net/ipv6/ip6_output.c:127
 ip6_finish_output+0x41/0x160 net/ipv6/ip6_output.c:152
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip6_output+0xf2/0x280 net/ipv6/ip6_output.c:175
 dst_output include/net/dst.h:436 [inline]
 ip6_local_out+0x74/0x90 net/ipv6/output_core.c:179
 ip6_send_skb+0x53/0x110 net/ipv6/ip6_output.c:1795
 udp_v6_send_skb.isra.0+0x3ec/0xa70 net/ipv6/udp.c:1173
 udpv6_sendmsg+0x1906/0x1c20 net/ipv6/udp.c:1471
 inet6_sendmsg+0x6d/0x90 net/ipv6/af_inet6.c:576
 sock_sendmsg_nosec net/socket.c:637 [inline]
 sock_sendmsg+0x9f/0xc0 net/socket.c:657
 ___sys_sendmsg+0x2b7/0x5d0 net/socket.c:2311
 __sys_sendmmsg+0x123/0x350 net/socket.c:2413
 __do_sys_sendmmsg net/socket.c:2442 [inline]
 __se_sys_sendmmsg net/socket.c:2439 [inline]
 __x64_sys_sendmmsg+0x64/0x80 net/socket.c:2439
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff8880a28a7108 of 1 bytes by task 25182 on cpu 1:
 qdisc_run_begin include/net/sch_generic.h:161 [inline]
 __dev_xmit_skb net/core/dev.c:3390 [inline]
 __dev_queue_xmit+0x17c9/0x1b40 net/core/dev.c:3761
 dev_queue_xmit+0x21/0x30 net/core/dev.c:3825
 neigh_hh_output include/net/neighbour.h:500 [inline]
 neigh_output include/net/neighbour.h:509 [inline]
 ip6_finish_output2+0x873/0xec0 net/ipv6/ip6_output.c:116
 __ip6_finish_output net/ipv6/ip6_output.c:142 [inline]
 __ip6_finish_output+0x2d7/0x330 net/ipv6/ip6_output.c:127
 ip6_finish_output+0x41/0x160 net/ipv6/ip6_output.c:152
 NF_HOOK_COND include/linux/netfilter.h:294 [inline]
 ip6_output+0xf2/0x280 net/ipv6/ip6_output.c:175
 dst_output include/net/dst.h:436 [inline]
 ip6_local_out+0x74/0x90 net/ipv6/output_core.c:179
 ip6_send_skb+0x53/0x110 net/ipv6/ip6_output.c:1795
 udp_v6_send_skb.isra.0+0x3ec/0xa70 net/ipv6/udp.c:1173
 udpv6_sendmsg+0x1906/0x1c20 net/ipv6/udp.c:1471
 inet6_sendmsg+0x6d/0x90 net/ipv6/af_inet6.c:576
 sock_sendmsg_nosec net/socket.c:637 [inline]
 sock_sendmsg+0x9f/0xc0 net/socket.c:657
 ___sys_sendmsg+0x2b7/0x5d0 net/socket.c:2311
 __sys_sendmmsg+0x123/0x350 net/socket.c:2413
 __do_sys_sendmmsg net/socket.c:2442 [inline]
 __se_sys_sendmmsg net/socket.c:2439 [inline]
 __x64_sys_sendmmsg+0x64/0x80 net/socket.c:2439
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 25182 Comm: syz-executor.3 Not tainted 5.4.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (40):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2019/12/12 16:34 https://github.com/google/ktsan.git kcsan ef798c30ba4e d973f528 .config log report
ci2-upstream-kcsan-gce 2019/12/11 05:43 https://github.com/google/ktsan.git kcsan ef798c30ba4e 101194eb .config log report
ci2-upstream-kcsan-gce 2019/12/09 16:45 https://github.com/google/ktsan.git kcsan ef798c30ba4e b31eda3d .config log report
ci2-upstream-kcsan-gce 2019/12/07 23:22 https://github.com/google/ktsan.git kcsan ef798c30ba4e 1508f453 .config log report
ci2-upstream-kcsan-gce 2019/12/06 23:52 https://github.com/google/ktsan.git kcsan ef798c30ba4e 85f26751 .config log report
ci2-upstream-kcsan-gce 2019/12/05 22:30 https://github.com/google/ktsan.git kcsan ef798c30ba4e 9fd5a512 .config log report
ci2-upstream-kcsan-gce 2019/12/05 22:29 https://github.com/google/ktsan.git kcsan ef798c30ba4e 9fd5a512 .config log report
ci2-upstream-kcsan-gce 2019/12/02 22:59 https://github.com/google/ktsan.git kcsan ef798c30ba4e ab342da3 .config log report
ci2-upstream-kcsan-gce 2019/12/02 01:02 https://github.com/google/ktsan.git kcsan ef798c30ba4e f879db37 .config log report
ci2-upstream-kcsan-gce 2019/12/01 04:16 https://github.com/google/ktsan.git kcsan ef798c30ba4e a76bf83f .config log report
ci2-upstream-kcsan-gce 2019/11/30 13:44 https://github.com/google/ktsan.git kcsan ef798c30ba4e 3a75be00 .config log report
ci2-upstream-kcsan-gce 2019/11/30 12:59 https://github.com/google/ktsan.git kcsan ef798c30ba4e 3a75be00 .config log report
ci2-upstream-kcsan-gce 2019/11/29 13:21 https://github.com/google/ktsan.git kcsan ef798c30ba4e 4f7e1d0f .config log report
ci2-upstream-kcsan-gce 2019/11/27 20:02 https://github.com/google/ktsan.git kcsan ef798c30ba4e 0d63f89c .config log report
ci2-upstream-kcsan-gce 2019/11/21 00:38 https://github.com/google/ktsan.git kcsan 5863cc791e4c 8098ea0f .config log report
ci2-upstream-kcsan-gce 2019/11/19 15:22 https://github.com/google/ktsan.git kcsan 5863cc791e4c 432c7650 .config log report
ci2-upstream-kcsan-gce 2019/11/17 14:34 https://github.com/google/ktsan.git kcsan 5863cc791e4c d5696d51 .config log report
ci2-upstream-kcsan-gce 2019/11/13 07:04 https://github.com/google/ktsan.git kcsan 7f2955e0d056 048f2d49 .config log report
ci2-upstream-kcsan-gce 2019/11/12 07:24 https://github.com/google/ktsan.git kcsan 94c006602e13 377d77fa .config log report
ci2-upstream-kcsan-gce 2019/11/10 02:17 https://github.com/google/ktsan.git kcsan 94c006602e13 dc438b91 .config log report
ci2-upstream-kcsan-gce 2019/11/07 18:35 https://github.com/google/ktsan.git kcsan 94c006602e13 f39aff9e .config log report
ci2-upstream-kcsan-gce 2019/11/07 10:36 https://github.com/google/ktsan.git kcsan 94c006602e13 d797d201 .config log report
ci2-upstream-kcsan-gce 2019/11/06 04:34 https://github.com/google/ktsan.git kcsan 94c006602e13 bc2c6e45 .config log report
ci2-upstream-kcsan-gce 2019/11/04 21:36 https://github.com/google/ktsan.git kcsan 94c006602e13 18e12644 .config log report
ci2-upstream-kcsan-gce 2019/11/04 00:28 https://github.com/google/ktsan.git kcsan 05f2236801fe b35fad31 .config log report
ci2-upstream-kcsan-gce 2019/11/03 11:43 https://github.com/google/ktsan.git kcsan 05f2236801fe c9610487 .config log report
ci2-upstream-kcsan-gce 2019/11/03 11:22 https://github.com/google/ktsan.git kcsan 05f2236801fe c9610487 .config log report
ci2-upstream-kcsan-gce 2019/11/02 23:17 https://github.com/google/ktsan.git kcsan 05f2236801fe d603afc9 .config log report
ci2-upstream-kcsan-gce 2019/11/01 23:50 https://github.com/google/ktsan.git kcsan 05f2236801fe 997ccc67 .config log report
ci2-upstream-kcsan-gce 2019/10/31 00:21 https://github.com/google/ktsan.git kcsan 05f2236801fe a41ca8fa .config log report
ci2-upstream-kcsan-gce 2019/10/31 00:19 https://github.com/google/ktsan.git kcsan 05f2236801fe a41ca8fa .config log report
ci2-upstream-kcsan-gce 2019/10/29 06:50 https://github.com/google/ktsan.git kcsan 05f2236801fe 5ea87a66 .config log report
ci2-upstream-kcsan-gce 2019/10/28 23:13 https://github.com/google/ktsan.git kcsan 05f2236801fe 439d7b14 .config log report
ci2-upstream-kcsan-gce 2019/10/26 16:40 https://github.com/google/ktsan.git kcsan 05f2236801fe 25bb509e .config log report
ci2-upstream-kcsan-gce 2019/10/26 16:39 https://github.com/google/ktsan.git kcsan 05f2236801fe 25bb509e .config log report
ci2-upstream-kcsan-gce 2019/10/26 00:47 https://github.com/google/ktsan.git kcsan 05f2236801fe 413926c5 .config log report
ci2-upstream-kcsan-gce 2019/10/25 12:13 https://github.com/google/ktsan.git kcsan 05f2236801fe 04ca72cd .config log report
ci2-upstream-kcsan-gce 2019/10/25 11:57 https://github.com/google/ktsan.git kcsan 05f2236801fe 04ca72cd .config log report
ci2-upstream-kcsan-gce 2019/10/24 09:40 https://github.com/google/ktsan.git kcsan 05f2236801fe d01bb02a .config log report
ci2-upstream-kcsan-gce 2019/10/23 19:57 https://github.com/google/ktsan.git kcsan 05f2236801fe b602d64b .config log report