syzbot


KCSAN: data-race in pfifo_fast_dequeue / pfifo_fast_enqueue (3)

Status: auto-obsoleted due to no activity on 2023/09/15 15:27
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+b197eb04ec8e2c0407bd@syzkaller.appspotmail.com
First crash: 272d, last: 269d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [net?] KCSAN: data-race in pfifo_fast_dequeue / pfifo_fast_enqueue (3) 0 (1) 2023/08/28 14:37
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in pfifo_fast_dequeue / pfifo_fast_enqueue (4) net 1 52d 52d 0/26 auto-obsoleted due to no activity on 2024/04/20 09:12
upstream KCSAN: data-race in pfifo_fast_dequeue / pfifo_fast_enqueue (2) net 1 861d 861d 0/26 auto-closed as invalid on 2022/01/31 12:56
upstream KCSAN: data-race in pfifo_fast_dequeue / pfifo_fast_enqueue net 1 1175d 1175d 0/26 auto-closed as invalid on 2021/03/24 02:52

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

write to 0xffff88810487fe80 of 8 bytes by task 19023 on cpu 1:
 __ptr_ring_discard_one include/linux/ptr_ring.h:280 [inline]
 __ptr_ring_consume include/linux/ptr_ring.h:301 [inline]
 __skb_array_consume include/linux/skb_array.h:98 [inline]
 pfifo_fast_dequeue+0x887/0xee0 net/sched/sch_generic.c:757
 dequeue_skb net/sched/sch_generic.c:292 [inline]
 qdisc_restart net/sched/sch_generic.c:397 [inline]
 __qdisc_run+0x1a2/0x1100 net/sched/sch_generic.c:415
 __dev_xmit_skb net/core/dev.c:3766 [inline]
 __dev_queue_xmit+0xe98/0x1d10 net/core/dev.c:4169
 dev_queue_xmit include/linux/netdevice.h:3088 [inline]
 llc_build_and_send_ui_pkt+0x1d4/0x1f0 net/llc/llc_output.c:67
 llc_ui_sendmsg+0x43a/0x5e0 net/llc/af_llc.c:978
 sock_sendmsg_nosec net/socket.c:725 [inline]
 sock_sendmsg+0x79/0xd0 net/socket.c:748
 splice_to_socket+0x653/0x9c0 fs/splice.c:884
 do_splice_from fs/splice.c:936 [inline]
 direct_splice_actor+0x8a/0xb0 fs/splice.c:1145
 splice_direct_to_actor+0x31d/0x690 fs/splice.c:1091
 do_splice_direct+0x10d/0x190 fs/splice.c:1197
 do_sendfile+0x3b6/0x9a0 fs/read_write.c:1254
 __do_sys_sendfile64 fs/read_write.c:1322 [inline]
 __se_sys_sendfile64 fs/read_write.c:1308 [inline]
 __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1308
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88810487fe80 of 8 bytes by task 19022 on cpu 0:
 __ptr_ring_produce include/linux/ptr_ring.h:106 [inline]
 ptr_ring_produce include/linux/ptr_ring.h:129 [inline]
 skb_array_produce include/linux/skb_array.h:44 [inline]
 pfifo_fast_enqueue+0xcc/0x2a0 net/sched/sch_generic.c:730
 dev_qdisc_enqueue net/core/dev.c:3732 [inline]
 __dev_xmit_skb net/core/dev.c:3772 [inline]
 __dev_queue_xmit+0x7c7/0x1d10 net/core/dev.c:4169
 dev_queue_xmit include/linux/netdevice.h:3088 [inline]
 llc_build_and_send_ui_pkt+0x1d4/0x1f0 net/llc/llc_output.c:67
 llc_ui_sendmsg+0x43a/0x5e0 net/llc/af_llc.c:978
 sock_sendmsg_nosec net/socket.c:725 [inline]
 sock_sendmsg+0x79/0xd0 net/socket.c:748
 splice_to_socket+0x653/0x9c0 fs/splice.c:884
 do_splice_from fs/splice.c:936 [inline]
 direct_splice_actor+0x8a/0xb0 fs/splice.c:1145
 splice_direct_to_actor+0x31d/0x690 fs/splice.c:1091
 do_splice_direct+0x10d/0x190 fs/splice.c:1197
 do_sendfile+0x3b6/0x9a0 fs/read_write.c:1254
 __do_sys_sendfile64 fs/read_write.c:1322 [inline]
 __se_sys_sendfile64 fs/read_write.c:1308 [inline]
 __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1308
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0xffff888161b34f00 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 19022 Comm: syz-executor.0 Tainted: G        W          6.5.0-rc5-syzkaller-00182-g25aa0bebba72 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/11 15:27 upstream 25aa0bebba72 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pfifo_fast_dequeue / pfifo_fast_enqueue
2023/08/08 16:37 upstream 14f9643dc90a 9552ae77 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in pfifo_fast_dequeue / pfifo_fast_enqueue
* Struck through repros no longer work on HEAD.