All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <oliver.sang@intel.com>
To: Jiri Slaby <jslaby@suse.cz>
Cc: <oe-lkp@lists.linux.dev>, <lkp@intel.com>, <oliver.sang@intel.com>
Subject: [jirislaby:devel]  7692ca4ea5: BUG:kernel_NULL_pointer_dereference,address
Date: Fri, 29 Aug 2025 16:48:01 +0800	[thread overview]
Message-ID: <202508291640.97e82aad-lkp@intel.com> (raw)



Hello,

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

commit: 7692ca4ea522fb744009ed8f49a77e96eb1097cb ("8250 ops")
https://git.kernel.org/cgit/linux/kernel/git/jirislaby/linux.git devel

in testcase: boot

config: x86_64-rhel-9.4-rust
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)


+---------------------------------------------+------------+------------+
|                                             | d6c7cdb02e | 7692ca4ea5 |
+---------------------------------------------+------------+------------+
| boot_successes                              | 18         | 0          |
| boot_failures                               | 0          | 19         |
| BUG:kernel_NULL_pointer_dereference,address | 0          | 19         |
| Oops                                        | 0          | 19         |
| RIP:serial8250_register_8250_port           | 0          | 19         |
| Kernel_panic-not_syncing:Fatal_exception    | 0          | 19         |
+---------------------------------------------+------------+------------+


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/202508291640.97e82aad-lkp@intel.com


