On Fri, Jul 23, 2021 at 07:44:35PM +0200, Michał Mirosław wrote: > 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? Is this problem fixed by reverting 2799e77529c2 and 2efa33fc7f6e ? https://lore.kernel.org/linux-mm/2245518.LNIG0phfVR@xxxxxxxxxxxxxx/ > ---->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 >