syzbot


KCSAN: data-race in data_push_tail / number
Status: auto-closed as invalid on 2022/01/31 12:18
Reported-by: syzbot+698615f208a1a0fa0ae6@syzkaller.appspotmail.com
First crash: 437d, last: 151d

Sample crash report:
[EXT4 FS bs=1024, gc=1, bpg=8192, ipg=32, mo=a002c01c, mo2=0006]
==================================================================
BUG: KCSAN: data-race in data_push_tail / number

write to 0xffffffff86d8ec46 of 1 bytes by task 20201 on cpu 0:
 number+0x8ca/0xb60 lib/vsprintf.c:556
 vsnprintf+0xb6d/0xed0 lib/vsprintf.c:2871
 vscnprintf+0x29/0x80 lib/vsprintf.c:2908
 printk_sprint kernel/printk/printk.c:2076 [inline]
 vprintk_store+0x638/0xbb0 kernel/printk/printk.c:2186
 vprintk_emit+0xac/0x3c0 kernel/printk/printk.c:2229
 vprintk_default+0x22/0x30 kernel/printk/printk.c:2256
 vprintk+0x7f/0x90 kernel/printk/printk_safe.c:50
 _printk+0x76/0x97 kernel/printk/printk.c:2266
 ext4_setup_super+0x399/0x3a0 fs/ext4/super.c:2708
 ext4_fill_super+0x4023/0x5870 fs/ext4/super.c:4842
 mount_bdev+0x1e8/0x290 fs/super.c:1370
 legacy_get_tree+0x70/0xc0 fs/fs_context.c:610
 vfs_get_tree+0x4a/0x1a0 fs/super.c:1500
 do_new_mount fs/namespace.c:2988 [inline]
 path_mount+0x11cf/0x1c40 fs/namespace.c:3318
 do_mount fs/namespace.c:3331 [inline]
 __do_sys_mount fs/namespace.c:3539 [inline]
 __se_sys_mount+0x24b/0x2f0 fs/namespace.c:3516
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3516
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffffffff86d8ec40 of 8 bytes by task 20206 on cpu 1:
 data_make_reusable kernel/printk/printk_ringbuffer.c:587 [inline]
 data_push_tail+0x138/0x470 kernel/printk/printk_ringbuffer.c:672
 data_alloc+0xbc/0x2b0 kernel/printk/printk_ringbuffer.c:1043
 prb_reserve+0x920/0xbf0 kernel/printk/printk_ringbuffer.c:1549
 vprintk_store+0x560/0xbb0 kernel/printk/printk.c:2176
 vprintk_emit+0xac/0x3c0 kernel/printk/printk.c:2229
 vprintk_default+0x22/0x30 kernel/printk/printk.c:2256
 vprintk+0x7f/0x90 kernel/printk/printk_safe.c:50
 _printk+0x76/0x97 kernel/printk/printk.c:2266
 ext4_setup_super+0x399/0x3a0 fs/ext4/super.c:2708
 ext4_fill_super+0x4023/0x5870 fs/ext4/super.c:4842
 mount_bdev+0x1e8/0x290 fs/super.c:1370
 legacy_get_tree+0x70/0xc0 fs/fs_context.c:610
 vfs_get_tree+0x4a/0x1a0 fs/super.c:1500
 do_new_mount fs/namespace.c:2988 [inline]
 path_mount+0x11cf/0x1c40 fs/namespace.c:3318
 do_mount fs/namespace.c:3331 [inline]
 __do_sys_mount fs/namespace.c:3539 [inline]
 __se_sys_mount+0x24b/0x2f0 fs/namespace.c:3516
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3516
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000100015421 -> 0x323931383d677062

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 20206 Comm: syz-executor.4 Tainted: G        W         5.16.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
System zones: 1-2, 19-19, 35-38, 46-46

