================================================================== BUG: KCSAN: data-race in bio_chain / bio_endio read to 0xffff88810d56f914 of 2 bytes by interrupt on cpu 1: bio_remaining_done block/bio.c:1760 [inline] bio_endio+0x3e/0x400 block/bio.c:1790 req_bio_endio block/blk-core.c:245 [inline] blk_update_request+0x427/0x7b0 block/blk-core.c:1464 scsi_end_request+0x6b/0x360 drivers/scsi/scsi_lib.c:576 scsi_io_completion+0x11d/0xc80 drivers/scsi/scsi_lib.c:960 scsi_finish_command+0x283/0x380 drivers/scsi/scsi.c:228 scsi_softirq_done+0x259/0x280 drivers/scsi/scsi_lib.c:1476 blk_done_softirq+0x1eb/0x250 block/blk-softirq.c:37 __do_softirq+0x115/0x33f kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0xbb/0xe0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:536 [inline] do_IRQ+0x81/0x130 arch/x86/kernel/irq.c:263 ret_from_intr+0x0/0x21 __sanitizer_cov_trace_switch+0x37/0x80 kernel/kcov.c:309 tomoyo_domain_quota_is_ok+0x122/0x2b0 security/tomoyo/util.c:1037 tomoyo_supervisor+0x22b/0xd20 security/tomoyo/common.c:2087 tomoyo_audit_path_log security/tomoyo/file.c:168 [inline] tomoyo_path_permission security/tomoyo/file.c:587 [inline] tomoyo_path_permission+0x121/0x160 security/tomoyo/file.c:573 tomoyo_check_open_permission+0x2b9/0x320 security/tomoyo/file.c:780 tomoyo_file_open security/tomoyo/tomoyo.c:319 [inline] tomoyo_file_open+0x75/0x90 security/tomoyo/tomoyo.c:314 security_file_open+0x69/0x210 security/security.c:1497 do_dentry_open+0x211/0x970 fs/open.c:784 vfs_open+0x62/0x80 fs/open.c:914 do_last fs/namei.c:3420 [inline] path_openat+0xf9f/0x3580 fs/namei.c:3537 do_filp_open+0x11e/0x1b0 fs/namei.c:3567 do_sys_open+0x3b3/0x4f0 fs/open.c:1097 __do_sys_open fs/open.c:1115 [inline] __se_sys_open fs/open.c:1110 [inline] __x64_sys_open+0x55/0x70 fs/open.c:1110 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff88810d56f914 of 2 bytes by task 21579 on cpu 0: bio_set_flag include/linux/bio.h:239 [inline] bio_inc_remaining include/linux/bio.h:689 [inline] bio_chain+0x86/0xb0 block/bio.c:336 __blk_queue_split+0x757/0xc40 block/blk-merge.c:345 blk_mq_make_request+0x104/0xf60 block/blk-mq.c:1920 generic_make_request block/blk-core.c:1066 [inline] generic_make_request+0x196/0x700 block/blk-core.c:1008 submit_bio+0x96/0x3c0 block/blk-core.c:1192 ext4_io_submit+0xdf/0x110 fs/ext4/page-io.c:384 io_submit_add_bh fs/ext4/page-io.c:425 [inline] ext4_bio_write_page+0x480/0xb4e fs/ext4/page-io.c:543 mpage_submit_page+0xe4/0x1a0 fs/ext4/inode.c:2075 mpage_map_and_submit_buffers+0x3c4/0x6c0 fs/ext4/inode.c:2319 mpage_map_and_submit_extent fs/ext4/inode.c:2458 [inline] ext4_writepages+0x1449/0x2500 fs/ext4/inode.c:2771 do_writepages+0x6b/0x170 mm/page-writeback.c:2344 __filemap_fdatawrite_range+0x1c5/0x230 mm/filemap.c:421 file_write_and_wait_range+0xfd/0x160 mm/filemap.c:782 ext4_sync_file+0x266/0xaf0 fs/ext4/fsync.c:153 vfs_fsync_range+0x82/0x150 fs/sync.c:197 generic_write_sync include/linux/fs.h:2856 [inline] ext4_buffered_write_iter+0x222/0x290 fs/ext4/file.c:259 ext4_file_write_iter+0xf4/0xd40 fs/ext4/file.c:547 call_write_iter include/linux/fs.h:1902 [inline] new_sync_write+0x388/0x4a0 fs/read_write.c:483 __vfs_write+0xb1/0xc0 fs/read_write.c:496 vfs_write fs/read_write.c:558 [inline] vfs_write+0x18a/0x390 fs/read_write.c:542 ksys_write+0xd5/0x1b0 fs/read_write.c:611 __do_sys_write fs/read_write.c:623 [inline] __se_sys_write fs/read_write.c:620 [inline] __x64_sys_write+0x4c/0x60 fs/read_write.c:620 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 21579 Comm: syz-executor.3 Not tainted 5.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================