Digging into this I managed to build the module on focal with the same kernel and install that on buster.
I'm of the belief that compiler should not be referencing "__stack_chk_guard" at all, since "CONFIG_STACKPROTECTOR_PER_TASK=y" is configured for this kernel and the symbol isn't listed in "/proc/kallsyms"
My suspicion (and this is where my knowledge limits me) is that something changed in GCC between the version buster ships with (8.3) and the version the kernel was built with (9.2) that causes it to not do the correct things for per task stack canaries.
unable to build zfs module on buster rockchip64
in Beginners
Posted
Hi Folks,
Trying to wrap my head around this still, so bear with my if I've crossed my wires somewhere, first some background.
With a 5.8 linux-image-current-rockchip64 kernel, zfs 0.8.4 and 2.0.0-rc won't compile because of the following error.
ERROR: modpost: "__stack_chk_guard" [/root/zfs/module/zfs/zfs.ko] undefined!
This has been mentioned in a few places:
https://github.com/openzfs/zfs/issues/10985
https://forum.armbian.com/topic/15065-downgrade-linux-image-current-rockchip64/
Digging into this I managed to build the module on focal with the same kernel and install that on buster.
I'm of the belief that compiler should not be referencing "__stack_chk_guard" at all, since "CONFIG_STACKPROTECTOR_PER_TASK=y" is configured for this kernel and the symbol isn't listed in "/proc/kallsyms"
My suspicion (and this is where my knowledge limits me) is that something changed in GCC between the version buster ships with (8.3) and the version the kernel was built with (9.2) that causes it to not do the correct things for per task stack canaries.
If anyone has thoughts/ideas I'd love the input
-- Jonas