Re: [PATCH 2/3] kbuild: clamp SUBLEVEL to 255

2021-02-08 Thread Masahiro Yamada
On Mon, Feb 8, 2021 at 10:48 PM David Laight wrote: > > From: Sasha Levin > > Sent: 06 February 2021 03:51 > > > > Right now if SUBLEVEL becomes larger than 255 it will overflow into the > > territory of PATCHLEVEL, causing havoc in userspace that tests for > > specific kernel version. > > > > Whi

RE: [PATCH 2/3] kbuild: clamp SUBLEVEL to 255

2021-02-08 Thread David Laight
From: gre...@linuxfoundation.org > Sent: 08 February 2021 14:09 > > On Mon, Feb 08, 2021 at 01:48:06PM +, David Laight wrote: > > From: Sasha Levin > > > Sent: 06 February 2021 03:51 > > > > > > Right now if SUBLEVEL becomes larger than 255 it will overflow into the > > > territory of PATCHLEV

Re: [PATCH 2/3] kbuild: clamp SUBLEVEL to 255

2021-02-08 Thread gre...@linuxfoundation.org
On Mon, Feb 08, 2021 at 01:48:06PM +, David Laight wrote: > From: Sasha Levin > > Sent: 06 February 2021 03:51 > > > > Right now if SUBLEVEL becomes larger than 255 it will overflow into the > > territory of PATCHLEVEL, causing havoc in userspace that tests for > > specific kernel version. > >

RE: [PATCH 2/3] kbuild: clamp SUBLEVEL to 255

2021-02-08 Thread David Laight
From: Sasha Levin > Sent: 06 February 2021 03:51 > > Right now if SUBLEVEL becomes larger than 255 it will overflow into the > territory of PATCHLEVEL, causing havoc in userspace that tests for > specific kernel version. > > While userspace code tests for MAJOR and PATCHLEVEL, it doesn't test > S

Re: [PATCH 2/3] kbuild: clamp SUBLEVEL to 255

2021-02-06 Thread Masahiro Yamada
On Sat, Feb 6, 2021 at 12:50 PM Sasha Levin wrote: > > Right now if SUBLEVEL becomes larger than 255 it will overflow into the > territory of PATCHLEVEL, causing havoc in userspace that tests for > specific kernel version. > > While userspace code tests for MAJOR and PATCHLEVEL, it doesn't test >

Re: [PATCH 2/3] kbuild: clamp SUBLEVEL to 255

2021-02-06 Thread Greg KH
On Fri, Feb 05, 2021 at 10:50:32PM -0500, Sasha Levin wrote: > Right now if SUBLEVEL becomes larger than 255 it will overflow into the > territory of PATCHLEVEL, causing havoc in userspace that tests for > specific kernel version. > > While userspace code tests for MAJOR and PATCHLEVEL, it doesn't

[PATCH 2/3] kbuild: clamp SUBLEVEL to 255

2021-02-05 Thread Sasha Levin
Right now if SUBLEVEL becomes larger than 255 it will overflow into the territory of PATCHLEVEL, causing havoc in userspace that tests for specific kernel version. While userspace code tests for MAJOR and PATCHLEVEL, it doesn't test SUBLEVEL at any point as ABI changes don't happen in the context