Hello,
syzbot found the following issue on:
HEAD commit: e7e4a657fff8 UPSTREAM: HID: logitech-hidpp: fix race condi..
git tree: android14-6.1
console output:
https://syzkaller.appspot.com/x/log.txt?x=17033295580000
kernel config:
https://syzkaller.appspot.com/x/.config?x=3533141b441d6292
dashboard link:
https://syzkaller.appspot.com/bug?extid=88d9bf8b5e8e2d45e72d
compiler: Debian clang version 22.1.8 (1~deb13u4), Debian LLD 22.1.8
syz repro:
https://syzkaller.appspot.com/x/repro.syz?x=16510c81580000
C reproducer:
https://syzkaller.appspot.com/x/repro.c?x=113d2d31580000
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/c49e0c9471d6/disk-e7e4a657.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/3bf2bb06818c/vmlinux-e7e4a657.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/af97638e6463/bzImage-e7e4a657.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+88d9bf...@syzkaller.appspotmail.com
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: 375 Comm: syz.2.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
RIP: 0010:_compound_head include/linux/page-flags.h:260 [inline]
RIP: 0010:put_page include/linux/mm.h:1486 [inline]
RIP: 0010:sk_msg_free_elem+0x200/0x410 net/core/skmsg.c:187
Code: 3c 08 00 74 12 4c 89 e7 e8 2d 5d af fd 48 b9 00 00 00 00 00 fc ff df 4d 8b 2c 24 49 83 e5 fc 4d 8d 7d 08 4c 89 f8 48 c1 e8 03 <80> 3c 08 00 74 08 4c 89 ff e8 02 5d af fd 4d 8b 3f 44 89 fe 83 e6
RSP: 0018:ffffc900009b75e0 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff8881138ed800 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000fe5 RDI: 0000000000000fff
RBP: ffffc900009b7630 R08: 0000000000000000 R09: 0000000000000002
R10: 0000000000000001 R11: 0000000000000000 R12: ffff8881138ed820
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000008
FS: 00007f35ebdaf6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f35ebdaeff8 CR3: 0000000122066000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
__sk_msg_free net/core/skmsg.c:202 [inline]
sk_msg_free+0xf0/0x330 net/core/skmsg.c:220
tcp_bpf_send_verdict+0xe36/0xfb0 net/ipv4/tcp_bpf.c:414
tcp_bpf_sendmsg+0x68b/0xa80 net/ipv4/tcp_bpf.c:548
inet_sendmsg+0xb6/0xd0 net/ipv4/af_inet.c:841
sock_sendmsg_nosec net/socket.c:716 [inline]
__sock_sendmsg net/socket.c:728 [inline]
__sys_sendto+0x4ac/0x660 net/socket.c:2143
__do_sys_sendto net/socket.c:2155 [inline]
__se_sys_sendto net/socket.c:2151 [inline]
__x64_sys_sendto+0xe5/0x100 net/socket.c:2151
x64_sys_call+0x83/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:45
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f35eaf9f559
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:00007f35ebdaf028 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f35eb226090 RCX: 00007f35eaf9f559
RDX: 000000000000000a RSI: 0000200000000840 RDI: 0000000000000003
RBP: 00007f35eb036b20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000008000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f35eb226128 R14: 00007f35eb226090 R15: 00007ffc40e65cc8
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:_compound_head include/linux/page-flags.h:260 [inline]
RIP: 0010:put_page include/linux/mm.h:1486 [inline]
RIP: 0010:sk_msg_free_elem+0x200/0x410 net/core/skmsg.c:187
Code: 3c 08 00 74 12 4c 89 e7 e8 2d 5d af fd 48 b9 00 00 00 00 00 fc ff df 4d 8b 2c 24 49 83 e5 fc 4d 8d 7d 08 4c 89 f8 48 c1 e8 03 <80> 3c 08 00 74 08 4c 89 ff e8 02 5d af fd 4d 8b 3f 44 89 fe 83 e6
RSP: 0018:ffffc900009b75e0 EFLAGS: 00010202
RAX: 0000000000000001 RBX: ffff8881138ed800 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000fe5 RDI: 0000000000000fff
RBP: ffffc900009b7630 R08: 0000000000000000 R09: 0000000000000002
R10: 0000000000000001 R11: 0000000000000000 R12: ffff8881138ed820
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000008
FS: 00007f35ebdaf6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f35ebdaeff8 CR3: 0000000122066000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 3c 08 cmp $0x8,%al
2: 00 74 12 4c add %dh,0x4c(%rdx,%rdx,1)
6: 89 e7 mov %esp,%edi
8: e8 2d 5d af fd call 0xfdaf5d3a
d: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx
14: fc ff df
17: 4d 8b 2c 24 mov (%r12),%r13
1b: 49 83 e5 fc and $0xfffffffffffffffc,%r13
1f: 4d 8d 7d 08 lea 0x8(%r13),%r15
23: 4c 89 f8 mov %r15,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction
2e: 74 08 je 0x38
30: 4c 89 ff mov %r15,%rdi
33: e8 02 5d af fd call 0xfdaf5d3a
38: 4d 8b 3f mov (%r15),%r15
3b: 44 89 fe mov %r15d,%esi
3e: 83 .byte 0x83
3f: e6 .byte 0xe6
---
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 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 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