All of lore.kernel.org
 help / color / mirror / Atom feed
* [brauner-github:namespace-6.18.file_handles] [ipc]  c8e087bf68: BUG:kernel_NULL_pointer_dereference,address
@ 2025-09-24  7:33 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-09-24  7:33 UTC (permalink / raw)
  To: Christian Brauner; +Cc: oe-lkp, lkp, Christian Brauner, oliver.sang



Hello,

kernel test robot noticed "BUG:kernel_NULL_pointer_dereference,address" on:

commit: c8e087bf689c357017d4fbded9123dcf07ce14ba ("ipc: support ns lookup")
https://github.com/brauner/linux.git namespace-6.18.file_handles

in testcase: boot

config: x86_64-randconfig-072-20250919
compiler: clang-20
test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G

(please refer to attached dmesg/kmsg for entire log/backtrace)



If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <oliver.sang@intel.com>
| Closes: https://lore.kernel.org/oe-lkp/202509231700.dff6cd4d-lkp@intel.com


[    2.190097][    T1] BUG: kernel NULL pointer dereference, address: 0000000000000028
[    2.190097][    T1] #PF: supervisor read access in kernel mode
[    2.190097][    T1] #PF: error_code(0x0000) - not-present page
[    2.190097][    T1] PGD 0 P4D 0
[    2.190097][    T1] Oops: Oops: 0000 [#1] SMP
[    2.190097][    T1] CPU: 1 UID: 0 PID: 1 Comm: swapper/0 Tainted: G                T   6.17.0-rc4-00022-gc8e087bf689c #1 VOLUNTARY  c1f65eaef97961d661159ea096bfaf3ec3497462
[    2.190097][    T1] Tainted: [T]=RANDSTRUCT
[ 2.190097][ T1] RIP: 0010:__ns_tree_add_raw (kernel/nstree.c:95) 
[ 2.190097][ T1] Code: 48 89 7c 24 10 31 f6 31 d2 31 c9 41 b8 01 00 00 00 45 31 c9 48 89 44 24 08 50 e8 d0 bb 04 00 48 83 c4 08 ff 43 18 49 8b 47 08 <8b> 68 28 44 8b b3 90 00 00 00 89 ef 44 89 f6 e8 f1 5d 13 00 44 39
All code
========
   0:	48 89 7c 24 10       	mov    %rdi,0x10(%rsp)
   5:	31 f6                	xor    %esi,%esi
   7:	31 d2                	xor    %edx,%edx
   9:	31 c9                	xor    %ecx,%ecx
   b:	41 b8 01 00 00 00    	mov    $0x1,%r8d
  11:	45 31 c9             	xor    %r9d,%r9d
  14:	48 89 44 24 08       	mov    %rax,0x8(%rsp)
  19:	50                   	push   %rax
  1a:	e8 d0 bb 04 00       	call   0x4bbef
  1f:	48 83 c4 08          	add    $0x8,%rsp
  23:	ff 43 18             	incl   0x18(%rbx)
  26:	49 8b 47 08          	mov    0x8(%r15),%rax
  2a:*	8b 68 28             	mov    0x28(%rax),%ebp		<-- trapping instruction
  2d:	44 8b b3 90 00 00 00 	mov    0x90(%rbx),%r14d
  34:	89 ef                	mov    %ebp,%edi
  36:	44 89 f6             	mov    %r14d,%esi
  39:	e8 f1 5d 13 00       	call   0x135e2f
  3e:	44                   	rex.R
  3f:	39                   	.byte 0x39

Code starting with the faulting instruction
===========================================
   0:	8b 68 28             	mov    0x28(%rax),%ebp
   3:	44 8b b3 90 00 00 00 	mov    0x90(%rbx),%r14d
   a:	89 ef                	mov    %ebp,%edi
   c:	44 89 f6             	mov    %r14d,%esi
   f:	e8 f1 5d 13 00       	call   0x135e05
  14:	44                   	rex.R
  15:	39                   	.byte 0x39
[    2.190097][    T1] RSP: 0000:ffffc90000013b00 EFLAGS: 00010202
[    2.190097][    T1] RAX: 0000000000000000 RBX: ffffffff83c43ae0 RCX: ffffffff85362b01
[    2.190097][    T1] RDX: ffffffff84f75101 RSI: ffffffff85762e18 RDI: ffffffff85762e18
[    2.190097][    T1] RBP: ffffc90000013e48 R08: 0000000000000008 R09: ffffffff85362bf0
[    2.190097][    T1] R10: 000000005fbdd200 R11: 00000000c67180d1 R12: 0000000000000002
[    2.190097][    T1] R13: 0000000000000246 R14: 0000000000001002 R15: ffffffff841094e0
[    2.190097][    T1] FS:  0000000000000000(0000) GS:ffff8884aaed7000(0000) knlGS:0000000000000000
[    2.190097][    T1] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    2.190097][    T1] CR2: 0000000000000028 CR3: 0000000003c24000 CR4: 00000000000406f0
[    2.190097][    T1] Call Trace:
[    2.190097][    T1]  <TASK>
[ 2.190097][ T1] ? ipc_ns_init (ipc/shm.c:153) 
[ 2.190097][ T1] ? __cfi_ipc_ns_init (ipc/shm.c:150) 
[ 2.190097][ T1] ipc_ns_init (ipc/shm.c:153) 
[ 2.190097][ T1] do_one_initcall (init/main.c:1269) 
[ 2.190097][ T1] ? __lock_acquire (kernel/locking/lockdep.c:4674) 
[ 2.190097][ T1] ? next_arg (lib/cmdline.c:273) 
[ 2.190097][ T1] ? parameq (kernel/params.c:91) 
[ 2.190097][ T1] ? __sanitizer_cov_trace_switch (kernel/kcov.c:350) 
[ 2.190097][ T1] ? parse_args (kernel/params.c:?) 
[ 2.190097][ T1] do_initcall_level (init/main.c:1330) 
[ 2.190097][ T1] do_initcalls (init/main.c:1344) 
[ 2.190097][ T1] ? kernel_init (init/main.c:1471) 
[ 2.190097][ T1] kernel_init_freeable (init/main.c:1581) 
[ 2.190097][ T1] ? __cfi_kernel_init (init/main.c:1461) 
[ 2.190097][ T1] kernel_init (init/main.c:1471) 
[ 2.190097][ T1] ret_from_fork (arch/x86/kernel/process.c:154) 
[ 2.190097][ T1] ? __cfi_kernel_init (init/main.c:1461) 
[ 2.190097][ T1] ret_from_fork_asm (arch/x86/entry/entry_64.S:255) 
[    2.190097][    T1]  </TASK>
[    2.190097][    T1] Modules linked in:
[    2.190097][    T1] CR2: 0000000000000028
[    2.190097][    T1] ---[ end trace 0000000000000000 ]---
[ 2.190097][ T1] RIP: 0010:__ns_tree_add_raw (kernel/nstree.c:95) 
[ 2.190097][ T1] Code: 48 89 7c 24 10 31 f6 31 d2 31 c9 41 b8 01 00 00 00 45 31 c9 48 89 44 24 08 50 e8 d0 bb 04 00 48 83 c4 08 ff 43 18 49 8b 47 08 <8b> 68 28 44 8b b3 90 00 00 00 89 ef 44 89 f6 e8 f1 5d 13 00 44 39
All code
========
   0:	48 89 7c 24 10       	mov    %rdi,0x10(%rsp)
   5:	31 f6                	xor    %esi,%esi
   7:	31 d2                	xor    %edx,%edx
   9:	31 c9                	xor    %ecx,%ecx
   b:	41 b8 01 00 00 00    	mov    $0x1,%r8d
  11:	45 31 c9             	xor    %r9d,%r9d
  14:	48 89 44 24 08       	mov    %rax,0x8(%rsp)
  19:	50                   	push   %rax
  1a:	e8 d0 bb 04 00       	call   0x4bbef
  1f:	48 83 c4 08          	add    $0x8,%rsp
  23:	ff 43 18             	incl   0x18(%rbx)
  26:	49 8b 47 08          	mov    0x8(%r15),%rax
  2a:*	8b 68 28             	mov    0x28(%rax),%ebp		<-- trapping instruction
  2d:	44 8b b3 90 00 00 00 	mov    0x90(%rbx),%r14d
  34:	89 ef                	mov    %ebp,%edi
  36:	44 89 f6             	mov    %r14d,%esi
  39:	e8 f1 5d 13 00       	call   0x135e2f
  3e:	44                   	rex.R
  3f:	39                   	.byte 0x39

Code starting with the faulting instruction
===========================================
   0:	8b 68 28             	mov    0x28(%rax),%ebp
   3:	44 8b b3 90 00 00 00 	mov    0x90(%rbx),%r14d
   a:	89 ef                	mov    %ebp,%edi
   c:	44 89 f6             	mov    %r14d,%esi
   f:	e8 f1 5d 13 00       	call   0x135e05
  14:	44                   	rex.R
  15:	39                   	.byte 0x39


The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20250923/202509231700.dff6cd4d-lkp@intel.com



-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-09-24  7:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-24  7:33 [brauner-github:namespace-6.18.file_handles] [ipc] c8e087bf68: BUG:kernel_NULL_pointer_dereference,address kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.