syzbot


KCSAN: data-race in _prb_read_valid / prb_reserve
Status: moderation: reported on 2020/11/09 13:24
Reported-by: syzbot+615128043c250cbd858b@syzkaller.appspotmail.com
First crash: 589d, last: 2h27m

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

write to 0xffffffff85b279e8 of 8 bytes by task 17193 on cpu 0:
 prb_reserve+0x733/0xbd0
 vprintk_store+0x51c/0xb50 kernel/printk/printk.c:2326
 vprintk_emit+0xcc/0x4e0 kernel/printk/printk.c:2382
 dev_vprintk_emit+0x1c9/0x1ed drivers/base/core.c:4604
 dev_printk_emit+0x7e/0xa2 drivers/base/core.c:4615
 __netdev_printk+0x245/0x2c0 net/core/dev.c:11200
 netdev_warn+0x9d/0xc1 net/core/dev.c:11253
 ieee802154_subif_start_xmit+0x91/0xa0 net/mac802154/tx.c:125
 __netdev_start_xmit include/linux/netdevice.h:4805 [inline]
 netdev_start_xmit include/linux/netdevice.h:4819 [inline]
 xmit_one+0xc0/0x2a0 net/core/dev.c:3588
 dev_hard_start_xmit+0x72/0x120 net/core/dev.c:3604
 sch_direct_xmit+0x1ac/0x580 net/sched/sch_generic.c:342
 __dev_xmit_skb+0x808/0xdb0 net/core/dev.c:3815
 __dev_queue_xmit+0x59f/0xfe0 net/core/dev.c:4219
 dev_queue_xmit include/linux/netdevice.h:2994 [inline]
 raw_sendmsg+0x2ad/0x420 net/ieee802154/socket.c:294
 ieee802154_sock_sendmsg+0x47/0x50 net/ieee802154/socket.c:96
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 ____sys_sendmsg+0x38f/0x500 net/socket.c:2492
 ___sys_sendmsg net/socket.c:2546 [inline]
 __sys_sendmmsg+0x27c/0x4a0 net/socket.c:2632
 __do_sys_sendmmsg net/socket.c:2661 [inline]
 __se_sys_sendmmsg net/socket.c:2658 [inline]
 __x64_sys_sendmmsg+0x53/0x60 net/socket.c:2658
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

read to 0xffffffff85b279e8 of 8 bytes by task 14 on cpu 1:
 desc_read kernel/printk/printk_ringbuffer.c:482 [inline]
 prb_first_seq kernel/printk/printk_ringbuffer.c:1846 [inline]
 _prb_read_valid+0x2e3/0x950 kernel/printk/printk_ringbuffer.c:1892
 prb_read_valid+0x39/0x60 kernel/printk/printk_ringbuffer.c:1940
 __console_emit_next_record+0xca/0x690 kernel/printk/printk.c:2869
 console_emit_next_record kernel/printk/printk.c:3721 [inline]
 printk_kthread_func+0x862/0xb60 kernel/printk/printk.c:3837
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30

value changed: 0x0000000000001cc5 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14 Comm: pr/ttyS0 Not tainted 5.18.0-syzkaller-10037-g7e284070abe5-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1286):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/27 13:51 upstream 7e284070abe5 116e7a7b .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/26 20:34 upstream 16477cdfefdb 3037caa9 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/26 10:05 upstream d7227785e384 3037caa9 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/25 18:56 upstream fdaf9a5840ac 3037caa9 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/25 18:37 upstream fdaf9a5840ac 3037caa9 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/25 01:27 upstream 0350785b0a09 647c0e27 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/24 13:53 upstream 143a6252e1b8 fcfad4ff .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/24 04:18 upstream 140e40e39a29 e7f9308d .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/23 12:33 upstream 4b0986a3613c 4c7657cb .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/22 21:49 upstream 978df3e15846 7268fa62 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/22 11:44 upstream eaea45fc0e7b 7268fa62 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/21 22:06 upstream 6c3f5bec9b40 7268fa62 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/21 08:21 upstream 3b5e1590a267 7268fa62 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/20 21:21 upstream 3d7285a335ed bd37ad7e .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/20 04:46 upstream b015dcd62b86 cb1ac2e7 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/19 16:21 upstream f993aed406ea cb1ac2e7 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/19 08:37 upstream f993aed406ea 50c53f39 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/18 20:38 upstream ef1302160bfb 50c53f39 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/18 16:15 upstream 210e04ff7681 50c53f39 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/18 03:07 upstream 210e04ff7681 744a39e2 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/16 07:49 upstream 42226c989789 744a39e2 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/15 17:38 upstream bc403203d65a 744a39e2 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/15 01:30 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/14 17:07 upstream ec7f49619d8e 744a39e2 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/14 02:58 upstream f2dd007445b1 107f6434 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/13 16:25 upstream f3f19f939c11 7ce5a022 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/12 19:36 upstream 0ac824f379fb 9ad6612a .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/12 18:32 upstream feb9c5e19e91 9ad6612a .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/11 20:31 upstream feb9c5e19e91 beb0b407 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/11 03:49 upstream feb9c5e19e91 8d7b3b67 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/09 21:05 upstream 9be9ed2612b5 8b277b8e .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/09 14:04 upstream c5eb0a61238d 8b277b8e .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/08 16:12 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/08 05:14 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/06 16:42 upstream fe27d189e3f4 e60b1103 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/06 10:29 upstream fe27d189e3f4 efeff0a5 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/05 13:03 upstream a7391ad35724 b3f09415 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/05 02:18 upstream a7391ad35724 dc9e5259 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/04 12:12 upstream 107c948d1d3e dc9e5259 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/03 22:36 upstream ef8e4d3c2ab1 dc9e5259 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/03 08:19 upstream 9050ba3a61a4 2df221f6 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/03 01:32 upstream 9050ba3a61a4 2df221f6 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/02 08:31 upstream 672c0c517342 2df221f6 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/02 00:13 upstream b2da7df52e16 2df221f6 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/05/01 03:08 upstream 57ae8a492116 2df221f6 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2021/01/17 12:41 upstream 0da0a8a0a0e1 813be542 .config log report info
ci2-upstream-kcsan-gce 2020/11/09 09:54 upstream f8394f232b1e cba33199 .config log report info
ci2-upstream-kcsan-gce 2020/11/07 20:52 upstream 659caaf65dc9 cba33199 .config log report info
ci2-upstream-kcsan-gce 2020/10/14 17:14 upstream b5fc7a89e58b fc7735a2 .config log report info