syzbot


kernel BUG in unaccount_page_cache_page

Status: upstream: reported C repro on 2024/03/13 09:58
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+6c76736fd94bfa80a8d0@syzkaller.appspotmail.com
First crash: 54d, last: 4d21h
Bug presence (1)
Date Name Commit Repro Result
2024/03/13 upstream (ToT) b0546776ad3f C [report] kernel BUG in filemap_unaccount_folio

Sample crash report:
raw: 05ffc00000080817 fffffc00037dfdc8 fffffc00037dfe48 ffff0000d04d7340
raw: 0000000000000000 0000000000000000 0000000400000000 ffff0000c08a4000
page dumped because: VM_BUG_ON_PAGE(page_mapped(page))
------------[ cut here ]------------
kernel BUG at mm/filemap.c:166!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 3969 Comm: syz-executor384 Not tainted 5.15.152-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : unaccount_page_cache_page+0x600/0x744 mm/filemap.c:166
lr : unaccount_page_cache_page+0x600/0x744 mm/filemap.c:166
sp : ffff80001af97160
x29: ffff80001af97160 x28: dfff800000000000 x27: 1ffff000035f2e90
x26: 1fffff80006fbfc1 x25: dfff800000000000 x24: fffffc00037dfdc8
x23: 0000000000000000 x22: fffffc00037dfdc8 x21: fffffc00037dfe08
x20: ffff0000d04d7340 x19: fffffc00037dfe00 x18: 0000000000000002
x17: 0000000000000000 x16: ffff80001197c3d4 x15: 00000000ffffffff
x14: ffff0000d6950000 x13: 0000000000000001 x12: 0000000000000001
x11: 0000000000000001 x10: 0000000000000000 x9 : d93d338254729e00
x8 : d93d338254729e00 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff80001af965d8 x4 : ffff8000149ef7a0 x3 : ffff80000854e694
x2 : 0000000000000001 x1 : 0000000100000001 x0 : 0000000000000036
Call trace:
 unaccount_page_cache_page+0x600/0x744 mm/filemap.c:166
 __delete_from_page_cache+0xc8/0x6d4 mm/filemap.c:231
 delete_from_page_cache+0x108/0x17c mm/filemap.c:266
 truncate_inode_page+0x98/0xc8 mm/truncate.c:219
 shmem_undo_range+0x448/0x1460 mm/shmem.c:960
 shmem_truncate_range mm/shmem.c:1063 [inline]
 shmem_evict_inode+0x1c4/0x844 mm/shmem.c:1145
 evict+0x260/0x68c fs/inode.c:587
 iput_final fs/inode.c:1705 [inline]
 iput+0x744/0x824 fs/inode.c:1731
 dentry_unlink_inode+0x370/0x4b0 fs/dcache.c:376
 __dentry_kill+0x324/0x5e4 fs/dcache.c:582
 dentry_kill+0xc8/0x250
 dput+0x21c/0x458 fs/dcache.c:889
 __fput+0x500/0x7f0 fs/file_table.c:288
 ____fput+0x20/0x30 fs/file_table.c:308
 task_work_run+0x130/0x1e4 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946
 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline]
 exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline]
 el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
Code: d004a341 913d8021 aa1303e0 94037048 (d4210000) 
---[ end trace 62956ddc34178645 ]---

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/17 14:10 linux-5.15.y b95c01af2113 d615901c .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in unaccount_page_cache_page
2024/03/13 09:58 linux-5.15.y 574362648507 db5b7ff0 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in unaccount_page_cache_page
2024/05/01 19:27 linux-5.15.y b925f60c6ee7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in unaccount_page_cache_page
2024/05/01 19:27 linux-5.15.y b925f60c6ee7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in unaccount_page_cache_page
2024/04/02 00:00 linux-5.15.y 9465fef4ae35 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in unaccount_page_cache_page
* Struck through repros no longer work on HEAD.