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: 719d, last: 1h58m

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

write to 0xffffffff85cb5d40 of 8 bytes by task 8794 on cpu 1:
 prb_reserve+0x733/0xbd0
 vprintk_store+0x51c/0xb50 kernel/printk/printk.c:2196
 vprintk_emit+0xcc/0x430 kernel/printk/printk.c:2252
 dev_vprintk_emit+0x1c9/0x1ed drivers/base/core.c:4736
 dev_printk_emit+0x7e/0xa2 drivers/base/core.c:4747
 __dev_printk+0xfa/0x110 drivers/base/core.c:4759
 _dev_info+0x9d/0xc1 drivers/base/core.c:4805
 attach_store+0x628/0x6d0 drivers/usb/usbip/vhci_sysfs.c:438
 dev_attr_store+0x40/0x60 drivers/base/core.c:2211
 sysfs_kf_write+0xa6/0xc0 fs/sysfs/file.c:136
 kernfs_fop_write_iter+0x1d3/0x2c0 fs/kernfs/file.c:354
 call_write_iter include/linux/fs.h:2187 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x468/0x760 fs/read_write.c:584
 ksys_write+0xe8/0x1a0 fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:646
 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+0x63/0xcd

read to 0xffffffff85cb5d40 of 8 bytes by task 1425 on cpu 0:
 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
 syslog_print+0x4b2/0x580 kernel/printk/printk.c:1546
 do_syslog+0x741/0x7e0 kernel/printk/printk.c:1682
 __do_sys_syslog kernel/printk/printk.c:1774 [inline]
 __se_sys_syslog kernel/printk/printk.c:1772 [inline]
 __x64_sys_syslog+0x3f/0x50 kernel/printk/printk.c:1772
 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+0x63/0xcd

value changed: 0x0000000000002820 -> 0x0000000000004820

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1425 Comm: klogd Not tainted 6.0.0-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
==================================================================

Crashes (1529):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/10/03 19:42 upstream 4fe89d07dcc2 feb56351 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/10/03 01:26 upstream a962b54e162c feb56351 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/10/02 13:04 upstream b357fd1c2afc feb56351 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/10/01 15:20 upstream ffb4d94b4314 feb56351 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/30 22:10 upstream 70575e77839f feb56351 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/30 12:44 upstream 987a926c1d8a 45fd7169 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/29 18:33 upstream c3e0e1e23c70 45fd7169 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/29 02:05 upstream 49c13ed0316d a41a2080 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/28 04:21 upstream 46452d3786a8 75c78242 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/27 06:26 upstream 3800a713b607 10323ddf .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/26 19:34 upstream f76349cf4145 d59ba983 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/25 08:01 upstream 1a61b828566f 0042f2b4 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/24 15:33 upstream a63f2e7cb110 0042f2b4 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/23 19:03 upstream bf682942cd26 0042f2b4 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/22 18:36 upstream dc164f4fb00a 0042f2b4 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/22 04:42 upstream 06f7db949993 60af5050 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/21 13:14 upstream 60891ec99e14 380f82fb .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/21 02:39 upstream 60891ec99e14 c4b8ccfd .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/20 12:07 upstream 521a547ced64 7c41a9ba .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/19 15:19 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/19 10:32 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/18 21:02 upstream 38eddeedbbea dd9a85ff .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/17 09:55 upstream a335366bad13 dd9a85ff .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/16 21:31 upstream 6879c2d3b960 dd9a85ff .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/15 11:16 upstream 3245cb65fd91 dd9a85ff .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/14 17:16 upstream 3245cb65fd91 b884348d .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/13 21:44 upstream d1221cea11fc b884348d .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/13 18:08 upstream d1221cea11fc a08652b0 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/13 11:30 upstream e839a756012b a08652b0 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/13 04:53 upstream e839a756012b f371ed7e .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/12 21:59 upstream 80e78fcce86d f371ed7e .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/12 12:48 upstream 80e78fcce86d 356d8217 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/12 03:55 upstream 4ed9c1e971b1 356d8217 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/11 00:27 upstream b96fbd602d35 356d8217 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/10 02:49 upstream ce888220d5c7 356d8217 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/09 15:49 upstream 9b4509495418 90058bdc .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/09 07:24 upstream 506357871c18 f3027468 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/08 19:23 upstream 26b1224903b3 f3027468 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/08 07:28 upstream 0066f1b0e275 435aeef7 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/07 15:10 upstream 0066f1b0e275 c5b7bc57 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/07 04:11 upstream d2ec799d1c1b 5fc30c37 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/06 15:24 upstream 53e99dcff61e 65aea2b9 .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/06 02:35 upstream 53e99dcff61e 9dcd38fc .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/05 18:15 upstream 7e18e42e4b28 922294ab .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/05 01:44 upstream 7e18e42e4b28 28811d0a .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/04 12:09 upstream 7726d4c3e60b 28811d0a .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/03 20:48 upstream 42cf58c272ee 28811d0a .config log report info KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/09/03 11:37 upstream d895ec7938c4 49e94a20 .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
* Struck through repros no longer work on HEAD.