syzbot


kernel BUG in filemap_unaccount_folio

Status: upstream: reported C repro on 2023/09/06 18:51
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+17a207d226b8a5fb0fd9@syzkaller.appspotmail.com
First crash: 400d, last: 86d
Fix bisection: fixed by (bisect log) :
commit 7d79cd784470395539bda91bf0b3505ff5b2ab6d
Author: Vivek Kasireddy <vivek.kasireddy@intel.com>
Date: Mon Jun 24 06:36:13 2024 +0000

  udmabuf: use vmf_insert_pfn and VM_PFNMAP for handling mmap

  
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] [mm?] kernel BUG in filemap_unaccount_folio 3 (6) 2024/08/14 00:32
[syzbot] Monthly mm report (Mar 2024) 0 (1) 2024/03/19 21:40
[syzbot] Monthly mm report (Jan 2024) 0 (1) 2024/01/17 09:21
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 kernel BUG in filemap_unaccount_folio origin:upstream missing-backport C done 7 56d 299d 0/3 upstream: reported C repro on 2023/12/13 08:56
upstream kernel BUG in __filemap_get_folio kernel C done 814 730d 901d 22/28 fixed on 2023/02/24 13:50
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/09/05 01:13 35m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2024/09/05 01:13 35m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2024/09/05 01:13 28m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/09/05 01:13 17m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/09/05 01:13 31m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log
2024/08/21 11:19 23m retest repro upstream OK log
2024/08/21 11:19 21m retest repro upstream OK log
2024/08/21 11:19 21m retest repro upstream OK log
2024/08/21 10:51 32m retest repro linux-next OK log
2024/08/21 10:46 26m retest repro linux-next OK log
Cause bisection attempts (2)
Created Duration User Patch Repo Result
2023/09/15 06:39 11h37m bisect upstream OK (1) job log log
marked invalid by tatashin@google.com
2023/09/07 11:02 12h15m bisect upstream error job log
marked invalid by nogikh@google.com

Sample crash report:
raw: 05ffc0000008002d fffffdffc3779f88 ffff0000c108c000 ffff0000d16b4bd8
raw: 0000000000000000 0000000000000000 0000000400000000 ffff0000c195c000
page dumped because: VM_BUG_ON_FOLIO(folio_mapped(folio))
------------[ cut here ]------------
kernel BUG at mm/filemap.c:162!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 6239 Comm: syz-executor253 Not tainted 6.9.0-rc7-syzkaller-g1c9135d29e9e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
pstate: 604000c5 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : filemap_unaccount_folio+0x518/0x5c8 mm/filemap.c:162
lr : filemap_unaccount_folio+0x518/0x5c8 mm/filemap.c:162
sp : ffff800098607330
x29: ffff800098607330 x28: 0000000000000000 x27: 0000000000000000
x26: 1fffffbff86ee630 x25: 1fffffbff86ee631 x24: dfff800000000000
x23: ffff0000d16b4bd8 x22: 0000000000000000 x21: fffffdffc3773188
x20: ffff0000d16b4bd8 x19: fffffdffc3773180 x18: 0000000000000008
x17: 0000000000000000 x16: ffff80008ae89e3c x15: 0000000000000001
x14: 1fffe000367b8e02 x13: 0000000000000000 x12: 0000000000000000
x11: 0000000000000003 x10: 0000000000ff0100 x9 : 2df0cea8ac9d8c00
x8 : 2df0cea8ac9d8c00 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff800098606858 x4 : ffff80008ef85080 x3 : ffff8000805e61b0
x2 : 0000000000000001 x1 : 0000000100000002 x0 : 0000000000000039
Call trace:
 filemap_unaccount_folio+0x518/0x5c8 mm/filemap.c:162
 __filemap_remove_folio+0xc8/0x558 mm/filemap.c:231
 filemap_remove_folio+0xd4/0x1cc mm/filemap.c:264
 truncate_inode_folio+0x6c/0x84 mm/truncate.c:195
 shmem_undo_range+0x348/0x1308 mm/shmem.c:1001
 shmem_truncate_range mm/shmem.c:1114 [inline]
 shmem_evict_inode+0x230/0x8b4 mm/shmem.c:1242
 evict+0x260/0x68c fs/inode.c:667
 iput_final fs/inode.c:1741 [inline]
 iput+0x760/0x844 fs/inode.c:1767
 dentry_unlink_inode+0x36c/0x4ac fs/dcache.c:400
 __dentry_kill+0x178/0x5e8 fs/dcache.c:603
 dput+0x1b8/0x290 fs/dcache.c:845
 __fput+0x4f8/0x738 fs/file_table.c:430
 __fput_sync+0x60/0x9c fs/file_table.c:507
 __do_sys_close fs/open.c:1556 [inline]
 __se_sys_close fs/open.c:1541 [inline]
 __arm64_sys_close+0x150/0x1e0 fs/open.c:1541
 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48
 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:133
 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:152
 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712
 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598
