syzbot


KCSAN: data-race in ksys_read / ksys_write (2)

Status: auto-closed as invalid on 2020/09/24 13:26
Subsystems: fs
[Documentation on labels]
First crash: 1622d, last: 1622d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ksys_read / ksys_write (3) fs 1 930d 930d 0/28 auto-closed as invalid on 2022/08/18 02:32
upstream KCSAN: data-race in ksys_read / ksys_write fs 8 1887d 1924d 0/28 auto-closed as invalid on 2020/02/07 14:57

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

write to 0xffff8880a9145668 of 8 bytes by task 5357 on cpu 0:
 ksys_read+0x101/0x180 fs/read_write.c:609
 __do_sys_read fs/read_write.c:617 [inline]
 __se_sys_read fs/read_write.c:615 [inline]
 __x64_sys_read+0x3e/0x50 fs/read_write.c:615
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880a9145668 of 8 bytes by task 5352 on cpu 1:
 ksys_write+0x7f/0x180 fs/read_write.c:628
 __do_sys_write fs/read_write.c:643 [inline]
 __se_sys_write fs/read_write.c:640 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:640
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 5352 Comm: syz-executor.2 Not tainted 5.9.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 5352 Comm: syz-executor.2 Not tainted 5.9.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x10f/0x19d lib/dump_stack.c:118
 panic+0x207/0x64a kernel/panic.c:231
 kcsan_report+0x684/0x690 kernel/kcsan/report.c:630
 kcsan_setup_watchpoint+0x41e/0x4a0 kernel/kcsan/core.c:540
 ksys_write+0x7f/0x180 fs/read_write.c:628
 __do_sys_write fs/read_write.c:643 [inline]
 __se_sys_write fs/read_write.c:640 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:640
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45d4d9
Code: 5d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f5c5da7dc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000038740 RCX: 000000000045d4d9
RDX: 000000000000012e RSI: 0000000020000340 RDI: 0000000000000006
RBP: 000000000118cf80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cf4c
R13: 00007ffdd74359af R14: 00007f5c5da7e9c0 R15: 000000000118cf4c
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/20 13:21 upstream 7eac66d0456f ed282a3a .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.