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: 297d, last: 13d
Discussions (3)
Title Replies (including bot) Last reply
[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
[syzbot] [mm?] kernel BUG in filemap_unaccount_folio 3 (5) 2023/09/15 18:18
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 C 6 22d 195d 0/3 upstream: reported C repro on 2023/12/13 08:56
upstream kernel BUG in __filemap_get_folio kernel C done 814 626d 797d 22/27 fixed on 2023/02/24 13:50
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/06/12 09:16 15m retest repro upstream report log
2024/06/12 09:16 19m retest repro upstream report log
2024/06/12 09:16 25m retest repro upstream report log
2024/06/12 09:16 21m retest repro upstream report log
2024/06/12 09:16 19m retest repro linux-next report log
2024/05/25 20:51 18m retest repro upstream report log
2024/05/25 20:51 15m retest repro upstream report log
2024/03/10 02:58 15m retest repro upstream report log
2024/02/25 01:17 17m retest repro upstream report log
2024/02/09 09:37 14m retest repro linux-next report log
Cause bisection attempts (2)
Created Duration User Patch Repo Result
2023/09/15 06:39 11h37m bisect upstream job log (1) log
marked invalid by tatashin@google.com
2023/09/07 11:02 12h15m bisect upstream error job log (0)
marked invalid by nogikh@google.com

Sample crash report:
 tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:465
 exit_mmap+0x4bb/0xd60 mm/mmap.c:3280
 __mmput+0x115/0x3c0 kernel/fork.c:1346
 exit_mm+0x220/0x310 kernel/exit.c:569
 do_exit+0x99e/0x27e0 kernel/exit.c:865
 do_group_exit+0x207/0x2c0 kernel/exit.c:1027
 __do_sys_exit_group kernel/exit.c:1038 [inline]
 __se_sys_exit_group kernel/exit.c:1036 [inline]
 __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1036
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
------------[ cut here ]------------
kernel BUG at mm/filemap.c:162!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 1 PID: 5084 Comm: syz-executor334 Not tainted 6.9.0-rc6-syzkaller-00053-g0106679839f7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:filemap_unaccount_folio+0x70d/0xc60 mm/filemap.c:162
Code: 25 ff 0f 00 00 0f 84 f0 00 00 00 e8 ad fc ca ff e9 6c f9 ff ff e8 a3 fc ca ff 4c 89 ef 48 c7 c6 e0 84 d3 8b e8 c4 35 14 00 90 <0f> 0b e8 8c fc ca ff 4c 89 ef 48 c7 c6 80 85 d3 8b e8 ad 35 14 00
RSP: 0018:ffffc9000349f658 EFLAGS: 00010046
RAX: 67cea6b50828f200 RBX: 0000000000000000 RCX: ffffc9000349f203
RDX: 0000000000000002 RSI: ffffffff8bcaca20 RDI: ffffffff8c1f7ee0
RBP: 0000000000000000 R08: ffffffff8fa8f96f R09: 1ffffffff1f51f2d
R10: dffffc0000000000 R11: fffffbfff1f51f2e R12: 1ffffd40005fff48
R13: ffffea0002fffa40 R14: 1ffffd40005fff49 R15: ffffea0002fffa48
FS:  0000555560125380(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000005fdeb8 CR3: 000000007fb4c000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __filemap_remove_folio+0xc4/0x9e0 mm/filemap.c:231
 filemap_remove_folio+0x109/0x2e0 mm/filemap.c:264
 truncate_inode_folio+0x5d/0x70 mm/truncate.c:195
 shmem_undo_range+0x45d/0x1df0 mm/shmem.c:1001
 shmem_truncate_range mm/shmem.c:1114 [inline]
 shmem_evict_inode+0x29b/0xa60 mm/shmem.c:1242
 evict+0x2a8/0x630 fs/inode.c:667
 __dentry_kill+0x20d/0x630 fs/dcache.c:603
 dput+0x19f/0x2b0 fs/dcache.c:845
 __fput+0x678/0x8a0 fs/file_table.c:430
 __do_sys_close fs/open.c:1556 [inline]
 __se_sys_close fs/open.c:1541 [inline]
 __x64_sys_close+0x7f/0x110 fs/open.c:1541
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f82f1960ad0
Code: ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 80 3d d1 85 07 00 00 74 17 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c
RSP: 002b:00007ffe9d5b6ce8 EFLAGS: 00000202 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f82f1960ad0
RDX: 0000000000000000 RSI: 0000000000001000 RDI: 0000000000000004
RBP: 00007ffe9d5b6d00 R08: 0000000000000006 R09: 0000000000000000
R10: 0000000000008013 R11: 0000000000000202 R12: 00007f82f19d45f0
R13: 00007ffe9d5b6ee8 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:filemap_unaccount_folio+0x70d/0xc60 mm/filemap.c:162
Code: 25 ff 0f 00 00 0f 84 f0 00 00 00 e8 ad fc ca ff e9 6c f9 ff ff e8 a3 fc ca ff 4c 89 ef 48 c7 c6 e0 84 d3 8b e8 c4 35 14 00 90 <0f> 0b e8 8c fc ca ff 4c 89 ef 48 c7 c6 80 85 d3 8b e8 ad 35 14 00
RSP: 0018:ffffc9000349f658 EFLAGS: 00010046
RAX: 67cea6b50828f200 RBX: 0000000000000000 RCX: ffffc9000349f203
RDX: 0000000000000002 RSI: ffffffff8bcaca20 RDI: ffffffff8c1f7ee0
RBP: 0000000000000000 R08: ffffffff8fa8f96f R09: 1ffffffff1f51f2d
R10: dffffc0000000000 R11: fffffbfff1f51f2e R12: 1ffffd40005fff48
R13: ffffea0002fffa40 R14: 1ffffd40005fff49 R15: ffffea0002fffa48
FS:  0000555560125380(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000005fdeb8 CR3: 000000007fb4c000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

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