syzbot


KCSAN: data-race in data_alloc / prb_reserve
Status: moderation: reported on 2021/03/25 21:28
Reported-by: syzbot+3ef70d22840405b8403f@syzkaller.appspotmail.com
First crash: 519d, last: 1d09h

Sample crash report:
loop4: detected capacity change from 0 to 8
==================================================================
BUG: KCSAN: data-race in data_alloc / prb_reserve

write to 0xffffffff85a69898 of 8 bytes by task 5594 on cpu 0:
 data_alloc+0x27e/0x2b0 kernel/printk/printk_ringbuffer.c:1088
 prb_reserve+0x897/0xbd0 kernel/printk/printk_ringbuffer.c:1555
 vprintk_store+0x54d/0xb40 kernel/printk/printk.c:2199
 vprintk_emit+0xcc/0x430 kernel/printk/printk.c:2256
 vprintk_default+0x22/0x30 kernel/printk/printk.c:2283
 vprintk+0x7f/0x90 kernel/printk/printk_safe.c:50
 _printk+0x76/0x96 kernel/printk/printk.c:2293
 __ext4_msg+0x16d/0x180 fs/ext4/super.c:944
 ext4_fill_super+0xa96/0x3a90 fs/ext4/super.c:5603
 get_tree_bdev+0x2b4/0x3b0 fs/super.c:1292
 vfs_get_tree+0x49/0x190 fs/super.c:1497
 do_new_mount+0x200/0x650 fs/namespace.c:3040
 path_mount+0x4b1/0xb60 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x281/0x2d0 fs/namespace.c:3568
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3568
 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+0x44/0xae

read to 0xffffffff85a69898 of 8 bytes by task 5600 on cpu 1:
 desc_read kernel/printk/printk_ringbuffer.c:478 [inline]
 desc_push_tail kernel/printk/printk_ringbuffer.c:774 [inline]
 desc_reserve kernel/printk/printk_ringbuffer.c:920 [inline]
 prb_reserve+0x224/0xbd0 kernel/printk/printk_ringbuffer.c:1505
 vprintk_store+0x54d/0xb40 kernel/printk/printk.c:2199
 vprintk_emit+0xcc/0x430 kernel/printk/printk.c:2256
 vprintk_default+0x22/0x30 kernel/printk/printk.c:2283
 vprintk+0x7f/0x90 kernel/printk/printk_safe.c:50
 _printk+0x76/0x96 kernel/printk/printk.c:2293
 __ext4_msg+0x16d/0x180 fs/ext4/super.c:944
 ext4_fill_super+0xa96/0x3a90 fs/ext4/super.c:5603
 get_tree_bdev+0x2b4/0x3b0 fs/super.c:1292
 vfs_get_tree+0x49/0x190 fs/super.c:1497
 do_new_mount+0x200/0x650 fs/namespace.c:3040
 path_mount+0x4b1/0xb60 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x281/0x2d0 fs/namespace.c:3568
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3568
 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+0x44/0xae

value changed: 0x00000000002005d0 -> 0x0000000000284bb8

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 5600 Comm: syz-executor.4 Not tainted 5.18.0-rc7-syzkaller-00119-gb015dcd62b86-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
EXT4-fs (loop4): Invalid log cluster size: 38

Crashes (419):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/20 04:37 upstream b015dcd62b86 cb1ac2e7 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/05/19 21:46 upstream f993aed406ea cb1ac2e7 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/05/18 20:47 upstream ef1302160bfb 50c53f39 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/05/15 09:18 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/05/12 17:54 upstream feb9c5e19e91 9ad6612a .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/05/11 23:56 upstream feb9c5e19e91 beb0b407 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/05/11 08:52 upstream feb9c5e19e91 8d7b3b67 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/05/06 14:07 upstream fe27d189e3f4 efeff0a5 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/05/01 22:36 upstream b2da7df52e16 2df221f6 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/05/01 04:56 upstream 57ae8a492116 2df221f6 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/04/28 10:16 upstream 8f4dd16603ce 8a1f1f07 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/04/27 13:39 upstream 46cf2c613f4b 1fa34c1b .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/04/26 13:18 upstream d615b5416f8a 1fa34c1b .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/04/25 06:26 upstream 42740a2ff5d3 131df97d .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/04/22 23:36 upstream d569e86915b7 131df97d .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/04/22 06:01 upstream 59f0c2447e25 2738b391 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/04/19 21:44 upstream b7f73403a3e9 33fc6ed6 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/04/19 13:26 upstream b2d229d4ddb1 c334415e .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/04/18 22:58 upstream b2d229d4ddb1 8bcc32a6 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/04/13 17:23 upstream a19944809fe9 b17b2923 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/04/10 05:35 upstream e1f700ebd6be e22c3da3 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/04/09 21:39 upstream f1b45d8ccb98 e22c3da3 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/04/05 05:43 upstream 312310928417 5915c2cb .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/04/03 07:13 upstream be2d3ecedd99 79a2a8fc .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/03/29 09:02 upstream ae085d7f9365 6bdac766 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/03/27 17:25 upstream f022814633e1 89bc8608 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/03/27 06:37 upstream bddac7c1e02b 89bc8608 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/03/26 01:34 upstream 34af78c4e616 89bc8608 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/03/24 04:08 upstream 6b1f86f8e9c7 5ff41e94 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/03/22 18:18 upstream b47d5a4f6b8d d88ef0c5 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/03/22 03:18 upstream eaa54b1458ca e2d91b1d .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/03/21 00:14 upstream 14702b3b2438 e2d91b1d .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/03/17 07:48 upstream 56e337f2cf13 dfa9a8ed .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/03/14 20:56 upstream 09688c0166e7 9e8eaa75 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/03/14 02:09 upstream f0e18b03fcaf 9e8eaa75 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/03/13 05:09 upstream aad611a868d1 9e8eaa75 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/03/12 11:29 upstream 68453767131a 9e8eaa75 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/03/10 11:50 upstream 3bf7edc84a9e 9e8eaa75 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/03/07 19:56 upstream ffb217a13a2e 7bdd8b2c .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/03/06 20:08 upstream dcde98da9970 7bdd8b2c .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/03/04 07:23 upstream 38f80f42147f 45a13a73 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/03/03 08:38 upstream 92ebf5f91b4d 45a13a73 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/03/02 21:02 upstream fb184c4af9b9 45a13a73 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/03/01 06:16 upstream 719fce7539cd 45a13a73 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/02/28 15:51 upstream 7e57714cd0ad 45a13a73 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/02/28 03:51 upstream 52a025546731 45a13a73 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/02/26 22:20 upstream 9137eda53752 45a13a73 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/02/22 06:36 upstream 038101e6b2cd 6e821dbf .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/02/19 23:45 upstream 4f12b742eb2b 3cd800e4 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/02/16 23:58 upstream 359303076163 50221962 .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2021/03/23 05:33 upstream 0d02ec6b3136 8092f30d .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2021/03/21 21:14 upstream 812da4d39463 4c9a64da .config log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2021/01/11 05:54 upstream 0653161f0fac 2c1f2513 .config log report info
ci2-upstream-kcsan-gce 2020/12/17 20:32 upstream accefff5b547 04201c06 .config log report info