lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202509241632.3a1187a5-lkp@intel.com>
Date: Thu, 25 Sep 2025 13:46:46 +0800
From: kernel test robot <oliver.sang@...el.com>
To: Christian Brauner <brauner@...nel.org>
CC: <oe-lkp@...ts.linux.dev>, <lkp@...el.com>, <linux-kernel@...r.kernel.org>,
	<oliver.sang@...el.com>
Subject: [linux-next:master] [ipc]  74b24a582e:
 Oops:general_protection_fault,probably_for_non-canonical_address#:#[##]SMP_KASAN



Hello,


we reported
"[brauner-github:namespace-6.18.file_handles] [ipc]  c8e087bf68: BUG:kernel_NULL_pointer_dereference,address"
in
https://lore.kernel.org/all/202509231700.dff6cd4d-lkp@intel.com/

now we noticed this commit is in linux-next/master and found similar issues
in our tests. so report again FYI.


kernel test robot noticed "Oops:general_protection_fault,probably_for_non-canonical_address#:#[##]SMP_KASAN" on:

commit: 74b24a582e1ff3960f0454f57afc2bcdbc52562e ("ipc: support ns lookup")
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master

in testcase: boot

config: x86_64-randconfig-007-20250922
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)


+----------------------------------------------------------------------------------+------------+------------+
|                                                                                  | 7c60593985 | 74b24a582e |
+----------------------------------------------------------------------------------+------------+------------+
| boot_successes                                                                   | 12         | 0          |
| boot_failures                                                                    | 0          | 12         |
| Oops:general_protection_fault,probably_for_non-canonical_address#:#[##]SMP_KASAN | 0          | 12         |
| KASAN:null-ptr-deref_in_range[#-#]                                               | 0          | 12         |
| RIP:__ns_tree_add_raw                                                            | 0          | 12         |
| Kernel_panic-not_syncing:Fatal_exception                                         | 0          | 12         |
+----------------------------------------------------------------------------------+------------+------------+


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@...el.com>
| Closes: https://lore.kernel.org/oe-lkp/202509241632.3a1187a5-lkp@intel.com


[    2.135918][    T1] Oops: general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] SMP KASAN
[    2.137777][    T1] KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
[    2.137777][    T1] CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.17.0-rc4-00022-g74b24a582e1f #1 PREEMPT  38d15ed75bef35c8d0bf70c9ae8ec80a13adc51c
[ 2.137777][ T1] RIP: 0010:__ns_tree_add_raw (kbuild/src/consumer/kernel/nstree.c:95) 
[ 2.137777][ T1] Code: 45 d0 4c 8d 70 08 4c 89 f0 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 f7 e8 ec 09 5e 00 4d 8b 36 49 83 c6 10 4c 89 f0 48 c1 e8 03 <42> 0f b6 04 28 84 c0 0f 85 1c 04 00 00 41 8b 1e 4d 8d b4 24 90 00
All code
========
   0:	45 d0 4c 8d 70       	rex.RB rorb $1,0x70(%r13,%rcx,4)
   5:	08 4c 89 f0          	or     %cl,-0x10(%rcx,%rcx,4)
   9:	48 c1 e8 03          	shr    $0x3,%rax
   d:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1)
  12:	74 08                	je     0x1c
  14:	4c 89 f7             	mov    %r14,%rdi
  17:	e8 ec 09 5e 00       	call   0x5e0a08
  1c:	4d 8b 36             	mov    (%r14),%r14
  1f:	49 83 c6 10          	add    $0x10,%r14
  23:	4c 89 f0             	mov    %r14,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
  2a:*	42 0f b6 04 28       	movzbl (%rax,%r13,1),%eax		<-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 1c 04 00 00    	jne    0x453
  37:	41 8b 1e             	mov    (%r14),%ebx
  3a:	4d                   	rex.WRB
  3b:	8d                   	.byte 0x8d
  3c:	b4 24                	mov    $0x24,%ah
  3e:	90                   	nop
	...

Code starting with the faulting instruction
===========================================
   0:	42 0f b6 04 28       	movzbl (%rax,%r13,1),%eax
   5:	84 c0                	test   %al,%al
   7:	0f 85 1c 04 00 00    	jne    0x429
   d:	41 8b 1e             	mov    (%r14),%ebx
  10:	4d                   	rex.WRB
  11:	8d                   	.byte 0x8d
  12:	b4 24                	mov    $0x24,%ah
  14:	90                   	nop
	...
[    2.137777][    T1] RSP: 0000:ffffc9000001f9f8 EFLAGS: 00010202
[    2.137777][    T1] RAX: 0000000000000002 RBX: ffffffff85927a58 RCX: 0000000000000000
[    2.137777][    T1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[    2.137777][    T1] RBP: ffffc9000001fa78 R08: 0000000000000000 R09: 0000000000000000
[    2.137777][    T1] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff85927a40
[    2.137777][    T1] R13: dffffc0000000000 R14: 0000000000000010 R15: 1ffffffff0bf3eac
[    2.137777][    T1] FS:  0000000000000000(0000) GS:ffff888428598000(0000) knlGS:0000000000000000
[    2.137777][    T1] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    2.137777][    T1] CR2: ffff88843ffff000 CR3: 00000000058b7000 CR4: 00000000000406b0
[    2.137777][    T1] Call Trace:
[    2.137777][    T1]  <TASK>
[ 2.137777][ T1] ? ipc_ns_init (kbuild/src/consumer/ipc/shm.c:153) 
[ 2.137777][ T1] ? __cfi_ipc_ns_init (kbuild/src/consumer/ipc/shm.c:150) 
[ 2.137777][ T1] ipc_ns_init (kbuild/src/consumer/ipc/shm.c:153) 
[ 2.137777][ T1] do_one_initcall (kbuild/src/consumer/init/main.c:1269) 


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



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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