syzbot


KCSAN: data-race in __wb_writeout_add / writeout_period (4)

Status: moderation: reported on 2023/12/08 00:07
Subsystems: fs mm
[Documentation on labels]
Reported-by: syzbot+f8a138eda1477afcb03f@syzkaller.appspotmail.com
First crash: 506d, last: 5d04h
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __wb_writeout_add / writeout_period (2) fs mm 2 603d 612d 0/26 auto-closed as invalid on 2022/08/08 01:40
upstream KCSAN: data-race in __wb_writeout_add / writeout_period fs mm 2 660d 685d 0/26 auto-closed as invalid on 2022/06/12 20:11
upstream KCSAN: data-race in __wb_writeout_add / writeout_period (3) fs mm 1 561d 561d 0/26 auto-closed as invalid on 2022/09/20 00:41

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __wb_writeout_add / writeout_period

write to 0xffffffff87125d70 of 8 bytes by interrupt on cpu 1:
 writeout_period+0xa6/0xe0 mm/page-writeback.c:614
 call_timer_fn+0x37/0x2f0 kernel/time/timer.c:1700
 expire_timers kernel/time/timer.c:1751 [inline]
 __run_timers+0x448/0x630 kernel/time/timer.c:2038
 run_timer_softirq+0x31/0x40 kernel/time/timer.c:2053
 __do_softirq+0xc4/0x27b kernel/softirq.c:553
 invoke_softirq kernel/softirq.c:427 [inline]
 __irq_exit_rcu kernel/softirq.c:632 [inline]
 irq_exit_rcu+0x3b/0x90 kernel/softirq.c:644
 sysvec_apic_timer_interrupt+0x6f/0x80 arch/x86/kernel/apic/apic.c:1076
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649
 finish_task_switch+0xbe/0x2a0 kernel/sched/core.c:5274
 context_switch kernel/sched/core.c:5403 [inline]
 __schedule+0x5d8/0x920 kernel/sched/core.c:6727
 __schedule_loop kernel/sched/core.c:6802 [inline]
 schedule+0x54/0x80 kernel/sched/core.c:6817
 do_nanosleep+0xa2/0x2f0 kernel/time/hrtimer.c:2048
 hrtimer_nanosleep+0xe7/0x1e0 kernel/time/hrtimer.c:2101
 common_nsleep+0x68/0x80 kernel/time/posix-timers.c:1350
 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1396 [inline]
 __se_sys_clock_nanosleep+0x202/0x230 kernel/time/posix-timers.c:1373
 __x64_sys_clock_nanosleep+0x55/0x60 kernel/time/posix-timers.c:1373
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffffffff87125d70 of 8 bytes by task 48 on cpu 0:
 wb_domain_writeout_add mm/page-writeback.c:563 [inline]
 __wb_writeout_add+0x8a/0x1d0 mm/page-writeback.c:584
 __folio_end_writeback+0x21b/0x4a0 mm/page-writeback.c:2963
 folio_end_writeback+0x74/0x1f0 mm/filemap.c:1599
 ext4_finish_bio+0x47b/0x8e0 fs/ext4/page-io.c:145
 ext4_release_io_end+0x8c/0x1e0 fs/ext4/page-io.c:160
 ext4_end_io_end fs/ext4/page-io.c:194 [inline]
 ext4_do_flush_completed_IO fs/ext4/page-io.c:259 [inline]
 ext4_end_io_rsv_work+0x2d3/0x360 fs/ext4/page-io.c:273
 process_one_work kernel/workqueue.c:2633 [inline]
 process_scheduled_works+0x5b8/0xa40 kernel/workqueue.c:2706
 worker_thread+0x525/0x730 kernel/workqueue.c:2787
 kthread+0x1d7/0x210 kernel/kthread.c:388
 ret_from_fork+0x48/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242

value changed: 0x00000000ffffc8bf -> 0x00000000ffffc9eb

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 48 Comm: kworker/u4:3 Not tainted 6.8.0-rc5-syzkaller-00121-g1c892cdd8fe0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Workqueue: ext4-rsv-conversion ext4_end_io_rsv_work
==================================================================

Crashes (132):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/22 20:30 upstream 1c892cdd8fe0 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2024/02/22 02:54 upstream 39133352cbed 345111b5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2024/02/15 17:50 upstream 8d3dea210042 fd39cf6f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2024/02/12 19:17 upstream 716f4aaa7b48 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2024/02/11 13:02 upstream 7521f258ea30 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2024/02/08 17:39 upstream 047371968ffc 7f07e9b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2024/02/03 11:32 upstream 56897d51886f 60bf9982 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2024/02/02 01:05 upstream 5c24e4e9e708 d61103fc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2024/02/01 08:59 upstream 6764c317b6bb 373b66cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2024/01/26 13:40 upstream ecb1b8288dc7 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2024/01/25 14:20 upstream 6098d87eaf31 1e153dc8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2024/01/24 00:08 upstream 7ed2632ec7d7 1e153dc8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2024/01/20 02:53 upstream 9d1694dc91ce 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2024/01/18 21:54 upstream 296455ade1fd 239abf84 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2024/01/14 15:26 upstream 052d534373b7 551587c1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2024/01/10 08:20 upstream 35f11a3710cd b438bd66 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2024/01/09 05:33 upstream 5db8752c3b81 4c0fd4bb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2024/01/05 16:16 upstream 1f874787ed9a 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2024/01/04 13:30 upstream ac865f00af29 28c42cff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/12/31 18:44 upstream 453f5db0619e fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/12/25 11:23 upstream 861deac3b092 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/12/20 12:44 upstream 55cb5f43689d 3ad490ea .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/12/17 21:47 upstream 0e389834672c 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/12/16 23:39 upstream c8e97fc6b4c0 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/12/16 11:56 upstream 3bd7d7488169 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/12/11 05:13 upstream a39b6ac3781d 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/12/06 12:33 upstream bee0e7762ad2 858d62d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/12/05 13:11 upstream bee0e7762ad2 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/12/02 13:54 upstream 815fb87b7530 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/12/01 08:26 upstream e8f60209d6cf f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/11/20 20:51 upstream 98b1cc82c4af cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/11/19 03:37 upstream 23dfa043f6d5 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/11/18 12:11 upstream 791c8ab095f7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/11/16 03:07 upstream c42d9eeef8e5 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/11/13 21:24 upstream 9bacdd8996c7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/11/04 17:03 upstream 90b0c2b2edd1 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/11/01 01:25 upstream 89ed67ef126c 58499c95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/10/29 14:19 upstream 2af9b20dbb39 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/10/28 15:46 upstream 56567a20b22b 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/10/27 10:09 upstream 3a568e3a961b bf285f0c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/10/26 00:31 upstream 611da07b89fd 72e794c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/10/24 11:30 upstream e017769f4ce2 af8d2e46 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/10/21 15:12 upstream 9c5d00cb7b6b 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/10/20 16:08 upstream ce55c22ec8b2 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2023/10/17 12:53 upstream 213f891525c2 342b9c55 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
2022/10/09 13:39 upstream a6afa4199d3d aea5da89 .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in __wb_writeout_add / writeout_period
* Struck through repros no longer work on HEAD.