From: "Michał Mirosław" <mirq-linux@rere.qmqm.pl>
To: linux-mm@kvack.org
Subject: might_sleep() warning in do_swap_page()
Date: Fri, 23 Jul 2021 19:44:35 +0200 [thread overview]
Message-ID: <YPsAA4G9dB9BfqCY@qmqm.qmqm.pl> (raw)
Hello,
Since v5.13.2 I'm seeing following warnings every few minutes in dmesg.
This wasn't happening in v5.13.1 and earlier kernels. Have you seen
that already?
---->8<---
BUG: sleeping function called from invalid context at include/linux/pagemap.h:668
in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 736698, name: cron
INFO: lockdep is turned off.
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 3 PID: 736698 Comm: cron Tainted: G W O 5.13.4+ #442
Hardware name: System manufacturer System Product Name/P8Z68-V PRO, BIOS 3603 11/09/2012
Call Trace:
dump_stack+0x7f/0xad
___might_sleep.cold+0xf2/0x106
do_swap_page+0xdd/0x8d0
__handle_mm_fault+0x9d4/0x1330
? lock_acquire+0x19a/0x300
handle_mm_fault+0x9b/0x230
do_user_addr_fault+0x1e2/0x580
? exit_to_user_mode_prepare+0x31/0x210
exc_page_fault+0x67/0x240
? asm_exc_page_fault+0x5/0x20
asm_exc_page_fault+0x1b/0x20
RIP: 0033:0x55a22ddf18fb
Code: 81 ec 08 19 00 00 4c 8b 25 ba 7c 00 00 64 48 8b 04 25 28 00 00 00 48 89 84 24 f8 18 00 00 31 c0 41 0f b6 2c 24 40 84 ed 74 3c <e8> 30 cf ff ff 49 89 c7 0f 1f 44 00 00 49 8b 07 4c 0f be ed 42 f6
RSP: 002b:00007ffdcd82e400 EFLAGS: 00010206
RAX: 0000000000000000 RBX: 000055a22f5fcaf0 RCX: 000055a22f5e3010
RDX: 000000000000001c RSI: 000055a22f5fcab0 RDI: 000055a22f5fcaf0
RBP: 0000000000000063 R08: 000055a22f5fc3e0 R09: 00007f4a6d4ae1a0
R10: fffffffffffff856 R11: 0000000000000202 R12: 00007ffdcd831f31
R13: 0000000000000000 R14: 000055a22f5fcab0 R15: 0000000000000000
---->8<---
BUG: sleeping function called from invalid context at mm/page_alloc.c:4992
in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 743677, name: ThreadPoolForeg
INFO: lockdep is turned off.
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 3 PID: 743677 Comm: ThreadPoolForeg Tainted: G W O 5.13.4+ #442
Hardware name: System manufacturer System Product Name/P8Z68-V PRO, BIOS 3603 11/09/2012
Call Trace:
dump_stack+0x7f/0xad
___might_sleep.cold+0xf2/0x106
prepare_alloc_pages+0xfc/0x130
__alloc_pages+0x98/0x2b0
alloc_pages_vma+0x78/0x250
__read_swap_cache_async+0xb9/0x2a0
swapin_readahead+0x253/0x3f0
? lock_release+0x21b/0x460
do_swap_page+0x26c/0x8d0
__handle_mm_fault+0x9d4/0x1330
? lock_acquire+0x19a/0x300
handle_mm_fault+0x9b/0x230
do_user_addr_fault+0x1e2/0x580
exc_page_fault+0x67/0x240
? asm_exc_page_fault+0x5/0x20
asm_exc_page_fault+0x1b/0x20
RIP: 0033:0x7f992e799c8c
Code: 08 48 85 ff 75 3b 4c 8b 78 08 49 8b 7f 10 49 8b 47 18 48 29 f8 48 83 f8 1f 0f 86 89 00 00 00 48 8d 47 20 49 89 47 10 0f 57 c0 <0f> 11 07 48 c7 47 10 00 00 00 00 4c 89 7f 18 48 89 7b 08 4c 8b 6d
RSP: 002b:00007f98fcff6770 EFLAGS: 00010212
RAX: 00007f98e02bc038 RBX: 00007f98e0269ec8 RCX: 0000000000000131
RDX: 00007f98e02b3050 RSI: 00007f98e0269f20 RDI: 00007f98e02bc018
RBP: 00007f98fcff67e0 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 00007f98fcff6848 R14: 00007f98e0269ef8 R15: 0000000006440910
---->8<---
Best Regards
Michał Mirosław
next reply other threads:[~2021-07-23 17:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-23 17:44 Michał Mirosław [this message]
2021-07-23 19:14 ` Matthew Wilcox
2021-07-25 1:59 ` Michał Mirosław
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=YPsAA4G9dB9BfqCY@qmqm.qmqm.pl \
--to=mirq-linux@rere.qmqm.pl \
--cc=linux-mm@kvack.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