syzbot


kernel BUG in hfs_bnode_unhash

Status: upstream: reported on 2022/11/30 09:17
Labels: hfs (incorrect?)
Reported-by: syzbot+b7ceb040f7552ed64dc9@syzkaller.appspotmail.com
First crash: 181d, last: 6d17h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] kernel BUG in hfs_bnode_unhash 0 (1) 2022/11/30 09:17

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/hfs/bnode.c:311!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 2 PID: 112 Comm: kswapd0 Not tainted 6.3.0-syzkaller-13091-g3c4aa4434377 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
RIP: 0010:hfs_bnode_unhash+0xf7/0x1e0 fs/hfs/bnode.c:311
Code: 2b e8 5d 68 33 ff 48 8d 6b 20 48 89 e8 48 c1 e8 03 42 80 3c 28 00 0f 85 b3 00 00 00 48 8b 5b 20 48 85 db 75 d2 e8 39 68 33 ff <0f> 0b e8 32 68 33 ff e8 2d 68 33 ff 49 8d 7c 24 20 48 b8 00 00 00
RSP: 0018:ffffc90001f9f358 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff888016acc080 RSI: ffffffff825016b7 RDI: ffff888020312130
RBP: ffff888020312000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88801fd62600
R13: 0000000000000002 R14: ffffea0000008100 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff88802c800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f35677831b8 CR3: 000000007490d000 CR4: 0000000000350ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 hfs_release_folio+0x45a/0x570 fs/hfs/inode.c:122
 filemap_release_folio+0x13f/0x1b0 mm/filemap.c:4118
 shrink_folio_list+0x1fe3/0x3c80 mm/vmscan.c:2066
 evict_folios+0x794/0x1940 mm/vmscan.c:5147
 try_to_shrink_lruvec+0x82c/0xb90 mm/vmscan.c:5323
 shrink_one+0x462/0x710 mm/vmscan.c:5367
 shrink_many mm/vmscan.c:5419 [inline]
 lru_gen_shrink_node mm/vmscan.c:5536 [inline]
 shrink_node+0x1fd5/0x3500 mm/vmscan.c:6477
 kswapd_shrink_node mm/vmscan.c:7277 [inline]
 balance_pgdat+0xa02/0x1ac0 mm/vmscan.c:7467
 kswapd+0x677/0xd60 mm/vmscan.c:7727
 kthread+0x344/0x440 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:hfs_bnode_unhash+0xf7/0x1e0 fs/hfs/bnode.c:311
Code: 2b e8 5d 68 33 ff 48 8d 6b 20 48 89 e8 48 c1 e8 03 42 80 3c 28 00 0f 85 b3 00 00 00 48 8b 5b 20 48 85 db 75 d2 e8 39 68 33 ff <0f> 0b e8 32 68 33 ff e8 2d 68 33 ff 49 8d 7c 24 20 48 b8 00 00 00
RSP: 0018:ffffc90001f9f358 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff888016acc080 RSI: ffffffff825016b7 RDI: ffff888020312130
RBP: ffff888020312000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88801fd62600
R13: 0000000000000002 R14: ffffea0000008100 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff88802c800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f35677831b8 CR3: 000000007490d000 CR4: 0000000000350ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (18):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Manager Title
2023/05/05 01:25 upstream 3c4aa4434377 518a39a6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in hfs_bnode_unhash
2023/04/28 02:44 upstream 32f7ad0fbe75 cc2b6c8b .config console log report info ci-qemu-upstream kernel BUG in hfs_bnode_unhash
2023/04/15 00:51 upstream 95abc817ab3a ec410564 .config console log report info ci-qemu-upstream kernel BUG in hfs_bnode_unhash
2023/04/12 05:48 upstream 2c40519251d6 49faf98d .config console log report info ci-qemu-upstream kernel BUG in hfs_bnode_unhash
2023/04/09 17:05 upstream cdc9718d5e59 71147e29 .config console log report info ci-qemu-upstream kernel BUG in hfs_bnode_unhash
2023/04/03 14:48 upstream 7e364e56293b 41147e3e .config console log report info ci-qemu-upstream kernel BUG in hfs_bnode_unhash
2023/03/04 12:08 upstream 0988a0ea7919 f8902b57 .config console log report info ci-qemu-upstream kernel BUG in hfs_bnode_unhash
2023/03/04 10:58 upstream 0988a0ea7919 f8902b57 .config console log report info ci-qemu-upstream kernel BUG in hfs_bnode_unhash
2022/11/30 03:29 upstream 01f856ae6d0c 579a3740 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in hfs_bnode_unhash
2023/05/23 14:59 upstream ae8373a5add4 4bce1a3e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in hfs_bnode_unhash
2023/05/18 10:42 upstream 1b66c114d161 3bb7af1d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in hfs_bnode_unhash
2023/05/12 11:02 upstream cc3c44c9fda2 adb9a3cd .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in hfs_bnode_unhash
2023/05/09 09:24 upstream ba0ad6ed89fd f4168103 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in hfs_bnode_unhash
2023/04/27 21:32 upstream 32f7ad0fbe75 cc2b6c8b .config console log report info ci-qemu-upstream-386 kernel BUG in hfs_bnode_unhash
2023/04/15 06:23 upstream 95abc817ab3a ec410564 .config console log report info ci-qemu-upstream-386 kernel BUG in hfs_bnode_unhash
2023/04/11 12:53 upstream 0d3eb744aed4 71147e29 .config console log report info ci-qemu-upstream-386 kernel BUG in hfs_bnode_unhash
2023/03/29 09:33 upstream fcd476ea6a88 fc067f05 .config console log report info ci-qemu-upstream-386 kernel BUG in hfs_bnode_unhash
2023/03/05 18:01 upstream b01fe98d34f3 f8902b57 .config console log report info ci-qemu-upstream-386 kernel BUG in hfs_bnode_unhash
* Struck through repros no longer work on HEAD.