general protection fault in sk_filter_trim_cap (2)

Status: premoderation: reported on 2026/11/11 04:59
Reported-by: syzbot+e269c68e8fd96b295a11@syzkaller.appspotmail.com
First crash: 8d21h, last: 8d21h
▶ ▼ Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 general protection fault in sk_filter_trim_cap 2 1 103d 103d 0/2 auto-obsoleted due to no activity on 2026/11/06 07:23
linux-4.19 KASAN: use-after-free Read in sk_filter_trim_cap 19 1 1716d 1716d 0/1 auto-closed as invalid on 2022/07/07 20:56
linux-6.1 KASAN: use-after-free Read in sk_filter_trim_cap 19 1 853d 853d 0/3 auto-obsoleted due to no activity on 2024/10/27 21:54
upstream KASAN: slab-use-after-free Read in sk_filter_trim_cap bpf net 19 12 557d 806d 0/29 auto-obsoleted due to no activity on 2025/08/19 23:25
android-5-10 BUG: unable to handle kernel paging request in sk_filter_trim_cap 8 2 284d 301d 0/2 auto-obsoleted due to no activity on 2026/05/09 07:07

Sample crash report:
general protection fault, probably for non-canonical address 0x1fffc220010c2494: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 468 Comm: syz.3.38727 Tainted: G        W         syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:__bpf_prog_run_save_cb include/linux/filter.h:718 [inline]
RIP: 0010:bpf_prog_run_save_cb include/linux/filter.h:732 [inline]
RIP: 0010:sk_filter_trim_cap+0x5d9/0x6e0 net/core/filter.c:152
Code: f8 48 c1 e8 03 42 80 3c 30 00 74 05 e8 00 9d f9 fd 48 89 df 4c 89 fe 41 ff 54 24 30 41 89 c7 49 83 c4 20 4c 89 e0 48 c1 e8 03 <42> 80 3c 30 00 74 08 4c 89 e7 e8 d8 9c f9 fd b8 70 02 00 00 49 03
RSP: 0018:ffffc900010b77f0 EFLAGS: 00010a02
RAX: 1ffff9200000ac04 RBX: ffff88815c479a00 RCX: ffff88811cecbc00
RDX: 0000000000000000 RSI: 0000000080000001 RDI: 0000000000000000
RBP: ffffc900010b7890 R08: ffffffff86e7b008 R09: ffffffff86e7b018
R10: ffffffff86e7b01c R11: ffffffff86e7b003 R12: ffffc90000056020
R13: 1ffff9200000ac00 R14: ffffc900010b7890 R15: 000000009af682e4
FS:  00007fad9a8ea6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000100000000 CR3: 000000011eb9f000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000090602
Call Trace:
 sk_filter include/linux/filter.h:862 [inline]
 unix_dgram_sendmsg+0xbc6/0x18f0 net/unix/af_unix.c:1756
 unix_seqpacket_sendmsg+0x118/0x1e0 net/unix/af_unix.c:2108
 sock_sendmsg_nosec net/socket.c:652 [inline]
 __sock_sendmsg net/socket.c:664 [inline]
 ____sys_sendmsg+0x5be/0x8f0 net/socket.c:2377
 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2431
 __sys_sendmsg net/socket.c:2460 [inline]
 __do_sys_sendmsg net/socket.c:2469 [inline]
 __se_sys_sendmsg net/socket.c:2467 [inline]
 __x64_sys_sendmsg+0x201/0x2d0 net/socket.c:2467
 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fad9befef19
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:00007fad9a8ea028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fad9c17c270 RCX: 00007fad9befef19
RDX: 0000000000000000 RSI: 0000200000001280 RDI: 0000000000000007
RBP: 00007fad9bf8df6d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fad9c17c308 R14: 00007fad9c17c270 R15: 00007ffe785aada8
Modules linked in:
---[ end trace e3ac88cd35a69afa ]---
RIP: 0010:__bpf_prog_run_save_cb include/linux/filter.h:718 [inline]
RIP: 0010:bpf_prog_run_save_cb include/linux/filter.h:732 [inline]
RIP: 0010:sk_filter_trim_cap+0x5d9/0x6e0 net/core/filter.c:152
Code: f8 48 c1 e8 03 42 80 3c 30 00 74 05 e8 00 9d f9 fd 48 89 df 4c 89 fe 41 ff 54 24 30 41 89 c7 49 83 c4 20 4c 89 e0 48 c1 e8 03 <42> 80 3c 30 00 74 08 4c 89 e7 e8 d8 9c f9 fd b8 70 02 00 00 49 03
RSP: 0018:ffffc900010b77f0 EFLAGS: 00010a02
RAX: 1ffff9200000ac04 RBX: ffff88815c479a00 RCX: ffff88811cecbc00
RDX: 0000000000000000 RSI: 0000000080000001 RDI: 0000000000000000
RBP: ffffc900010b7890 R08: ffffffff86e7b008 R09: ffffffff86e7b018
R10: ffffffff86e7b01c R11: ffffffff86e7b003 R12: ffffc90000056020
R13: 1ffff9200000ac00 R14: ffffc900010b7890 R15: 000000009af682e4
FS:  00007fad9a8ea6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000100000000 CR3: 000000011eb9f000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
----------------
Code disassembly (best guess):
   0:	f8                   	clc
   1:	48 c1 e8 03          	shr    $0x3,%rax
   5:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1)
   a:	74 05                	je     0x11
   c:	e8 00 9d f9 fd       	call   0xfdf99d11
  11:	48 89 df             	mov    %rbx,%rdi
  14:	4c 89 fe             	mov    %r15,%rsi
  17:	41 ff 54 24 30       	call   *0x30(%r12)
  1c:	41 89 c7             	mov    %eax,%r15d
  1f:	49 83 c4 20          	add    $0x20,%r12
  23:	4c 89 e0             	mov    %r12,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 e7             	mov    %r12,%rdi
  34:	e8 d8 9c f9 fd       	call   0xfdf99d11
  39:	b8 70 02 00 00       	mov    $0x270,%eax
  3e:	49                   	rex.WB
  3f:	03                   	.byte 0x3

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/11 04:58 android13-5.10-lts f61a392235e0 d3056657 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10-perf general protection fault in sk_filter_trim_cap
* Struck through repros no longer work on HEAD.