syzbot


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

Status: upstream: reported on 2024/10/04 10:12
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+2ba73bf53a28c019b9b1@syzkaller.appspotmail.com
First crash: 1d12h, last: 1d12h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] KCSAN: data-race in do_mq_timedreceive / msg_insert (4) 0 (1) 2024/10/04 10:12
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_mq_timedreceive / msg_insert (3) kernel 1 116d 116d 0/28 auto-obsoleted due to no activity on 2024/07/15 19:40
upstream KCSAN: data-race in do_mq_timedreceive / msg_insert kernel 1 1109d 1109d 0/28 auto-closed as invalid on 2021/10/27 14:36
upstream KCSAN: data-race in do_mq_timedreceive / msg_insert (2) kernel 1 159d 159d 0/28 auto-obsoleted due to no activity on 2024/06/03 00:46

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

write to 0xffff888114787e90 of 8 bytes by task 9929 on cpu 1:
 msg_insert+0x10a/0x2e0 ipc/mqueue.c:212
 do_mq_timedsend+0x465/0xa00 ipc/mqueue.c:1162
 __do_sys_mq_timedsend ipc/mqueue.c:1295 [inline]
 __se_sys_mq_timedsend ipc/mqueue.c:1284 [inline]
 __x64_sys_mq_timedsend+0xca/0x150 ipc/mqueue.c:1284
 x64_sys_call+0x26c5/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:243
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff888114787e90 of 8 bytes by task 9924 on cpu 0:
 do_mq_timedreceive+0x1fb/0x6d0 ipc/mqueue.c:1231
 __do_sys_mq_timedreceive ipc/mqueue.c:1309 [inline]
 __se_sys_mq_timedreceive ipc/mqueue.c:1298 [inline]
 __x64_sys_mq_timedreceive+0xca/0x150 ipc/mqueue.c:1298
 x64_sys_call+0xccf/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:244
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0xffff888134b65740 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 9924 Comm: syz.0.1959 Tainted: G        W          6.12.0-rc1-syzkaller-00125-g0c559323bbaa #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/04 06:15 upstream 0c559323bbaa d7906eff .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.