Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1563916pxb; Thu, 4 Feb 2021 16:59:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNghJ0T7hiz2sL/2RQaQoEsQugmGcXWpWe/Vy7RM2bMizT5mRy/+70iQVkHJ/pzoCqmQC/ X-Received: by 2002:a05:6402:11c7:: with SMTP id j7mr1174283edw.290.1612486793854; Thu, 04 Feb 2021 16:59:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612486793; cv=none; d=google.com; s=arc-20160816; b=zolvx+ksNGE+H9VPN1/GiQUJ0k5oBSnoKmONuqzX/HfWJdZa0/y3ey2b8CcPqIhArB MmoEzLdm/ZZjlY7AgBm08ygeYTwjI6aIiph92XDEAciXL3xeRLUFKdntYdcB6s1q023A xdM8DnEDn0zqJTVWsi7p4WTdRYHDM3kPeYty/zvjhAO3HDTiot+K7z38TuETs6FYtI7H kPNHVzUnpUmpI1rpw5xrERPG3Ey+0yQvPTm0CpfYW3+nGPUGETW8PemlmImYCx6rq3LN uy7OChVnPWmL689s11Cd5rV2KPDQ/mMTPUhF6p9IGIZ/516jl5+0qFIj7k6tCiu+ovyt 7Pxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=O2sYJlvdd2y7tWKNgMLTBC28JwEzDynRuC6xAW1zed8=; b=EpNE+T7Xj0Wm9QBxN9H7V6IzlvrsttAoZYJA3FbkbJ4khoYB1zpOAtEIsd4NQF2k7Q +ii8bmuaqZPh2Sprzf46/ARWrRfkiJGvfYTnditDukZn3/SWGqdCXqQbkAMKK9PRCR7w j55kkKVLiluFVbV8C7ov65Z3j7XicmRM60tyaqjYnpjLdOox8ZCVWZTzTeqQEJjJILqx SRTP6oRdBho0h3SpqqIeaUM3O6YHrk7C37CpWtXLK4yKCtZAlO9EkbLfFKVor3mSMDbX rv79k/vGEn2smlQPuBr4LHmW4zXXPwjl4yverzudiAqItnXylPVQ3fV0iQg3YZLs+odK 5rEw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c1si4439162edt.150.2021.02.04.16.59.29; Thu, 04 Feb 2021 16:59:53 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238058AbhBDQb0 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 4 Feb 2021 11:31:26 -0500 Received: from eu-smtp-delivery-151.mimecast.com ([207.82.80.151]:48815 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237959AbhBDQaH (ORCPT ); Thu, 4 Feb 2021 11:30:07 -0500 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-194-TSeX4CFXOvyRP8G_g9_k_g-1; Thu, 04 Feb 2021 16:28:21 +0000 X-MC-Unique: TSeX4CFXOvyRP8G_g9_k_g-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) by AcuMS.aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 4 Feb 2021 16:28:19 +0000 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Thu, 4 Feb 2021 16:28:19 +0000 From: David Laight To: 'Jiri Slaby' , Greg Kroah-Hartman CC: 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 Thread-Topic: Kernel version numbers after 4.9.255 and 4.4.255 Thread-Index: AQHW+uViVyzcoeH5bki3CmwTgHKEKKpIK/bQ Date: Thu, 4 Feb 2021 16:28:19 +0000 Message-ID: References: <7pR0YCctzN9phpuEChlL7_SS6auHOM80bZBcGBTZPuMkc6XjKw7HUXf9vZUPi-IaV2gTtsRVXgywQbja8xpzjGRDGWJsVYSGQN5sNuX1yaQ=@protonmail.com> <78ada91b-21ee-563f-9f75-3cbaeffafad4@kernel.org> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. So sticking at 255 or wrapping onto (say) 128 to 255 might be better. I'm actually intrigued about how often you expect people to update systems running these LTS kernels. 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. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)