syzbot


KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode (2)

Status: moderation: reported on 2020/10/14 12:01
Reported-by: syzbot+dd7eafdc93343dca0f7d@syzkaller.appspotmail.com
First crash: 952d, last: 13h18m
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode 43 980d 1187d 0/24 closed as invalid on 2020/06/18 14:24

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode

write to 0xffff88811f5c6b20 of 8 bytes by task 23363 on cpu 1:
 __writeback_single_inode+0x1f6/0x590 fs/fs-writeback.c:1634
 writeback_sb_inodes+0x4dd/0xa30 fs/fs-writeback.c:1889
 __writeback_inodes_wb+0xa0/0x1b0 fs/fs-writeback.c:1960
 wb_writeback+0x280/0x650 fs/fs-writeback.c:2065
 wb_check_background_flush fs/fs-writeback.c:2131 [inline]
 wb_do_writeback+0x5b3/0x600 fs/fs-writeback.c:2219
 wb_workfn+0x88/0x260 fs/fs-writeback.c:2246
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

read to 0xffff88811f5c6b20 of 8 bytes by task 2205 on cpu 0:
 __mark_inode_dirty+0x4f/0x730 fs/fs-writeback.c:2401
 mark_inode_dirty include/linux/fs.h:2465 [inline]
 generic_write_end+0x175/0x350 fs/buffer.c:2184
 ext4_da_write_end+0x26c/0x620 fs/ext4/inode.c:3175
 generic_perform_write+0x264/0x3f0 mm/filemap.c:3783
 ext4_buffered_write_iter+0x235/0x3e0 fs/ext4/file.c:285
 ext4_file_write_iter+0x2bb/0x11b0
 __kernel_write_iter+0x157/0x380 fs/read_write.c:517
 dump_emit_page+0x3de/0x830 fs/coredump.c:864
 dump_user_range+0x5e/0x200 fs/coredump.c:915
 elf_core_dump+0x1b4f/0x1c60 fs/binfmt_elf.c:2137
 do_coredump+0xed7/0x1790 fs/coredump.c:762
 get_signal+0xa04/0xc70 kernel/signal.c:2845
 arch_do_signal_or_restart+0x85/0x290 arch/x86/kernel/signal.c:306
 exit_to_user_mode_loop+0x78/0x130 kernel/entry/common.c:168
 exit_to_user_mode_prepare kernel/entry/common.c:203 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:296
 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000020087 -> 0x0000000000000004

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 2205 Comm: syz-executor.5 Not tainted 6.2.0-rc6-syzkaller-00003-g22b8077d0fce-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
==================================================================

Crashes (401):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2023/02/01 04:03 upstream 22b8077d0fce b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2023/01/24 23:31 upstream fb6e71db53f3 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2023/01/22 08:09 upstream 2241ab53cbb5 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2023/01/15 07:23 upstream 7c6984405241 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2023/01/09 03:21 upstream 1fe4fd6f5cad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2023/01/08 12:42 upstream 9b43a525db12 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2023/01/07 08:09 upstream 1f5abbd77e2c 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2023/01/03 10:38 upstream 69b41ac87e4a f0036e18 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/12/30 00:22 upstream 2258c2dc850b 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/12/24 17:30 upstream 72a85e2b0a1e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/12/21 17:58 upstream b6bb9676f216 4067838e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/12/21 11:29 upstream 6feb57c2fd7c d3e76707 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/11/30 03:08 upstream 01f856ae6d0c 579a3740 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/11/29 00:46 upstream b7b275e60bcd ca9683b8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/11/27 03:51 upstream 644e9524388a f4470a7b .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/11/25 20:25 upstream 08ad43d554ba f4470a7b .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/11/22 14:15 upstream eb7081409f94 1c576c23 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/11/19 00:45 upstream ab290eaddc4c 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/11/18 07:30 upstream 84368d882b96 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/11/17 12:06 upstream cc675d22e422 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/11/17 01:19 upstream 59d0d52c30d4 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/11/17 01:04 upstream 59d0d52c30d4 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/11/15 22:37 upstream 81e7cfa3a9eb 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/11/12 11:43 upstream 8f2975c2bb4c f42ee5d8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/11/11 19:28 upstream eb037f16f7e8 f42ee5d8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/11/11 18:24 upstream 4bbf3422df78 f42ee5d8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/11/09 23:37 upstream f67dd6ce0723 bebca8b7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/11/09 15:16 upstream f141df371335 bebca8b7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/11/07 14:24 upstream f0c4d9fc9cc9 a779b11a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/11/06 16:55 upstream 2f5065a0bc9d 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/11/05 21:06 upstream b208b9fbbcba 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/11/05 11:39 upstream 64c3dd0b98f5 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/11/04 05:28 upstream f2f32f8af2b0 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/11/03 14:43 upstream 8e5423e991e8 7a2ebf95 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/10/31 23:20 upstream 30a0b95b1335 2a71366b .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/10/30 08:09 upstream 882ad2a2a8ff 2a71366b .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/10/30 02:21 upstream 91562cf99364 2a71366b .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/10/29 06:22 upstream 576e61cea1e4 899d812a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/10/28 16:45 upstream 23758867219c 8168b69e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/10/28 04:56 upstream 23758867219c 5c716ff6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/10/26 15:14 upstream 4dc12f37a8e9 2159e4d2 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2022/10/25 09:46 upstream 337a0a0b63f1 45645420 .config console log report info [disk image] [vmlinux] KCSAN: data-race in __mark_inode_dirty / __writeback_single_inode
ci2-upstream-kcsan-gce 2021/01/02 22:07 upstream 3516bd729358 79264ae3 .config console log report info
ci2-upstream-kcsan-gce 2020/10/13 22:55 upstream 6ad4bf6ea160 fc7735a2 .config console log report info
ci2-upstream-kcsan-gce 2020/06/24 10:34 upstream 3e08a95294a4 41694dbf .config console log report
* Struck through repros no longer work on HEAD.