Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#50002 - [linux-grsec-headers] Missing objtool

Attached to Project: Community Packages
Opened by Giuseppe (G-G) - Saturday, 09 July 2016, 12:53 GMT
Last edited by Daniel Micay (thestinger) - Thursday, 29 September 2016, 21:12 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Daniel Micay (thestinger)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
STACK_VALIDATION flag enabled in kernel conf but objtool is not installed in kernel headers package

Additional info:
linux-grsec 4.6.3.201607070721-1
This task depends upon

Closed by  Daniel Micay (thestinger)
Thursday, 29 September 2016, 21:12 GMT
Reason for closing:  Fixed
Comment by Alexander Kempen (chron) - Wednesday, 20 July 2016, 09:18 GMT
Fix:
You can just copy 4 lines from the stock Arch kernel PKGBUILD(lines 255 to 259) to _package-headers() to fix the problem.

# add objtool for external module building and enabled VALIDATION_STACK option
if [ -f tools/objtool/objtool ]; then
mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/tools/objtool"
cp -a tools/objtool/objtool ${pkgdir}/usr/lib/modules/${_kernver}/build/tools/objtool/
fi
Comment by Daniel Micay (thestinger) - Thursday, 21 July 2016, 09:50 GMT
I'll be merging in the various changes from core/linux when I do a regular update and have some time to cope with potential issues.
Comment by Thore Bödecker (foxxx0) - Saturday, 30 July 2016, 13:20 GMT
This seems to be resolved as of linux-grsec-headers 4.6.5.201607272152-1, which was packaged on 28. July 2016?!

From a quick peek inside the PKGBUILD it contains the objtool stuff again.
Comment by Thore Bödecker (foxxx0) - Friday, 26 August 2016, 18:58 GMT
  • Field changed: Percent Complete (100% → 0%)
Broken again in 4.7.2.201608211829-1-grsec although the ABS PKGBUILD includes the objtool stuff it is missing in the repo package (linux-grsec-headers).
Comment by Florian Pritz (bluewind) - Friday, 26 August 2016, 19:03 GMT
This looks weird. Is the repo package built with a different PKGBUILD than what is in abs or why is this missing?

I've talked about this with Thore and if he builds the abs PKGBUILD in a chroot it contains the file, but the package doesn't.
Comment by Daniel Micay (thestinger) - Sunday, 28 August 2016, 05:30 GMT
It's not built with a different PKGBUILD. It's built with devtools from the svn tree.
Comment by Florian Pritz (bluewind) - Sunday, 28 August 2016, 07:25 GMT
Thought so, but then I really have no idea why that file would be missing. I know you just copy things from the normal package, but maybe it's worth dropping the "if [ -f tools/objtool/objtool ]" since that file should be there. Your call.
Comment by Daniel Micay (thestinger) - Monday, 29 August 2016, 01:10 GMT
I'll check what happens for the next release in a few days. And yeah, that could just be removed but I'm not sure why it would fail. It's odd...
Comment by Daniel Micay (thestinger) - Friday, 09 September 2016, 13:55 GMT
Okay, the issue is that it fails to use CONFIG_STACK_VALIDATION due to a missing dependency but the build still proceeds without an error. You probably have the dependency installed so it works, but it doesn't when building with devtools. I don't feel like rebuilding it to fix this right now (for the current update that's building) but I will do it for the next release.
Comment by Daniel Micay (thestinger) - Friday, 09 September 2016, 13:57 GMT
So, workaround for now: build with extra-x86_64-build so that it doesn't kick in (or disable it).
Comment by Hermann Zahnweh (eigengrau) - Saturday, 24 September 2016, 11:49 GMT
Ping.

Loading...