]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[PowerPC64] Don't mark module data as static
authorLeandro Lupori <luporl@FreeBSD.org>
Tue, 25 Jun 2019 17:15:44 +0000 (17:15 +0000)
committerLeandro Lupori <luporl@FreeBSD.org>
Tue, 25 Jun 2019 17:15:44 +0000 (17:15 +0000)
commite2edff41672437d201f7df6994ced3ed002d7bad
treee88c523056ba9cb5ab35fa655972f0cd1a2232e6
parent4ae6e084f088f6a0b50cf2a78eb48dc44ea086c2
[PowerPC64] Don't mark module data as static

Fixes panic when loading ipfw.ko and if_epair.ko built with modern compiler.

Similar to arm64 and riscv, when using a modern compiler (!gcc4.2), code
generated tries to access data in the wrong location, causing kernel panic
(data storage interrupt trap) when loading if_epair and ipfw.

Issue was reproduced with kernel/module compiled using gcc8 and clang8. It
affects both ELFv1 and ELFv2 ABI environments.

PR: 232387
Submitted by: alfredo.junior_eldorado.org.br
Reported by: Mark Millard
Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D20461
sys/net/vnet.h
sys/sys/pcpu.h