[v5.15] general protection fault in step_into

0 views
Skip to first unread message

syzbot

unread,
Apr 13, 2024, 4:21:32 AMApr 13
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: cdfd0a7f0139 Linux 5.15.154
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=132552dd180000
kernel config: https://syzkaller.appspot.com/x/.config?x=618bf6f66d00ead6
dashboard link: https://syzkaller.appspot.com/bug?extid=6ec068ed1982a8402704
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/3415077c9536/disk-cdfd0a7f.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/533465635bfa/vmlinux-cdfd0a7f.xz
kernel image: https://storage.googleapis.com/syzbot-assets/96055d520f96/bzImage-cdfd0a7f.xz

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

general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 1 PID: 6347 Comm: syz-executor.4 Not tainted 5.15.154-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:traverse_mounts fs/namei.c:1378 [inline]
RIP: 0010:handle_mounts fs/namei.c:1498 [inline]
RIP: 0010:step_into+0x1c0/0xe90 fs/namei.c:1806
Code: 48 0f 85 b1 0a 00 00 44 8b 3b 43 80 3c 34 00 74 0a 48 8b 7c 24 20 e8 ef 9a f0 ff 48 8b 9c 24 d8 00 00 00 48 89 d8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 9e 0a 00 00 8b 1b 89 de 81 e6 00 00 07
RSP: 0018:ffffc90004cbf980 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff88801dff9dc0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90004cbfad0 R08: ffffffff81d98369 R09: ffffed100ba4ebd9
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000997f4b
R13: ffffc90004cbfcc0 R14: dffffc0000000000 R15: 0000000000000080
FS: 000055555714a480(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f141f612bf8 CR3: 000000005a735000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
walk_component+0x359/0x610 fs/namei.c:1982
lookup_last fs/namei.c:2431 [inline]
path_lookupat+0x16f/0x450 fs/namei.c:2455
filename_lookup+0x230/0x5c0 fs/namei.c:2484
user_path_at_empty+0x40/0x180 fs/namei.c:2883
user_path_at include/linux/namei.h:57 [inline]
ksys_umount fs/namespace.c:1779 [inline]
__do_sys_umount fs/namespace.c:1787 [inline]
__se_sys_umount fs/namespace.c:1785 [inline]
__x64_sys_umount+0xf0/0x170 fs/namespace.c:1785
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f48bb6da197
Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 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 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffd07065c08 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f48bb6da197
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffd07065cc0
RBP: 00007ffd07065cc0 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffd07066db0
R13: 00007f48bb7243b9 R14: 000055555714a430 R15: 000000000000001e
</TASK>
Modules linked in:
---[ end trace 42a2ca3b647e88b4 ]---
RIP: 0010:traverse_mounts fs/namei.c:1378 [inline]
RIP: 0010:handle_mounts fs/namei.c:1498 [inline]
RIP: 0010:step_into+0x1c0/0xe90 fs/namei.c:1806
Code: 48 0f 85 b1 0a 00 00 44 8b 3b 43 80 3c 34 00 74 0a 48 8b 7c 24 20 e8 ef 9a f0 ff 48 8b 9c 24 d8 00 00 00 48 89 d8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 9e 0a 00 00 8b 1b 89 de 81 e6 00 00 07
RSP: 0018:ffffc90004cbf980 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff88801dff9dc0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90004cbfad0 R08: ffffffff81d98369 R09: ffffed100ba4ebd9
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000997f4b
R13: ffffc90004cbfcc0 R14: dffffc0000000000 R15: 0000000000000080
FS: 000055555714a480(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f588aea7988 CR3: 000000005a735000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 48 0f 85 b1 0a 00 00 rex.W jne 0xab8
7: 44 8b 3b mov (%rbx),%r15d
a: 43 80 3c 34 00 cmpb $0x0,(%r12,%r14,1)
f: 74 0a je 0x1b
11: 48 8b 7c 24 20 mov 0x20(%rsp),%rdi
16: e8 ef 9a f0 ff call 0xfff09b0a
1b: 48 8b 9c 24 d8 00 00 mov 0xd8(%rsp),%rbx
22: 00
23: 48 89 d8 mov %rbx,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 0f 85 9e 0a 00 00 jne 0xad5
37: 8b 1b mov (%rbx),%ebx
39: 89 de mov %ebx,%esi
3b: 81 .byte 0x81
3c: e6 00 out %al,$0x0
3e: 00 07 add %al,(%rdi)


---
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

unread,
Apr 13, 2024, 6:13:26 AMApr 13
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: cdfd0a7f0139 Linux 5.15.154
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15124c93180000
kernel config: https://syzkaller.appspot.com/x/.config?x=618bf6f66d00ead6
dashboard link: https://syzkaller.appspot.com/bug?extid=6ec068ed1982a8402704
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11eab87d180000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=176552dd180000
mounted in repro: https://storage.googleapis.com/syzbot-assets/21f3795b2295/mount_0.gz

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

ntfs: (device loop0): ntfs_ucstonls(): Unicode name contains characters that cannot be converted to character set macinuit. You might want to try to use the mount option nls=utf8.
ntfs: (device loop0): ntfs_filldir(): Skipping unrepresentable inode 0x4.
ntfs: (device loop0): ntfs_lookup(): ntfs_lookup_ino_by_name() failed with error code -24.
general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 1 PID: 3499 Comm: syz-executor198 Not tainted 5.15.154-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:traverse_mounts fs/namei.c:1378 [inline]
RIP: 0010:handle_mounts fs/namei.c:1498 [inline]
RIP: 0010:step_into+0x1c0/0xe90 fs/namei.c:1806
Code: 48 0f 85 b1 0a 00 00 44 8b 3b 43 80 3c 34 00 74 0a 48 8b 7c 24 20 e8 ef 9a f0 ff 48 8b 9c 24 d8 00 00 00 48 89 d8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 9e 0a 00 00 8b 1b 89 de 81 e6 00 00 07
RSP: 0018:ffffc900011df980 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff888018b4bb80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900011dfad0 R08: ffffffff81d98369 R09: ffffed100e3338c1
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200023bf4b
R13: ffffc900011dfcc0 R14: dffffc0000000000 R15: 0000000000000080
FS: 0000555555aef380(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe8a620f88 CR3: 000000007a08c000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
walk_component+0x359/0x610 fs/namei.c:1982
lookup_last fs/namei.c:2431 [inline]
path_lookupat+0x16f/0x450 fs/namei.c:2455
filename_lookup+0x230/0x5c0 fs/namei.c:2484
user_path_at_empty+0x40/0x180 fs/namei.c:2883
user_path_at include/linux/namei.h:57 [inline]
ksys_umount fs/namespace.c:1779 [inline]
__do_sys_umount fs/namespace.c:1787 [inline]
__se_sys_umount fs/namespace.c:1785 [inline]
__x64_sys_umount+0xf0/0x170 fs/namespace.c:1785
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fd944192587
Code: 09 00 48 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffe8a6211e8 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fd944192587
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffe8a6212a0
RBP: 00007ffe8a6212a0 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000206 R12: 00007ffe8a622390
R13: 0000555555b00740 R14: 0000555555aef338 R15: 00007ffe8a624510
</TASK>
Modules linked in:
---[ end trace 1a01f4b99999cb77 ]---
RIP: 0010:traverse_mounts fs/namei.c:1378 [inline]
RIP: 0010:handle_mounts fs/namei.c:1498 [inline]
RIP: 0010:step_into+0x1c0/0xe90 fs/namei.c:1806
Code: 48 0f 85 b1 0a 00 00 44 8b 3b 43 80 3c 34 00 74 0a 48 8b 7c 24 20 e8 ef 9a f0 ff 48 8b 9c 24 d8 00 00 00 48 89 d8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 0f 85 9e 0a 00 00 8b 1b 89 de 81 e6 00 00 07
RSP: 0018:ffffc900011df980 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff888018b4bb80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900011dfad0 R08: ffffffff81d98369 R09: ffffed100e3338c1
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200023bf4b
R13: ffffc900011dfcc0 R14: dffffc0000000000 R15: 0000000000000080
FS: 0000555555aef380(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055b017e5f9a8 CR3: 000000007a08c000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 48 0f 85 b1 0a 00 00 rex.W jne 0xab8
7: 44 8b 3b mov (%rbx),%r15d
a: 43 80 3c 34 00 cmpb $0x0,(%r12,%r14,1)
f: 74 0a je 0x1b
11: 48 8b 7c 24 20 mov 0x20(%rsp),%rdi
16: e8 ef 9a f0 ff call 0xfff09b0a
1b: 48 8b 9c 24 d8 00 00 mov 0xd8(%rsp),%rbx
22: 00
23: 48 89 d8 mov %rbx,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 0f 85 9e 0a 00 00 jne 0xad5
37: 8b 1b mov (%rbx),%ebx
39: 89 de mov %ebx,%esi
3b: 81 .byte 0x81
3c: e6 00 out %al,$0x0
3e: 00 07 add %al,(%rdi)


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