[PATCH] build: Remove dependency of user space stack cookies from kernel

Ian Cooper iancooper at hotmail.com
Sun Jul 19 17:54:31 EDT 2020


On Fri, 17 Jul 2020 23:49:39 +0200 Hauke Mehrtens <hauke at hauke-m.de> wrote:

I've been using an identical patch for pushing two months already and
build and run tested on multiple different configurations.

This patch works fine.

> Currently the user space stack cookies work well also when the kernel
> stack cookies are not activated. This is handled completely in user
> space and does not need kernel support.
> 
> This dependency was probably needed some years ago when the libc did not
> support stack cookies.
> 
> Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
Reviewed-by: Ian Cooper <iancooper at hotmail.com>
> ---
>  config/Config-build.in | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/config/Config-build.in b/config/Config-build.in
> index ac1e05d2ff49..199277167bf7 100644
> --- a/config/Config-build.in
> +++ b/config/Config-build.in
> @@ -256,10 +256,8 @@ menu "Global build settings"
>  			bool "None"
>  		config PKG_CC_STACKPROTECTOR_REGULAR
>  			bool "Regular"
> -			depends on KERNEL_CC_STACKPROTECTOR_REGULAR
>  		config PKG_CC_STACKPROTECTOR_STRONG
>  			bool "Strong"
> -			depends on KERNEL_CC_STACKPROTECTOR_STRONG
>  	endchoice
>  
>  	choice




More information about the openwrt-devel mailing list