[   22.467865][    T1] BUG: kernel NULL pointer dereference, address: 0000000000000028
[   22.468492][    T1] #PF: supervisor read access in kernel mode
[   22.468492][    T1] #PF: error_code(0x0000) - not-present page
[   22.468492][    T1] PGD 0 P4D 0
[   22.468492][    T1] Oops: Oops: 0000 [#1] SMP PTI
[   22.468492][    T1] CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.17.0-rc2-next-20250819-00042-g7692ca4ea522 #1 PREEMPT(voluntary)
[   22.468492][    T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[ 22.468492][ T1] RIP: 0010:serial8250_register_8250_port (drivers/tty/serial/8250/8250_core.c:740) 
[ 22.468492][ T1] Code: 49 89 86 a0 01 00 00 48 8b 83 90 01 00 00 48 8b 8b 98 01 00 00 49 89 8e 98 01 00 00 49 89 86 90 01 00 00 48 8b 83 80 02 00 00 <48> 8b 40 28 49 8b 8e 80 02 00 00 48 89 41 28 48 8b 83 80 02 00 00
All code
========
   0:	49 89 86 a0 01 00 00 	mov    %rax,0x1a0(%r14)
   7:	48 8b 83 90 01 00 00 	mov    0x190(%rbx),%rax
   e:	48 8b 8b 98 01 00 00 	mov    0x198(%rbx),%rcx
  15:	49 89 8e 98 01 00 00 	mov    %rcx,0x198(%r14)
  1c:	49 89 86 90 01 00 00 	mov    %rax,0x190(%r14)
  23:	48 8b 83 80 02 00 00 	mov    0x280(%rbx),%rax
  2a:*	48 8b 40 28          	mov    0x28(%rax),%rax		<-- trapping instruction
  2e:	49 8b 8e 80 02 00 00 	mov    0x280(%r14),%rcx
  35:	48 89 41 28          	mov    %rax,0x28(%rcx)
  39:	48 8b 83 80 02 00 00 	mov    0x280(%rbx),%rax

Code starting with the faulting instruction
===========================================
   0:	48 8b 40 28          	mov    0x28(%rax),%rax
   4:	49 8b 8e 80 02 00 00 	mov    0x280(%r14),%rcx
   b:	48 89 41 28          	mov    %rax,0x28(%rcx)
   f:	48 8b 83 80 02 00 00 	mov    0x280(%rbx),%rax
[   22.468492][    T1] RSP: 0000:ffffcf4f000136a8 EFLAGS: 00010202
[   22.468492][    T1] RAX: 0000000000000000 RBX: ffffcf4f000136d0 RCX: 0000000000000000
[   22.468492][    T1] RDX: 0000000000000000 RSI: ffffcf4f000136d0 RDI: ffffffffaf293700
[   22.468492][    T1] RBP: 0000000000000001 R08: 0000000000000401 R09: 0000000000000000
[   22.468492][    T1] R10: ffffcf4f000136d0 R11: ffffffffacfecab0 R12: ffff8e5b417916a0
[   22.468492][    T1] R13: ffffcf4f00013a98 R14: ffffffffaf293700 R15: 00000000ffffffed
[   22.468492][    T1] FS:  0000000000000000(0000) GS:ffff8e5ec0c2e000(0000) knlGS:0000000000000000
[   22.468492][    T1] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   22.468492][    T1] CR2: 0000000000000028 CR3: 00000002b9620000 CR4: 00000000000406f0
[   22.468492][    T1] Call Trace:
[   22.468492][    T1]  <TASK>
[ 22.468492][ T1] serial_pnp_probe (drivers/tty/serial/8250/8250_pnp.c:480) 
[ 22.468492][ T1] pnp_device_probe (drivers/pnp/driver.c:113) 
[ 22.468492][ T1] really_probe (drivers/base/dd.c:583) 
[ 22.468492][ T1] __driver_probe_device (drivers/base/dd.c:?) 
[ 22.468492][ T1] driver_probe_device (drivers/base/dd.c:831) 
[ 22.468492][ T1] __driver_attach (drivers/base/dd.c:1218) 
[ 22.468492][ T1] ? driver_attach (drivers/base/dd.c:1158) 
[ 22.468492][ T1] bus_for_each_dev (drivers/base/bus.c:369) 
[ 22.468492][ T1] bus_add_driver (drivers/base/bus.c:678) 
[ 22.468492][ T1] driver_register (drivers/base/driver.c:250) 
[ 22.468492][ T1] serial8250_init (drivers/tty/serial/8250/8250_platform.c:322) 
[ 22.468492][ T1] ? __serial8250_isa_init_ports (drivers/tty/serial/8250/8250_platform.c:302) 
[ 22.468492][ T1] do_one_initcall (init/main.c:1281) 
[ 22.468492][ T1] ? chacha_block_generic (lib/crypto/chacha.c:86) 
[ 22.468492][ T1] ? crng_fast_key_erasure (include/linux/string.h:366 drivers/char/random.c:330) 
[ 22.468492][ T1] ? crng_make_state (include/linux/spinlock.h:406 drivers/char/random.c:363) 
[ 22.468492][ T1] ? get_random_u32 (include/linux/string.h:366 include/crypto/chacha.h:119 drivers/char/random.c:425 drivers/char/random.c:554) 
[ 22.468492][ T1] ? sysvec_apic_timer_interrupt (arch/x86/kernel/apic/apic.c:1050) 
[ 22.468492][ T1] ? asm_sysvec_apic_timer_interrupt (arch/x86/include/asm/idtentry.h:702) 
[ 22.468492][ T1] ? parameq (kernel/params.c:? kernel/params.c:91 kernel/params.c:99) 
[ 22.468492][ T1] ? parameq (kernel/params.c:90 kernel/params.c:99) 
[ 22.468492][ T1] ? do_initcall_level (init/main.c:1327) 
[ 22.468492][ T1] ? parse_args (kernel/params.c:153) 
[ 22.468492][ T1] do_initcall_level (init/main.c:1342) 
[ 22.468492][ T1] do_initcalls (init/main.c:1356) 
[ 22.468492][ T1] kernel_init_freeable (init/main.c:1593) 
[ 22.468492][ T1] ? rest_init (init/main.c:1473) 
[ 22.468492][ T1] kernel_init (init/main.c:1483) 
[ 22.468492][ T1] ret_from_fork (arch/x86/kernel/process.c:154) 
[ 22.468492][ T1] ? rest_init (init/main.c:1473) 
[ 22.468492][ T1] ret_from_fork_asm (arch/x86/entry/entry_64.S:258) 
[   22.468492][    T1]  </TASK>
[   22.468492][    T1] Modules linked in:
[   22.468492][    T1] CR2: 0000000000000028
[   22.468492][    T1] ---[ end trace 0000000000000000 ]---
[ 22.468492][ T1] RIP: 0010:serial8250_register_8250_port (drivers/tty/serial/8250/8250_core.c:740) 
[ 22.468492][ T1] Code: 49 89 86 a0 01 00 00 48 8b 83 90 01 00 00 48 8b 8b 98 01 00 00 49 89 8e 98 01 00 00 49 89 86 90 01 00 00 48 8b 83 80 02 00 00 <48> 8b 40 28 49 8b 8e 80 02 00 00 48 89 41 28 48 8b 83 80 02 00 00
All code
========
   0:	49 89 86 a0 01 00 00 	mov    %rax,0x1a0(%r14)
   7:	48 8b 83 90 01 00 00 	mov    0x190(%rbx),%rax
   e:	48 8b 8b 98 01 00 00 	mov    0x198(%rbx),%rcx
  15:	49 89 8e 98 01 00 00 	mov    %rcx,0x198(%r14)
  1c:	49 89 86 90 01 00 00 	mov    %rax,0x190(%r14)
  23:	48 8b 83 80 02 00 00 	mov    0x280(%rbx),%rax
  2a:*	48 8b 40 28          	mov    0x28(%rax),%rax		<-- trapping instruction
  2e:	49 8b 8e 80 02 00 00 	mov    0x280(%r14),%rcx
  35:	48 89 41 28          	mov    %rax,0x28(%rcx)
  39:	48 8b 83 80 02 00 00 	mov    0x280(%rbx),%rax

Code starting with the faulting instruction
===========================================
   0:	48 8b 40 28          	mov    0x28(%rax),%rax
   4:	49 8b 8e 80 02 00 00 	mov    0x280(%r14),%rcx
   b:	48 89 41 28          	mov    %rax,0x28(%rcx)
   f:	48 8b 83 80 02 00 00 	mov    0x280(%rbx),%rax


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



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


                 reply	other threads:[~2025-08-29  8:48 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=202508291640.97e82aad-lkp@intel.com \
    --to=oliver.sang@intel.com \
    --cc=jslaby@suse.cz \
    --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.