[linux-next:master] [mm/slab] 7bd230a266: WARNING:at_mm/util.c:#kvmalloc_node_noprof

2024-05-14 Thread kernel test robot
Hello, as we understand, this commit is not the root-cause of this WARNING. the WARNING just shows in another way by commit changes. 53ed0af496422959 7bd230a26648ac68ab3731ebbc4 --- fail:runs %reproductionfail:runs |

[PATCH] ubsan: Restore dependency on ARCH_HAS_UBSAN

2024-05-14 Thread Kees Cook
While removing CONFIG_UBSAN_SANITIZE_ALL, ARCH_HAS_UBSAN wasn't correctly depended on. Restore this, as we do not want to attempt UBSAN builds unless it's actually been tested on a given architecture. Reported-by: Masahiro Yamada Closes:

Re: [PATCH] ubsan: remove meaningless CONFIG_ARCH_HAS_UBSAN

2024-05-14 Thread Kees Cook
On Tue, May 14, 2024 at 06:54:26PM +0900, Masahiro Yamada wrote: > All architectures can enable UBSAN regardless of ARCH_HAS_UBSAN > because there is no "depends on ARCH_HAS_UBSAN" line. > > Fixes: 918327e9b7ff ("ubsan: Remove CONFIG_UBSAN_SANITIZE_ALL") > Signed-off-by: Masahiro Yamada Oh, er,

Re: [PATCH v2] fs: remove accidental overflow during wraparound check

2024-05-14 Thread Jan Kara
On Mon 13-05-24 17:50:30, Justin Stitt wrote: > Running syzkaller with the newly enabled signed integer overflow > sanitizer produces this report: > > [ 195.401651] [ cut here ] > [ 195.404808] UBSAN: signed-integer-overflow in ../fs/open.c:321:15 > [ 195.408739]

Re: [RFC PATCH v3 3/5] KVM: x86: Add notifications for Heki policy configuration and violation

2024-05-14 Thread Mickaël Salaün
On Fri, May 10, 2024 at 10:07:00AM +, Nicolas Saenz Julienne wrote: > On Tue May 7, 2024 at 4:16 PM UTC, Sean Christopherson wrote: > > > If yes, that would indeed require a *lot* of work for something we're not > > > sure will be accepted later on. > > > > Yes and no. The AWS folks are

Re: [RFC PATCH v3 3/5] KVM: x86: Add notifications for Heki policy configuration and violation

2024-05-14 Thread Mickaël Salaün
On Tue, May 07, 2024 at 09:16:06AM -0700, Sean Christopherson wrote: > On Tue, May 07, 2024, Mickaël Salaün wrote: > > > Actually, potential bad/crazy idea. Why does the _host_ need to define > > > policy? > > > Linux already knows what assets it wants to (un)protect and when. What's > > >

Re: [PATCH] ntp: remove accidental integer wrap-around

2024-05-14 Thread Thomas Gleixner
On Tue, May 07 2024 at 04:34, Justin Stitt wrote: > Using syzkaller alongside the newly reintroduced signed integer overflow > sanitizer spits out this report: > > [ 138.454979] [ cut here ] > [ 138.458089] UBSAN: signed-integer-overflow in ../kernel/time/ntp.c:461:16 > [

[PATCH] ubsan: remove meaningless CONFIG_ARCH_HAS_UBSAN

2024-05-14 Thread Masahiro Yamada
All architectures can enable UBSAN regardless of ARCH_HAS_UBSAN because there is no "depends on ARCH_HAS_UBSAN" line. Fixes: 918327e9b7ff ("ubsan: Remove CONFIG_UBSAN_SANITIZE_ALL") Signed-off-by: Masahiro Yamada --- MAINTAINERS | 1 - arch/arm/Kconfig | 1 - arch/arm64/Kconfig

Re: [RFC] Mitigating unexpected arithmetic overflow

2024-05-14 Thread Dan Carpenter
Snipped all the bits where you are clearly correct. On Mon, May 13, 2024 at 12:43:37PM -0700, Kees Cook wrote: > > drivers/usb/class/usbtmc.c:852 usbtmc_generic_read() warn: potential > > integer overflow from user 'max_transfer_size + 1' > >842 * wMaxPacketSize – 1) to

Re: [PATCH 0/3] kbuild: remove many tool coverage variables

2024-05-14 Thread Roberto Sassu
On Mon, 2024-05-13 at 11:48 -0700, Kees Cook wrote: > In the future can you CC the various maintainers of the affected > tooling? :) > > On Mon, May 06, 2024 at 10:35:41PM +0900, Masahiro Yamada wrote: > > > > This patch set removes many instances of the following variables: > > > > -