[LTP] [linus:master] [fs] bc986b1d75: Kernel_panic-not_syncing:softlockup:hung_tasks

kernel test robot
2025-09-30T06:42:07Z

Hello,

kernel test robot noticed "Kernel_panic-not_syncing:softlockup:hung_tasks" on:

commit: bc986b1d756482a5ec2d7d9625229d9b9df95ae1 ("fs: stop accessing ->i_count directly in f2fs and gfs2")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master

in testcase: ltp
version: ltp-x86_64-220f579cd-1_20250920
with following parameters:

disk: 1HDD
fs: f2fs
test: fs_readonly-03

config: x86_64-rhel-9.4-ltp
compiler: gcc-14
test machine: 8 threads 1 sockets Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz (Haswell) with 16G memory

(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/202509301450.138b448f-lkp@intel.com

watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [f2fs_ckpt-8:17:5378]
Modules linked in: dm_mod f2fs binfmt_misc snd_hda_codec_intelhdmi snd_hda_codec_hdmi btrfs blake2b_generic intel_rapl_msr xor intel_rapl_common zstd_compress x86_pkg_temp_thermal intel_powerclamp raid6_pq coretemp platform_profile i915 sd_mod sg kvm_intel snd_hda_codec_alc269 snd_hda_scodec_component snd_hda_codec_realtek_lib dell_wmi snd_hda_codec_generic intel_gtt dell_smbios snd_hda_intel kvm drm_buddy dell_wmi_descriptor snd_hda_codec sparse_keymap snd_hda_core irqbypass ahci rfkill ghash_clmulni_intel ttm snd_intel_dspcfg drm_display_helper rapl snd_intel_sdw_acpi libahci snd_hwdep i2c_i801 dcdbas mei_wdt intel_cstate cec lpc_ich snd_pcm i2c_smbus libata drm_client_lib intel_uncore mei_me snd_timer pcspkr drm_kms_helper snd mei soundcore video wmi drm fuse nfnetlink
CPU: 0 UID: 0 PID: 5378 Comm: f2fs_ckpt-8:17 Tainted: G S 6.17.0-rc1-00015-gbc986b1d7564 #1 PREEMPT(voluntary)
Tainted: [S]=CPU_OUT_OF_SPEC
Hardware name: Dell Inc. OptiPlex 9020/0DNKMN, BIOS A05 12/05/2013
RIP: 0010:native_queued_spin_lock_slowpath+0x704/0xad0
Code: 66 85 c0 74 39 48 b8 00 00 00 00 00 fc ff df 49 89 df 49 89 de 49 c1 ef 03 41 83 e6 07 49 01 c7 41 83 c6 03 f3 90 41 0f b6 07 <41> 38 c6 7c 08 84 c0 0f 85 5d 02 00 00 8b 03 66 85 c0 75 e6 89 44
RSP: 0018:ffffc90001a4f890 EFLAGS: 00000202
RAX: 0000000000000000 RBX: ffff88810d440080 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff88810d440082
RBP: ffff88836da42200 R08: 0000000000000001 R09: ffffed1021a88010
R10: ffff88810d440083 R11: 0000000000000000 R12: 1ffff92000349f14
R13: 0000000000040000 R14: 0000000000000003 R15: ffffed1021a88010
FS: 0000000000000000(0000) GS:ffff8883e693e000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f99f429e0f0 CR3: 000000041b872002 CR4: 00000000001726f0
Call Trace:
<TASK>
? __pfx_native_queued_spin_lock_slowpath+0x10/0x10
? __pfx__raw_spin_lock+0x10/0x10
_raw_spin_lock+0xca/0xe0
? __pfx__raw_spin_lock+0x10/0x10
? __pfx__raw_spin_lock+0x10/0x10
igrab+0x19/0x90
block_operations+0x4b5/0xdb0 [f2fs]
? __pfx_block_operations+0x10/0x10 [f2fs]
? update_curr+0x3fe/0x550
? down_write+0xc0/0x140
? __pfx_down_write+0x10/0x10
f2fs_write_checkpoint+0x1fe/0xf00 [f2fs]
? complete+0xb9/0x200
__checkpoint_and_complete_reqs+0xe1/0x310 [f2fs]
? __pfx__raw_spin_lock_irqsave+0x10/0x10
? __pfx___checkpoint_and_complete_reqs+0x10/0x10 [f2fs]
? prepare_to_wait_event+0x8e/0x720
issue_checkpoint_thread+0xc1/0x230 [f2fs]
? __pfx_issue_checkpoint_thread+0x10/0x10 [f2fs]
? __pfx_autoremove_wake_function+0x10/0x10
? __kthread_parkme+0xb1/0x1f0
? __pfx_issue_checkpoint_thread+0x10/0x10 [f2fs]
? __pfx_issue_checkpoint_thread+0x10/0x10 [f2fs]
kthread+0x39b/0x750
? __pfx_kthread+0x10/0x10
? __pfx__raw_spin_lock_irq+0x10/0x10
? __pfx_kthread+0x10/0x10
? __pfx_kthread+0x10/0x10
ret_from_fork+0x24c/0x310
? __pfx_kthread+0x10/0x10
ret_from_fork_asm+0x1a/0x30
</TASK>
Kernel panic - not syncing: softlockup: hung tasks
CPU: 0 UID: 0 PID: 5378 Comm: f2fs_ckpt-8:17 Tainted: G S L 6.17.0-rc1-00015-gbc986b1d7564 #1 PREEMPT(voluntary)
Tainted: [S]=CPU_OUT_OF_SPEC, [L]=SOFTLOCKUP
Hardware name: Dell Inc. OptiPlex 9020/0DNKMN, BIOS A05 12/05/2013
Call Trace:
<IRQ>
dump_stack_lvl+0x47/0x70
vpanic+0x1e4/0x480
? __pfx_vpanic+0x10/0x10
? show_trace_log_lvl+0x2a4/0x2e0
panic+0xbc/0xbc
? __pfx_panic+0x10/0x10
? ret_from_fork_asm+0x1a/0x30
? add_taint+0x26/0x70
watchdog_timer_fn.cold+0xd0/0xe4
? __pfx_watchdog_timer_fn+0x10/0x10
__hrtimer_run_queues+0x2c4/0x660
? sched_clock_cpu+0x68/0x520
? __pfx___hrtimer_run_queues+0x10/0x10
? ktime_get_update_offsets_now+0x82/0x320
? sched_clock+0xc/0x30
hrtimer_interrupt+0x2ce/0x7c0
__sysvec_apic_timer_interrupt+0x89/0x230
sysvec_apic_timer_interrupt+0x68/0x90
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x16/0x20
RIP: 0010:native_queued_spin_lock_slowpath+0x704/0xad0
Code: 66 85 c0 74 39 48 b8 00 00 00 00 00 fc ff df 49 89 df 49 89 de 49 c1 ef 03 41 83 e6 07 49 01 c7 41 83 c6 03 f3 90 41 0f b6 07 <41> 38 c6 7c 08 84 c0 0f 85 5d 02 00 00 8b 03 66 85 c0 75 e6 89 44
RSP: 0018:ffffc90001a4f890 EFLAGS: 00000202
RAX: 0000000000000000 RBX: ffff88810d440080 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff88810d440082
RBP: ffff88836da42200 R08: 0000000000000001 R09: ffffed1021a88010
R10: ffff88810d440083 R11: 0000000000000000 R12: 1ffff92000349f14
R13: 0000000000040000 R14: 0000000000000003 R15: ffffed1021a88010
? __pfx_native_queued_spin_lock_slowpath+0x10/0x10
? __pfx__raw_spin_lock+0x10/0x10
_raw_spin_lock+0xca/0xe0
? __pfx__raw_spin_lock+0x10/0x10
? __pfx__raw_spin_lock+0x10/0x10
igrab+0x19/0x90
block_operations+0x4b5/0xdb0 [f2fs]
? __pfx_block_operations+0x10/0x10 [f2fs]
? update_curr+0x3fe/0x550
? down_write+0xc0/0x140
? __pfx_down_write+0x10/0x10
f2fs_write_checkpoint+0x1fe/0xf00 [f2fs]
? complete+0xb9/0x200
__checkpoint_and_complete_reqs+0xe1/0x310 [f2fs]
? __pfx__raw_spin_lock_irqsave+0x10/0x10
? __pfx___checkpoint_and_complete_reqs+0x10/0x10 [f2fs]
? prepare_to_wait_event+0x8e/0x720
issue_checkpoint_thread+0xc1/0x230 [f2fs]
? __pfx_issue_checkpoint_thread+0x10/0x10 [f2fs]
? __pfx_autoremove_wake_function+0x10/0x10
? __kthread_parkme+0xb1/0x1f0
? __pfx_issue_checkpoint_thread+0x10/0x10 [f2fs]
? __pfx_issue_checkpoint_thread+0x10/0x10 [f2fs]
kthread+0x39b/0x750
? __pfx_kthread+0x10/0x10
? __pfx__raw_spin_lock_irq+0x10/0x10
? __pfx_kthread+0x10/0x10
? __pfx_kthread+0x10/0x10
ret_from_fork+0x24c/0x310
? __pfx_kthread+0x10/0x10
ret_from_fork_asm+0x1a/0x30
</TASK>

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

--
0-DAY CI Kernel Test Service