Repository navigation
toolchain: fortify-headers: Update to version 2.3.3 and add _FORTIFY_SOURCE=3 - #20313
Conversation
|
@hauke benefits of fortify source 3? |
|
RedHat has a good block for such topics. Here is an article about It activates some more more expensive ways to determine the size of an object to make functions fail when they do an buffer overflow. |
|
I compared OpenWrt compiled with the old fortify sources and the new one. I decompiled some binaries and compared them with some binary diff tools. There are smaller changes, |
Update to recent fortify-headers version. This version also supports _FORTIFY_SOURCE=3. Changes: jvoisin/fortify-headers@1.1...2.3.3 A patch similar to the removed one was applied upstream: jvoisin/fortify-headers@b40f6d8 The root file system is getting a bit bigger. Without this commit: 5250380 bin/targets/armsr/armv8/openwrt-armsr-armv8-generic-rootfs.tar.gz 4919997 bin/targets/malta/be/openwrt-malta-be-default-rootfs.tar.gz With this commit: 5263407 bin/targets/armsr/armv8/openwrt-armsr-armv8-generic-rootfs.tar.gz 4930011 bin/targets/malta/be/openwrt-malta-be-default-rootfs.tar.gz Link: openwrt#20313 Signed-off-by: Hauke Mehrtens <[email protected]>
Add support for _FORTIFY_SOURCE level 3. This is supported with glibc and with musl libc. Link: openwrt#20313 Signed-off-by: Hauke Mehrtens <[email protected]>
71a34ce to
93f8662
Compare
|
One observation: I have an out-of-tree version of fribdi (that also exists in video feed), and that failed with the new fortify-headers. (The package will likely fail also in buildbot in the next round, as the version in Makefile is the same) As C++ style of comments are not allowed, they are not recognized as comments, and all endif's with them throw later errors. I patched my local copy to avoid declaring that old C90 via "-ansi". (Upstream has already done that in their git, but has not yet done a new release.) |
|
elfutils throws two different errors:
This makes it to compile, but I am not sure if that is the right long-term solution: |
Update to recent fortify-headers version. This version also supports _FORTIFY_SOURCE=3. Changes: jvoisin/fortify-headers@1.1...2.3.3 A patch similar to the removed one was applied upstream: jvoisin/fortify-headers@b40f6d8 The root file system is getting a bit bigger. Without this commit: 5250380 bin/targets/armsr/armv8/openwrt-armsr-armv8-generic-rootfs.tar.gz 4919997 bin/targets/malta/be/openwrt-malta-be-default-rootfs.tar.gz With this commit: 5263407 bin/targets/armsr/armv8/openwrt-armsr-armv8-generic-rootfs.tar.gz 4930011 bin/targets/malta/be/openwrt-malta-be-default-rootfs.tar.gz Link: openwrt#20313 Signed-off-by: Hauke Mehrtens <[email protected]>
Add support for _FORTIFY_SOURCE level 3. This is supported with glibc and with musl libc. Link: openwrt#20313 Signed-off-by: Hauke Mehrtens <[email protected]>
|
Targets like |
Update to recent fortify-headers version. This version also supports _FORTIFY_SOURCE=3. Changes: jvoisin/fortify-headers@1.1...2.3.3 A patch similar to the removed one was applied upstream: jvoisin/fortify-headers@b40f6d8 The root file system is getting a bit bigger. Without this commit: 5250380 bin/targets/armsr/armv8/openwrt-armsr-armv8-generic-rootfs.tar.gz 4919997 bin/targets/malta/be/openwrt-malta-be-default-rootfs.tar.gz With this commit: 5263407 bin/targets/armsr/armv8/openwrt-armsr-armv8-generic-rootfs.tar.gz 4930011 bin/targets/malta/be/openwrt-malta-be-default-rootfs.tar.gz Link: openwrt#20313 Signed-off-by: Hauke Mehrtens <[email protected]>
Update to recent fortify-headers version. This version also supports _FORTIFY_SOURCE=3. Changes: jvoisin/fortify-headers@1.1...2.3.3 A patch similar to the removed one was applied upstream: jvoisin/fortify-headers@b40f6d8 The root file system is getting a bit bigger. Without this commit: 5250380 bin/targets/armsr/armv8/openwrt-armsr-armv8-generic-rootfs.tar.gz 4919997 bin/targets/malta/be/openwrt-malta-be-default-rootfs.tar.gz With this commit: 5263407 bin/targets/armsr/armv8/openwrt-armsr-armv8-generic-rootfs.tar.gz 4930011 bin/targets/malta/be/openwrt-malta-be-default-rootfs.tar.gz Link: openwrt#20313 Signed-off-by: Hauke Mehrtens <[email protected]>
Add support for _FORTIFY_SOURCE level 3. This is supported with glibc and with musl libc. Link: openwrt#20313 Signed-off-by: Hauke Mehrtens <[email protected]>
Add support for _FORTIFY_SOURCE level 3. This is supported with glibc and with musl libc. Link: openwrt#20313 Signed-off-by: Hauke Mehrtens <[email protected]>
Update to recent fortify-headers version. This version also supports _FORTIFY_SOURCE=3. Changes: jvoisin/fortify-headers@1.1...2.3.3 A patch similar to the removed one was applied upstream: jvoisin/fortify-headers@b40f6d8 The root file system is getting a bit bigger. Without this commit: 5250380 bin/targets/armsr/armv8/openwrt-armsr-armv8-generic-rootfs.tar.gz 4919997 bin/targets/malta/be/openwrt-malta-be-default-rootfs.tar.gz With this commit: 5263407 bin/targets/armsr/armv8/openwrt-armsr-armv8-generic-rootfs.tar.gz 4930011 bin/targets/malta/be/openwrt-malta-be-default-rootfs.tar.gz Link: openwrt#20313 Signed-off-by: Hauke Mehrtens <[email protected]>
Add support for _FORTIFY_SOURCE level 3. This is supported with glibc and with musl libc. Link: openwrt#20313 Signed-off-by: Hauke Mehrtens <[email protected]>
Update to recent fortify-headers version. This version also supports _FORTIFY_SOURCE=3. Changes: jvoisin/fortify-headers@1.1...2.3.3 A patch similar to the removed one was applied upstream: jvoisin/fortify-headers@b40f6d8 The root file system is getting a bit bigger. Without this commit: 5250380 bin/targets/armsr/armv8/openwrt-armsr-armv8-generic-rootfs.tar.gz 4919997 bin/targets/malta/be/openwrt-malta-be-default-rootfs.tar.gz With this commit: 5263407 bin/targets/armsr/armv8/openwrt-armsr-armv8-generic-rootfs.tar.gz 4930011 bin/targets/malta/be/openwrt-malta-be-default-rootfs.tar.gz Link: openwrt#20313 Signed-off-by: Hauke Mehrtens <[email protected]>
Add support for _FORTIFY_SOURCE level 3. This is supported with glibc and with musl libc. Link: openwrt#20313 Signed-off-by: Hauke Mehrtens <[email protected]>
Update to recent fortify-headers version. This version also supports _FORTIFY_SOURCE=3. Changes: jvoisin/fortify-headers@1.1...2.3.3 A patch similar to the removed one was applied upstream: jvoisin/fortify-headers@b40f6d8 The root file system is getting a bit bigger. Without this commit: 5250380 bin/targets/armsr/armv8/openwrt-armsr-armv8-generic-rootfs.tar.gz 4919997 bin/targets/malta/be/openwrt-malta-be-default-rootfs.tar.gz With this commit: 5263407 bin/targets/armsr/armv8/openwrt-armsr-armv8-generic-rootfs.tar.gz 4930011 bin/targets/malta/be/openwrt-malta-be-default-rootfs.tar.gz Link: openwrt/openwrt#20313 Signed-off-by: Hauke Mehrtens <[email protected]>
Add support for _FORTIFY_SOURCE level 3. This is supported with glibc and with musl libc. Link: openwrt/openwrt#20313 Signed-off-by: Hauke Mehrtens <[email protected]>
toolchain: fortify-headers: Update to version 2.3.3
Update to recent fortify-headers version. This version also supports
_FORTIFY_SOURCE=3.
Changes: jvoisin/fortify-headers@1.1...2.3.3
A patch similar to the removed one was applied upstream:
jvoisin/fortify-headers@b40f6d8
build: Add _FORTIFY_SOURCE=3 support
Add support for _FORTIFY_SOURCE level 3.
This is supported with glibc and with musl libc.
I build this on armsr/armv8 and x86/64 target with
_FORTIFY_SOURCE=1and_FORTIFY_SOURCE=3with musl and booted the images in qemu successfully.