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: 116d, last: 1d17h
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
  
Discussions (2)
Title Replies (including bot) Last reply
[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 450d 455d 25/28 fixed on 2024/01/30 15:47
Last patch testing requests (17)
Created Duration User Patch Repo Result
2025/01/11 22:53 24m retest repro linux-next error
2025/01/11 22:53 27m retest repro linux-next error
2025/01/11 19:17 18m retest repro linux-next error
2025/01/11 19:17 1h31m retest repro linux-next error
2025/01/11 19:17 18m retest repro linux-next error
2025/01/11 19:17 18m retest repro linux-next error
2025/01/11 19:17 21m 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:
page last free pid 6226 tgid 6225 stack trace:
 reset_page_owner include/linux/page_owner.h:25 [inline]
 free_pages_prepare mm/page_alloc.c:1127 [inline]
 free_unref_folios+0xe40/0x18b0 mm/page_alloc.c:2707
 folios_put_refs+0x76c/0x860 mm/swap.c:990
 folio_batch_release include/linux/pagevec.h:101 [inline]
 truncate_inode_pages_range+0x460/0x10e0 mm/truncate.c:330
 iomap_write_failed fs/iomap/buffered-io.c:668 [inline]
 iomap_write_iter fs/iomap/buffered-io.c:999 [inline]
 iomap_file_buffered_write+0xca5/0x11c0 fs/iomap/buffered-io.c:1039
 xfs_file_buffered_write+0x2de/0xac0 fs/xfs/xfs_file.c:792
 new_sync_write fs/read_write.c:586 [inline]
 vfs_write+0xacf/0xd10 fs/read_write.c:679
 ksys_write+0x18f/0x2b0 fs/read_write.c:731
 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: 6273 at ./include/linux/rmap.h:216 __folio_rmap_sanity_checks+0x33f/0x590 include/linux/rmap.h:216
Modules linked in:
CPU: 1 UID: 0 PID: 6273 Comm: syz-executor281 Not tainted 6.13.0-rc3-next-20241220-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:__folio_rmap_sanity_checks+0x33f/0x590 include/linux/rmap.h:216
Code: 0f 0b 90 e9 b7 fd ff ff e8 8e cb ab ff 48 ff cb e9 f8 fd ff ff e8 81 cb ab ff 4c 89 e7 48 c7 c6 00 a7 15 8c e8 32 a4 f5 ff 90 <0f> 0b 90 e9 e9 fd ff ff e8 64 cb ab ff 48 ff cb e9 34 fe ff ff e8
RSP: 0018:ffffc9000c166fd8 EFLAGS: 00010246
RAX: dd62330afe15e000 RBX: ffffea0001a780c0 RCX: ffffc9000c166b03
RDX: 0000000000000005 RSI: ffffffff8c0aaba0 RDI: ffffffff8c5fed00
RBP: 00000000000131bb R08: ffffffff901ab1f7 R09: 1ffffffff203563e
R10: dffffc0000000000 R11: fffffbfff203563f R12: ffffea0001a70000
R13: ffffea0001a780c0 R14: 0000000000000000 R15: 0000000000000001
FS:  00007f989ad136c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f98930af000 CR3: 000000002f8c4000 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+0x30c/0x750 mm/memory.c:5136
 filemap_map_folio_range mm/filemap.c:3639 [inline]
 filemap_map_pages+0xfbe/0x1900 mm/filemap.c:3748
 do_fault_around mm/memory.c:5351 [inline]
 do_read_fault mm/memory.c:5384 [inline]
 do_fault mm/memory.c:5527 [inline]
 do_pte_missing mm/memory.c:4048 [inline]
 handle_pte_fault+0x3888/0x5ee0 mm/memory.c:5890
 __handle_mm_fault mm/memory.c:6033 [inline]
 handle_mm_fault+0x11f5/0x1d50 mm/memory.c:6202
 faultin_page mm/gup.c:1196 [inline]
 __get_user_pages+0x1a92/0x4140 mm/gup.c:1491
 populate_vma_page_range+0x264/0x330 mm/gup.c:1929
 __mm_populate+0x27a/0x460 mm/gup.c:2032
 mm_populate include/linux/mm.h:3400 [inline]
 vm_mmap_pgoff+0x303/0x430 mm/util.c:585
 ksys_mmap_pgoff+0x4eb/0x720 mm/mmap.c:607
 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:0x7f989b56b6a9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 1f 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f989ad13128 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f989b5fc4e8 RCX: 00007f989b56b6a9
RDX: 0000000000000002 RSI: 0000000000b36000 RDI: 0000000020000000
RBP: 00007f989b5fc4e0 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000000028011 R11: 0000000000000246 R12: 00007f989b5fc4ec
R13: 000000000000000b R14: 00007ffc85b86120 R15: 00007ffc85b86208
 </TASK>

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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 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 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
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 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.