Re: [PATCH 5.4,5.10 2/2] udf: Fix use of check_add_overflow() with mixed type arguments

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

 



On Tue, Mar 11, 2025 at 06:00:58PM +0100, Ben Hutchings wrote:
> On Mon, 2025-03-10 at 17:29 +0100, Greg KH wrote:
> > On Mon, Feb 24, 2025 at 11:28:22PM +0100, Ben Hutchings wrote:
> > > On Mon, 2025-02-24 at 17:00 +0100, Ben Hutchings wrote:
> > > > Commit ebbe26fd54a9 "udf: Avoid excessive partition lengths"
> > > > introduced a use of check_add_overflow() with argument types u32,
> > > > size_t, and u32 *.
> > > > 
> > > > This was backported to the 5.x stable branches, where in 64-bit
> > > > configurations it results in a build error (with older compilers) or a
> > > > warning.  Before commit d219d2a9a92e "overflow: Allow mixed type
> > > > arguments", which went into Linux 6.1, mixed type arguments are not
> > > > supported.  That cannot be backported to 5.4 or 5.10 as it would raise
> > > > the minimum compiler version for these kernel versions.
> > > [....]
> > > 
> > > And for 5.15, I think it should be safe to backport commit
> > > d219d2a9a92e.  Otherwise this patch should be applied to fix the
> > > warning there.
> > 
> > I'll take either, whch do you want us to do?
> 
> Please apply commit d219d2a9a92e to 5.15.

It showed up in the 5.15.149 release.  Is there a portion of it missing
there?

confused,

greg k-h




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux