syzbot


KCSAN: data-race in do_mq_timedreceive / msg_insert (2)

Status: moderation: reported on 2024/04/29 00:46
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+2d7f8c2032c990c518a8@syzkaller.appspotmail.com
First crash: 22d, last: 22d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_mq_timedreceive / msg_insert kernel 1 971d 971d 0/26 auto-closed as invalid on 2021/10/27 14:36

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

write to 0xffff888104782458 of 8 bytes by task 10469 on cpu 0:
 msg_insert+0x10a/0x2e0 ipc/mqueue.c:212
 do_mq_timedsend+0x471/0xa10 ipc/mqueue.c:1161
 __do_sys_mq_timedsend ipc/mqueue.c:1294 [inline]
 __se_sys_mq_timedsend ipc/mqueue.c:1283 [inline]
 __x64_sys_mq_timedsend+0xca/0x150 ipc/mqueue.c:1283
 x64_sys_call+0xcd7/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:243
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888104782458 of 8 bytes by task 10467 on cpu 1:
 do_mq_timedreceive+0x207/0x6e0 ipc/mqueue.c:1230
 __do_sys_mq_timedreceive ipc/mqueue.c:1308 [inline]
 __se_sys_mq_timedreceive ipc/mqueue.c:1297 [inline]
 __x64_sys_mq_timedreceive+0xca/0x150 ipc/mqueue.c:1297
 x64_sys_call+0x2c3f/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:244
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0xffff88811739fec0 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 10467 Comm: syz-executor.4 Tainted: G        W          6.9.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/29 00:45 upstream e67572cd2204 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mq_timedreceive / msg_insert
* Struck through repros no longer work on HEAD.