syzbot
general protection fault in path_openat
Status:
upstream: reported C repro on 2023/05/21 01:53
Bug presence:
origin:downstream
[Documentation on labels]
Reported-by: syzbot+ea487d1ec1a25689e4d2@syzkaller.appspotmail.com
First crash: 1168d, last: 4d16h
▶
▼
Bug presence (3)
| Date |
Name |
Commit |
Repro |
Result |
| 2023/09/24 |
android13-5.15-lts (ToT) |
ea586874d2f9 |
C
|
[report] general protection fault in path_openat
|
| 2023/09/24 |
lts (merge base) |
aff03380bda4 |
C
|
Didn't crash |
| 2023/09/24 |
upstream (ToT) |
3aba70aed91f |
C
|
Didn't crash |
▶
▼
Last patch testing requests (10)
▶
▼
Fix bisection attempts (7)
Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 PID: 371 Comm: syz.2.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
RIP: 0010:__d_entry_type include/linux/dcache.h:404 [inline]
RIP: 0010:d_is_miss include/linux/dcache.h:409 [inline]
RIP: 0010:d_is_negative include/linux/dcache.h:455 [inline]
RIP: 0010:atomic_open fs/namei.c:3349 [inline]
RIP: 0010:lookup_open fs/namei.c:3441 [inline]
RIP: 0010:open_last_lookups fs/namei.c:3540 [inline]
RIP: 0010:path_openat+0x11df/0x2f20 fs/namei.c:3747
Code: eb 0b e8 c4 f6 b5 ff 41 be f3 ff ff ff 48 89 df e8 16 8d 02 00 49 63 de eb 55 e8 ac f6 b5 ff 4c 8b 2c 24 48 89 d8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 0f 85 9f 0d 00 00 44 8b 33 be 00 00 70 00 44
RSP: 0018:ffffc90000b47980 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000008 RCX: ffff888111224f00
RDX: 0000000000000000 RSI: 0000000000000003 RDI: ffff888111224f00
RBP: ffffc90000b47b90 R08: ffff88810d17b16f R09: 1ffff11021a2f62d
R10: dffffc0000000000 R11: ffffed1021a2f62e R12: 0000000000000000
R13: ffffc90000b47c00 R14: 0000000000000000 R15: dffffc0000000000
FS: 00007f7a724a56c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7a72483ff8 CR3: 000000011f611000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
do_filp_open+0x1e2/0x410 fs/namei.c:3777
do_sys_openat2+0x15e/0x7f0 fs/open.c:1236
do_sys_open fs/open.c:1252 [inline]
__do_sys_openat fs/open.c:1268 [inline]
__se_sys_openat fs/open.c:1263 [inline]
__x64_sys_openat+0x136/0x160 fs/open.c:1263
x64_sys_call+0x219/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f7a72642e59
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f7a724a5028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f7a728bbfa0 RCX: 00007f7a72642e59
RDX: 0000000000040000 RSI: 0000200000000140 RDI: ffffffffffffff9c
RBP: 00007f7a726d8d6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000020 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f7a728bc038 R14: 00007f7a728bbfa0 R15: 00007ffef910f718
</TASK>
Modules linked in:
---[ end trace ee75ae0a1ce62aba ]---
RIP: 0010:__d_entry_type include/linux/dcache.h:404 [inline]
RIP: 0010:d_is_miss include/linux/dcache.h:409 [inline]
RIP: 0010:d_is_negative include/linux/dcache.h:455 [inline]
RIP: 0010:atomic_open fs/namei.c:3349 [inline]
RIP: 0010:lookup_open fs/namei.c:3441 [inline]
RIP: 0010:open_last_lookups fs/namei.c:3540 [inline]
RIP: 0010:path_openat+0x11df/0x2f20 fs/namei.c:3747
Code: eb 0b e8 c4 f6 b5 ff 41 be f3 ff ff ff 48 89 df e8 16 8d 02 00 49 63 de eb 55 e8 ac f6 b5 ff 4c 8b 2c 24 48 89 d8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 0f 85 9f 0d 00 00 44 8b 33 be 00 00 70 00 44
RSP: 0018:ffffc90000b47980 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000008 RCX: ffff888111224f00
RDX: 0000000000000000 RSI: 0000000000000003 RDI: ffff888111224f00
RBP: ffffc90000b47b90 R08: ffff88810d17b16f R09: 1ffff11021a2f62d
R10: dffffc0000000000 R11: ffffed1021a2f62e R12: 0000000000000000
R13: ffffc90000b47c00 R14: 0000000000000000 R15: dffffc0000000000
FS: 00007f7a724a56c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7a72690540 CR3: 000000011f611000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: eb 0b jmp 0xd
2: e8 c4 f6 b5 ff call 0xffb5f6cb
7: 41 be f3 ff ff ff mov $0xfffffff3,%r14d
d: 48 89 df mov %rbx,%rdi
10: e8 16 8d 02 00 call 0x28d2b
15: 49 63 de movslq %r14d,%rbx
18: eb 55 jmp 0x6f
1a: e8 ac f6 b5 ff call 0xffb5f6cb
1f: 4c 8b 2c 24 mov (%rsp),%r13
23: 48 89 d8 mov %rbx,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 0f b6 04 38 movzbl (%rax,%r15,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 0f 85 9f 0d 00 00 jne 0xdd6
37: 44 8b 33 mov (%rbx),%r14d
3a: be 00 00 70 00 mov $0x700000,%esi
3f: 44 rex.R
* Struck through repros no longer work on HEAD.