[v6.1] BUG: unable to handle kernel paging request in gfs2_evict_inode

0 views
Skip to first unread message

syzbot

unread,
May 5, 2023, 5:09:59 AM5/5/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: ca48fc16c493 Linux 6.1.27
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1739f990280000
kernel config: https://syzkaller.appspot.com/x/.config?x=aea4bb7802570997
dashboard link: https://syzkaller.appspot.com/bug?extid=35ba5c567cc0749819da
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=10809484280000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15758d22280000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/ec11c1903c52/disk-ca48fc16.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/8ce41c1ad391/vmlinux-ca48fc16.xz
kernel image: https://storage.googleapis.com/syzbot-assets/affba5631cad/Image-ca48fc16.gz.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/063c21aa51ea/mount_0.gz

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

gfs2: fsid=loop0.0: first mount done, others may mount
Unable to handle kernel paging request at virtual address dfff800000000011
KASAN: null-ptr-deref in range [0x0000000000000088-0x000000000000008f]
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
[dfff800000000011] address between user and kernel address ranges
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4218 Comm: syz-executor325 Not tainted 6.1.27-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : evict_linked_inode fs/gfs2/super.c:1335 [inline]
pc : gfs2_evict_inode+0x109c/0x1728 fs/gfs2/super.c:1390
lr : evict_linked_inode fs/gfs2/super.c:1333 [inline]
lr : gfs2_evict_inode+0x1074/0x1728 fs/gfs2/super.c:1390
sp : ffff80001d9d74e0
x29: ffff80001d9d76c0 x28: dfff800000000000 x27: ffff0000da594fd8
x26: ffff0000da595278 x25: ffff700003b3aeac x24: ffff0000d53fc000
x23: 000000000000008c x22: 1fffe0001c30831c x21: 1ffff00003b3aec8
x20: ffff0000e18418d8 x19: ffff0000e1841428 x18: ffff80001d9d70c0
x17: ffff80001558d000 x16: ffff80000825e194 x15: 000000000000b92a
x14: 1ffff00002ab20b0 x13: dfff800000000000 x12: 0000000000000001
x11: ff8080000a3788b4 x10: 0000000000000000 x9 : ffff80000a3788b4
x8 : 0000000000000011 x7 : ffff800008af6e08 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80000a378864
x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
evict_linked_inode fs/gfs2/super.c:1335 [inline]
gfs2_evict_inode+0x109c/0x1728 fs/gfs2/super.c:1390
evict+0x260/0x68c fs/inode.c:664
iput_final fs/inode.c:1747 [inline]
iput+0x7c0/0x8a4 fs/inode.c:1773
gfs2_jindex_free+0x334/0x3e4 fs/gfs2/super.c:75
gfs2_put_super+0x638/0x6d4 fs/gfs2/super.c:623
generic_shutdown_super+0x130/0x328 fs/super.c:501
kill_block_super+0x70/0xdc fs/super.c:1450
gfs2_kill_sb+0xc0/0xd4
deactivate_locked_super+0xac/0x124 fs/super.c:332
deactivate_super+0xf0/0x110 fs/super.c:363
cleanup_mnt+0x394/0x41c fs/namespace.c:1186
__cleanup_mnt+0x20/0x30 fs/namespace.c:1193
task_work_run+0x240/0x2f0 kernel/task_work.c:179
exit_task_work include/linux/task_work.h:38 [inline]
do_exit+0x554/0x1a88 kernel/exit.c:869
do_group_exit+0x194/0x22c kernel/exit.c:1019
__do_sys_exit_group kernel/exit.c:1030 [inline]
__se_sys_exit_group kernel/exit.c:1028 [inline]
__wake_up_parent+0x0/0x60 kernel/exit.c:1028
__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: f94002e8 f9402ff5 91023117 d343fee8 (38fc6908)
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
0: f94002e8 ldr x8, [x23]
4: f9402ff5 ldr x21, [sp, #88]
8: 91023117 add x23, x8, #0x8c
c: d343fee8 lsr x8, x23, #3
* 10: 38fc6908 ldrsb w8, [x8, x28] <-- 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
Reply all
Reply to author
Forward
0 new messages