[Bug 241728] linuxkpi: panics after loading
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Nov 5 08:37:57 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241728
Bug ID: 241728
Summary: linuxkpi: panics after loading
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: bugs at FreeBSD.org
Reporter: pkubaj at FreeBSD.org
I'm on head on powerpc64 elfv2 (r353588) and experience kernel panic after
kldload radeonkms. I found it's due to linuxkpi.
root at talos:~ # kldload radeonkms.ko
fatal kernel trap:
exception = 0x300 (data storage interrupt)
virtual address = 0xcaa24580
dsisr = 0x42000000
srr0 = 0xe0000000ce3e5dc4 (0x20000000cbf95dc4)
srr1 = 0x9000000000009032
current msr = 0x9000000000009032
lr = 0xc000000002cced44 (0x87ed44)
frame = 0xe0000000bf08df00
curthread = 0xc00000002c43a560
pid = 47271, comm = kldload
panic: data storage interrupt trap
cpuid = 16
time = 1572942809
KDB: stack backtrace:
0xe0000000bf08da80: at kdb_backtrace+0x60
0xe0000000bf08db90: at vpanic+0x1d8
0xe0000000bf08dc40: at panic+0x40
0xe0000000bf08dc70: at trap+0x1564
0xe0000000bf08dd00: at trap+0x62c
0xe0000000bf08de40: at powerpc_interrupt+0x1b8
0xe0000000bf08ded0: kernel DSI write trap @ 0xcaa24580 by
idr_preload_init+0xc8: srr1=0x9000000000009032
r1=0xe0000000bf08e180 cr=0x4488dc88 xer=0 ctr=0xc000000002ce7190
r2=0xe0000000ce401ed0 sr=0x42000000 frame=0xe0000000bf08df00
0xe0000000bf08e180: at 0xe0000000ce3c3a04
0xe0000000bf08e1f0: at linker_reference_module+0xfd4
0xe0000000bf08e630: at linker_load_dependencies+0x2b0
0xe0000000bf08e710: at elf_get_symname+0x132c
0xe0000000bf08e960: at linker_reference_module+0xc88
0xe0000000bf08eda0: at linker_load_dependencies+0x2b0
0xe0000000bf08ee80: at elf_get_symname+0x132c
0xe0000000bf08f0d0: at linker_reference_module+0xc88
0xe0000000bf08f510: at kern_kldload+0x138
0xe0000000bf08f5c0: at sys_kldload+0x8c
0xe0000000bf08f610: at trap+0xd58
0xe0000000bf08f750: at powerpc_interrupt+0x1b8
0xe0000000bf08f7e0: user SC trap by 0x810102f20: srr1=0x900000000200d032
r1=0x3fffffffffffd460 cr=0x44222b80 xer=0 ctr=0x810102f10
r2=0x8102a2398 frame=0xe0000000bf08f810
KDB: enter: panic
[ thread pid 47271 tid 100787 ]
Stopped at kdb_enter+0x78: ori r0, r0, 0x0
db> kldstat
Id Refs Address Size Name
1 21 0xc000000002550100 1a611c8 kernel
2 1 0xe0000000c1900000 22000 tmpfs.ko
3 1 0xe0000000c4640000 21000 icee.ko
4 1 0xe0000000c5480000 21000 mac_ntpd.ko
5 1 0xe0000000c7820000 21000 imgact_binmisc.ko
6 1 0xe0000000ce600000 1e8000 radeonkms.ko
7 1 0xe0000000ce300000 c9000 drm.ko
8 1 0xe0000000ce3c9000 33000 linuxkpi.ko
You can see it's caused by idr_preload_init, at offset 0xe0000000ce3e5dc4
(srr0) - 0xe0000000ce3c9000 (address of linuxkpi.ko) = 0x1d00, which is this
file:
sys/compat/linuxkpi/common/src/linux_idr.c, line:
118 free(cacheval, M_IDR);
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list