[Bug 224561] powerpc64: head -r327075 kldload (e.g.) of kernel modules built by clang 5.0.1 crashes the system: mishandles R_PPC64_JMP_SLOT clang generated

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Dec 24 19:27:32 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224561

Mark Millard <markmi at dsl-only.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|powerpc64: head -r327075    |powerpc64: head -r327075
                   |kldload (e.g.) of kernel    |kldload (e.g.) of kernel
                   |modules built by clang      |modules built by clang
                   |5.0.1 crashes the system    |5.0.1 crashes the system:
                   |                            |mishandles R_PPC64_JMP_SLOT
                   |                            |clang generated

--- Comment #1 from Mark Millard <markmi at dsl-only.net> ---
(In reply to Mark Millard from comment #0)

The difference in the likes of filemon.ko
between system clang 5.0.1 and
evel/powerpc64-xtoolchain-gcc is. . .

clang 5.0.1:

Relocation section with addend (.rela.plt):
r_offset     r_info       r_type              st_value         st_name +
r_addend
000000014480 000300000015 R_PPC64_JMP_SLOT    0000000000000000 copyinstr + 0
000000014488 000400000015 R_PPC64_JMP_SLOT    0000000000000000
devfs_set_cdevpriv + 0
. . .

devel/powerpc64-xtoolchain-gcc:

Relocation section with addend (.rela.dyn):
r_offset     r_info       r_type              st_value         st_name +
r_addend
0000000145c0 000000000016 R_PPC64_RELATIVE    0000000000000000  + 40d0
0000000145e0 000000000016 R_PPC64_RELATIVE    0000000000000000  + 145b0
. . .
000000014408 000600000026 R_PPC64_ADDR64      0000000000000000 sysent + 0
000000014410 001100000026 R_PPC64_ADDR64      0000000000000000 freebsd32_sysent
+ 0

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list