syzbot


KCSAN: data-race in string / string

Status: auto-closed as invalid on 2021/05/17 11:37
Subsystems: reiserfs
[Documentation on labels]
First crash: 1137d, last: 1137d

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

write to 0xffffffff88fa6b5a of 1 bytes by task 1224 on cpu 1:
 string_nocheck lib/vsprintf.c:615 [inline]
 string+0xa1/0x210 lib/vsprintf.c:693
 bdev_name+0x6c/0x240 lib/vsprintf.c:942
 pointer+0x258/0x800 lib/vsprintf.c:2300
 vsnprintf+0x8a1/0xed0 lib/vsprintf.c:2655
 vscnprintf+0x29/0x80 lib/vsprintf.c:2754
 prepare_error_buf+0xb70/0xbd0 fs/reiserfs/prints.c:260
 reiserfs_info+0x69/0xd0 fs/reiserfs/prints.c:301
 journal_init+0xc9f/0x3130 fs/reiserfs/journal.c:2811
 reiserfs_fill_super+0x850/0x1bc0 fs/reiserfs/super.c:2032
 mount_bdev+0x1e8/0x290 fs/super.c:1367
 get_super_block+0x2d/0x40 fs/reiserfs/super.c:2606
 legacy_get_tree+0x70/0xc0 fs/fs_context.c:592
 vfs_get_tree+0x4a/0x1a0 fs/super.c:1497
 do_new_mount fs/namespace.c:2903 [inline]
 path_mount+0x11b9/0x1c00 fs/namespace.c:3233
 do_mount fs/namespace.c:3246 [inline]
 __do_sys_mount fs/namespace.c:3454 [inline]
 __se_sys_mount+0x23d/0x2e0 fs/namespace.c:3431
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3431
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffffffff88fa6b5a of 1 bytes by task 1242 on cpu 0:
 string_nocheck lib/vsprintf.c:611 [inline]
 string+0x78/0x210 lib/vsprintf.c:693
 vsnprintf+0xab0/0xed0 lib/vsprintf.c:2651
 vprintk_store+0xf0/0x9c0 kernel/printk/printk.c:1989
 vprintk_emit+0xca/0x3e0 kernel/printk/printk.c:2081
 vprintk_default+0x22/0x30 kernel/printk/printk.c:2115
 vprintk_func+0x11b/0x120 kernel/printk/printk_safe.c:401
 printk+0x62/0x82 kernel/printk/printk.c:2146
 __reiserfs_warning+0xec/0x110 fs/reiserfs/prints.c:290
 reiserfs_fill_super+0x92d/0x1bc0 fs/reiserfs/super.c:1994
 mount_bdev+0x1e8/0x290 fs/super.c:1367
 get_super_block+0x2d/0x40 fs/reiserfs/super.c:2606
 legacy_get_tree+0x70/0xc0 fs/fs_context.c:592
 vfs_get_tree+0x4a/0x1a0 fs/super.c:1497
 do_new_mount fs/namespace.c:2903 [inline]
 path_mount+0x11b9/0x1c00 fs/namespace.c:3233
 do_mount fs/namespace.c:3246 [inline]
 __do_sys_mount fs/namespace.c:3454 [inline]
 __se_sys_mount+0x23d/0x2e0 fs/namespace.c:3431
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3431
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1242 Comm: syz-executor.3 Not tainted 5.12.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/16 07:09 upstream 1a4431a5db2b fdb2bb2c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in string / string
* Struck through repros no longer work on HEAD.