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] [serial] 34d1a9ee59: WARNING:held_lock_freed
Date: Mon, 16 Mar 2026 21:48:22 +0800 [thread overview]
Message-ID: <202603162130.75f32572-lkp@intel.com> (raw)
Hello,
kernel test robot noticed "WARNING:held_lock_freed" on:
commit: 34d1a9ee59662c2a550bddc3709519fe9e98f80b ("serial: drv->state -> xarray")
https://git.kernel.org/cgit/linux/kernel/git/jirislaby/linux.git devel
in testcase: boot
config: i386-randconfig-015-20260312
compiler: gcc-14
test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 32G
(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/202603162130.75f32572-lkp@intel.com
[ 4.142579][ T1] WARNING: held lock freed!
[ 4.142933][ T1] 7.0.0-rc3-next-20260309-04774-g34d1a9ee5966 #1 Tainted: G T
[ 4.143637][ T1] -------------------------
[ 4.143992][ T1] swapper/0/1 is freeing memory c6829400-c68297ff, with a lock still held there!
[ 4.144724][ T1] c682957c (&port->mutex){+.+.}-{4:4}, at: serial_core_remove_one_port (arch/x86/include/asm/atomic.h:85 (discriminator 4) include/linux/atomic/atomic-arch-fallback.h:787 (discriminator 4) include/linux/atomic/atomic-arch-fallback.h:1238 (discriminator 4) include/linux/atomic/atomic-instrumented.h:611 (discriminator 4) drivers/tty/serial/serial_core.c:3158 (discriminator 4))
[ 4.145473][ T1] 4 locks held by swapper/0/1:
[ 4.145847][ T1] #0: c3671348 (&dev->mutex){....}-{4:4}, at: device_lock (include/linux/device.h:896)
[ 4.145878][ T1] #1: c36708f8 (serial_mutex){+.+.}-{4:4}, at: serial8250_register_8250_port (drivers/tty/serial/8250/8250_core.c:637 drivers/tty/serial/8250/8250_core.c:700)
[ 4.145878][ T1] #2: c3670358 (port_mutex){+.+.}-{4:4}, at: serial_core_unregister_port (drivers/tty/serial/serial_core.c:3319)
[ 4.145878][ T1] #3: c682957c (&port->mutex){+.+.}-{4:4}, at: serial_core_remove_one_port (arch/x86/include/asm/atomic.h:85 (discriminator 4) include/linux/atomic/atomic-arch-fallback.h:787 (discriminator 4) include/linux/atomic/atomic-arch-fallback.h:1238 (discriminator 4) include/linux/atomic/atomic-instrumented.h:611 (discriminator 4) drivers/tty/serial/serial_core.c:3158 (discriminator 4))
[ 4.145878][ T1]
[ 4.145878][ T1] stack backtrace:
[ 4.145878][ T1] CPU: 1 UID: 0 PID: 1 Comm: swapper/0 Tainted: G T 7.0.0-rc3-next-20260309-04774-g34d1a9ee5966 #1 PREEMPTLAZY 83767d4658804fdb707cd87f036b1fb90901c8f4
[ 4.145878][ T1] Tainted: [T]=RANDSTRUCT
[ 4.145878][ T1] Call Trace:
[ 4.145878][ T1] dump_stack_lvl (lib/dump_stack.c:122)
[ 4.145878][ T1] dump_stack (lib/dump_stack.c:130)
[ 4.145878][ T1] debug_check_no_locks_freed (kernel/locking/lockdep.c:6695 kernel/locking/lockdep.c:6728)
[ 4.145878][ T1] ? serial_core_remove_one_port (include/linux/mutex.h:253 (discriminator 1) drivers/tty/serial/serial_core.c:3157 (discriminator 1))
[ 4.145878][ T1] slab_free+0x32/0xa4
[ 4.145878][ T1] ? serial_core_remove_one_port (include/linux/mutex.h:253 (discriminator 1) drivers/tty/serial/serial_core.c:3157 (discriminator 1))
[ 4.145878][ T1] kfree (mm/slub.c:6487)
[ 4.145878][ T1] serial_core_remove_one_port (include/linux/mutex.h:253 (discriminator 1) drivers/tty/serial/serial_core.c:3157 (discriminator 1))
[ 4.145878][ T1] serial_core_unregister_port (drivers/tty/serial/serial_core.c:3322)
[ 4.145878][ T1] serial_ctrl_unregister_port (drivers/tty/serial/serial_ctrl.c:47)
[ 4.145878][ T1] uart_remove_one_port (drivers/tty/serial/serial_port.c:150)
[ 4.145878][ T1] serial8250_register_8250_port (drivers/tty/serial/8250/8250_core.c:719)
[ 4.145878][ T1] serial8250_probe_platform (drivers/tty/serial/8250/8250_platform.c:196 (discriminator 1))
[ 4.145878][ T1] serial8250_probe (drivers/tty/serial/8250/8250_platform.c:218)
[ 4.145878][ T1] platform_probe (drivers/base/platform.c:1449 (discriminator 1))
[ 4.145878][ T1] really_probe (drivers/base/dd.c:585 drivers/base/dd.c:661)
[ 4.145878][ T1] __driver_probe_device (drivers/base/dd.c:803)
[ 4.145878][ T1] driver_probe_device (drivers/base/dd.c:834)
[ 4.145878][ T1] __device_attach_driver (drivers/base/dd.c:962)
[ 4.145878][ T1] bus_for_each_drv (drivers/base/bus.c:500)
[ 4.145878][ T1] __device_attach (drivers/base/dd.c:1033)
[ 4.145878][ T1] ? driver_probe_device (drivers/base/dd.c:925)
[ 4.145878][ T1] device_initial_probe (include/linux/kobject.h:193 drivers/base/base.h:73 drivers/base/dd.c:1090)
[ 4.145878][ T1] bus_probe_device (drivers/base/bus.c:576)
[ 4.145878][ T1] device_add (drivers/base/core.c:3696)
[ 4.145878][ T1] ? dev_set_name (drivers/base/core.c:3495)
[ 4.145878][ T1] platform_device_add (drivers/base/platform.c:758)
[ 4.145878][ T1] platform_device_register (drivers/base/platform.c:821)
[ 4.145878][ T1] accent_init (drivers/tty/serial/8250/8250_accent.c:28)
[ 4.145878][ T1] do_one_initcall (init/main.c:1384)
[ 4.145878][ T1] ? early_serial8250_rs2_setup (drivers/tty/serial/8250/8250_accent.c:27)
[ 4.145878][ T1] do_initcalls (init/main.c:1445 (discriminator 3) init/main.c:1462 (discriminator 3))
[ 4.145878][ T1] kernel_init_freeable (init/main.c:1696)
[ 4.145878][ T1] ? rest_init (init/main.c:1576)
[ 4.145878][ T1] kernel_init (init/main.c:1586)
[ 4.145878][ T1] ret_from_fork (arch/x86/kernel/process.c:164)
[ 4.145878][ T1] ? rest_init (init/main.c:1576)
[ 4.145878][ T1] ret_from_fork_asm (arch/x86/entry/entry_32.S:737)
[ 4.145878][ T1] entry_INT80_32 (arch/x86/entry/entry_32.S:945)
The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20260316/202603162130.75f32572-lkp@intel.com
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-03-16 13: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=202603162130.75f32572-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox