From: kernel test robot <oliver.sang@intel.com>
To: Christian Brauner <brauner@kernel.org>
Cc: <oe-lkp@lists.linux.dev>, <lkp@intel.com>,
Christian Brauner <christianvanbrauner@gmail.com>,
<oliver.sang@intel.com>
Subject: [brauner-github:namespace-6.18.file_handles] [ipc] c8e087bf68: BUG:kernel_NULL_pointer_dereference,address
Date: Wed, 24 Sep 2025 15:33:24 +0800 [thread overview]
Message-ID: <202509231700.dff6cd4d-lkp@intel.com> (raw)
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
reply other threads:[~2025-09-24 7:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202509231700.dff6cd4d-lkp@intel.com \
--to=oliver.sang@intel.com \
--cc=brauner@kernel.org \
--cc=christianvanbrauner@gmail.com \
--cc=lkp@intel.com \
--cc=oe-lkp@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.