syzbot


WARNING in __folio_rmap_sanity_checks (2)

Status: upstream: reported C repro on 2024/12/11 01:54
Subsystems: xfs mm
[Documentation on labels]
Reported-by: syzbot+c0673e1f1f054fac28c2@syzkaller.appspotmail.com
First crash: 201d, last: 86d
Cause bisection: the cause commit could be any of (bisect log):
  23319333146f clk: renesas: r8a779h0: Add PCIe clock
  10dfa837da4f clk: renesas: r9a07g043: Add LCDC clock and reset entries
  
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
WARNING in folio_add_file_rmap_ptes mm 1 35d 31d 0/29 closed as dup on 2025/05/26 10:53
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] [mm?] WARNING in folio_add_file_rmap_ptes 1 (2) 2025/05/26 10:52
[syzbot] Monthly xfs report (Mar 2025) 0 (1) 2025/03/23 22:24
[syzbot] [mm?] WARNING in __folio_rmap_sanity_checks (2) 25 (38) 2025/01/13 15:50
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in __folio_rmap_sanity_checks mm C done 168 535d 540d 25/29 fixed on 2024/01/30 15:47
Last patch testing requests (20)
Created Duration User Patch Repo Result
2025/06/24 18:28 22m retest repro linux-next OK log
2025/06/24 18:28 22m retest repro linux-next OK log
2025/06/24 15:37 26m retest repro linux-next OK log
2025/06/24 15:37 22m retest repro linux-next OK log
2025/06/24 15:37 25m retest repro linux-next OK log
2025/06/24 15:37 28m retest repro linux-next OK log
2025/06/24 15:37 1h01m retest repro linux-next OK log
2025/04/15 11:47 26m retest repro linux-next error
2025/04/15 11:47 24m retest repro linux-next error
2025/04/15 11:47 23m retest repro linux-next error
2025/01/11 09:26 27m david@redhat.com git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm mm-stable report log
2025/01/10 21:03 2h41m liam.howlett@oracle.com git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm mm-unstable report log
2024/12/31 08:41 27m hdanton@sina.com patch linux-next OK log
2024/12/30 12:02 17m hdanton@sina.com patch linux-next report log
2024/12/30 11:17 16m hdanton@sina.com patch linux-next report log
2024/12/30 10:40 26m hdanton@sina.com patch linux-next report log
2024/12/29 06:42 30m hdanton@sina.com patch linux-next report log
2024/12/29 00:00 1h12m hdanton@sina.com patch linux-next report log
2024/12/28 10:36 27m hdanton@sina.com patch linux-next report log
2024/12/28 07:54 7m hdanton@sina.com patch linux-next error

Sample crash report:
 kernel_init_freeable+0x432/0x5d0 init/main.c:1567
 kernel_init+0x1d/0x2b0 init/main.c:1457
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
------------[ cut here ]------------
WARNING: CPU: 0 PID: 6323 at ./include/linux/rmap.h:217 __folio_rmap_sanity_checks+0x375/0x590 include/linux/rmap.h:217
Modules linked in:
CPU: 0 UID: 0 PID: 6323 Comm: syz.1.37 Not tainted 6.14.0-syzkaller-11144-g1e7857b28020 #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:__folio_rmap_sanity_checks+0x375/0x590 include/linux/rmap.h:217
Code: 0f 0b 90 e9 dd fd ff ff e8 48 de ab ff 48 ff cb e9 34 fe ff ff e8 3b de ab ff 4c 89 e7 48 c7 c6 60 25 56 8c e8 7c b5 f5 ff 90 <0f> 0b 90 e9 25 fe ff ff e8 1e de ab ff 4c 89 e7 48 c7 c6 c0 26 56
RSP: 0018:ffffc900033b7078 EFLAGS: 00010246
RAX: d1e381e18605fe00 RBX: ffffea00013557c0 RCX: 0000000000000005
RDX: ffffc9000b429000 RSI: ffffffff8e4e03ff RDI: ffffffff8ca0b080
RBP: 0000000000003c00 R08: ffffffff82357026 R09: fffffbfff1d7a980
R10: dffffc0000000000 R11: fffffbfff1d7a980 R12: ffffea0001351800
R13: ffffea0001351c00 R14: 0000000000000000 R15: 00000000000000f0
FS:  00007f5a34ea86c0(0000) GS:ffff888124fe4000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5a34e87d58 CR3: 0000000035356000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __folio_add_rmap mm/rmap.c:1170 [inline]
 __folio_add_file_rmap mm/rmap.c:1489 [inline]
 folio_add_file_rmap_ptes+0x82/0x380 mm/rmap.c:1511
 set_pte_range+0x30e/0x750 mm/memory.c:5149
 filemap_map_folio_range mm/filemap.c:3642 [inline]
 filemap_map_pages+0xfc4/0x1910 mm/filemap.c:3751
 do_fault_around mm/memory.c:5369 [inline]
 do_read_fault mm/memory.c:5402 [inline]
 do_fault mm/memory.c:5545 [inline]
 do_pte_missing mm/memory.c:4056 [inline]
 handle_pte_fault mm/memory.c:5890 [inline]
 __handle_mm_fault+0x3f53/0x6ef0 mm/memory.c:6033
 handle_mm_fault+0x2dd/0x800 mm/memory.c:6202
 faultin_page mm/gup.c:1196 [inline]
 __get_user_pages+0x1adf/0x4180 mm/gup.c:1491
 populate_vma_page_range+0x266/0x340 mm/gup.c:1929
 __mm_populate+0x27d/0x460 mm/gup.c:2032
 mm_populate include/linux/mm.h:3382 [inline]
 vm_mmap_pgoff+0x390/0x530 mm/util.c:584
 ksys_mmap_pgoff+0x4ee/0x720 mm/mmap.c:607
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f5a33f8d169
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f5a34ea8038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f5a341a5fa0 RCX: 00007f5a33f8d169
RDX: 00000000027ffff7 RSI: 0000000000600000 RDI: 0000200000000000
RBP: 00007f5a3400e2a0 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000004012011 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f5a341a5fa0 R15: 00007ffc9ce5c0a8
 </TASK>

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/01 05:55 upstream 1e7857b28020 36d76a97 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in __folio_rmap_sanity_checks
2025/03/20 15:57 upstream a7f2e10ecd8f 62330552 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in __folio_rmap_sanity_checks
2024/12/07 01:51 upstream b8f52214c61a 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in __folio_rmap_sanity_checks
2024/12/28 18:18 linux-next 8155b4ef3466 d3ccff63 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING in __folio_rmap_sanity_checks
2024/12/28 16:14 linux-next 8155b4ef3466 d3ccff63 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING in __folio_rmap_sanity_checks
2024/12/28 15:21 linux-next 8155b4ef3466 d3ccff63 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING in __folio_rmap_sanity_checks
2024/12/28 13:25 linux-next 8155b4ef3466 d3ccff63 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING in __folio_rmap_sanity_checks
2024/12/28 12:24 linux-next 8155b4ef3466 d3ccff63 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING in __folio_rmap_sanity_checks
2024/12/28 09:55 linux-next 8155b4ef3466 d3ccff63 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING in __folio_rmap_sanity_checks
2024/12/28 04:55 linux-next 8155b4ef3466 d3ccff63 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING in __folio_rmap_sanity_checks
2024/12/28 03:55 linux-next 8155b4ef3466 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in __folio_rmap_sanity_checks
* Struck through repros no longer work on HEAD.