[LTP] [linux-next:master] [block/bdev] 3c20917120: BUG:sleeping_function_called_from_invalid_context_at_mm/util.c
Oliver Sang
oliver.sang@intel.com
Tue Mar 25 07:52:49 CET 2025
hi, Luis,
On Sun, Mar 23, 2025 at 12:07:27AM -0700, Luis Chamberlain wrote:
> On Sat, Mar 22, 2025 at 06:02:13PM -0700, Luis Chamberlain wrote:
> > On Sat, Mar 22, 2025 at 07:14:40PM -0400, Johannes Weiner wrote:
> > > Hey Luis,
> > >
> > > This looks like the same issue the bot reported here:
> > >
> > > https://lore.kernel.org/all/20250321135524.GA1888695@cmpxchg.org/
> > >
> > > There is a fix for it queued in next-20250318 and later. Could you
> > > please double check with your reproducer against a more recent next?
> >
> > Confirmed, at least it's been 30 minutes and no crashes now where as
> > before it would crash in 1 minute. I'll let it soak for 2.5 hours in
> > the hopes I can trigger the warning originally reported by this thread.
> >
> > Even though from code inspection I see how the kernel warning would
> > trigger I just want to force trigger it on a test, and I can't yet.
>
> Survied 5 hours now. This certainly fixed that crash.
>
> As for the kernel warning, I can't yet reproduce that, so trying to
> run generic/750 forever and looping
> ./testcases/kernel/syscalls/close_range/close_range01
> and yet nothing.
>
> Oliver can you reproduce the kernel warning on next-20250321 ?
the issue still exists on
9388ec571cb1ad (tag: next-20250321, linux-next/master) Add linux-next specific files for 20250321
but randomly (reproduced 7 times in 12 runs, then ltp.close_range01 also failed.
on another 5 times, the issue cannot be reproduced then ltp.close_range01 pass)
one dmesg is attached FYI.
kern :err : [ 215.378500] BUG: sleeping function called from invalid context at mm/util.c:743
kern :err : [ 215.386652] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 52, name: kcompactd0
kern :err : [ 215.395438] preempt_count: 1, expected: 0
kern :err : [ 215.400216] RCU nest depth: 0, expected: 0
kern :warn : [ 215.405081] CPU: 0 UID: 0 PID: 52 Comm: kcompactd0 Tainted: G S 6.14.0-rc7-next-20250321 #1 PREEMPT(voluntary)
kern :warn : [ 215.405095] Tainted: [S]=CPU_OUT_OF_SPEC
kern :warn : [ 215.405097] Hardware name: Hewlett-Packard HP Pro 3340 MT/17A1, BIOS 8.07 01/24/2013
kern :warn : [ 215.405101] Call Trace:
kern :warn : [ 215.405104] <TASK>
kern :warn : [ 215.405107] dump_stack_lvl+0x4f/0x70
kern :warn : [ 215.405118] __might_resched+0x2c6/0x450
kern :warn : [ 215.405128] folio_mc_copy+0xca/0x1f0
kern :warn : [ 215.405137] ? _raw_spin_lock+0x80/0xe0
kern :warn : [ 215.405145] __migrate_folio+0x117/0x2e0
kern :warn : [ 215.405154] __buffer_migrate_folio+0x563/0x670
kern :warn : [ 215.405161] move_to_new_folio+0xf5/0x410
kern :warn : [ 215.405168] migrate_folio_move+0x210/0x770
kern :warn : [ 215.405173] ? __pfx_compaction_free+0x10/0x10
kern :warn : [ 215.405181] ? __pfx_migrate_folio_move+0x10/0x10
kern :warn : [ 215.405187] ? compaction_alloc_noprof+0x441/0x720
kern :warn : [ 215.405195] ? __pfx_compaction_alloc+0x10/0x10
kern :warn : [ 215.405202] ? __pfx_compaction_free+0x10/0x10
kern :warn : [ 215.405208] ? __pfx_compaction_free+0x10/0x10
kern :warn : [ 215.405213] ? migrate_folio_unmap+0x329/0x890
kern :warn : [ 215.405221] migrate_pages_batch+0xe67/0x1800
kern :warn : [ 215.405227] ? __pfx_compaction_free+0x10/0x10
kern :warn : [ 215.405236] ? __pfx_migrate_pages_batch+0x10/0x10
kern :warn : [ 215.405243] ? pick_next_task_fair+0x304/0xba0
kern :warn : [ 215.405253] ? finish_task_switch+0x155/0x750
kern :warn : [ 215.405260] ? __switch_to+0x5ba/0x1020
kern :warn : [ 215.405268] migrate_pages_sync+0x10b/0x8e0
kern :warn : [ 215.405275] ? __pfx_compaction_alloc+0x10/0x10
kern :warn : [ 215.405281] ? __pfx_compaction_free+0x10/0x10
kern :warn : [ 215.405289] ? __pfx_migrate_pages_sync+0x10/0x10
kern :warn : [ 215.405295] ? set_pfnblock_flags_mask+0x178/0x220
kern :warn : [ 215.405303] ? __pfx_lru_gen_del_folio+0x10/0x10
kern :warn : [ 215.405310] ? __pfx_compaction_alloc+0x10/0x10
kern :warn : [ 215.405316] ? __pfx_compaction_free+0x10/0x10
kern :warn : [ 215.405323] migrate_pages+0x842/0xe30
kern :warn : [ 215.405331] ? __pfx_compaction_alloc+0x10/0x10
kern :warn : [ 215.405337] ? __pfx_compaction_free+0x10/0x10
kern :warn : [ 215.405345] ? __pfx_migrate_pages+0x10/0x10
kern :warn : [ 215.405351] ? __compact_finished+0x91b/0xbd0
kern :warn : [ 215.405359] ? isolate_migratepages+0x32d/0xbd0
kern :warn : [ 215.405367] compact_zone+0x9df/0x16c0
kern :warn : [ 215.405377] ? __pfx_compact_zone+0x10/0x10
kern :warn : [ 215.405383] ? _raw_spin_lock_irqsave+0x86/0xe0
kern :warn : [ 215.405390] ? __pfx__raw_spin_lock_irqsave+0x10/0x10
kern :warn : [ 215.405397] compact_node+0x158/0x250
kern :warn : [ 215.405405] ? __pfx_compact_node+0x10/0x10
kern :warn : [ 215.405416] ? __pfx_extfrag_for_order+0x10/0x10
kern :warn : [ 215.405425] ? __pfx_mutex_unlock+0x10/0x10
kern :warn : [ 215.405432] ? finish_wait+0xd1/0x280
kern :warn : [ 215.405441] kcompactd+0x5d0/0xa30
kern :warn : [ 215.405450] ? __pfx_kcompactd+0x10/0x10
kern :warn : [ 215.405456] ? _raw_spin_lock_irqsave+0x86/0xe0
kern :warn : [ 215.405462] ? __pfx__raw_spin_lock_irqsave+0x10/0x10
kern :warn : [ 215.405469] ? __pfx_autoremove_wake_function+0x10/0x10
kern :warn : [ 215.405477] ? __kthread_parkme+0xba/0x1e0
kern :warn : [ 215.405485] ? __pfx_kcompactd+0x10/0x10
kern :warn : [ 215.405492] kthread+0x3a0/0x770
kern :warn : [ 215.405498] ? __pfx_kthread+0x10/0x10
kern :warn : [ 215.405504] ? __pfx_kthread+0x10/0x10
kern :warn : [ 215.405510] ret_from_fork+0x30/0x70
kern :warn : [ 215.405516] ? __pfx_kthread+0x10/0x10
kern :warn : [ 215.405521] ret_from_fork_asm+0x1a/0x30
kern :warn : [ 215.405530] </TASK>
user :notice: [ 216.962224] Modules Loaded netconsole btrfs blake2b_generic xor zstd_compress raid6_pq snd_hda_codec_realtek snd_hda_codec_generic snd_hda_scodec_component intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp coretemp i915 sd_mod sg kvm_intel intel_gtt ipmi_devintf ipmi_msghandler cec kvm drm_buddy snd_hda_intel snd_intel_dspcfg ttm snd_intel_sdw_acpi ghash_clmulni_intel drm_display_helper snd_hda_codec rapl drm_client_lib intel_cstate snd_hda_core drm_kms_helper ahci snd_hwdep libahci snd_pcm wmi_bmof mei_me video intel_uncore mei lpc_ich libata snd_timer pcspkr snd i2c_i801 i2c_smbus soundcore wmi binfmt_misc loop drm fuse dm_mod ip_tables
>
> Luis
More information about the ltp
mailing list