Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 798261

Summary: sys-kernel/gentoo-sources-5.12.12 NULL pointer dereference on console unbind
Product: Gentoo Linux Reporter: Xuefer <xuefer>
Component: Current packagesAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED NEEDINFO    
Severity: normal CC: mscardovi
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dmesg unloading radeon
dmesg unloading amdgpu

Description Xuefer 2021-06-24 06:46:56 UTC
Created attachment 718524 [details]
dmesg unloading radeon

gpu: vega 64 and HD 7850 on PCI-E slot
motherboard: X399 SLI PLUS
CPU: Ryzen Threadripper 1950X


# cat test.sh
#!/bin/bash +x
echo 0 > /sys/class/vtconsole/vtcon0/bind
echo 0 > /sys/class/vtconsole/vtcon1/bind

echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind
echo simple-framebuffer.0 > /sys/bus/platform/drivers/simple-framebuffer/unbind

rmmod radeon
rmmod amdgpu

# ./test.sh
+ echo 0
+ echo 0
+ echo efi-framebuffer.0
bash: echo: write error: No such device
+ echo simple-framebuffer.0
+ rmmod radeon
Killed
+ rmmod amdgpu

(stuck here)

dmesg output attached
Comment 1 Xuefer 2021-06-24 06:48:11 UTC
Created attachment 718527 [details]
dmesg unloading amdgpu

after i blacklist radeon, similar problem happens with amdgpu too
it seems unbind'ing before unloading gpu driver cause the problem
Comment 2 Mike Pagano gentoo-dev 2021-08-17 17:54:40 UTC
Is this still an issue with later kernels.