general protection fault in write_special_inodes (2)

5 views
Skip to first unread message

syzbot

unread,
Sep 30, 2022, 6:08:38 AM9/30/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=11f593ff080000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=57897303a04ff8cebee9
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

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

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

kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8112 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:write_special_inodes+0xa6/0x170 fs/jfs/jfs_logmgr.c:221
Code: 8b 7d 30 41 ff d4 48 8d 7b 28 48 89 f8 48 c1 e8 03 80 3c 28 00 0f 85 ab 00 00 00 4c 8b 6b 28 49 8d 7d 30 48 89 f8 48 c1 e8 03 <80> 3c 28 00 0f 85 88 00 00 00 49 8b 7d 30 41 ff d4 48 8d bb b0 00
RSP: 0018:ffff888090c8fbb8 EFLAGS: 00010206
RAX: 0000000000000006 RBX: ffff88809b3a3500 RCX: ffffffff817ce639
RDX: 0000000000000000 RSI: ffffffff817ce5d8 RDI: 0000000000000030
RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffffffff817ce7c0
R13: 0000000000000000 R14: ffff8880a194fb40 R15: ffff888090c8fdd0
FS: 00005555569ed400(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7e7de36718 CR3: 000000009d088000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lmLogSync+0x414/0x6e0 fs/jfs/jfs_logmgr.c:958
jfs_syncpt+0x78/0x90 fs/jfs/jfs_logmgr.c:1062
jfs_sync_fs+0x80/0xa0 fs/jfs/super.c:718
__sync_filesystem fs/sync.c:39 [inline]
sync_filesystem+0x105/0x250 fs/sync.c:64
generic_shutdown_super+0x70/0x370 fs/super.c:442
kill_block_super+0x97/0xf0 fs/super.c:1185
deactivate_locked_super+0x94/0x160 fs/super.c:329
deactivate_super+0x174/0x1a0 fs/super.c:360
cleanup_mnt+0x1a8/0x290 fs/namespace.c:1098
task_work_run+0x148/0x1c0 kernel/task_work.c:113
tracehook_notify_resume include/linux/tracehook.h:193 [inline]
exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f42fce41a17
Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 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:00007ffc23453858 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f42fce41a17
RDX: 00007ffc2345392b RSI: 000000000000000a RDI: 00007ffc23453920
RBP: 00007ffc23453920 R08: 00000000ffffffff R09: 00007ffc234536f0
R10: 00005555569ee903 R11: 0000000000000246 R12: 00007f42fce9a5f6
R13: 00007ffc234549e0 R14: 00005555569ee810 R15: 00007ffc23454a20
Modules linked in:
---[ end trace 26e3b127afe2cd4d ]---
F2FS-fs (loop2): Unrecognized mount option "nche" or missing value
RIP: 0010:write_special_inodes+0xa6/0x170 fs/jfs/jfs_logmgr.c:221
Code: 8b 7d 30 41 ff d4 48 8d 7b 28 48 89 f8 48 c1 e8 03 80 3c 28 00 0f 85 ab 00 00 00 4c 8b 6b 28 49 8d 7d 30 48 89 f8 48 c1 e8 03 <80> 3c 28 00 0f 85 88 00 00 00 49 8b 7d 30 41 ff d4 48 8d bb b0 00
F2FS-fs (loop2): Unrecognized mount option "nche" or missing value
RSP: 0018:ffff888090c8fbb8 EFLAGS: 00010206
RAX: 0000000000000006 RBX: ffff88809b3a3500 RCX: ffffffff817ce639
RDX: 0000000000000000 RSI: ffffffff817ce5d8 RDI: 0000000000000030
RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffffffff817ce7c0
R13: 0000000000000000 R14: ffff8880a194fb40 R15: ffff888090c8fdd0
FS: 00005555569ed400(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f641e8b4fc0 CR3: 000000009d088000 CR4: 00000000003406f0
F2FS-fs (loop2): Unrecognized mount option "nche" or missing value
F2FS-fs (loop2): Unrecognized mount option "nche" or missing value
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
netlink: 'syz-executor.3': attribute type 10 has an invalid length.
----------------
Code disassembly (best guess):
0: 8b 7d 30 mov 0x30(%rbp),%edi
3: 41 ff d4 callq *%r12
6: 48 8d 7b 28 lea 0x28(%rbx),%rdi
a: 48 89 f8 mov %rdi,%rax
d: 48 c1 e8 03 shr $0x3,%rax
11: 80 3c 28 00 cmpb $0x0,(%rax,%rbp,1)
15: 0f 85 ab 00 00 00 jne 0xc6
1b: 4c 8b 6b 28 mov 0x28(%rbx),%r13
1f: 49 8d 7d 30 lea 0x30(%r13),%rdi
23: 48 89 f8 mov %rdi,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 80 3c 28 00 cmpb $0x0,(%rax,%rbp,1) <-- trapping instruction
2e: 0f 85 88 00 00 00 jne 0xbc
34: 49 8b 7d 30 mov 0x30(%r13),%rdi
38: 41 ff d4 callq *%r12
3b: 48 rex.W
3c: 8d .byte 0x8d
3d: bb .byte 0xbb
3e: b0 00 mov $0x0,%al


---
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.
Reply all
Reply to author
Forward
0 new messages