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

1 view
Skip to first unread message

syzbot

unread,
Aug 21, 2023, 5:50:56 AM8/21/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 6c44e13dc284 Linux 6.1.46
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11e311f3a80000
kernel config: https://syzkaller.appspot.com/x/.config?x=b2c187b22ae203e6
dashboard link: https://syzkaller.appspot.com/bug?extid=c8acbc5a3fb5c52d587f
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16d40083a80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=117e965fa80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/b0d18761f322/disk-6c44e13d.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/13bec23c6ccd/vmlinux-6c44e13d.xz
kernel image: https://storage.googleapis.com/syzbot-assets/c3754b46d4b8/Image-6c44e13d.gz.xz
mounted in repro #1: https://storage.googleapis.com/syzbot-assets/e71d75dd1efd/mount_0.gz
mounted in repro #2: https://storage.googleapis.com/syzbot-assets/2a64b9d67744/mount_1.gz

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

Unable to handle kernel paging request at virtual address dfff800000000000
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
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
[dfff800000000000] address between user and kernel address ranges
Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 4219 Comm: syz-executor369 Not tainted 6.1.46-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : generic_test_bit include/asm-generic/bitops/generic-non-atomic.h:128 [inline]
pc : set_buffer_uptodate include/linux/buffer_head.h:148 [inline]
pc : do_journal_end+0x10cc/0x3c6c fs/reiserfs/journal.c:4081
lr : __getblk include/linux/buffer_head.h:411 [inline]
lr : do_journal_end+0x10c4/0x3c6c fs/reiserfs/journal.c:4078
sp : ffff80001dcd74c0
x29: ffff80001dcd76d0 x28: ffff80001dcd77b8 x27: ffff0000d2ef2678
x26: ffff0000d2ef2678 x25: ffff80001dcd77a8 x24: ffff0000d2ef2018
x23: ffff80001ddd9040 x22: ffff0000d2ef2000 x21: 0000000000000000
x20: ffff0000c0486e00 x19: dfff800000000000 x18: ffff80001dcd6740
x17: ffff8000158ad000 x16: ffff80000825f190 x15: ffff800008ad3590
x14: 1ffff00002b160b0 x13: dfff800000000000 x12: 0000000000000001
x11: ff80800008b327d0 x10: 0000000000000000 x9 : ffff800008b327d0
x8 : 0000000000000000 x7 : 0000000000000000 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000008 x3 : ffff800008b32550
x2 : 0000000000000001 x1 : 0000000000000003 x0 : 0000000000000000
Call trace:
__getblk include/linux/buffer_head.h:411 [inline]
do_journal_end+0x10cc/0x3c6c fs/reiserfs/journal.c:4078
journal_end_sync+0x164/0x1d0 fs/reiserfs/journal.c:3537
reiserfs_sync_fs+0xd4/0x150 fs/reiserfs/super.c:78
sync_filesystem+0xe8/0x218 fs/sync.c:56
generic_shutdown_super+0x70/0x328 fs/super.c:474
kill_block_super+0x70/0xdc fs/super.c:1459
reiserfs_kill_sb+0x134/0x14c fs/reiserfs/super.c:570
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
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
do_notify_resume+0x2144/0x3470 arch/arm64/kernel/signal.c:1132
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
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: 52800103 97f5f5b0 d343fc08 aa0003f5 (38736908)
---[ end trace 0000000000000000 ]---
----------------
Code disassembly (best guess):
0: 52800103 mov w3, #0x8 // #8
4: 97f5f5b0 bl 0xffffffffffd7d6c4
8: d343fc08 lsr x8, x0, #3
c: aa0003f5 mov x21, x0
* 10: 38736908 ldrb w8, [x8, x19] <-- 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 overwrite 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