syzbot


KCSAN: data-race in do_mq_timedreceive / do_mq_timedreceive

Status: moderation: reported on 2024/03/21 08:18
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+a0e694e8028ad532d47c@syzkaller.appspotmail.com
First crash: 26d, last: 26d

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

write to 0xffff888100e68dd8 of 8 bytes by task 6195 on cpu 1:
 do_mq_timedreceive+0x289/0x6e0 ipc/mqueue.c:1238
 __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
 do_syscall_64+0xd3/0x1d0
 entry_SYSCALL_64_after_hwframe+0x6d/0x75

read to 0xffff888100e68dd8 of 8 bytes by task 6198 on cpu 0:
 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
 do_syscall_64+0xd3/0x1d0
 entry_SYSCALL_64_after_hwframe+0x6d/0x75

value changed: 0x0000000000000000 -> 0xffff88815ef42d80

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 6198 Comm: syz-executor.2 Tainted: G        W          6.8.0-syzkaller-11752-gdba89d1b81df #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/21 08:17 upstream dba89d1b81df 6753db5c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in do_mq_timedreceive / do_mq_timedreceive
* Struck through repros no longer work on HEAD.