BUG: unable to handle kernel paging request in cleanup_bitmap_list

11 views
Skip to first unread message

syzbot

unread,
Oct 28, 2022, 2:50:40 AM10/28/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12ce7b36880000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=d8785144a949769668c8
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=178534ac880000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=100cd8ea880000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/98c0bdb4abb3/disk-3f8a27f9.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ea228ff02669/vmlinux-3f8a27f9.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/6ce82ebf378f/mount_0.gz

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

REISERFS error (device loop0): vs-5150 search_by_key: invalid format found in block 0. Fsck?
REISERFS (device loop0): Remounting filesystem read-only
REISERFS error (device loop0): zam-7001 reiserfs_find_entry: io error
BUG: unable to handle kernel paging request at ffffc90006135000
PGD 13be43067 P4D 13be43067 PUD 23b831067 PMD a9edf067 PTE 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8313 Comm: syz-executor863 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
RIP: 0010:cleanup_bitmap_list.part.0+0x2ab/0x5f0 fs/reiserfs/journal.c:233
Code: 00 0f 85 c9 01 00 00 48 8b 04 24 49 63 ec 48 c1 e5 03 4c 8b 70 08 49 01 ee 4c 89 f0 48 c1 e8 03 80 3c 18 00 0f 85 f9 01 00 00 <4d> 8b 36 4d 85 f6 0f 84 fd fe ff ff e8 c4 cc 8c ff 49 8d 7d 18 48
RSP: 0018:ffff88808f3079c8 EFLAGS: 00010246
RAX: 1ffff92000c26a00 RBX: dffffc0000000000 RCX: ffffffff81d5b85c
RDX: 0000000000000000 RSI: ffffffff81d5b86a RDI: 0000000000000004
RBP: 0000000000001000 R08: 0000000000000000 R09: 0000000000020000
R10: 0000000000000004 R11: 0000000000000000 R12: 0000000000000200
R13: ffff8880ab842e80 R14: ffffc90006135000 R15: ffff88808f3b0240
FS: 00007f27967c9700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90006135000 CR3: 00000000aaf5c000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
cleanup_bitmap_list fs/reiserfs/journal.c:229 [inline]
free_list_bitmaps fs/reiserfs/journal.c:251 [inline]
free_journal_ram+0x165/0x600 fs/reiserfs/journal.c:1895
do_journal_release fs/reiserfs/journal.c:1970 [inline]
journal_release_error+0x72/0x90 fs/reiserfs/journal.c:1988
reiserfs_fill_super+0x1042/0x2d80 fs/reiserfs/super.c:2236
mount_bdev+0x2fc/0x3b0 fs/super.c:1158
mount_fs+0xa3/0x310 fs/super.c:1261
vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
vfs_kern_mount fs/namespace.c:951 [inline]
do_new_mount fs/namespace.c:2492 [inline]
do_mount+0x115c/0x2f50 fs/namespace.c:2822
ksys_mount+0xcf/0x130 fs/namespace.c:3038
__do_sys_mount fs/namespace.c:3052 [inline]
__se_sys_mount fs/namespace.c:3049 [inline]
__x64_sys_mount+0xba/0x150 fs/namespace.c:3049
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f279681e3ca
Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 a8 00 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f27967c90e8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f279681e3ca
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f27967c9100
RBP: 0000000000000004 R08: 00007f27967c9140 R09: 00007f27967c96b8
R10: 000000000020040a R11: 0000000000000286 R12: 00007f27967c9140
R13: 0000000000000008 R14: 00007f27967c9100 R15: 0000000020000600
Modules linked in:
CR2: ffffc90006135000
---[ end trace 0de5d5c5ac0965bc ]---
RIP: 0010:cleanup_bitmap_list.part.0+0x2ab/0x5f0 fs/reiserfs/journal.c:233
Code: 00 0f 85 c9 01 00 00 48 8b 04 24 49 63 ec 48 c1 e5 03 4c 8b 70 08 49 01 ee 4c 89 f0 48 c1 e8 03 80 3c 18 00 0f 85 f9 01 00 00 <4d> 8b 36 4d 85 f6 0f 84 fd fe ff ff e8 c4 cc 8c ff 49 8d 7d 18 48
RSP: 0018:ffff88808f3079c8 EFLAGS: 00010246
RAX: 1ffff92000c26a00 RBX: dffffc0000000000 RCX: ffffffff81d5b85c
RDX: 0000000000000000 RSI: ffffffff81d5b86a RDI: 0000000000000004
RBP: 0000000000001000 R08: 0000000000000000 R09: 0000000000020000
R10: 0000000000000004 R11: 0000000000000000 R12: 0000000000000200
R13: ffff8880ab842e80 R14: ffffc90006135000 R15: ffff88808f3b0240
FS: 00007f27967c9700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90006135000 CR3: 00000000aaf5c000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 00 0f add %cl,(%rdi)
2: 85 c9 test %ecx,%ecx
4: 01 00 add %eax,(%rax)
6: 00 48 8b add %cl,-0x75(%rax)
9: 04 24 add $0x24,%al
b: 49 63 ec movslq %r12d,%rbp
e: 48 c1 e5 03 shl $0x3,%rbp
12: 4c 8b 70 08 mov 0x8(%rax),%r14
16: 49 01 ee add %rbp,%r14
19: 4c 89 f0 mov %r14,%rax
1c: 48 c1 e8 03 shr $0x3,%rax
20: 80 3c 18 00 cmpb $0x0,(%rax,%rbx,1)
24: 0f 85 f9 01 00 00 jne 0x223
* 2a: 4d 8b 36 mov (%r14),%r14 <-- trapping instruction
2d: 4d 85 f6 test %r14,%r14
30: 0f 84 fd fe ff ff je 0xffffff33
36: e8 c4 cc 8c ff callq 0xff8cccff
3b: 49 8d 7d 18 lea 0x18(%r13),%rdi
3f: 48 rex.W


