[v5.15] BUG: unable to handle kernel paging request in dtInsertEntry

0 views
Skip to first unread message

syzbot

unread,
Jun 7, 2023, 5:20:48 AM6/7/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: d7af3e5ba454 Linux 5.15.115
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1348d22d280000
kernel config: https://syzkaller.appspot.com/x/.config?x=fc49fb9fb40e8b87
dashboard link: https://syzkaller.appspot.com/bug?extid=aeaecc863bec52168639
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12c65ac9280000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1053cb0b280000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/648d6fb5d654/disk-d7af3e5b.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/a693f550ea71/vmlinux-d7af3e5b.xz
kernel image: https://storage.googleapis.com/syzbot-assets/09afa713a569/Image-d7af3e5b.gz.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/9f64e907c0af/mount_0.gz

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

loop0: detected capacity change from 0 to 32768
Unable to handle kernel paging request at virtual address dfff800000000001
Mem abort info:
ESR = 0x0000000096000006
EC = 0x25: DABT (current EL), IL = 32 bits
SET = 0, FnV = 0
EA = 0, S1PTW = 0
FSC = 0x06: level 2 translation fault
Data abort info:
ISV = 0, ISS = 0x00000006
CM = 0, WnR = 0
[dfff800000000001] address between user and kernel address ranges
Internal error: Oops: 96000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 3960 Comm: syz-executor365 Not tainted 5.15.115-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : dtInsertEntry+0x9cc/0x1178 fs/jfs/jfs_dtree.c:4006
lr : dtInsertEntry+0x9c0/0x1178 fs/jfs/jfs_dtree.c:4006
sp : ffff80001af76dc0
x29: ffff80001af76f20 x28: 0000000000000008 x27: 1fffe0001bf05628
x26: ffff0000df82b130 x25: ffff0000df82b140 x24: 0000000000000005
x23: 0000000000000000 x22: dfff800000000000 x21: ffff80001af77400
x20: ffff80001af76ec0 x19: 0000000000000008 x18: 0000000000000000
x17: ff808000098d45e4 x16: 0000000000000000 x15: ffff8000098d45e4
x14: 0000000000008000 x13: ffffffffffffffff x12: 0000000000000000
x11: ff808000098addac x10: 0000000000000000 x9 : ffff8000098addac
x8 : 0000000000000001 x7 : ffff8000098d3b04 x6 : 0000000000000000
x5 : 0000000000000000 x4 : ffff80001af77400 x3 : ffff8000098bc848
x2 : 0000000000000001 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
dtInsertEntry+0x9cc/0x1178 fs/jfs/jfs_dtree.c:4006
dtInsert+0x958/0x5534 fs/jfs/jfs_dtree.c:886
jfs_create+0x698/0xa1c fs/jfs/namei.c:137
lookup_open fs/namei.c:3392 [inline]
open_last_lookups fs/namei.c:3462 [inline]
path_openat+0xec0/0x26f0 fs/namei.c:3669
do_filp_open+0x1a8/0x3b4 fs/namei.c:3699
do_sys_openat2+0x128/0x3d8 fs/open.c:1211
do_sys_open fs/open.c:1227 [inline]
__do_sys_openat fs/open.c:1243 [inline]
__se_sys_openat fs/open.c:1238 [inline]
__arm64_sys_openat+0x1f0/0x240 fs/open.c:1238
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
Code: 97b054d5 f94017e8 91002113 d343fe68 (38f66908)
---[ end trace fa60150a0e1a6da9 ]---
----------------
Code disassembly (best guess):
0: 97b054d5 bl 0xfffffffffec15354
4: f94017e8 ldr x8, [sp, #40]
8: 91002113 add x19, x8, #0x8
c: d343fe68 lsr x8, x19, #3
* 10: 38f66908 ldrsb w8, [x8, x22] <-- trapping instruction


---
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.

If the bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to change bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Jun 7, 2023, 8:26:47 AM6/7/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 76ba310227d2 Linux 6.1.32
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1052861b280000
kernel config: https://syzkaller.appspot.com/x/.config?x=3d054c5c4a3e2d63
dashboard link: https://syzkaller.appspot.com/bug?extid=416f1b2e39cc0a8c27d6
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=116079b5280000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=105dbcb3280000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/e0c868320bc7/disk-76ba3102.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/f7fcc207e1e7/vmlinux-76ba3102.xz
kernel image: https://storage.googleapis.com/syzbot-assets/5ddc172b4acf/Image-76ba3102.gz.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/47a09fbb3b25/mount_0.gz

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

loop0: detected capacity change from 0 to 32768
Unable to handle kernel paging request at virtual address dfff800000000001
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
Mem abort info:
ESR = 0x0000000096000006
EC = 0x25: DABT (current EL), IL = 32 bits
SET = 0, FnV = 0
EA = 0, S1PTW = 0
FSC = 0x06: level 2 translation fault
Data abort info:
ISV = 0, ISS = 0x00000006
CM = 0, WnR = 0
[dfff800000000001] address between user and kernel address ranges
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4216 Comm: syz-executor803 Not tainted 6.1.32-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : dtInsertEntry+0x9cc/0x1178 fs/jfs/jfs_dtree.c:3708
lr : dtInsertEntry+0x9c0/0x1178 fs/jfs/jfs_dtree.c:3708
sp : ffff80001d9b6de0
x29: ffff80001d9b6f40 x28: 0000000000000008 x27: 1fffe0001bf7f628
x26: ffff0000dfbfb130 x25: ffff0000dfbfb140 x24: 0000000000000005
x23: 0000000000000000 x22: dfff800000000000 x21: ffff80001d9b7420
x20: ffff80001d9b6ee0 x19: 0000000000000008 x18: ffff80001d9b6c40
x17: ffff800008a65250 x16: 0000000000000000 x15: 0000000000000000
x14: 0000000000000000 x13: 0000000000008000 x12: 0000000000000001
x11: ff80800009997654 x10: 0000000000000000 x9 : ffff800009997654
x8 : 0000000000000001 x7 : ffff8000099bbecc x6 : 0000000000000000
x5 : 0000000000000000 x4 : ffff80001d9b7420 x3 : ffff8000099a5f40
x2 : 0000000000000001 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
dtInsertEntry+0x9cc/0x1178 fs/jfs/jfs_dtree.c:3708
dtInsert+0x964/0x54f4 fs/jfs/jfs_dtree.c:886
jfs_create+0x698/0xa1c fs/jfs/namei.c:137
lookup_open fs/namei.c:3413 [inline]
open_last_lookups fs/namei.c:3481 [inline]
path_openat+0xeac/0x2548 fs/namei.c:3711
do_filp_open+0x1bc/0x3cc fs/namei.c:3741
do_sys_openat2+0x128/0x3d8 fs/open.c:1318
do_sys_open fs/open.c:1334 [inline]
__do_sys_openat fs/open.c:1350 [inline]
__se_sys_openat fs/open.c:1345 [inline]
__arm64_sys_openat+0x1f0/0x240 fs/open.c:1345
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
Code: 97ad8b4d f94017e8 91002113 d343fe68 (38f66908)
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
0: 97ad8b4d bl 0xfffffffffeb62d34
Reply all
Reply to author
Forward
0 new messages