lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 10 May 2022 11:40:15 +0100
From:   Will Deacon <will@...nel.org>
To:     Gaosheng Cui <cuigaosheng1@...wei.com>
Cc:     catalin.marinas@....com, broonie@...nel.org, pcc@...gle.com,
        mark.rutland@....com, keescook@...omium.org, daniel.kiss@....com,
        linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
        wangweiyang2@...wei.com, gongruiqi1@...wei.com
Subject: Re: [PATCH -next] arm64: add missing header dependencies

On Mon, May 09, 2022 at 02:17:51PM +0800, Gaosheng Cui wrote:
> We get one error when building module with processor.h:
> 
> ./arch/arm64/include/asm/processor.h:263:36: error: implicit declaration of function ‘task_stack_page’;
>   ((struct pt_regs *)(THREAD_SIZE + task_stack_page(p)) - 1)
> ./arch/arm64/include/asm/processor.h:266:42: note: in expansion of macro ‘task_pt_regs’
>  #define KSTK_ESP(tsk) user_stack_pointer(task_pt_regs(tsk))
> 
> task_stack_page is declared in linux/sched/task_stack.h, so this patch
> add the missing header dependencies.
> 
> Signed-off-by: Gaosheng Cui <cuigaosheng1@...wei.com>
> ---
>  arch/arm64/include/asm/processor.h | 1 +
>  1 file changed, 1 insertion(+)

Do you know which commit is causing this error? I haven't seen any other
reports, but it's hard to know which tree should take your patch as it
stands.

Thanks,

Will

> diff --git a/arch/arm64/include/asm/processor.h b/arch/arm64/include/asm/processor.h
> index 73e38d9a540c..1c239841c4d6 100644
> --- a/arch/arm64/include/asm/processor.h
> +++ b/arch/arm64/include/asm/processor.h
> @@ -28,6 +28,7 @@
>  #include <linux/build_bug.h>
>  #include <linux/cache.h>
>  #include <linux/init.h>
> +#include <linux/sched/task_stack.h>
>  #include <linux/stddef.h>
>  #include <linux/string.h>
>  #include <linux/thread_info.h>
> -- 
> 2.25.1
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