Vasant Hegde
256a1e009b
powerpc/powernv/prd: Unregister OPAL_MSG_PRD2 notifier during module unload
commit 52862ab33c5d97490f3fa345d6529829e6d6637b upstream.
Commit 587164cd, introduced new opal message type (OPAL_MSG_PRD2) and
added opal notifier. But I missed to unregister the notifier during
module unload path. This results in below call trace if you try to
unload and load opal_prd module.
Also add new notifier_block for OPAL_MSG_PRD2 message.
Sample calltrace (modprobe -r opal_prd; modprobe opal_prd)
BUG: Unable to handle kernel data access on read at 0xc0080000192200e0
Faulting instruction address: 0xc00000000018d1cc
Oops: Kernel access of bad area, sig: 11 [#1]
LE PAGE_SIZE=64K MMU=Radix SMP NR_CPUS=2048 NUMA PowerNV
CPU: 66 PID: 7446 Comm: modprobe Kdump: loaded Tainted: G E 5.14.0prd #759
NIP: c00000000018d1cc LR: c00000000018d2a8 CTR: c0000000000cde10
REGS: c0000003c4c0f0a0 TRAP: 0300 Tainted: G E (5.14.0prd)
MSR: 9000000002009033 <SF,HV,VEC,EE,ME,IR,DR,RI,LE> CR: 24224824 XER: 20040000
CFAR: c00000000018d2a4 DAR: c0080000192200e0 DSISR: 40000000 IRQMASK: 1
...
NIP notifier_chain_register+0x2c/0xc0
LR atomic_notifier_chain_register+0x48/0x80
Call Trace:
0xc000000002090610 (unreliable)
atomic_notifier_chain_register+0x58/0x80
opal_message_notifier_register+0x7c/0x1e0
opal_prd_probe+0x84/0x150 [opal_prd]
platform_probe+0x78/0x130
really_probe+0x110/0x5d0
__driver_probe_device+0x17c/0x230
driver_probe_device+0x60/0x130
__driver_attach+0xfc/0x220
bus_for_each_dev+0xa8/0x130
driver_attach+0x34/0x50
bus_add_driver+0x1b0/0x300
driver_register+0x98/0x1a0
__platform_driver_register+0x38/0x50
opal_prd_driver_init+0x34/0x50 [opal_prd]
do_one_initcall+0x60/0x2d0
do_init_module+0x7c/0x320
load_module+0x3394/0x3650
__do_sys_finit_module+0xd4/0x160
system_call_exception+0x140/0x290
system_call_common+0xf4/0x258
Fixes: 587164cd59 ("powerpc/powernv: Add new opal message type")
Cc: [email protected] # v5.4+
Signed-off-by: Vasant Hegde <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
|
2021-11-17 09:48:50 +01:00 |
| .. |
|
boot
|
powerpc/fsl/dts: Fix phy-connection-type for fm1mac3
|
2021-10-13 10:08:19 +02:00 |
|
configs
|
powerpc/config: Renable MTD_PHYSMAP_OF
|
2021-09-22 12:26:24 +02:00 |
|
crypto
|
|
|
|
include
|
powerpc/security: Add a helper to query stf_barrier type
|
2021-11-17 09:48:49 +01:00 |
|
kernel
|
powerpc/security: Add a helper to query stf_barrier type
|
2021-11-17 09:48:49 +01:00 |
|
kvm
|
KVM: PPC: Book3S HV: Make idle_kvm_start_guest() return 0 if it went to guest
|
2021-10-27 09:54:28 +02:00 |
|
lib
|
powerpc/lib: Add helper to check if offset is within conditional branch range
|
2021-11-17 09:48:49 +01:00 |
|
math-emu
|
|
|
|
mm
|
powerpc/mm: Fix lockup on kernel exec fault
|
2021-07-19 08:53:14 +02:00 |
|
net
|
powerpc/bpf: Emit stf barrier instruction sequences for BPF_NOSPEC
|
2021-11-17 09:48:49 +01:00 |
|
oprofile
|
|
|
|
perf
|
powerpc/perf/hv-gpci: Fix counter value parsing
|
2021-09-22 12:26:19 +02:00 |
|
platforms
|
powerpc/powernv/prd: Unregister OPAL_MSG_PRD2 notifier during module unload
|
2021-11-17 09:48:50 +01:00 |
|
purgatory
|
|
|
|
sysdev
|
powerpc/xive: Discard disabled interrupts in get_irqchip_state()
|
2021-10-20 11:40:15 +02:00 |
|
tools
|
|
|
|
xmon
|
powerpc/xmon: Change printk() to pr_cont()
|
2020-12-30 11:51:39 +01:00 |
|
Kbuild
|
|
|
|
Kconfig
|
powerpc: Fix HAVE_HARDLOCKUP_DETECTOR_ARCH build configuration
|
2021-05-14 09:44:26 +02:00 |
|
Kconfig.debug
|
powerpc: iommu: fix build when neither PCI or IBMVIO is set
|
2021-05-14 09:44:28 +02:00 |
|
Makefile
|
powerpc: Drop -me200 addition to build flags
|
2020-12-16 10:56:55 +01:00 |
|
Makefile.postlink
|
|
|