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: 840d, last: 18h50m

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

write to 0xffffffff85aaa388 of 8 bytes by task 882 on cpu 1:
 prb_reserve+0x733/0xbd0
 vprintk_store+0x50b/0xad0 kernel/printk/printk.c:2284
 vprintk_emit+0xcc/0x430 kernel/printk/printk.c:2340
 dev_vprintk_emit+0x1c9/0x1f0 drivers/base/core.c:4698
 dev_printk_emit+0x7e/0xb0 drivers/base/core.c:4709
 __dev_printk+0xfa/0x110 drivers/base/core.c:4721
 _dev_warn+0x9d/0xd0 drivers/base/core.c:4765
 hid_parser_main+0x5e0/0x670 drivers/hid/hid-core.c:633
 hid_open_report+0x3ad/0x6c0 drivers/hid/hid-core.c:1265
 hid_parse include/linux/hid.h:1094 [inline]
 hid_generic_probe+0x2f/0x60 drivers/hid/hid-generic.c:63
 hid_device_probe+0x1d2/0x250 drivers/hid/hid-core.c:2603
 really_probe+0x1bf/0x660 drivers/base/dd.c:639
 __driver_probe_device+0x147/0x1a0 drivers/base/dd.c:778
 driver_probe_device drivers/base/dd.c:808 [inline]
 __device_attach_driver+0x235/0x5f0 drivers/base/dd.c:936
 bus_for_each_drv+0xe8/0x150 drivers/base/bus.c:427
 __device_attach+0x1a5/0x2c0 drivers/base/dd.c:1008
 device_initial_probe+0x16/0x20 drivers/base/dd.c:1057
 bus_probe_device+0x79/0x140 drivers/base/bus.c:487
 device_add+0x8bd/0xb20 drivers/base/core.c:3479
 hid_add_device+0x264/0x2e0 drivers/hid/hid-core.c:2755
 uhid_device_add_worker+0x27/0xa0 drivers/hid/uhid.c:73
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

read to 0xffffffff85aaa388 of 8 bytes by task 2724 on cpu 0:
 desc_read kernel/printk/printk_ringbuffer.c:482 [inline]
 desc_read_finalized_seq kernel/printk/printk_ringbuffer.c:1763 [inline]
 prb_read kernel/printk/printk_ringbuffer.c:1811 [inline]
 _prb_read_valid+0x3b8/0x950 kernel/printk/printk_ringbuffer.c:1891
 prb_read_valid+0x39/0x60 kernel/printk/printk_ringbuffer.c:1940
 syslog_print+0x4b2/0x580 kernel/printk/printk.c:1627
 do_syslog+0x741/0x7e0 kernel/printk/printk.c:1763
 __do_sys_syslog kernel/printk/printk.c:1855 [inline]
 __se_sys_syslog kernel/printk/printk.c:1853 [inline]
 __x64_sys_syslog+0x3f/0x50 kernel/printk/printk.c:1853
 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: 0x0000000000000607 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 2724 Comm: klogd Not tainted 6.2.0-rc6-syzkaller-00003-g22b8077d0fce-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
==================================================================

Crashes (1710):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2023/01/31 22:33 upstream 22b8077d0fce b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/31 09:16 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/30 18:24 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/30 02:42 upstream ab072681eabe 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/29 10:21 upstream c96618275234 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/28 12:27 upstream 5af6ce704936 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/28 04:59 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/26 08:26 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/25 21:41 upstream 948ef7bb70c4 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/25 10:21 upstream fb6e71db53f3 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/25 10:11 upstream fb6e71db53f3 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/24 10:17 upstream 7bf70dbb1882 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/23 05:32 upstream 2475bf0250de cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/22 08:52 upstream 2241ab53cbb5 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/22 03:42 upstream f883675bf652 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/21 13:22 upstream edc00350d205 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/20 17:09 upstream d368967cb103 dd15ff29 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/19 22:54 upstream 081edded9b38 71197f3a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/19 01:22 upstream c1649ec55708 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/18 06:18 upstream 6e50979a9c87 42660d9e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/17 07:55 upstream d532dd102151 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/16 12:04 upstream 5dc4c995db9e a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/15 10:48 upstream 7c6984405241 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/14 08:34 upstream d9fc1511728c 529798b0 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/13 13:39 upstream c757fc92a3f7 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/12 18:19 upstream e8f60cd7db24 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/12 00:41 upstream 7dd4b804e080 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/10 17:55 upstream 5a41237ad1d4 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/10 04:33 upstream 1fe4fd6f5cad 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/09 13:00 upstream 1fe4fd6f5cad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/08 18:00 upstream 9b43a525db12 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/07 23:14 upstream 0a71553536d2 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/07 01:16 upstream 1f5abbd77e2c 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/06 06:38 upstream 41c03ba9beea 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/05 15:03 upstream 512dee0c00ad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/04 19:07 upstream 69b41ac87e4a 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/03 22:12 upstream 69b41ac87e4a f0036e18 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/03 04:46 upstream 69b41ac87e4a ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/02 13:33 upstream 88603b6dc419 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/01 18:35 upstream e4cf7c25bae5 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2023/01/01 00:08 upstream c8451c141e07 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/12/31 04:14 upstream bff687b3dad6 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/12/30 06:32 upstream 2258c2dc850b 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/12/28 02:32 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/12/26 00:41 upstream 1b929c02afd3 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/12/25 00:06 upstream 72a85e2b0a1e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/12/24 06:40 upstream 51094a24b85e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/12/23 17:54 upstream 8395ae05cb5a 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/12/23 00:29 upstream 0a924817d2ed 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/12/21 22:49 upstream b6bb9676f216 4067838e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2022/12/21 05:25 upstream 6feb57c2fd7c d3e76707 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in _prb_read_valid / prb_reserve
ci2-upstream-kcsan-gce 2021/01/17 12:41 upstream 0da0a8a0a0e1 813be542 .config console log report info
ci2-upstream-kcsan-gce 2020/11/09 09:54 upstream f8394f232b1e cba33199 .config console log report info
ci2-upstream-kcsan-gce 2020/11/07 20:52 upstream 659caaf65dc9 cba33199 .config console log report info
ci2-upstream-kcsan-gce 2020/10/14 17:14 upstream b5fc7a89e58b fc7735a2 .config console log report info
* Struck through repros no longer work on HEAD.