syzbot


KCSAN: data-race in do_mq_timedreceive / msg_insert

Status: auto-closed as invalid on 2021/10/27 14:36
Subsystems: kernel
[Documentation on labels]
First crash: 959d, last: 959d
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 (2) kernel 1 10d 10d 0/26 moderation: reported on 2024/04/29 00:46

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

write to 0xffff888129971308 of 8 bytes by task 23271 on cpu 0:
 msg_insert+0x10a/0x2e0 ipc/mqueue.c:213
 do_mq_timedsend+0x452/0xaa0 ipc/mqueue.c:1149
 __do_sys_mq_timedsend ipc/mqueue.c:1284 [inline]
 __se_sys_mq_timedsend ipc/mqueue.c:1273 [inline]
 __x64_sys_mq_timedsend+0xc9/0x140 ipc/mqueue.c:1273
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888129971308 of 8 bytes by task 23253 on cpu 1:
 do_mq_timedreceive+0x1f8/0x780 ipc/mqueue.c:1219
 __do_sys_mq_timedreceive ipc/mqueue.c:1298 [inline]
 __se_sys_mq_timedreceive ipc/mqueue.c:1287 [inline]
 __x64_sys_mq_timedreceive+0xc9/0x140 ipc/mqueue.c:1287
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0xffff888129a50f40 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 23253 Comm: syz-executor.3 Not tainted 5.15.0-rc2-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/09/22 14:27 upstream 92477dd1faa6 8cac236e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in do_mq_timedreceive / msg_insert
* Struck through repros no longer work on HEAD.