syzbot
kernel BUG in hfs_write_inode
Status:
upstream: reported C repro on 2022/11/26 01:52
Subsystems:
hfs
[Documentation on labels]
Reported-by: syzbot+18d7841cd16056041b58@syzkaller.appspotmail.com
First crash: 1352d, last: 1251d
Sample crash report:
IPVS: ftp: loaded support on port[0] = 21
------------[ cut here ]------------
kernel BUG at fs/hfs/inode.c:441!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 686 Comm: kworker/u4:3 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Workqueue: writeback wb_workfn (flush-7:0)
RIP: 0010:hfs_write_inode+0x4f2/0x930 fs/hfs/inode.c:441
Code: ae 7d 88 4c 89 ef e8 ed f7 63 ff 49 83 fd 03 0f 84 95 00 00 00 49 83 fd 04 74 11 49 83 fd 02 0f 84 ed fb ff ff e8 1e f6 63 ff <0f> 0b e8 17 f6 63 ff 48 8d 7d 28 48 b8 00 00 00 00 00 fc ff df 48
RSP: 0018:ffff8880b428f7b8 EFLAGS: 00010293
RAX: ffff8880b4280340 RBX: 1ffff11016851ef9 RCX: ffffffff81fe8f33
RDX: 0000000000000000 RSI: ffffffff81fe8f52 RDI: 0000000000000007
RBP: ffff8880953c0700 R08: 0000000000000000 R09: 0000000000000004
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffffffff887dcd20 R15: ffff8880953c0728
FS: 0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4e6e0c8008 CR3: 00000000a11dc000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
write_inode fs/fs-writeback.c:1244 [inline]
__writeback_single_inode+0x733/0x11d0 fs/fs-writeback.c:1442
writeback_sb_inodes+0x537/0xef0 fs/fs-writeback.c:1647
wb_writeback+0x28d/0xcc0 fs/fs-writeback.c:1820
wb_do_writeback fs/fs-writeback.c:1965 [inline]
wb_workfn+0x29b/0x1250 fs/fs-writeback.c:2006
process_one_work+0x864/0x1570 kernel/workqueue.c:2153
worker_thread+0x64c/0x1130 kernel/workqueue.c:2296
kthread+0x33f/0x460 kernel/kthread.c:259
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Modules linked in:
---[ end trace 91554132b03d0b49 ]---
RIP: 0010:hfs_write_inode+0x4f2/0x930 fs/hfs/inode.c:441
Code: ae 7d 88 4c 89 ef e8 ed f7 63 ff 49 83 fd 03 0f 84 95 00 00 00 49 83 fd 04 74 11 49 83 fd 02 0f 84 ed fb ff ff e8 1e f6 63 ff <0f> 0b e8 17 f6 63 ff 48 8d 7d 28 48 b8 00 00 00 00 00 fc ff df 48
RSP: 0018:ffff8880b428f7b8 EFLAGS: 00010293
RAX: ffff8880b4280340 RBX: 1ffff11016851ef9 RCX: ffffffff81fe8f33
RDX: 0000000000000000 RSI: ffffffff81fe8f52 RDI: 0000000000000007
RBP: ffff8880953c0700 R08: 0000000000000000 R09: 0000000000000004
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffffffff887dcd20 R15: ffff8880953c0728
FS: 0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4e6e0cd000 CR3: 00000000a11dc000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
* Struck through repros no longer work on HEAD.