Code: d0054441 91358021 aa1303e0 940371ec (d4210000) 
---[ end trace 0000000000000000 ]---

Crashes (39):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/08 19:08 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1c9135d29e9e 4cf3f9b3 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in filemap_unaccount_folio
2024/05/08 11:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1c9135d29e9e 4cf3f9b3 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in filemap_unaccount_folio
2024/05/02 12:37 upstream 0106679839f7 3ba885bc .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in filemap_unaccount_folio
2024/05/02 10:09 upstream 0106679839f7 3ba885bc .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in filemap_unaccount_folio
2024/04/26 09:35 upstream e33c4963bf53 8bdc0f22 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in filemap_unaccount_folio
2024/04/26 03:39 upstream e33c4963bf53 8bdc0f22 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in filemap_unaccount_folio
2024/03/16 08:55 upstream fe46a7dd189e d615901c .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root kernel BUG in filemap_unaccount_folio
2024/03/11 00:46 upstream 137e0ec05aeb 6ee49f2e .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root kernel BUG in filemap_unaccount_folio
2023/12/02 23:43 upstream 815fb87b7530 f819d6f7 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root kernel BUG in filemap_unaccount_folio
2023/11/23 10:56 upstream 9b6de136b5f0 03e12510 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in filemap_unaccount_folio
2023/11/23 09:12 upstream 9b6de136b5f0 03e12510 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root kernel BUG in filemap_unaccount_folio
2023/11/15 20:45 upstream c42d9eeef8e5 cb976f63 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in filemap_unaccount_folio
2023/09/04 07:15 upstream db906f0ca6bb 696ea0d2 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in filemap_unaccount_folio
2023/09/02 18:45 upstream 0468be89b3fa 696ea0d2 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in filemap_unaccount_folio
2024/07/13 10:30 upstream 528dd46d0fc3 eaeb5c15 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in filemap_unaccount_folio
2024/07/12 00:55 upstream 9d9a2f29aefd 3cf1187a .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in filemap_unaccount_folio
2024/01/26 07:12 linux-next 01af33cc9894 cc4a4020 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in filemap_unaccount_folio
2024/01/15 22:33 linux-next 8d04a7e2ee3f 2a7bcc7f .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in filemap_unaccount_folio
2024/04/26 07:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6a71d2909427 8bdc0f22 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in filemap_unaccount_folio
2024/04/25 16:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6a71d2909427 8bdc0f22 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in filemap_unaccount_folio
2023/10/05 13:08 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2e530aeb342b b7d7ff54 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in filemap_unaccount_folio
2024/07/03 08:08 upstream e9d22f7a6655 1ecfa2d8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root kernel BUG in filemap_unaccount_folio
2024/05/29 07:21 upstream e0cce98fe279 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in filemap_unaccount_folio
2024/05/11 20:21 upstream cf87f46fd34d 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in filemap_unaccount_folio
2024/05/07 04:28 upstream ee5b455b0ada c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in filemap_unaccount_folio
2024/05/01 19:28 upstream 18daea77cca6 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root kernel BUG in filemap_unaccount_folio
2024/05/01 19:25 upstream 18daea77cca6 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root kernel BUG in filemap_unaccount_folio
2024/05/01 19:24 upstream 18daea77cca6 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in filemap_unaccount_folio
2024/05/01 19:22 upstream 18daea77cca6 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in filemap_unaccount_folio
2024/05/01 19:20 upstream 18daea77cca6 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root kernel BUG in filemap_unaccount_folio
2024/04/21 10:02 upstream 977b1ef51866 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root kernel BUG in filemap_unaccount_folio
2024/03/24 18:24 upstream 480e035fc4c7 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce kernel BUG in filemap_unaccount_folio
2024/05/01 19:28 upstream 18daea77cca6 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 kernel BUG in filemap_unaccount_folio
2024/05/01 21:36 upstream 0106679839f7 3ba885bc .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in filemap_unaccount_folio
2024/05/02 07:38 upstream 0106679839f7 3ba885bc .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 kernel BUG in filemap_unaccount_folio
2024/05/01 21:43 upstream 0106679839f7 3ba885bc .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in filemap_unaccount_folio
2024/05/02 04:13 linux-next f68868ba718e 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in filemap_unaccount_folio
2024/04/13 23:07 linux-next 9ed46da14b9b c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in filemap_unaccount_folio
2024/05/01 19:26 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6a71d2909427 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in filemap_unaccount_folio
* Struck through repros no longer work on HEAD.