syzbot


KCSAN: data-race in dio_bio_end_io / dio_new_bio (3)

Status: upstream: reported on 2024/08/20 10:07
Subsystems: exfat
[Documentation on labels]
Reported-by: syzbot+fed24898593bed518bec@syzkaller.appspotmail.com
First crash: 53d, last: 2d04h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [exfat?] KCSAN: data-race in dio_bio_end_io / dio_new_bio (3) 0 (1) 2024/08/20 10:07
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in dio_bio_end_io / dio_new_bio exfat 11 357d 468d 0/28 auto-obsoleted due to no activity on 2023/11/25 15:37
upstream KCSAN: data-race in dio_bio_end_io / dio_new_bio (2) exfat 1 279d 277d 0/28 auto-obsoleted due to no activity on 2024/02/11 03:04

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

read-write to 0xffff888116a847d8 of 8 bytes by interrupt on cpu 1:
 dio_bio_end_io+0x53/0xd0 fs/direct-io.c:387
 bio_endio+0x369/0x410 block/bio.c:1708
 blk_update_request+0x382/0x880 block/blk-mq.c:923
 blk_mq_end_request+0x26/0x50 block/blk-mq.c:1051
 lo_complete_rq+0xce/0x180 drivers/block/loop.c:386
 blk_complete_reqs block/blk-mq.c:1126 [inline]
 blk_done_softirq+0x74/0xb0 block/blk-mq.c:1131
 handle_softirqs+0xbf/0x280 kernel/softirq.c:554
 run_ksoftirqd+0x1c/0x30 kernel/softirq.c:927
 smpboot_thread_fn+0x31c/0x4c0 kernel/smpboot.c:164
 kthread+0x1d1/0x210 kernel/kthread.c:389
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

read to 0xffff888116a847d8 of 8 bytes by task 9941 on cpu 0:
 dio_bio_reap fs/direct-io.c:550 [inline]
 dio_new_bio+0x249/0x460 fs/direct-io.c:669
 dio_send_cur_page+0x1f2/0x7a0 fs/direct-io.c:750
 submit_page_section+0x1a3/0x5b0 fs/direct-io.c:815
 do_direct_IO fs/direct-io.c:1030 [inline]
 __blockdev_direct_IO+0x11bb/0x1e80 fs/direct-io.c:1243
 blockdev_direct_IO include/linux/fs.h:3280 [inline]
 fat_direct_IO+0x10a/0x1d0 fs/fat/inode.c:281
 generic_file_direct_write+0xf7/0x250 mm/filemap.c:3977
 __generic_file_write_iter+0xae/0x120 mm/filemap.c:4141
 generic_file_write_iter+0x77/0x1c0 mm/filemap.c:4181
 do_iter_readv_writev+0x394/0x450
 vfs_writev+0x2d4/0x880 fs/read_write.c:1064
 do_pwritev fs/read_write.c:1165 [inline]
 __do_sys_pwritev2 fs/read_write.c:1224 [inline]
 __se_sys_pwritev2+0x10c/0x1d0 fs/read_write.c:1215
 __x64_sys_pwritev2+0x78/0x90 fs/read_write.c:1215
 x64_sys_call+0x271f/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:329
 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: 0xffff88812e70a540 -> 0xffff88814c5556c0

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 9941 Comm: syz.3.2174 Tainted: G        W          6.12.0-rc2-syzkaller-00074-gd3d1556696c1 #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
==================================================================

Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/10 16:21 upstream d3d1556696c1 8fbfc0c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dio_bio_end_io / dio_new_bio
2024/10/09 05:26 upstream 5b7c893ed5ed 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dio_bio_end_io / dio_new_bio
2024/10/06 04:14 upstream fc20a3e57247 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dio_bio_end_io / dio_new_bio
2024/10/05 12:42 upstream 27cc6fdf7201 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dio_bio_end_io / dio_new_bio
2024/09/30 18:10 upstream 9852d85ec9d4 bbd4e0a4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dio_bio_end_io / dio_new_bio
2024/09/27 19:55 upstream 3630400697a3 440b26ec .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dio_bio_end_io / dio_new_bio
2024/09/27 14:29 upstream 075dbe9f6e3c 9314348a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dio_bio_end_io / dio_new_bio
2024/09/26 17:10 upstream 11a299a7933e 9314348a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dio_bio_end_io / dio_new_bio
2024/09/13 18:09 upstream 196145c606d0 b58f933c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dio_bio_end_io / dio_new_bio
2024/09/12 11:26 upstream 77f587896757 60e1a995 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dio_bio_end_io / dio_new_bio
2024/09/04 05:08 upstream 88fac17500f4 326f9c5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dio_bio_end_io / dio_new_bio
2024/09/02 01:48 upstream c9f016e72b5c 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dio_bio_end_io / dio_new_bio
2024/09/01 02:14 upstream e8784b0aef62 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dio_bio_end_io / dio_new_bio
2024/08/20 09:55 upstream 6e4436539ae1 9f0ab3fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in dio_bio_end_io / dio_new_bio
* Struck through repros no longer work on HEAD.