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

0 görüntüleme
İlk okunmamış mesaja atla

syzbot

okunmadı,
20 May 2024 18:59:32 (14 gün önce) 20 May
alıcı syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 4078fa637fcd Linux 6.1.91
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=114aa5cc980000
kernel config: https://syzkaller.appspot.com/x/.config?x=1d51cd200f88f60
dashboard link: https://syzkaller.appspot.com/bug?extid=1c65fc19961d9c5eff47
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/b1a0a011a73e/disk-4078fa63.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/cfaef39014a6/vmlinux-4078fa63.xz
kernel image: https://storage.googleapis.com/syzbot-assets/36e61b51fbe2/Image-4078fa63.gz.xz

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

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: 1 PID: 5760 Comm: syz-executor.3 Not tainted 6.1.91-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : reiserfs_get_block+0x1440/0x45d8 fs/reiserfs/inode.c:1052
lr : reiserfs_get_block+0x13fc/0x45d8 fs/reiserfs/inode.c:1047
sp : ffff80001ec86c20
x29: ffff80001ec872a0 x28: 1fffe0001e6d6214 x27: ffffffffffffffff
x26: 00000000000003f4 x25: 000000000000000c x24: 000000000000000c
x23: 0000000000000000 x22: 0000000000000010 x21: 000000000000021e
x20: ffff0000f2223018 x19: dfff800000000000 x18: 0000000000000010
x17: 0000001f00090028 x16: ffff8000120adcc0 x15: 0000000000000000
x14: 00000000fffffffd x13: ffff0000f3de0000 x12: 0000000000000004
x11: 0000000000ff0100 x10: 0000000000000000 x9 : 0000000000000003
x8 : 0000000000000001 x7 : 0000000000000000 x6 : 0000000000000000
x5 : 0000000000000001 x4 : 0000000000000000 x3 : 0000000000000020
x2 : 0000000000000000 x1 : 00000000000003f4 x0 : 0000000000000000
Call trace:
reiserfs_get_block+0x1440/0x45d8 fs/reiserfs/inode.c:1052
__block_write_begin_int+0x340/0x13b4 fs/buffer.c:1991
__block_write_begin+0x7c/0xa0 fs/buffer.c:2041
__reiserfs_write_begin+0x348/0x56c fs/reiserfs/inode.c:2835
reiserfs_xattr_set_handle+0x46c/0xe90 fs/reiserfs/xattr.c:571
reiserfs_xattr_set+0x398/0x4b0 fs/reiserfs/xattr.c:633
security_set+0x9c/0xd8 fs/reiserfs/xattr_security.c:32
__vfs_setxattr+0x388/0x3a4 fs/xattr.c:182
__vfs_setxattr_noperm+0x110/0x528 fs/xattr.c:216
__vfs_setxattr_locked+0x1ec/0x218 fs/xattr.c:277
vfs_setxattr+0x1a8/0x344 fs/xattr.c:309
do_setxattr fs/xattr.c:594 [inline]
setxattr+0x230/0x294 fs/xattr.c:617
__do_sys_fsetxattr fs/xattr.c:673 [inline]
__se_sys_fsetxattr fs/xattr.c:662 [inline]
__arm64_sys_fsetxattr+0x1a8/0x224 fs/xattr.c:662
__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:585
Code: 350071a8 8b1b0ad9 b94483f5 d343ff28 (38f36908)
---[ end trace 0000000000000000 ]---
pstore: crypto_comp_compress failed, ret = -22!
----------------
Code disassembly (best guess):
0: 350071a8 cbnz w8, 0xe34
4: 8b1b0ad9 add x25, x22, x27, lsl #2
8: b94483f5 ldr w21, [sp, #1152]
c: d343ff28 lsr x8, x25, #3
* 10: 38f36908 ldrsb 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 report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

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

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

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

syzbot

okunmadı,
20 May 2024 19:54:32 (14 gün önce) 20 May
alıcı syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 4078fa637fcd Linux 6.1.91
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10d1b37c980000
kernel config: https://syzkaller.appspot.com/x/.config?x=1d51cd200f88f60
dashboard link: https://syzkaller.appspot.com/bug?extid=1c65fc19961d9c5eff47
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=1637a634980000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15e16ab2980000
mounted in repro: https://storage.googleapis.com/syzbot-assets/b9a121ce38ca/mount_7.gz

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

REISERFS (device loop0): checking transaction log (loop0)
REISERFS (device loop0): Using tea hash to sort names
REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage.
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: 4231 Comm: syz-executor276 Not tainted 6.1.91-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : reiserfs_get_block+0x1440/0x45d8 fs/reiserfs/inode.c:1052
lr : reiserfs_get_block+0x13fc/0x45d8 fs/reiserfs/inode.c:1047
sp : ffff80001dd66c20
x29: ffff80001dd672a0 x28: 1fffe0001c57c814 x27: ffffffffffffffff
x26: 00000000000003f4 x25: 000000000000000c x24: 000000000000000c
x23: 0000000000000000 x22: 0000000000000010 x21: 000000000000021e
x20: ffff0000e2403d58 x19: dfff800000000000 x18: 0000000000000010
x17: ffff8000188df000 x16: ffff8000120adcc0 x15: 0000000000000000
x14: 00000000fffffffd x13: ffff0000d8303780 x12: 0000000000000004
----------------
Code disassembly (best guess):
0: 350071a8 cbnz w8, 0xe34
4: 8b1b0ad9 add x25, x22, x27, lsl #2
8: b94483f5 ldr w21, [sp, #1152]
c: d343ff28 lsr x8, x25, #3
* 10: 38f36908 ldrsb w8, [x8, x19] <-- trapping instruction


---
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.
Tümünü yanıtla
Yazarı yanıtla
Yönlendir
0 yeni ileti