From: Oliver Sang <oliver.sang@intel.com>
To: Luis Chamberlain <mcgrof@kernel.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>,
Matthew Wilcox <willy@infradead.org>, Jan Kara <jack@suse.cz>,
David Hildenbrand <david@redhat.com>,
Alistair Popple <apopple@nvidia.com>, <linux-mm@kvack.org>,
Christian Brauner <brauner@kernel.org>,
Hannes Reinecke <hare@suse.de>, <oe-lkp@lists.linux.dev>,
<lkp@intel.com>, John Garry <john.g.garry@oracle.com>,
<linux-block@vger.kernel.org>, <ltp@lists.linux.it>,
Pankaj Raghav <p.raghav@samsung.com>,
Daniel Gomez <da.gomez@samsung.com>,
David Bueso <dave@stgolabs.net>, <oliver.sang@intel.com>
Subject: Re: [linux-next:master] [block/bdev] 3c20917120: BUG:sleeping_function_called_from_invalid_context_at_mm/util.c
Date: Tue, 25 Mar 2025 14:52:49 +0800 [thread overview]
Message-ID: <Z+JSwb8BT0tZrSrx@xsang-OptiPlex-9020> (raw)
In-Reply-To: <Z9-zL3pRpCHm5a0w@bombadil.infradead.org>
[-- Attachment #1: Type: text/plain, Size: 6570 bytes --]
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
[-- Attachment #2: kmsg.xz --]
[-- Type: application/x-xz, Size: 31488 bytes --]
next prev parent reply other threads:[~2025-03-25 6:53 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <202503101536.27099c77-lkp@intel.com>
[not found] ` <20250311-testphasen-behelfen-09b950bbecbf@brauner>
[not found] ` <Z9kEdPLNT8SOyOQT@xsang-OptiPlex-9020>
2025-03-18 8:15 ` Luis Chamberlain
2025-03-18 14:37 ` Matthew Wilcox
2025-03-18 23:17 ` Luis Chamberlain
2025-03-19 2:58 ` Matthew Wilcox
2025-03-19 16:55 ` Luis Chamberlain
2025-03-19 19:16 ` Luis Chamberlain
2025-03-19 19:24 ` Matthew Wilcox
2025-03-20 12:11 ` Luis Chamberlain
2025-03-20 12:18 ` Luis Chamberlain
2025-03-22 23:14 ` Johannes Weiner
2025-03-23 1:02 ` Luis Chamberlain
2025-03-23 7:07 ` Luis Chamberlain
2025-03-25 6:52 ` Oliver Sang [this message]
2025-03-28 1:44 ` Luis Chamberlain
2025-03-28 4:21 ` Luis Chamberlain
2025-03-28 9:47 ` Luis Chamberlain
2025-03-28 19:09 ` Luis Chamberlain
2025-03-29 0:08 ` Luis Chamberlain
2025-03-29 1:06 ` Luis Chamberlain
2025-03-31 7:45 ` Sebastian Andrzej Siewior
2025-04-08 16:43 ` Darrick J. Wong
2025-04-08 17:06 ` Luis Chamberlain
2025-04-08 17:24 ` Luis Chamberlain
2025-04-08 17:48 ` Darrick J. Wong
2025-04-08 17:51 ` Matthew Wilcox
2025-04-08 18:02 ` Darrick J. Wong
2025-04-08 18:51 ` Matthew Wilcox
2025-04-08 19:13 ` Luis Chamberlain
2025-04-08 19:13 ` Luis Chamberlain
2025-04-08 18:06 ` Luis Chamberlain
2025-03-20 1:24 ` Lai, Yi
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=Z+JSwb8BT0tZrSrx@xsang-OptiPlex-9020 \
--to=oliver.sang@intel.com \
--cc=apopple@nvidia.com \
--cc=brauner@kernel.org \
--cc=da.gomez@samsung.com \
--cc=dave@stgolabs.net \
--cc=david@redhat.com \
--cc=hannes@cmpxchg.org \
--cc=hare@suse.de \
--cc=jack@suse.cz \
--cc=john.g.garry@oracle.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lkp@intel.com \
--cc=ltp@lists.linux.it \
--cc=mcgrof@kernel.org \
--cc=oe-lkp@lists.linux.dev \
--cc=p.raghav@samsung.com \
--cc=willy@infradead.org \
/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