[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <169110256709.2294259.13111562642254330671.b4-ty@chromium.org>
Date: Thu, 3 Aug 2023 15:42:49 -0700
From: Kees Cook <keescook@...omium.org>
To: Juergen Gross <jgross@...e.com>, Kees Cook <keescook@...omium.org>
Cc: kernel test robot <lkp@...el.com>,
Peter Zijlstra <peterz@...radead.org>,
Sami Tolvanen <samitolvanen@...gle.com>,
Nathan Chancellor <nathan@...nel.org>,
Ajay Kaher <akaher@...are.com>,
Alexey Makhalov <amakhalov@...are.com>,
VMware PV-Drivers Reviewers <pv-drivers@...are.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>,
virtualization@...ts.linux-foundation.org,
linux-kernel@...r.kernel.org, x86@...nel.org, llvm@...ts.linux.dev,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH] x86/paravirt: Fix tlb_remove_table function callback prototype warning
On Wed, 26 Jul 2023 16:11:43 -0700, Kees Cook wrote:
> Under W=1, this warning is visible in Clang 16 and newer:
>
> arch/x86/kernel/paravirt.c:337:4: warning: cast from 'void (*)(struct mmu_gather *, struct page *)' to 'void (*)(struct mmu_gather *, void *)' converts to incompatible function type [-Wcast-function-type-strict]
> (void (*)(struct mmu_gather *, void *))tlb_remove_page,
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Add a direct wrapper instead, which will make this warning (and
> potential KCFI failures) go away.
>
> [...]
Applied to for-next/hardening, thanks!
[1/1] x86/paravirt: Fix tlb_remove_table function callback prototype warning
https://git.kernel.org/kees/c/fcce1c6cb156
Take care,
--
Kees Cook
Powered by blists - more mailing lists