Crashes (87):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/12/27 12:18 upstream fc74e0a40e4f e4f103c4 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/12/26 10:37 upstream 438645193e59 e4f103c4 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/12/18 00:23 upstream 6441998e2e37 44068e19 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/12/16 20:52 upstream fa36bbe6d43f 8dd6a5e3 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/12/13 13:51 upstream 2585cf9dfaad 0304899b .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/12/09 22:17 upstream ded746bfc943 b54aa474 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/12/06 11:07 upstream 0fcfb00b28c0 579a8754 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/12/01 17:43 upstream 58e1100fdc59 5fa3eacc .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/11/29 05:36 upstream d06c942efea4 63eeac02 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/11/28 15:08 upstream 3498e7f2bb41 63eeac02 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/11/23 23:50 upstream 5d9f4cf36721 545ab074 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/11/10 22:43 upstream 89d714ab6043 75b04091 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/11/10 15:56 upstream cb690f5238d7 75b04091 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/11/09 04:47 upstream e851dfae4371 8ab17e57 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/11/08 12:03 upstream 6b75d88fa81b d29682f1 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/11/07 03:34 upstream 512b7931ad05 4c1be0be .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/10/28 07:44 upstream 1fc596a56b33 be531bb4 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/10/26 16:01 upstream 3906fe9bb7f1 d50eb50a .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/10/26 01:01 upstream 87066fdd2e30 c1132b49 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/10/25 12:53 upstream 6c62666d8879 4f0000ee .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/10/22 03:32 upstream 2f111a6fd5b5 55f90bc6 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/10/20 12:09 upstream d9abdee5fd5a 418a00eb .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/10/05 14:24 upstream f6274b06e326 8a6b1a8d .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/09/28 19:33 upstream d33bec7b3dfa d82cb927 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/09/27 16:06 upstream 5816b3e6577e 78494d16 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/09/17 07:42 upstream bdb575f87217 5b989942 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/09/12 09:34 upstream c605c39677b9 3ce60af8 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/09/09 23:54 upstream a3fa7a101dcf e2776ee4 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/09/03 21:03 upstream a9c9a6f741cd d236a457 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/09/02 21:16 upstream 4ac6d90867a4 d0f0970b .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/08/27 05:09 upstream 1a6d80ff2419 b318694d .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/08/22 21:56 upstream 1bdc3d5be7e1 b599f2fc .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/08/21 23:18 upstream 002c0aef1090 b599f2fc .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/08/21 13:59 upstream fa54d366a6e4 b599f2fc .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/08/21 01:05 upstream d992fe5318d8 b599f2fc .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/08/06 21:20 upstream 894d6f401b21 6972b106 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/08/05 17:33 upstream 251a1524293d d2d6e680 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/08/04 01:45 upstream d5ad8ec3cfb5 6c236867 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/08/02 23:13 upstream c500bee1c5b2 6c236867 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/07/18 04:25 upstream 1d67c8d993ba f115ae98 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/07/17 22:52 upstream d980cc0620ae f115ae98 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/07/16 18:18 upstream d936eb238744 f115ae98 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/07/12 08:39 upstream e73f0f0ee754 a4869c92 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/07/07 11:59 upstream 3dbdb38e2869 4846d5c1 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/06/30 17:26 upstream 007b350a5875 84fd4c77 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/06/29 12:02 upstream 122fa8c58831 9d2ab5df .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/06/25 08:46 upstream 4a09d388f2ab 0edbbe31 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/06/24 01:39 upstream 7266f2030eb0 fe4ab389 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/06/23 01:02 upstream 0c18f29aae7c aba2b2fb .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/06/21 04:02 upstream cba5e97280f5 aba2b2fb .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/04/21 14:15 upstream 1fe5501ba1ab 95777977 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/04/19 10:14 upstream bf05bf16c76b 50f523d7 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/04/19 01:22 upstream bf05bf16c76b 7e2b734b .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/04/18 14:13 upstream c98ff1d013d2 7e2b734b .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/04/14 20:50 upstream 50987beca096 3134b37f .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/04/12 21:06 upstream d434405aaab7 6a81331a .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/04/10 17:46 upstream d4961772226d 6a81331a .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/04/06 13:19 upstream 0a50438c8436 6a81331a .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/04/05 13:40 upstream e49d033bddf5 6a81331a .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/04/03 22:28 upstream d93a0d43e3d0 6a81331a .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/04/03 12:16 upstream 0a84c2e440f7 6a81331a .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/04/01 07:10 upstream d19cc4bfbff1 6a81331a .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/03/29 02:02 upstream 36a14638f7c0 a8529b82 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/03/27 07:47 upstream 0f4498cef9f5 a8529b82 .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/03/24 15:45 upstream 7acac4b3196c 607e3baf .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/03/21 07:53 upstream 812da4d39463 17810eae .config log report info KCSAN: data-race in data_push_tail / number
ci2-upstream-kcsan-gce 2021/03/17 03:12 upstream 1df27313f50a fdb2bb2c .config log report info KCSAN: data-race in data_push_tail / number