general protection fault in __dynamic_dev_dbg

Status: upstream: reported on 2026/09/21 02:53
Reported-by: syzbot+95700c26def3e246743b@syzkaller.appspotmail.com
First crash: 3d02h, last: 3d02h
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: slab-use-after-free Read in __dynamic_dev_dbg media prio:normal 19 syz, C 145 4h05m 7d13h 0/29 upstream: reported C repro on 2026/09/16 15:53
linux-6.1 KASAN: slab-out-of-bounds Read in __dynamic_dev_dbg 17 syz, C 6 5d07h 5d11h 0/3 upstream: reported C repro on 2026/09/18 17:57

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000028: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000140-0x0000000000000147]
CPU: 0 PID: 5437 Comm: dhcpcd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:dev_driver_string+0x26/0xd0 drivers/base/core.c:2364
Code: 1f 44 00 00 f3 0f 1e fa 41 57 41 56 53 48 89 fb 49 bf 00 00 00 00 00 fc ff df e8 45 b7 37 fc 4c 8d 73 68 4c 89 f0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 f7 e8 4b 43 90 fc 4d 8b 36 4d 85 f6 74
RSP: 0018:ffffc90003717620 EFLAGS: 00010206
RAX: 0000000000000028 RBX: 00000000000000d8 RCX: ffff88802d569e00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000000000d8
RBP: ffffc900037177f8 R08: ffffc9000371777f R09: 0000000000000000
R10: ffffc90003717700 R11: fffff520006e2ef0 R12: ffffffff8e834928
R13: dffffc0000000000 R14: 0000000000000140 R15: dffffc0000000000
FS:  00007f19d6812740(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055dac55b8f28 CR3: 0000000078a86000 CR4: 00000000003506f0
Call Trace:
 <TASK>
 __dynamic_dev_dbg+0x1af/0x2d0 lib/dynamic_debug.c:906
 eth_open+0x25c/0x2b0 drivers/usb/gadget/function/u_ether.c:621
 __dev_open+0x2cb/0x430 net/core/dev.c:1519
 __dev_change_flags+0x1e8/0x6a0 net/core/dev.c:8747
 dev_change_flags+0x7c/0x1a0 net/core/dev.c:8819
 devinet_ioctl+0x949/0x1d70 net/ipv4/devinet.c:1177
 inet_ioctl+0x42b/0x560 net/ipv4/af_inet.c:1000
 sock_do_ioctl+0xfc/0x310 net/socket.c:1220
 sock_ioctl+0x5be/0x7e0 net/socket.c:1341
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:871 [inline]
 __se_sys_ioctl+0xfd/0x170 fs/ioctl.c:857
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f19d6912378
Code: 00 00 48 8d 44 24 08 48 89 54 24 e0 48 89 44 24 c0 48 8d 44 24 d0 48 89 44 24 c8 b8 10 00 00 00 c7 44 24 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 07 89 d0 c3 0f 1f 40 00 48 8b 15 49 3a 0d
RSP: 002b:00007ffc760161c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000036 RCX: 00007f19d6912378
RDX: 00007ffc760263c0 RSI: 0000000000008914 RDI: 0000000000000036
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc76036560
R13: 00007f19d68126c8 R14: 0000000000000028 R15: 0000000000008914
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:dev_driver_string+0x26/0xd0 drivers/base/core.c:2364
Code: 1f 44 00 00 f3 0f 1e fa 41 57 41 56 53 48 89 fb 49 bf 00 00 00 00 00 fc ff df e8 45 b7 37 fc 4c 8d 73 68 4c 89 f0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 f7 e8 4b 43 90 fc 4d 8b 36 4d 85 f6 74
RSP: 0018:ffffc90003717620 EFLAGS: 00010206
RAX: 0000000000000028 RBX: 00000000000000d8 RCX: ffff88802d569e00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000000000d8
RBP: ffffc900037177f8 R08: ffffc9000371777f R09: 0000000000000000
R10: ffffc90003717700 R11: fffff520006e2ef0 R12: ffffffff8e834928
R13: dffffc0000000000 R14: 0000000000000140 R15: dffffc0000000000
FS:  00007f19d6812740(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000078a86000 CR4: 00000000003526f0
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	44 00 00             	add    %r8b,(%rax)
   3:	f3 0f 1e fa          	endbr64
   7:	41 57                	push   %r15
   9:	41 56                	push   %r14
   b:	53                   	push   %rbx
   c:	48 89 fb             	mov    %rdi,%rbx
   f:	49 bf 00 00 00 00 00 	movabs $0xdffffc0000000000,%r15
  16:	fc ff df
  19:	e8 45 b7 37 fc       	call   0xfc37b763
  1e:	4c 8d 73 68          	lea    0x68(%rbx),%r14
  22:	4c 89 f0             	mov    %r14,%rax
  25:	48 c1 e8 03          	shr    $0x3,%rax
* 29:	42 80 3c 38 00       	cmpb   $0x0,(%rax,%r15,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	4c 89 f7             	mov    %r14,%rdi
  33:	e8 4b 43 90 fc       	call   0xfc904383
  38:	4d 8b 36             	mov    (%r14),%r14
  3b:	4d 85 f6             	test   %r14,%r14
  3e:	74                   	.byte 0x74

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/21 02:53 linux-6.6.y 79643295eba1 853b104b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan general protection fault in __dynamic_dev_dbg
* Struck through repros no longer work on HEAD.