Re: [PATCH] xfs: use kvfree for buf in xfs_ioc_getbmap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 16, 2024 at 06:02:30PM +0100, Christoph Hellwig wrote:
> Without this the kernel crashes in kfree for files with a sufficiently
> large number of extents.
> 
> Fixes: d4c75a1b40cd ("xfs: convert remaining kmem_free() to kfree()")
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>

LGTM:
Reviewed-by: Carlos Maiolino <cmaiolino@xxxxxxxxxx>

> ---
>  fs/xfs/xfs_ioctl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c
> index 7eeebcb6b9250b..7c35d764409720 100644
> --- a/fs/xfs/xfs_ioctl.c
> +++ b/fs/xfs/xfs_ioctl.c
> @@ -1506,7 +1506,7 @@ xfs_ioc_getbmap(
> 
>  	error = 0;
>  out_free_buf:
> -	kfree(buf);
> +	kvfree(buf);
>  	return error;
>  }
> 
> --
> 2.39.2
> 
> 




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux