[moderation] [kernel?] KCSAN: data-race in do_mq_timedreceive / do_mq_timedsend

0 views
Skip to first unread message

syzbot

unread,
Apr 2, 2024, 12:09:20 PMApr 2
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 026e680b0a08 Merge tag 'pwm/for-6.9-rc3-fixes' of git://gi..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=12a296c5180000
kernel config: https://syzkaller.appspot.com/x/.config?x=d024e89f7bb376ce
dashboard link: https://syzkaller.appspot.com/bug?extid=9034accaa94b7b706f53
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
CC: [linux-...@vger.kernel.org]

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/eb276a281ef9/disk-026e680b.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/e25825b48b7a/vmlinux-026e680b.xz
kernel image: https://storage.googleapis.com/syzbot-assets/376093368942/bzImage-026e680b.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+9034ac...@syzkaller.appspotmail.com

==================================================================
BUG: KCSAN: data-race in do_mq_timedreceive / do_mq_timedsend

write to 0xffff8881103fabd8 of 8 bytes by task 13097 on cpu 0:
do_mq_timedsend+0x310/0xa10 ipc/mqueue.c:1133
__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
do_syscall_64+0xd3/0x1d0
entry_SYSCALL_64_after_hwframe+0x72/0x7a

read to 0xffff8881103fabd8 of 8 bytes by task 13096 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
do_syscall_64+0xd3/0x1d0
entry_SYSCALL_64_after_hwframe+0x72/0x7a

value changed: 0x0000000000000000 -> 0xffff888120be53c0

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


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages