syzbot


WARNING in lru_gen_add_folio

Status: auto-obsoleted due to no activity on 2025/01/20 05:28
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+7d6336b144d8db5ad602@syzkaller.appspotmail.com
First crash: 46d, last: 40d
Cause bisection: introduced by (bisect log) :
commit e8597e91699a67c27ef688640b4bbb702e0a2848
Author: Yu Zhao <yuzhao@google.com>
Date: Mon Dec 2 03:28:23 2024 +0000

  mm/mglru: rework workingset protection

Crash: WARNING in lru_gen_add_folio (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] WARNING in lru_gen_add_folio 1 (3) 2024/12/10 01:52
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/12/25 07:11 25m retest repro linux-next OK log
2024/12/25 07:11 26m retest repro linux-next OK log

Sample crash report:
 free_pages_and_swap_cache+0x2ea/0x690 mm/swap_state.c:332
 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline]
 tlb_batch_pages_flush mm/mmu_gather.c:149 [inline]
 tlb_flush_mmu_free mm/mmu_gather.c:373 [inline]
 tlb_flush_mmu+0x3a3/0x680 mm/mmu_gather.c:380
 tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:472
 vms_clear_ptes+0x437/0x530 mm/vma.c:1143
 vms_complete_munmap_vmas+0x210/0x8f0 mm/vma.c:1185
 do_vmi_align_munmap+0x5ef/0x6f0 mm/vma.c:1444
 do_vmi_munmap+0x24e/0x2d0 mm/vma.c:1492
 __vm_munmap+0x372/0x510 mm/vma.c:2888
 __do_sys_munmap mm/mmap.c:1056 [inline]
 __se_sys_munmap mm/mmap.c:1053 [inline]
 __x64_sys_munmap+0x60/0x70 mm/mmap.c:1053
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
------------[ cut here ]------------
WARNING: CPU: 1 PID: 16147 at ./include/linux/mm_inline.h:265 lru_gen_add_folio+0xad2/0xc30 include/linux/mm_inline.h:265
Modules linked in:
CPU: 1 UID: 0 PID: 16147 Comm: sed Not tainted 6.13.0-rc1-next-20241205-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:lru_gen_add_folio+0xad2/0xc30 include/linux/mm_inline.h:265
Code: 44 89 c2 ff ba 01 00 00 00 e9 8b fa ff ff e8 35 89 c2 ff 4c 89 ff 48 c7 c6 c0 c8 13 8c e8 c6 41 0c 00 c6 05 f1 32 27 0e 01 90 <0f> 0b 90 e9 82 f6 ff ff 89 d9 80 e1 07 38 c1 0f 8c 19 f7 ff ff 48
RSP: 0018:ffffc9000d35f180 EFLAGS: 00010046
RAX: c2a86cbe53146200 RBX: ffffea00016c1108 RCX: ffffc9000d35ed03
RDX: 0000000000000003 RSI: ffffffff8c0aa440 RDI: ffffffff8c5fbe80
RBP: ffffc9000d35f278 R08: ffffffff9019d9b7 R09: 1ffffffff2033b36
R10: dffffc0000000000 R11: fffffbfff2033b37 R12: 0000000000000000
R13: 1ffffd40002d8220 R14: 0000020000000000 R15: ffffea00016c1100
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fba357b3fb8 CR3: 0000000094be4000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lruvec_add_folio include/linux/mm_inline.h:352 [inline]
 lru_add+0x704/0xdb0 mm/swap.c:154
 folio_batch_move_lru+0x26b/0x420 mm/swap.c:168
 lru_add_drain_cpu+0x118/0x890 mm/swap.c:635
 lru_add_drain+0x123/0x3e0 mm/swap.c:723
 vms_clear_ptes+0x13a/0x530 mm/vma.c:1133
 vms_clean_up_area mm/vma.c:1155 [inline]
 __mmap_prepare mm/vma.c:2278 [inline]
 __mmap_region+0xf99/0x2cd0 mm/vma.c:2443
 mmap_region+0x1d0/0x2c0 mm/mmap.c:1037
 do_mmap+0x97a/0x10d0 mm/mmap.c:499
 vm_mmap_pgoff+0x214/0x430 mm/util.c:580
 ksys_mmap_pgoff+0x4eb/0x720 mm/mmap.c:545
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb142d3fb74
Code: 63 08 44 89 e8 5b 41 5c 41 5d c3 41 89 ca 41 f7 c1 ff 0f 00 00 74 0c c7 05 f5 46 01 00 16 00 00 00 eb 17 b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 0c f7 d8 89 05 dc 46 01 00 48 83 c8 ff c3 0f
RSP: 002b:00007fffc63f03b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007fffc63f03f8 RCX: 00007fb142d3fb74
RDX: 0000000000000005 RSI: 000000000002c000 RDI: 00007fb142a1e000
RBP: 00007fffc63f0750 R08: 0000000000000003 R09: 0000000000002000
R10: 0000000000000812 R11: 0000000000000246 R12: 00007fb142d1d570
R13: 00007fffc63f07d8 R14: 0000000000001fd8 R15: 0000000000000000
 </TASK>

Crashes (28):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/11 05:27 linux-next af2ea8ab7a54 cfc402b4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/10 20:19 linux-next af2ea8ab7a54 cfc402b4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/10 20:04 linux-next af2ea8ab7a54 cfc402b4 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/10 08:04 linux-next af2ea8ab7a54 cfc402b4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/09 18:15 linux-next af2ea8ab7a54 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/09 15:55 linux-next af2ea8ab7a54 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/09 06:00 linux-next af2ea8ab7a54 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/08 23:06 linux-next af2ea8ab7a54 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/08 21:35 linux-next af2ea8ab7a54 9ac0fdc6 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/08 18:27 linux-next af2ea8ab7a54 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/08 17:09 linux-next af2ea8ab7a54 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/08 10:47 linux-next af2ea8ab7a54 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/08 10:41 linux-next af2ea8ab7a54 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/08 09:18 linux-next af2ea8ab7a54 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/07 16:39 linux-next af2ea8ab7a54 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/07 15:18 linux-next af2ea8ab7a54 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/07 14:28 linux-next af2ea8ab7a54 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/07 14:28 linux-next af2ea8ab7a54 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/07 02:43 linux-next af2ea8ab7a54 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/06 23:13 linux-next af2ea8ab7a54 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/06 19:24 linux-next af2ea8ab7a54 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/06 19:03 linux-next af2ea8ab7a54 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/06 12:07 linux-next af2ea8ab7a54 946d28f0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/06 04:56 linux-next af2ea8ab7a54 946d28f0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/06 04:49 linux-next af2ea8ab7a54 946d28f0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/05 22:36 linux-next af2ea8ab7a54 6e50d07b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/05 20:46 linux-next af2ea8ab7a54 6e50d07b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
2024/12/05 16:07 linux-next af2ea8ab7a54 6e50d07b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in lru_gen_add_folio
* Struck through repros no longer work on HEAD.