KCSAN: data-race in sbitmap_queue_clear / sbitmap_queue_clear (2)

4 views
Skip to first unread message

syzbot

unread,
Dec 7, 2020, 6:45:13 AM12/7/20
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: eccc8767 Merge branch 'fixes' of git://git.kernel.org/pub/..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=11f95ed2500000
kernel config: https://syzkaller.appspot.com/x/.config?x=671e27f23e60a67b
dashboard link: https://syzkaller.appspot.com/bug?extid=f41b108210915b7bfb51
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project.git 913f6005669cfb590c99865a90bc51ed0983d09d)
CC: [ax...@kernel.dk linux...@vger.kernel.org linux-...@vger.kernel.org]

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

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

==================================================================
BUG: KCSAN: data-race in sbitmap_queue_clear / sbitmap_queue_clear

write to 0xffffe8ffffd28494 of 4 bytes by interrupt on cpu 1:
sbitmap_queue_clear+0xca/0xf0 lib/sbitmap.c:588
blk_mq_put_tag+0x82/0x90 block/blk-mq-tag.c:188
__blk_mq_free_request+0x14e/0x1c0 block/blk-mq.c:497
blk_mq_free_request+0x2bd/0x330 block/blk-mq.c:531
__blk_mq_end_request+0x214/0x230 block/blk-mq.c:555
blk_mq_end_request+0x37/0x50 block/blk-mq.c:564
lo_complete_rq+0xca/0x180 drivers/block/loop.c:500
blk_done_softirq+0x145/0x190 block/blk-mq.c:586
__do_softirq+0x12c/0x2b1 kernel/softirq.c:298
run_ksoftirqd+0x13/0x20 kernel/softirq.c:653
smpboot_thread_fn+0x34f/0x520 kernel/smpboot.c:165
kthread+0x1fa/0x220 kernel/kthread.c:292
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

write to 0xffffe8ffffd28494 of 4 bytes by interrupt on cpu 0:
sbitmap_queue_clear+0xca/0xf0 lib/sbitmap.c:588
blk_mq_put_tag+0x82/0x90 block/blk-mq-tag.c:188
__blk_mq_free_request+0x14e/0x1c0 block/blk-mq.c:497
blk_mq_free_request+0x2bd/0x330 block/blk-mq.c:531
__blk_mq_end_request+0x214/0x230 block/blk-mq.c:555
blk_mq_end_request+0x37/0x50 block/blk-mq.c:564
lo_complete_rq+0xca/0x180 drivers/block/loop.c:500
blk_done_softirq+0x145/0x190 block/blk-mq.c:586
__do_softirq+0x12c/0x2b1 kernel/softirq.c:298
run_ksoftirqd+0x13/0x20 kernel/softirq.c:653
smpboot_thread_fn+0x34f/0x520 kernel/smpboot.c:165
kthread+0x1fa/0x220 kernel/kthread.c:292
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 10 Comm: ksoftirqd/0 Not tainted 5.10.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================


---
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.

syzbot

unread,
Dec 21, 2020, 6:46:08 AM12/21/20
to syzkaller-upst...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages