Hello,
syzbot found the following issue on:
HEAD commit: a27512601c2d Merge 5.10.194 into android13-5.10-lts
git tree: android13-5.10-lts
console+strace:
https://syzkaller.appspot.com/x/log.txt?x=1393b3e8680000
kernel config:
https://syzkaller.appspot.com/x/.config?x=c1c2ce51f851d2f6
dashboard link:
https://syzkaller.appspot.com/bug?extid=1073bb7aa0d1b919f9a7
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=17f69ea0680000
C reproducer:
https://syzkaller.appspot.com/x/repro.c?x=15ca1f30680000
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/da4c10f4a7cd/disk-a2751260.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/4d65589a1227/vmlinux-a2751260.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/a8c5b14df758/bzImage-a2751260.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+1073bb...@syzkaller.appspotmail.com
general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
CPU: 0 PID: 288 Comm: syz-executor140 Not tainted 5.10.194-syzkaller-00508-ga27512601c2d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:__d_entry_type include/linux/dcache.h:400 [inline]
RIP: 0010:d_is_miss include/linux/dcache.h:405 [inline]
RIP: 0010:d_is_negative include/linux/dcache.h:451 [inline]
RIP: 0010:do_renameat2+0x5e6/0x1130 fs/namei.c:4563
Code: 89 de 8b 54 24 3c e8 09 31 ff ff 49 89 c5 48 3d 01 f0 ff ff 72 0d e8 49 a0 b6 ff 44 89 eb e9 d7 03 00 00 4d 89 ec 49 c1 ec 03 <43> 0f b6 04 3c 84 c0 0f 85 d6 05 00 00 41 8b 5d 00 be 00 00 70 00
RSP: 0018:ffffc9000094fd00 EFLAGS: 00010202
RAX: 0000000000000010 RBX: ffff88811c496110 RCX: ffff88811e4093c0
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000
RBP: ffffc9000094ff08 R08: ffffffff81b62ffb R09: ffffed1023892c2e
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000002
R13: 0000000000000010 R14: 00000000ffffff01 R15: dffffc0000000000
FS: 00007fb43311c6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb4330fbd58 CR3: 000000011e3d8000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__do_sys_rename fs/namei.c:4656 [inline]
__se_sys_rename fs/namei.c:4654 [inline]
__x64_sys_rename+0x86/0x90 fs/namei.c:4654
do_syscall_64+0x34/0x70
entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7fb43315a2b9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb43311c218 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007fb4331e3408 RCX: 00007fb43315a2b9
RDX: 00007fb43315a2b9 RSI: 0000000020000140 RDI: 0000000020000100
RBP: 00007fb4331e3400 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb4331b1018
R13: 0030656c69662f2e R14: 0030656c69662f30 R15: 00007fb4331b100e
Modules linked in:
---[ end trace 3e7f437283b4f10e ]---
RIP: 0010:__d_entry_type include/linux/dcache.h:400 [inline]
RIP: 0010:d_is_miss include/linux/dcache.h:405 [inline]
RIP: 0010:d_is_negative include/linux/dcache.h:451 [inline]
RIP: 0010:do_renameat2+0x5e6/0x1130 fs/namei.c:4563
Code: 89 de 8b 54 24 3c e8 09 31 ff ff 49 89 c5 48 3d 01 f0 ff ff 72 0d e8 49 a0 b6 ff 44 89 eb e9 d7 03 00 00 4d 89 ec 49 c1 ec 03 <43> 0f b6 04 3c 84 c0 0f 85 d6 05 00 00 41 8b 5d 00 be 00 00 70 00
RSP: 0018:ffffc9000094fd00 EFLAGS: 00010202
RAX: 0000000000000010 RBX: ffff88811c496110 RCX: ffff88811e4093c0
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000000
RBP: ffffc9000094ff08 R08: ffffffff81b62ffb R09: ffffed1023892c2e
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000002
R13: 0000000000000010 R14: 00000000ffffff01 R15: dffffc0000000000
FS: 00007fb43311c6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb4331b0e98 CR3: 000000011e3d8000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 89 de mov %ebx,%esi
2: 8b 54 24 3c mov 0x3c(%rsp),%edx
6: e8 09 31 ff ff call 0xffff3114
b: 49 89 c5 mov %rax,%r13
e: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax
14: 72 0d jb 0x23
16: e8 49 a0 b6 ff call 0xffb6a064
1b: 44 89 eb mov %r13d,%ebx
1e: e9 d7 03 00 00 jmp 0x3fa
23: 4d 89 ec mov %r13,%r12
26: 49 c1 ec 03 shr $0x3,%r12
* 2a: 43 0f b6 04 3c movzbl (%r12,%r15,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 0f 85 d6 05 00 00 jne 0x60d
37: 41 8b 5d 00 mov 0x0(%r13),%ebx
3b: be 00 00 70 00 mov $0x700000,%esi
---
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 bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title
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.
If you want to overwrite bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup