syzbot


WARNING in __mod_memcg_lruvec_state

Status: fixed on 2024/06/05 13:52
Subsystems: cgroups mm
[Documentation on labels]
Reported-by: syzbot+9319a4268a640e26b72b@syzkaller.appspotmail.com
Fix commit: 4f687281012e mm: do not update memcg stats for NR_{FILE/SHMEM}_PMDMAPPED
First crash: 259d, last: 220d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH v2] mm: do not update memcg stats for NR_{FILE/SHMEM}_PMDMAPPED 7 (7) 2024/05/06 20:53
[PATCH] mm: do not update memcg stats for NR_{FILE/SHMEM}_PMDMAPPED 7 (7) 2024/05/06 19:25
[syzbot] [cgroups?] [mm?] WARNING in __mod_memcg_lruvec_state 8 (11) 2024/05/06 16:13
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/05/06 14:12 20m yosryahmed@google.com patch linux-next error

Sample crash report:
------------[ cut here ]------------
__mod_memcg_lruvec_state: missing stat item 25
WARNING: CPU: 0 PID: 5097 at mm/memcontrol.c:999 __mod_memcg_lruvec_state+0x18c/0x430 mm/memcontrol.c:999
Modules linked in:
CPU: 0 PID: 5097 Comm: syz-executor454 Not tainted 6.9.0-rc7-next-20240506-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:__mod_memcg_lruvec_state+0x18c/0x430 mm/memcontrol.c:999
Code: ad 35 94 0d 00 0f 85 a4 01 00 00 c6 05 a0 35 94 0d 01 90 48 c7 c7 80 53 d7 8b 48 c7 c6 54 27 b8 8d 44 89 fa e8 55 f1 54 ff 90 <0f> 0b 90 90 e9 7c 01 00 00 4c 8d 7c 24 60 4c 89 fb 48 c1 eb 03 42
RSP: 0018:ffffc9000345f1e0 EFLAGS: 00010246
RAX: 03b1216642141d00 RBX: ffffffff8fad3cb9 RCX: ffff88807baf3c00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000345f2c0 R08: ffffffff815846c2 R09: 1ffff1101728519a
R10: dffffc0000000000 R11: ffffed101728519b R12: 0000000000000200
R13: dffffc0000000000 R14: 1ffff9200068be40 R15: 0000000000000019
FS:  0000555574b9d380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000088 CR3: 000000007896a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __mod_lruvec_state mm/memcontrol.c:1055 [inline]
 __lruvec_stat_mod_folio+0x1a4/0x300 mm/memcontrol.c:1075
 __folio_add_file_rmap mm/rmap.c:1444 [inline]
 folio_add_file_rmap_pmd+0x29c/0x700 mm/rmap.c:1485
 do_set_pmd+0x767/0xc40 mm/memory.c:4650
 set_huge_pmd+0x28a/0x710 mm/khugepaged.c:1452
 collapse_pte_mapped_thp+0x5c7/0x10b0 mm/khugepaged.c:1655
 madvise_collapse+0x661/0xcc0 mm/khugepaged.c:2762
 madvise_vma_behavior mm/madvise.c:1094 [inline]
 madvise_walk_vmas mm/madvise.c:1268 [inline]
 do_madvise+0xc5f/0x44d0 mm/madvise.c:1464
 __do_sys_madvise mm/madvise.c:1481 [inline]
 __se_sys_madvise mm/madvise.c:1479 [inline]
 __x64_sys_madvise+0xa6/0xc0 mm/madvise.c:1479
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd6753ec0e9
Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffdb85b3258 EFLAGS: 00000246 ORIG_RAX: 000000000000001c
RAX: ffffffffffffffda RBX: 00007ffdb85b3438 RCX: 00007fd6753ec0e9
RDX: 0000000000000019 RSI: 0000000000600003 RDI: 0000000020000000
RBP: 00007fd67545f610 R08: 00236f656469762f R09: 0000000000000000
R10: 000000000000001f R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffdb85b3428 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (270):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/06 13:09 linux-next 2b84edefcad1 610f2a54 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 13:03 linux-next 2b84edefcad1 610f2a54 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/03/29 07:52 upstream 317c7bc0ef03 c52bcb23 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in __mod_memcg_lruvec_state
2024/05/07 07:03 linux-next 2b84edefcad1 c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/07 06:02 linux-next 2b84edefcad1 c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/07 05:00 linux-next 2b84edefcad1 c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/07 04:52 linux-next 2b84edefcad1 c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/07 03:51 linux-next 2b84edefcad1 c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/07 02:41 linux-next 2b84edefcad1 c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/07 01:41 linux-next 2b84edefcad1 c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/07 00:59 linux-next 2b84edefcad1 c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 23:49 linux-next 2b84edefcad1 c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 22:07 linux-next 2b84edefcad1 c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 21:30 linux-next 2b84edefcad1 c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 20:16 linux-next 2b84edefcad1 c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 19:13 linux-next 2b84edefcad1 c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 18:11 linux-next 2b84edefcad1 c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 17:04 linux-next 2b84edefcad1 c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 15:28 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 14:26 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 13:11 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 13:00 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 11:58 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 11:33 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 11:07 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 10:45 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 10:18 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 09:53 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 09:21 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 09:21 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 09:19 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 09:18 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 09:14 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 09:11 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 09:10 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 09:06 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 09:05 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 09:00 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 08:58 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 08:57 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 08:55 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 08:55 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 08:54 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 08:51 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 08:51 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 08:44 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
2024/05/06 08:44 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __mod_memcg_lruvec_state
* Struck through repros no longer work on HEAD.