BUG: unable to handle kernel paging request in hfsplus_bnode_put

5 views
Skip to first unread message

syzbot

unread,
Dec 9, 2022, 3:14:38 AM12/9/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 65afe34ac33d Linux 4.14.301
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15f780a3880000
kernel config: https://syzkaller.appspot.com/x/.config?x=5dfc73e3d697d68d
dashboard link: https://syzkaller.appspot.com/bug?extid=4faca4961578d3968579
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/cba1bf735bc1/disk-65afe34a.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/640415e88522/vmlinux-65afe34a.xz
kernel image: https://storage.googleapis.com/syzbot-assets/8c2d360d5af4/bzImage-65afe34a.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+4faca4...@syzkaller.appspotmail.com

======================================================
audit: type=1800 audit(1670573618.925:2): pid=9907 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor.5" name="file0" dev="sda1" ino=13946 res=0
BUG: unable to handle kernel paging request at fffffffffffffffb
IP: hfsplus_bnode_put+0x43/0x3e0 fs/hfsplus/bnode.c:629
PGD 8e6b067 P4D 8e6b067 PUD 8e6d067 PMD 0
Oops: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 9901 Comm: syz-executor.0 Not tainted 4.14.301-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
task: ffff8880b28a8040 task.stack: ffff8880a5358000
RIP: 0010:hfsplus_bnode_put+0x43/0x3e0 fs/hfsplus/bnode.c:629
RSP: 0018:ffff8880a535f3c8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff8880a535f500 RCX: ffffc90005bb2000
RDX: 1fffffffffffffff RSI: ffffffff81d3b3b4 RDI: fffffffffffffffb
RBP: fffffffffffffffb R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: ffff8880b28a8040 R12: ffff8880b610604c
R13: 0000000000000073 R14: ffff88809ff18690 R15: ffff8880a535f500
FS: 00007f6f2f7b8700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffffffffffffb CR3: 00000000aa8fb000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
hfsplus_brec_find+0xb6/0x460 fs/hfsplus/bfind.c:174
__hfsplus_ext_read_extent fs/hfsplus/extents.c:164 [inline]
__hfsplus_ext_cache_extent fs/hfsplus/extents.c:191 [inline]
hfsplus_ext_read_extent+0x441/0x9e0 fs/hfsplus/extents.c:218
hfsplus_file_extend+0x616/0xef0 fs/hfsplus/extents.c:456
hfsplus_get_block+0x15b/0x820 fs/hfsplus/extents.c:245
__block_write_begin_int+0x35c/0x11d0 fs/buffer.c:2038
__block_write_begin fs/buffer.c:2088 [inline]
block_write_begin+0x58/0x270 fs/buffer.c:2147
cont_write_begin+0x4a3/0x740 fs/buffer.c:2497
hfsplus_write_begin+0x87/0x130 fs/hfsplus/inode.c:53
generic_perform_write+0x1d5/0x430 mm/filemap.c:3055
__generic_file_write_iter+0x227/0x590 mm/filemap.c:3180
generic_file_write_iter+0x36f/0x650 mm/filemap.c:3208
call_write_iter include/linux/fs.h:1780 [inline]
do_iter_readv_writev+0x4cf/0x5f0 fs/read_write.c:675
do_iter_write+0x152/0x550 fs/read_write.c:954
vfs_writev+0x125/0x290 fs/read_write.c:999
do_pwritev fs/read_write.c:1088 [inline]
SYSC_pwritev2 fs/read_write.c:1147 [inline]
SyS_pwritev2+0x195/0x230 fs/read_write.c:1138
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7f6f312460d9
RSP: 002b:00007f6f2f7b8168 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 00007f6f31365f80 RCX: 00007f6f312460d9
RDX: 0000000000000001 RSI: 0000000020000680 RDI: 0000000000000004
RBP: 00007f6f312a1ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000007400 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff8ac4968f R14: 00007f6f2f7b8300 R15: 0000000000022000
Code: ed 0f 84 71 01 00 00 e8 8c a6 81 ff 48 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 2f 03 00 00 4c 8d 6d 78 <4c> 8b 65 00 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03
RIP: hfsplus_bnode_put+0x43/0x3e0 fs/hfsplus/bnode.c:629 RSP: ffff8880a535f3c8
CR2: fffffffffffffffb
---[ end trace ef04a662b1fe8485 ]---
----------------
Code disassembly (best guess):
0: ed in (%dx),%eax
1: 0f 84 71 01 00 00 je 0x178
7: e8 8c a6 81 ff callq 0xff81a698
c: 48 89 ea mov %rbp,%rdx
f: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
16: fc ff df
19: 48 c1 ea 03 shr $0x3,%rdx
1d: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1)
21: 0f 85 2f 03 00 00 jne 0x356
27: 4c 8d 6d 78 lea 0x78(%rbp),%r13
* 2b: 4c 8b 65 00 mov 0x0(%rbp),%r12 <-- trapping instruction
2f: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
36: fc ff df
39: 4c 89 ea mov %r13,%rdx
3c: 48 c1 ea 03 shr $0x3,%rdx


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Dec 9, 2022, 3:26:44 AM12/9/22
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 65afe34ac33d Linux 4.14.301
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=118f5fcb880000
kernel config: https://syzkaller.appspot.com/x/.config?x=5dfc73e3d697d68d
dashboard link: https://syzkaller.appspot.com/bug?extid=4faca4961578d3968579
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=126dfe83880000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1483fb23880000
mounted in repro: https://storage.googleapis.com/syzbot-assets/c086edb8ba60/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+4faca4...@syzkaller.appspotmail.com

======================================================
WARNING: the mand mount option is being deprecated and
will be removed in v5.15!
======================================================
BUG: unable to handle kernel paging request at fffffffffffffffb
IP: hfsplus_bnode_put+0x43/0x3e0 fs/hfsplus/bnode.c:629
PGD 8e6b067 P4D 8e6b067 PUD 8e6d067 PMD 0
Oops: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 7974 Comm: syz-executor506 Not tainted 4.14.301-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
task: ffff8880ae7ee2c0 task.stack: ffff8880a3600000
RIP: 0010:hfsplus_bnode_put+0x43/0x3e0 fs/hfsplus/bnode.c:629
RSP: 0018:ffff8880a36073c8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff8880a3607500 RCX: 0000000000000000
RDX: 1fffffffffffffff RSI: ffffffff81d3ff40 RDI: fffffffffffffffb
RBP: fffffffffffffffb R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: ffff8880ae7ee2c0 R12: ffff8880afac078c
R13: 0000000000000073 R14: ffff8880b2e1d290 R15: ffff8880a3607500
FS: 0000555556c79300(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffffffffffffb CR3: 00000000b3249000 CR4: 00000000003406f0
RIP: 0033:0x7f8a5d6ac7e9
RSP: 002b:00007ffe1fac50c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f8a5d6ac7e9
RDX: 0000000000000001 RSI: 0000000020000680 RDI: 0000000000000004
RBP: 00007f8a5d66c080 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000007400 R11: 0000000000000246 R12: 00007f8a5d66c110
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Code: ed 0f 84 71 01 00 00 e8 8c a6 81 ff 48 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 2f 03 00 00 4c 8d 6d 78 <4c> 8b 65 00 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03
RIP: hfsplus_bnode_put+0x43/0x3e0 fs/hfsplus/bnode.c:629 RSP: ffff8880a36073c8
CR2: fffffffffffffffb
---[ end trace 15852e66c3f87f05 ]---
Reply all
Reply to author
Forward
0 new messages