syzbot


kernel BUG in hfs_write_inode

Status: upstream: reported C repro on 2022/11/25 09:45
Reported-by: syzbot+97e301b4b82ae803d21b@syzkaller.appspotmail.com
First crash: 4d10h, last: 13h42m
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 kernel BUG in hfs_write_inode C 2 2d10h 3d09h 0/1 upstream: reported C repro on 2022/11/26 01:52

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/hfs/inode.c:446!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 9 Comm: kworker/u4:0 Not tainted 6.1.0-rc6-syzkaller-00308-g644e9524388a #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+0xb39/0xb40 fs/hfs/inode.c:446
Code: 4c 24 10 80 e1 07 80 c1 03 38 c1 0f 8c 67 fc ff ff 48 8b 7c 24 10 e8 06 45 7f ff e9 58 fc ff ff e8 ec c8 32 08 e8 27 2c 2b ff <0f> 0b 0f 1f 44 00 00 41 57 41 56 41 54 53 49 89 fe 49 bf 00 00 00
RSP: 0018:ffffc900000e7340 EFLAGS: 00010293
RAX: ffffffff825f6b89 RBX: 0000000000000000 RCX: ffff88813fee0000
RDX: 0000000000000000 RSI: ffffffff8d315f40 RDI: 0000000000000000
RBP: ffffc900000e74d0 R08: 0000000000000007 R09: ffffffff825f6135
R10: 0000000000000003 R11: ffff88813fee0000 R12: 1ffff9200001ce6c
R13: ffff888074c014d8 R14: dffffc0000000000 R15: ffff888074c014d8
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6dfb691140 CR3: 000000007d030000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 write_inode fs/fs-writeback.c:1440 [inline]
 __writeback_single_inode+0x4d6/0x670 fs/fs-writeback.c:1652
 writeback_sb_inodes+0xb3b/0x18f0 fs/fs-writeback.c:1878
 wb_writeback+0x41f/0x7b0 fs/fs-writeback.c:2052
 wb_do_writeback fs/fs-writeback.c:2195 [inline]
 wb_workfn+0x3cb/0xef0 fs/fs-writeback.c:2235
 process_one_work+0x877/0xdb0 kernel/workqueue.c:2289
 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436
 kthread+0x266/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:hfs_write_inode+0xb39/0xb40 fs/hfs/inode.c:446
Code: 4c 24 10 80 e1 07 80 c1 03 38 c1 0f 8c 67 fc ff ff 48 8b 7c 24 10 e8 06 45 7f ff e9 58 fc ff ff e8 ec c8 32 08 e8 27 2c 2b ff <0f> 0b 0f 1f 44 00 00 41 57 41 56 41 54 53 49 89 fe 49 bf 00 00 00
RSP: 0018:ffffc900000e7340 EFLAGS: 00010293
RAX: ffffffff825f6b89 RBX: 0000000000000000 RCX: ffff88813fee0000
RDX: 0000000000000000 RSI: ffffffff8d315f40 RDI: 0000000000000000
RBP: ffffc900000e74d0 R08: 0000000000000007 R09: ffffffff825f6135
R10: 0000000000000003 R11: ffff88813fee0000 R12: 1ffff9200001ce6c
R13: ffff888074c014d8 R14: dffffc0000000000 R15: ffff888074c014d8
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005608ae00d488 CR3: 000000000ce8e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (6):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-fs 2022/11/27 01:04 upstream 644e9524388a f4470a7b .config log report syz C kernel BUG in hfs_write_inode
ci-upstream-gce-arm64 2022/11/27 08:10 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6d464646530f 74a66371 .config log report syz C kernel BUG in hfs_write_inode
ci-upstream-gce-arm64 2022/11/25 01:43 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 65762d97e6fa 62e26685 .config log report syz C kernel BUG in hfs_write_inode
ci-upstream-kasan-gce-root 2022/11/28 21:47 upstream b7b275e60bcd 247de55b .config log report info kernel BUG in hfs_write_inode
ci2-upstream-fs 2022/11/25 11:51 upstream c3eb11fbb826 74a66371 .config log report info kernel BUG in hfs_write_inode
ci-upstream-gce-arm64 2022/11/25 01:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 65762d97e6fa 62e26685 .config log report info kernel BUG in hfs_write_inode
* Struck through repros no longer work on HEAD.