syzbot


general protection fault in put_pid_ns

Status: upstream: reported C repro on 2025/11/13 04:27
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+983e44006c89c92789a4@syzkaller.appspotmail.com
First crash: 61d, last: 56d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] general protection fault in put_pid_ns 2 (5) 2025/11/14 15:01
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 KASAN: use-after-free Read in put_pid_ns 19 C error 30 1746d 2342d 0/1 upstream: reported C repro on 2019/08/15 04:16
Last patch testing requests (3)
Created Duration User Patch Repo Result
2025/12/01 10:56 27m retest repro linux-next OK log
2025/11/14 12:12 1h29m brauner@kernel.org https://github.com/brauner/linux.git namespace-6.19 OK log
2025/11/13 21:46 30m hdanton@sina.com https://github.com/brauner/linux.git namespace-6.19 report log

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000017: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x00000000000000b8-0x00000000000000bf]
CPU: 0 UID: 0 PID: 20037 Comm: syz.0.6369 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:is_ns_init_id include/linux/ns_common.h:25 [inline]
RIP: 0010:__ns_ref_put include/linux/ns_common.h:70 [inline]
RIP: 0010:put_pid_ns+0x37/0x2a0 kernel/pid_namespace.c:187
Code: 53 48 89 fb e8 0a ba 03 00 48 85 db 0f 84 e8 00 00 00 49 bc 00 00 00 00 00 fc ff df 4c 8d b3 d0 00 00 00 4d 89 f5 49 c1 ed 03 <43> 80 7c 25 00 00 74 08 4c 89 f7 e8 f9 12 6a 00 4d 8b 3e 31 ff 4c
RSP: 0000:ffffc9000bb0fcd0 EFLAGS: 00010206
RAX: ffffffff81be2646 RBX: ffffffffffffffea RCX: 0000000000080000
RDX: ffffc9001534b000 RSI: 0000000000001ba9 RDI: 0000000000001baa
RBP: 0000000000000005 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52001761f78 R12: dffffc0000000000
R13: 0000000000000017 R14: 00000000000000ba R15: ffff888029274d14
FS:  00007f5303c426c0(0000) GS:ffff888125a78000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f59c832b500 CR3: 0000000030808000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 nsproxy_free+0x20f/0x7c0 kernel/nsproxy.c:68
 __free_nsproxy_free kernel/nsproxy.c:76 [inline]
 create_new_namespaces+0x47a/0x540 kernel/nsproxy.c:132
 unshare_nsproxy_namespaces+0x11c/0x170 kernel/nsproxy.c:197
 ksys_unshare+0x4c8/0x8c0 kernel/fork.c:3129
 __do_sys_unshare kernel/fork.c:3200 [inline]
 __se_sys_unshare kernel/fork.c:3198 [inline]
 __x64_sys_unshare+0x38/0x50 kernel/fork.c:3198
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f5302d8f6c9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f5303c42038 EFLAGS: 00000246 ORIG_RAX: 0000000000000110
RAX: ffffffffffffffda RBX: 00007f5302fe5fa0 RCX: 00007f5302d8f6c9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000062020680
RBP: 00007f5302e11f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5302fe6038 R14: 00007f5302fe5fa0 R15: 00007ffee53767c8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:is_ns_init_id include/linux/ns_common.h:25 [inline]
RIP: 0010:__ns_ref_put include/linux/ns_common.h:70 [inline]
RIP: 0010:put_pid_ns+0x37/0x2a0 kernel/pid_namespace.c:187
Code: 53 48 89 fb e8 0a ba 03 00 48 85 db 0f 84 e8 00 00 00 49 bc 00 00 00 00 00 fc ff df 4c 8d b3 d0 00 00 00 4d 89 f5 49 c1 ed 03 <43> 80 7c 25 00 00 74 08 4c 89 f7 e8 f9 12 6a 00 4d 8b 3e 31 ff 4c
RSP: 0000:ffffc9000bb0fcd0 EFLAGS: 00010206
RAX: ffffffff81be2646 RBX: ffffffffffffffea RCX: 0000000000080000
RDX: ffffc9001534b000 RSI: 0000000000001ba9 RDI: 0000000000001baa
RBP: 0000000000000005 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52001761f78 R12: dffffc0000000000
R13: 0000000000000017 R14: 00000000000000ba R15: ffff888029274d14
FS:  00007f5303c426c0(0000) GS:ffff888125a78000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f59c9270f98 CR3: 0000000030808000 CR4: 00000000003526f0
----------------
Code disassembly (best guess):
   0:	53                   	push   %rbx
   1:	48 89 fb             	mov    %rdi,%rbx
   4:	e8 0a ba 03 00       	call   0x3ba13
   9:	48 85 db             	test   %rbx,%rbx
   c:	0f 84 e8 00 00 00    	je     0xfa
  12:	49 bc 00 00 00 00 00 	movabs $0xdffffc0000000000,%r12
  19:	fc ff df
  1c:	4c 8d b3 d0 00 00 00 	lea    0xd0(%rbx),%r14
  23:	4d 89 f5             	mov    %r14,%r13
  26:	49 c1 ed 03          	shr    $0x3,%r13
* 2a:	43 80 7c 25 00 00    	cmpb   $0x0,0x0(%r13,%r12,1) <-- trapping instruction
  30:	74 08                	je     0x3a
  32:	4c 89 f7             	mov    %r14,%rdi
  35:	e8 f9 12 6a 00       	call   0x6a1333
  3a:	4d 8b 3e             	mov    (%r14),%r15
  3d:	31 ff                	xor    %edi,%edi
  3f:	4c                   	rex.WR

Crashes (521):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/17 09:40 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/17 09:39 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/17 07:52 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/17 05:50 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/17 04:33 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/17 04:33 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/17 02:48 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/17 01:42 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/17 01:42 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/16 16:05 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/16 14:42 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/16 14:17 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/16 12:50 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/16 12:50 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/16 06:13 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/16 05:01 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/16 04:29 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/16 01:27 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/16 00:24 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/15 22:53 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/15 18:19 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/15 15:51 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/15 15:48 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/15 06:45 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/15 05:28 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/15 03:55 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/14 23:47 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/14 20:53 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/14 20:01 linux-next 6d7e7251d03f f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/14 13:24 linux-next 6d7e7251d03f 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/14 10:17 linux-next 6d7e7251d03f 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/14 07:26 linux-next 6d7e7251d03f 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/14 06:01 linux-next 6d7e7251d03f 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in put_pid_ns
2025/11/14 04:13 linux-next 6d7e7251d03f 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in put_pid_ns
2025/11/14 03:41 linux-next 6d7e7251d03f 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in put_pid_ns
2025/11/14 02:45 linux-next 6d7e7251d03f 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in put_pid_ns
2025/11/14 00:10 linux-next 6d7e7251d03f 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in put_pid_ns
2025/11/13 23:06 linux-next 6d7e7251d03f 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in put_pid_ns
2025/11/13 22:28 linux-next 6d7e7251d03f 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/13 21:04 linux-next 6d7e7251d03f 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in put_pid_ns
2025/11/13 19:32 linux-next 6d7e7251d03f 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
2025/11/13 19:28 linux-next 6d7e7251d03f 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in put_pid_ns
2025/11/13 18:23 linux-next 6d7e7251d03f 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in put_pid_ns
2025/11/12 08:32 linux-next b179ce312baf 4e1406b4 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in put_pid_ns
* Struck through repros no longer work on HEAD.