---
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 can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Oct 30, 2022, 9:58:39 AM10/30/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 41f36d7859a7 Linux 4.14.296
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13189461880000
kernel config: https://syzkaller.appspot.com/x/.config?x=20cc5ea0fe276fa6
dashboard link: https://syzkaller.appspot.com/bug?extid=c4851b76249bddda4427
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10e736ca880000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=138dc4ca880000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/941b591cedec/disk-41f36d78.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/2eea2720f8fc/vmlinux-41f36d78.xz
kernel image: https://storage.googleapis.com/syzbot-assets/7c3ce0be6b9a/bzImage-41f36d78.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/c025558657db/mount_0.gz

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

REISERFS (device loop0): Using rupasov hash to sort names
REISERFS warning: reiserfs-5090 is_tree_node: node level 48 does not match to the expected one -1
REISERFS error (device loop0): vs-5150 search_by_key: invalid format found in block 0. Fsck?
REISERFS (device loop0): Remounting filesystem read-only
REISERFS error (device loop0): zam-7001 reiserfs_find_entry: io error
BUG: unable to handle kernel paging request at ffffc90005bc3000
IP: cleanup_bitmap_list.part.0+0x28f/0x5b0 fs/reiserfs/journal.c:233
PGD b60bc067 P4D b60bc067 PUD 23f832067 PMD 2358ae067 PTE 0
Oops: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 8028 Comm: syz-executor116 Not tainted 4.14.296-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
task: ffff888094c02540 task.stack: ffff8880b2908000
RIP: 0010:cleanup_bitmap_list.part.0+0x28f/0x5b0 fs/reiserfs/journal.c:233
RSP: 0018:ffff8880b290fa28 EFLAGS: 00010246
RAX: 1ffff92000b78600 RBX: dffffc0000000000 RCX: 0000000000008000
RDX: 0000000000000000 RSI: 0000000000001000 RDI: ffff88809d29f748
RBP: 0000000000001000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000200
R13: ffffc90005bc3000 R14: ffff8880b0b34240 R15: ffff88809d29f740
FS: 00007f29caa46700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90005bc3000 CR3: 00000000ab355000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
cleanup_bitmap_list fs/reiserfs/journal.c:229 [inline]
free_list_bitmaps fs/reiserfs/journal.c:251 [inline]
free_journal_ram+0x162/0x5c0 fs/reiserfs/journal.c:1894
do_journal_release fs/reiserfs/journal.c:1969 [inline]
journal_release_error+0x72/0x90 fs/reiserfs/journal.c:1987
reiserfs_fill_super+0xefe/0x2990 fs/reiserfs/super.c:2236
mount_bdev+0x2b3/0x360 fs/super.c:1134
mount_fs+0x92/0x2a0 fs/super.c:1237
vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046
vfs_kern_mount fs/namespace.c:1036 [inline]
do_new_mount fs/namespace.c:2572 [inline]
do_mount+0xe65/0x2a30 fs/namespace.c:2905
SYSC_mount fs/namespace.c:3121 [inline]
SyS_mount+0xa8/0x120 fs/namespace.c:3098
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f29caa9b3ca
RSP: 002b:00007f29caa460e8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f29caa9b3ca
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f29caa46100
RBP: 0000000000000004 R08: 00007f29caa46140 R09: 00007f29caa466b8
R10: 000000000020040a R11: 0000000000000286 R12: 00007f29caa46140
R13: 0000000000000008 R14: 00007f29caa46100 R15: 0000000020000600
Code: 38 00 0f 85 a2 01 00 00 48 8b 04 24 49 63 ec 48 c1 e5 03 4c 8b 68 08 49 01 ed 4c 89 e8 48 c1 e8 03 80 3c 18 00 0f 85 d2 01 00 00 <4d> 8b 6d 00 4d 85 ed 0f 84 06 ff ff ff e8 bf 63 a3 ff 49 8d 7f
RIP: cleanup_bitmap_list.part.0+0x28f/0x5b0 fs/reiserfs/journal.c:233 RSP: ffff8880b290fa28
CR2: ffffc90005bc3000
---[ end trace 0aa2b7653cb42e73 ]---
----------------
Code disassembly (best guess):
0: 38 00 cmp %al,(%rax)
2: 0f 85 a2 01 00 00 jne 0x1aa
8: 48 8b 04 24 mov (%rsp),%rax
c: 49 63 ec movslq %r12d,%rbp
f: 48 c1 e5 03 shl $0x3,%rbp
13: 4c 8b 68 08 mov 0x8(%rax),%r13
17: 49 01 ed add %rbp,%r13
1a: 4c 89 e8 mov %r13,%rax
1d: 48 c1 e8 03 shr $0x3,%rax
21: 80 3c 18 00 cmpb $0x0,(%rax,%rbx,1)
25: 0f 85 d2 01 00 00 jne 0x1fd
* 2b: 4d 8b 6d 00 mov 0x0(%r13),%r13 <-- trapping instruction
2f: 4d 85 ed test %r13,%r13
32: 0f 84 06 ff ff ff je 0xffffff3e
38: e8 bf 63 a3 ff callq 0xffa363fc
3d: 49 rex.WB
3e: 8d .byte 0x8d
3f: 7f .byte 0x7f
Reply all
Reply to author
Forward
0 new messages