From: kernel test robot <oliver.sang@intel.com>
To: Hannes Reinecke <hare@suse.de>
Cc: <oe-lkp@lists.linux.dev>, <lkp@intel.com>,
Christian Brauner <brauner@kernel.org>,
Luis Chamberlain <mcgrof@kernel.org>,
"Matthew Wilcox (Oracle)" <willy@infradead.org>,
John Garry <john.g.garry@oracle.com>,
<linux-block@vger.kernel.org>, <ltp@lists.linux.it>,
<oliver.sang@intel.com>
Subject: [linux-next:master] [block/bdev] 3c20917120: BUG:sleeping_function_called_from_invalid_context_at_mm/util.c
Date: Mon, 10 Mar 2025 15:43:49 +0800 [thread overview]
Message-ID: <202503101536.27099c77-lkp@intel.com> (raw)
Hello,
kernel test robot noticed "BUG:sleeping_function_called_from_invalid_context_at_mm/util.c" on:
commit: 3c20917120ce61f2a123ca0810293872f4c6b5a4 ("block/bdev: enable large folio support for large logical block sizes")
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master
in testcase: ltp
version: ltp-x86_64-0f9d817a3-1_20250222
with following parameters:
disk: 1HDD
fs: btrfs
test: syscalls-04/close_range01
config: x86_64-rhel-9.4-ltp
compiler: gcc-12
test machine: 4 threads 1 sockets Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz (Ivy Bridge) with 8G 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/202503101536.27099c77-lkp@intel.com
[ 218.427851][ T51] BUG: sleeping function called from invalid context at mm/util.c:901
[ 218.435981][ T51] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 51, name: kcompactd0
[ 218.444773][ T51] preempt_count: 1, expected: 0
[ 218.449601][ T51] RCU nest depth: 0, expected: 0
[ 218.454476][ T51] CPU: 2 UID: 0 PID: 51 Comm: kcompactd0 Tainted: G S 6.14.0-rc1-00006-g3c20917120ce #1
[ 218.454486][ T51] Tainted: [S]=CPU_OUT_OF_SPEC
[ 218.454488][ T51] Hardware name: Hewlett-Packard HP Pro 3340 MT/17A1, BIOS 8.07 01/24/2013
[ 218.454492][ T51] Call Trace:
[ 218.454495][ T51] <TASK>
[ 218.454498][ T51] dump_stack_lvl (lib/dump_stack.c:123 (discriminator 1))
[ 218.454508][ T51] __might_resched (kernel/sched/core.c:8767)
[ 218.454517][ T51] folio_mc_copy (include/linux/sched.h:2072 mm/util.c:901)
[ 218.454525][ T51] ? _raw_spin_lock (arch/x86/include/asm/atomic.h:107 include/linux/atomic/atomic-arch-fallback.h:2170 include/linux/atomic/atomic-instrumented.h:1302 include/asm-generic/qspinlock.h:111 include/linux/spinlock.h:187 include/linux/spinlock_api_smp.h:134 kernel/locking/spinlock.c:154)
[ 218.454532][ T51] __migrate_folio+0x11a/0x2d0
[ 218.454541][ T51] __buffer_migrate_folio (mm/migrate.c:945 mm/migrate.c:876)
[ 218.454548][ T51] move_to_new_folio (mm/migrate.c:1080)
[ 218.454555][ T51] migrate_folio_move (mm/migrate.c:1360)
[ 218.454562][ T51] ? __pfx_compaction_free (mm/compaction.c:1892)
[ 218.454572][ T51] ? __pfx_migrate_folio_move (mm/migrate.c:1349)
[ 218.454578][ T51] ? compaction_alloc_noprof (arch/x86/include/asm/bitops.h:206 arch/x86/include/asm/bitops.h:238 include/asm-generic/bitops/instrumented-non-atomic.h:142 include/linux/page-flags.h:829 include/linux/page-flags.h:850 mm/internal.h:711 mm/compaction.c:1878)
[ 218.454587][ T51] ? __pfx_compaction_alloc (mm/compaction.c:1882)
[ 218.454594][ T51] ? __pfx_compaction_free (mm/compaction.c:1892)
[ 218.454601][ T51] ? __pfx_compaction_free (mm/compaction.c:1892)
[ 218.454607][ T51] ? migrate_folio_unmap (arch/x86/include/asm/atomic.h:23 include/linux/atomic/atomic-arch-fallback.h:457 include/linux/atomic/atomic-instrumented.h:33 include/linux/mm.h:1257 include/linux/mm.h:1273 mm/migrate.c:1324)
[ 218.454614][ T51] migrate_pages_batch (mm/migrate.c:1721 mm/migrate.c:1959)
[ 218.454621][ T51] ? __pfx_compaction_free (mm/compaction.c:1892)
[ 218.454631][ T51] ? __pfx_migrate_pages_batch (mm/migrate.c:1779)
[ 218.454638][ T51] ? cgroup_rstat_updated (kernel/cgroup/rstat.c:45 kernel/cgroup/rstat.c:101)
[ 218.454648][ T51] migrate_pages_sync (mm/migrate.c:1992)
[ 218.454656][ T51] ? __pfx_compaction_alloc (mm/compaction.c:1882)
[ 218.454662][ T51] ? __pfx_compaction_free (mm/compaction.c:1892)
[ 218.454669][ T51] ? lru_gen_del_folio (include/linux/list.h:215 include/linux/list.h:229 include/linux/mm_inline.h:300)
[ 218.454677][ T51] ? __pfx_migrate_pages_sync (mm/migrate.c:1982)
[ 218.454683][ T51] ? set_pfnblock_flags_mask (mm/page_alloc.c:415 (discriminator 14))
[ 218.454691][ T51] ? __pfx_lru_gen_del_folio (include/linux/mm_inline.h:284)
[ 218.454699][ T51] ? __pfx_compaction_alloc (mm/compaction.c:1882)
[ 218.454705][ T51] ? __pfx_compaction_free (mm/compaction.c:1892)
[ 218.454713][ T51] migrate_pages (mm/migrate.c:2098)
[ 218.454720][ T51] ? __pfx_compaction_alloc (mm/compaction.c:1882)
[ 218.454726][ T51] ? __pfx_compaction_free (mm/compaction.c:1892)
[ 218.454733][ T51] ? __pfx_buffer_migrate_folio_norefs (mm/migrate.c:936)
[ 218.454740][ T51] ? __pfx_migrate_pages (mm/migrate.c:2057)
[ 218.454748][ T51] ? isolate_migratepages (mm/compaction.c:2167)
[ 218.454757][ T51] compact_zone (mm/compaction.c:2667)
[ 218.454767][ T51] ? __pfx_compact_zone (mm/compaction.c:2529)
[ 218.454774][ T51] ? _raw_spin_lock_irqsave (arch/x86/include/asm/atomic.h:107 include/linux/atomic/atomic-arch-fallback.h:2170 include/linux/atomic/atomic-instrumented.h:1302 include/asm-generic/qspinlock.h:111 include/linux/spinlock.h:187 include/linux/spinlock_api_smp.h:111 kernel/locking/spinlock.c:162)
[ 218.454780][ T51] ? __pfx__raw_spin_lock_irqsave (kernel/locking/spinlock.c:161)
[ 218.454788][ T51] compact_node (mm/compaction.c:2934)
[ 218.454795][ T51] ? __pfx_compact_node (mm/compaction.c:2910)
[ 218.454807][ T51] ? __pfx_extfrag_for_order (mm/vmstat.c:1138)
[ 218.454814][ T51] ? __pfx_mutex_unlock (kernel/locking/mutex.c:518)
[ 218.454822][ T51] ? finish_wait (include/linux/list.h:215 include/linux/list.h:287 kernel/sched/wait.c:376)
[ 218.454831][ T51] kcompactd (mm/compaction.c:2235 mm/compaction.c:3227)
[ 218.454839][ T51] ? __pfx_kcompactd (mm/compaction.c:3179)
[ 218.454846][ T51] ? _raw_spin_lock_irqsave (arch/x86/include/asm/atomic.h:107 include/linux/atomic/atomic-arch-fallback.h:2170 include/linux/atomic/atomic-instrumented.h:1302 include/asm-generic/qspinlock.h:111 include/linux/spinlock.h:187 include/linux/spinlock_api_smp.h:111 kernel/locking/spinlock.c:162)
[ 218.454852][ T51] ? __pfx__raw_spin_lock_irqsave (kernel/locking/spinlock.c:161)
[ 218.454858][ T51] ? __pfx_autoremove_wake_function (kernel/sched/wait.c:383)
[ 218.454867][ T51] ? __kthread_parkme (arch/x86/include/asm/bitops.h:206 arch/x86/include/asm/bitops.h:238 include/asm-generic/bitops/instrumented-non-atomic.h:142 kernel/kthread.c:291)
[ 218.454874][ T51] ? __pfx_kcompactd (mm/compaction.c:3179)
[ 218.454880][ T51] kthread (kernel/kthread.c:464)
[ 218.454887][ T51] ? __pfx_kthread (kernel/kthread.c:413)
[ 218.454895][ T51] ? __pfx_kthread (kernel/kthread.c:413)
[ 218.454902][ T51] ret_from_fork (arch/x86/kernel/process.c:154)
[ 218.454910][ T51] ? __pfx_kthread (kernel/kthread.c:413)
[ 218.454915][ T51] ret_from_fork_asm (arch/x86/entry/entry_64.S:257)
[ 218.454924][ T51] </TASK>
The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20250310/202503101536.27099c77-lkp@intel.com
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2025-03-10 7:44 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-10 7:43 kernel test robot [this message]
2025-03-11 12:10 ` [linux-next:master] [block/bdev] 3c20917120: BUG:sleeping_function_called_from_invalid_context_at_mm/util.c Christian Brauner
2025-03-12 5:02 ` Luis Chamberlain
2025-03-18 5:28 ` Oliver Sang
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
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=202503101536.27099c77-lkp@intel.com \
--to=oliver.sang@intel.com \
--cc=brauner@kernel.org \
--cc=hare@suse.de \
--cc=john.g.garry@oracle.com \
--cc=linux-block@vger.kernel.org \
--cc=lkp@intel.com \
--cc=ltp@lists.linux.it \
--cc=mcgrof@kernel.org \
--cc=oe-lkp@lists.linux.dev \
--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