Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1273943pxb; Thu, 4 Feb 2021 08:54:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/jVBVhRTboFc1QNfvaRRY5TvIAM7ECZl6FTdYsRVs5r6n5bixn9JKvN8Lhnhs6zT3QG/C X-Received: by 2002:aa7:d696:: with SMTP id d22mr8668413edr.361.1612457645908; Thu, 04 Feb 2021 08:54:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612457645; cv=none; d=google.com; s=arc-20160816; b=e617MxMjXJvkngUOpqLS3r0xUtZIV/wCNkiFZ97Av1Ntdp6M65gLDCqNVi+UpZgvO0 B5F9924qbgCNOxt82BroTRJuJ8rMLfkpsZp1WzKC/wu54tJ9ETt+e4RK/Hz7AznJ40YS h0FX4pvMK/wNyJ9UtzUld+hTMxGqN4bmjVejuBClRde2ZifsaBpXsvSHOxhDseVYNn0p M6NH+XSeTVKcUS5U7b3naKgqKIjdxz70cn9P7gPNi6tlpEf2ZJvdrms4YZH4kQqKNpCO xAsxQLtXsnAuuCCs8JzN0vcP/lP3yv5dyo0Vsr3euMqI4YIoh7i1sGErPdziTIl7w9Za agCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=siwoYQbXSCedEySSjd5oThQQ3lSsdWo4Tp5eMWQsR8Q=; b=yTHg01FUMNHyvMIXaxlrt60WicaDofHgd0Moes5aVJAu/YiqJE5henzcL8MtDxK8Hf mJ+xgE8Y3uSg7EuQl0/H/s6gyF9CnTkFM/J8Ri8vIGmel0r08W5P/3S0KXz/tn9lpV5d /VXR+uyz5A/mYI1bg4hJjb1k9hcqa8RYw/ZTvxRg/izhDwyNBvaG5rd6ODrlF2s4cKsM IebY5000nezUiPkRTKhaj/956Gzm0lXMbLG0d0RNa/zyXWn9QKeKs/eY6rHso4yxKoOp e5TG88x0KBGXVNIAcC1ac6qfMHSq2GooG+sQm+vydHHStFNy7CzkhznNg8KyX2FYYyKB hU1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dvEQU7mD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b2si3428679ejc.551.2021.02.04.08.53.41; Thu, 04 Feb 2021 08:54:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dvEQU7mD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237638AbhBDQvL (ORCPT + 99 others); Thu, 4 Feb 2021 11:51:11 -0500 Received: from mail.kernel.org ([198.145.29.99]:51248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238118AbhBDQsy (ORCPT ); Thu, 4 Feb 2021 11:48:54 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id CFECC64DA3; Thu, 4 Feb 2021 16:48:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612457293; bh=XFs0VAuDxw0PgpvNH4+/XNKhcukc6dJkT0donvjsDTU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dvEQU7mD+yC4zlV1QyQpO5Xfg/BZT8mIXuk35br3aM/07obutBF6xlhhreIOcOsbg DxooHzE7Wl3KjQNCA6/bUMUfwJ9JTP/bHOkOc28izycBGDNVto+Qdbl9qzVyblD4bZ wuq+av0rOpALgXYkrhGZTETw/EJXSVplEYLyFuXE= Date: Thu, 4 Feb 2021 17:48:10 +0100 From: Greg Kroah-Hartman To: David Laight Cc: 'Jiri Slaby' , Jari Ruusu , Sasha Levin , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , "torvalds@linux-foundation.org" , "masahiroy@kernel.org" Subject: Re: Kernel version numbers after 4.9.255 and 4.4.255 Message-ID: References: <7pR0YCctzN9phpuEChlL7_SS6auHOM80bZBcGBTZPuMkc6XjKw7HUXf9vZUPi-IaV2gTtsRVXgywQbja8xpzjGRDGWJsVYSGQN5sNuX1yaQ=@protonmail.com> <78ada91b-21ee-563f-9f75-3cbaeffafad4@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 04, 2021 at 04:28:19PM +0000, David Laight wrote: > From: Jiri Slaby > > Sent: 04 February 2021 11:01 > > > > On 04. 02. 21, 9:51, Greg Kroah-Hartman wrote: > > >> It might work somewhere, but there are a lot of (X * 65536 + Y * 256 + Z) > > >> assumptions all around the world. So this doesn't look like a good idea. > > > > > > Ok, so what happens if we "wrap"? What will break with that? At first > > > glance, I can't see anything as we keep the padding the same, and our > > > build scripts seem to pick the number up from the Makefile and treat it > > > like a string. > > > > > > It's only the crazy out-of-tree kernel stuff that wants to do minor > > > version checks that might go boom. And frankly, I'm not all that > > > concerned if they have problems :) > > > > Agreed. But currently, sublevel won't "wrap", it will "overflow" to > > patchlevel. And that might be a problem. So we might need to update the > > header generation using e.g. "sublevel & 0xff" (wrap around) or > > "sublevel > 255 : 255 : sublevel" (be monotonic and get stuck at 255). > > > > In both LINUX_VERSION_CODE generation and KERNEL_VERSION proper. > > A full wrap might catch checks for less than (say) 4.4.2 which > might be present to avoid very early versions. Who does that? > So sticking at 255 or wrapping onto (say) 128 to 255 might be better. Better how? > I'm actually intrigued about how often you expect people to update > systems running these LTS kernels. Whenever they can, and should. > At a release every week it takes 5 years to run out of sublevels. > No one is going to reboot a server anywhere near that often. Why not? Usually kernels this old are stuck in legacy embedded systems, like last year's new phone models :) thanks, greg k-h