syzbot


KCSAN: data-race in mem_cgroup_flush_stats_delayed / tick_do_update_jiffies64 (4)

Status: auto-obsoleted due to no activity on 2023/06/01 19:11
Subsystems: kernel
[Documentation on labels]
First crash: 382d, last: 371d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in mem_cgroup_flush_stats_delayed / tick_do_update_jiffies64 (2) kernel 7 528d 615d 0/26 auto-obsoleted due to no activity on 2023/01/03 10:47
upstream KCSAN: data-race in mem_cgroup_flush_stats_delayed / tick_do_update_jiffies64 (3) kernel 2 451d 478d 0/26 auto-obsoleted due to no activity on 2023/04/04 17:35
upstream KCSAN: data-race in mem_cgroup_flush_stats_delayed / tick_do_update_jiffies64 kernel 7 657d 733d 0/26 auto-closed as invalid on 2022/08/20 02:16

Sample crash report:
==================================================================
BUG: KCSAN: data-race in mem_cgroup_flush_stats_delayed / tick_do_update_jiffies64

read-write to 0xffffffff85a079c0 of 8 bytes by interrupt on cpu 0:
 tick_do_update_jiffies64+0x112/0x1b0 kernel/time/tick-sched.c:118
 tick_sched_do_timer kernel/time/tick-sched.c:199 [inline]
 tick_sched_timer+0x7b/0x2c0 kernel/time/tick-sched.c:1474
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x217/0x700 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x20d/0x7b0 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
 __sysvec_apic_timer_interrupt+0x73/0x210 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x68/0x80 arch/x86/kernel/apic/apic.c:1106
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
 may_mount fs/namespace.c:1767 [inline]
 can_umount fs/namespace.c:1783 [inline]
 path_umount+0x7f/0x9a0 fs/namespace.c:1802
 ksys_umount fs/namespace.c:1827 [inline]
 __do_sys_umount fs/namespace.c:1832 [inline]
 __se_sys_umount fs/namespace.c:1830 [inline]
 __x64_sys_umount+0xb9/0xe0 fs/namespace.c:1830
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffffffff85a079c0 of 8 bytes by task 26917 on cpu 1:
 mem_cgroup_flush_stats_delayed+0x38/0x140 mm/memcontrol.c:658
 workingset_refault+0x2ec/0x740 mm/workingset.c:465
 filemap_add_folio+0xe6/0x150 mm/filemap.c:953
 page_cache_ra_unbounded+0x15e/0x2e0 mm/readahead.c:251
 do_page_cache_ra mm/readahead.c:300 [inline]
 page_cache_ra_order+0xd5/0xf0 mm/readahead.c:560
 do_sync_mmap_readahead+0x35e/0x3a0 mm/filemap.c:3190
 filemap_fault+0x3c1/0xb20 mm/filemap.c:3282
 __do_fault mm/memory.c:4155 [inline]
 do_shared_fault mm/memory.c:4561 [inline]
 do_fault mm/memory.c:4639 [inline]
 handle_pte_fault mm/memory.c:4923 [inline]
 __handle_mm_fault mm/memory.c:5065 [inline]
 handle_mm_fault+0x1247/0x21d0 mm/memory.c:5211
 do_user_addr_fault arch/x86/mm/fault.c:1407 [inline]
 handle_page_fault arch/x86/mm/fault.c:1498 [inline]
 exc_page_fault+0x45f/0x640 arch/x86/mm/fault.c:1554
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570

value changed: 0x0000000100002237 -> 0x0000000100002238

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 26917 Comm: syz-executor.1 Not tainted 6.3.0-syzkaller-07919-g6e98b09da931 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/27 19:08 upstream 6e98b09da931 6f3d6fa7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mem_cgroup_flush_stats_delayed / tick_do_update_jiffies64
2023/04/23 21:27 upstream 457391b03803 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mem_cgroup_flush_stats_delayed / tick_do_update_jiffies64
2023/04/16 03:32 upstream a7a55e27ad72 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in mem_cgroup_flush_stats_delayed / tick_do_update_jiffies64
* Struck through repros no longer work on HEAD.