android_kernel_samsung_a7y1.../arch/arm/kernel
Yang Shi cf78070d8c ARM: 8839/1: kprobe: make patch_lock a raw_spinlock_t
[ Upstream commit 143c2a89e0e5fda6c6fd08d7bc1126438c19ae90 ]

When running kprobe on -rt kernel, the below bug is caught:

|BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:931
|in_atomic(): 1, irqs_disabled(): 128, pid: 14, name: migration/0
|Preemption disabled at:[<802f2b98>] cpu_stopper_thread+0xc0/0x140
|CPU: 0 PID: 14 Comm: migration/0 Tainted: G O 4.8.3-rt2 #1
|Hardware name: Freescale LS1021A
|[<8025a43c>] (___might_sleep)
|[<80b5b324>] (rt_spin_lock)
|[<80b5c31c>] (__patch_text_real)
|[<80b5c3ac>] (patch_text_stop_machine)
|[<802f2920>] (multi_cpu_stop)

Since patch_text_stop_machine() is called in stop_machine() which
disables IRQ, sleepable lock should be not used in this atomic context,
 so replace patch_lock to raw lock.

Signed-off-by: Yang Shi <yang.shi@linaro.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-06 15:20:37 +02:00
..
arch_timer.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
armksyms.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
asm-offsets.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
atags_compat.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
atags_parse.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
atags_proc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
atags.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bios32.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
calls.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cpuidle.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
crash_dump.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
debug.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
devtree.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dma-isa.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dma.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
early_printk.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
elf.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
entry-armv.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
entry-common.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
entry-ftrace.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
entry-header.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
entry-v7m.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fiq.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fiqasm.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ftrace.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
head-common.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
head-nommu.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
head.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hibernate.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hw_breakpoint.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hyp-stub.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
insn.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
io.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irq.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
isa.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
iwmmxt.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
jump_label.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
kgdb.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
machine_kexec.c ARM: avoid Cortex-A9 livelock on tight dmb loops 2020-04-06 14:52:03 +02:00
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
module-plts.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
module.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
module.lds A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
opcodes.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
patch.c ARM: 8839/1: kprobe: make patch_lock a raw_spinlock_t 2020-04-06 15:20:37 +02:00
perf_callchain.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
perf_event_v6.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
perf_event_v7.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
perf_event_xscale.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
perf_regs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pj4-cp0.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
process.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
psci_smp.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ptrace.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
reboot.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
reboot.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
relocate_kernel.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
return_address.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
setup.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
signal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sigreturn_codes.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sleep.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smccc-call.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smp_scu.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smp_tlb.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smp_twd.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smp.c ARM: avoid Cortex-A9 livelock on tight dmb loops 2020-04-06 14:52:03 +02:00
stacktrace.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
suspend.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
swp_emulate.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sys_arm.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sys_oabi-compat.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tcm.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
thumbee.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
time.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
topology.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
traps.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
unwind.c ARM: 8840/1: use a raw_spinlock_t in unwind 2020-04-06 14:50:37 +02:00
v7m.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vdso.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmlinux.lds.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xscale-cp0.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30