syzbot


KCSAN: data-race in __blk_add_trace / __blk_trace_startstop

Status: auto-obsoleted due to no activity on 2023/03/14 05:50
Subsystems: block trace
[Documentation on labels]
First crash: 742d, last: 742d

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

write to 0xffff888107bb9980 of 4 bytes by task 27299 on cpu 1:
 blk_trace_start kernel/trace/blktrace.c:357 [inline]
 __blk_trace_startstop+0x139/0x2f0 kernel/trace/blktrace.c:700
 blk_trace_startstop+0x29/0x40 kernel/trace/blktrace.c:710
 sg_ioctl+0x28a/0x1850 drivers/scsi/sg.c:1159
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:856
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888107bb9980 of 4 bytes by task 2700 on cpu 0:
 __blk_add_trace+0x7a/0x700 kernel/trace/blktrace.c:232
 blk_add_trace_bio_remap+0x169/0x180 kernel/trace/blktrace.c:1025
 trace_block_bio_remap include/trace/events/block.h:479 [inline]
 blk_partition_remap+0x170/0x1b0 block/blk-core.c:552
 submit_bio_noacct+0x394/0x810 block/blk-core.c:736
 submit_bio+0xfb/0x110 block/blk-core.c:838
 submit_bh_wbc+0x2b0/0x2f0 fs/buffer.c:2702
 submit_bh+0x18/0x20 fs/buffer.c:2707
 jbd2_journal_commit_transaction+0x13f3/0x30b0 fs/jbd2/commit.c:763
 kjournald2+0x233/0x420 fs/jbd2/journal.c:210
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

value changed: 0x00000001 -> 0x00000002

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 2700 Comm: jbd2/sda1-8 Tainted: G        W          6.2.0-rc4-syzkaller-00009-gd532dd102151-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/17 05:32 upstream d532dd102151 a63719e7 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __blk_add_trace / __blk_trace_startstop
* Struck through repros no longer work on HEAD.