0f525289ff
OF framebuffers do not have an underlying device in the Linux device hierarchy. Do a regular unregister call instead of hot unplugging such a non-existing device. Fixes a NULL dereference. An example error message on ppc64le is shown below. BUG: Kernel NULL pointer dereference on read at 0x00000060 Faulting instruction address: 0xc00000000080dfa4 Oops: Kernel access of bad area, sig: 11 [#1] LE PAGE_SIZE=64K MMU=Hash SMP NR_CPUS=2048 NUMA pSeries [...] CPU: 2 PID: 139 Comm: systemd-udevd Not tainted 5.17.0-ae085d7f9365 #1 NIP: c00000000080dfa4 LR: c00000000080df9c CTR: c000000000797430 REGS: c000000004132fe0 TRAP: 0300 Not tainted (5.17.0-ae085d7f9365) MSR: 8000000002009033 <SF,VEC,EE,ME,IR,DR,RI,LE> CR: 28228282 XER: 20000000 CFAR: c00000000000c80c DAR: 0000000000000060 DSISR: 40000000 IRQMASK: 0 GPR00: c00000000080df9c c000000004133280 c00000000169d200 0000000000000029 GPR04: 00000000ffffefff c000000004132f90 c000000004132f88 0000000000000000 GPR08: c0000000015658f8 c0000000015cd200 c0000000014f57d0 0000000048228283 GPR12: 0000000000000000 c00000003fffe300 0000000020000000 0000000000000000 GPR16: 0000000000000000 0000000113fc4a40 0000000000000005 0000000113fcfb80 GPR20: 000001000f7283b0 0000000000000000 c000000000e4a588 c000000000e4a5b0 GPR24: 0000000000000001 00000000000a0000 c008000000db0168 c0000000021f6ec0 GPR28: c0000000016d65a8 c000000004b36460 0000000000000000 c0000000016d64b0 NIP [c00000000080dfa4] do_remove_conflicting_framebuffers+0x184/0x1d0 [c000000004133280] [c00000000080df9c] do_remove_conflicting_framebuffers+0x17c/0x1d0 (unreliable) [c000000004133350] [c00000000080e4d0] remove_conflicting_framebuffers+0x60/0x150 [c0000000041333a0] [c00000000080e6f4] remove_conflicting_pci_framebuffers+0x134/0x1b0 [c000000004133450] [c008000000e70438] drm_aperture_remove_conflicting_pci_framebuffers+0x90/0x100 [drm] [c000000004133490] [c008000000da0ce4] bochs_pci_probe+0x6c/0xa64 [bochs] [...] [c000000004133db0] [c00000000002aaa0] system_call_exception+0x170/0x2d0 [c000000004133e10] [c00000000000c3cc] system_call_common+0xec/0x250 The bug [1] was introduced by commit |
||
---|---|---|
.. | ||
aty | ||
core | ||
geode | ||
i810 | ||
intelfb | ||
kyro | ||
matrox | ||
mb862xx | ||
mmp | ||
nvidia | ||
omap | ||
omap2 | ||
riva | ||
savage | ||
sis | ||
vermilion | ||
via | ||
68328fb.c | ||
Kconfig | ||
Makefile | ||
acornfb.c | ||
acornfb.h | ||
amba-clcd.c | ||
amifb.c | ||
arcfb.c | ||
arkfb.c | ||
asiliantfb.c | ||
atafb.c | ||
atafb.h | ||
atafb_iplan2p2.c | ||
atafb_iplan2p4.c | ||
atafb_iplan2p8.c | ||
atafb_mfb.c | ||
atafb_utils.h | ||
atmel_lcdfb.c | ||
au1100fb.c | ||
au1100fb.h | ||
au1200fb.c | ||
au1200fb.h | ||
broadsheetfb.c | ||
bt431.h | ||
bt455.h | ||
bw2.c | ||
c2p.h | ||
c2p_core.h | ||
c2p_iplan2.c | ||
c2p_planar.c | ||
carminefb.c | ||
carminefb.h | ||
carminefb_regs.h | ||
cg3.c | ||
cg6.c | ||
cg14.c | ||
chipsfb.c | ||
cirrusfb.c | ||
clps711x-fb.c | ||
cobalt_lcdfb.c | ||
controlfb.c | ||
controlfb.h | ||
cyber2000fb.c | ||
cyber2000fb.h | ||
da8xx-fb.c | ||
dnfb.c | ||
edid.h | ||
efifb.c | ||
ep93xx-fb.c | ||
ffb.c | ||
fm2fb.c | ||
fsl-diu-fb.c | ||
g364fb.c | ||
gbefb.c | ||
goldfishfb.c | ||
grvga.c | ||
gxt4500.c | ||
hecubafb.c | ||
hgafb.c | ||
hitfb.c | ||
hpfb.c | ||
hyperv_fb.c | ||
i740_reg.h | ||
i740fb.c | ||
imsttfb.c | ||
imxfb.c | ||
leo.c | ||
macfb.c | ||
macmodes.c | ||
macmodes.h | ||
maxinefb.c | ||
metronomefb.c | ||
mx3fb.c | ||
n411.c | ||
neofb.c | ||
ocfb.c | ||
offb.c | ||
p9100.c | ||
platinumfb.c | ||
platinumfb.h | ||
pm2fb.c | ||
pm3fb.c | ||
pmag-aa-fb.c | ||
pmag-ba-fb.c | ||
pmagb-b-fb.c | ||
ps3fb.c | ||
pvr2fb.c | ||
pxa3xx-gcu.c | ||
pxa3xx-gcu.h | ||
pxa168fb.c | ||
pxa168fb.h | ||
pxafb.c | ||
pxafb.h | ||
q40fb.c | ||
s1d13xxxfb.c | ||
s3c-fb.c | ||
s3c2410fb-regs-lcd.h | ||
s3c2410fb.c | ||
s3c2410fb.h | ||
s3fb.c | ||
sa1100fb.c | ||
sa1100fb.h | ||
sbuslib.c | ||
sbuslib.h | ||
sh7760fb.c | ||
sh_mobile_lcdcfb.c | ||
sh_mobile_lcdcfb.h | ||
simplefb.c | ||
skeletonfb.c | ||
sm501fb.c | ||
sm712.h | ||
sm712fb.c | ||
smscufx.c | ||
ssd1307fb.c | ||
sstfb.c | ||
sticore.h | ||
stifb.c | ||
sunxvr500.c | ||
sunxvr1000.c | ||
sunxvr2500.c | ||
tcx.c | ||
tdfxfb.c | ||
tgafb.c | ||
tmiofb.c | ||
tridentfb.c | ||
udlfb.c | ||
uvesafb.c | ||
valkyriefb.c | ||
valkyriefb.h | ||
vesafb.c | ||
vfb.c | ||
vga16fb.c | ||
vt8500lcdfb.c | ||
vt8500lcdfb.h | ||
vt8623fb.c | ||
w100fb.c | ||
w100fb.h | ||
wm8505fb.c | ||
wm8505fb_regs.h | ||
wmt_ge_rops.c | ||
wmt_ge_rops.h | ||
xen-fbfront.c | ||
xilinxfb.c |