[PATCH] powerpc/code-patching: Pre-map patch area
Michael Ellerman
patch-notifications at ellerman.id.au
Tue Mar 8 23:07:46 AEDT 2022
On Wed, 23 Feb 2022 12:58:21 +1100, Michael Ellerman wrote:
> Paul reported a warning with DEBUG_ATOMIC_SLEEP=y:
>
> BUG: sleeping function called from invalid context at include/linux/sched/mm.h:256
> in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 1, name: swapper/0
> preempt_count: 0, expected: 0
> ...
> Call Trace:
> dump_stack_lvl+0xa0/0xec (unreliable)
> __might_resched+0x2f4/0x310
> kmem_cache_alloc+0x220/0x4b0
> __pud_alloc+0x74/0x1d0
> hash__map_kernel_page+0x2cc/0x390
> do_patch_instruction+0x134/0x4a0
> arch_jump_label_transform+0x64/0x78
> __jump_label_update+0x148/0x180
> static_key_enable_cpuslocked+0xd0/0x120
> static_key_enable+0x30/0x50
> check_kvm_guest+0x60/0x88
> pSeries_smp_probe+0x54/0xb0
> smp_prepare_cpus+0x3e0/0x430
> kernel_init_freeable+0x20c/0x43c
> kernel_init+0x30/0x1a0
> ret_from_kernel_thread+0x5c/0x64
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/code-patching: Pre-map patch area
https://git.kernel.org/powerpc/c/591b4b268435f00d2f0b81f786c2c7bd5ef66416
cheers
More information about the Linuxppc-dev
mailing list