syzbot


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

Status: moderation: reported on 2024/12/07 19:40
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+7286d33689a8e59c0546@syzkaller.appspotmail.com
First crash: 13d, last: 2d19h
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_mq_timedreceive / do_mq_timedsend kernel 1 262d 262d 0/28 auto-obsoleted due to no activity on 2024/05/07 16:09

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

write to 0xffff888116148dd0 of 8 bytes by task 20884 on cpu 0:
 do_mq_timedsend+0x30e/0x680 ipc/mqueue.c:1123
 __do_sys_mq_timedsend ipc/mqueue.c:1269 [inline]
 __se_sys_mq_timedsend ipc/mqueue.c:1258 [inline]
 __x64_sys_mq_timedsend+0xca/0x150 ipc/mqueue.c:1258
 x64_sys_call+0x2a68/0x2dc0 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 0xffff888116148dd0 of 8 bytes by task 20885 on cpu 1:
 do_mq_timedreceive+0x205/0x6d0 ipc/mqueue.c:1208
 __do_sys_mq_timedreceive ipc/mqueue.c:1283 [inline]
 __se_sys_mq_timedreceive ipc/mqueue.c:1272 [inline]
 __x64_sys_mq_timedreceive+0xca/0x150 ipc/mqueue.c:1272
 x64_sys_call+0x18f1/0x2dc0 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: 0x0000000000000000 -> 0xffff88812289df80

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 20885 Comm: syz.1.17845 Tainted: G        W          6.13.0-rc3-syzkaller-00044-gaef25be35d23 #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/18 18:35 upstream aef25be35d23 a0626d3a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mq_timedreceive / do_mq_timedsend
2024/12/07 19:39 upstream b5f217084ab3 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mq_timedreceive / do_mq_timedsend
* Struck through repros no longer work on HEAD.