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] [day] [month] [year] [list]
Message-ID: <whk5wq6xrgseskyam5r2pgvwyremagomvvckz4mrf2z5pbb5io@l2lk6halo73o>
Date: Sun, 9 Mar 2025 01:59:33 -0500
From: Kent Overstreet <kent.overstreet@...ux.dev>
To: Thorsten Blum <thorsten.blum@...ux.dev>
Cc: linux-bcachefs@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [RESEND PATCH] bcachefs: Remove unnecessary byte allocation

On Sat, Mar 08, 2025 at 08:53:53PM +0100, Thorsten Blum wrote:
> The extra byte is not used - remove it.
> 
> Signed-off-by: Thorsten Blum <thorsten.blum@...ux.dev>

applied
> ---
>  fs/bcachefs/fs-ioctl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/bcachefs/fs-ioctl.c b/fs/bcachefs/fs-ioctl.c
> index d9f1a7c09e85..9761a365552a 100644
> --- a/fs/bcachefs/fs-ioctl.c
> +++ b/fs/bcachefs/fs-ioctl.c
> @@ -244,7 +244,7 @@ static int bch2_ioc_reinherit_attrs(struct bch_fs *c,
>  	int ret = 0;
>  	subvol_inum inum;
>  
> -	kname = kmalloc(BCH_NAME_MAX + 1, GFP_KERNEL);
> +	kname = kmalloc(BCH_NAME_MAX, GFP_KERNEL);
>  	if (!kname)
>  		return -ENOMEM;
>  
> -- 
> 2.48.1
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