Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1803445pxb; Fri, 5 Feb 2021 01:39:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxIo5b4Fz2VT+Sxkn+pRTjEvMEKGHoz4TI1ddoCG5lmm2Ri5e8KiPLq6f1XEzHWoHEzKq+c X-Received: by 2002:a17:906:a453:: with SMTP id cb19mr3266382ejb.459.1612517961205; Fri, 05 Feb 2021 01:39:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612517961; cv=none; d=google.com; s=arc-20160816; b=Bc5VXUO96YRU5fywGB2JqEf1a5CJ7jSeeSks0mlZthsoiRLeq0M9a2ZY3nwQXQsSRD Kph/YwudMGyIMm4kqQabEboppUScWY03vRAz1Glz8YRbdo4y9PakppMbDeY/uOLCe0LN brA6vOOwf39jSbqXtjpfXY2IkSMdI0LN08nEVWAbEaYYRSjr+n3IdaUjAK0dOpC0ugLx aUFU8oqaGVCkoYjMwjWO37/pV6AdlyHbzLnCdHiAn1qFnqyHXEr5accz6/RA6nb+kdLG DT952i8+e0Ce3z1Oib4VULagEETwhmGHNvriaSAAJXCcT9rdZZlLlEwhkWOw9tUiBHAG TfnA== 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=1WouwAEhU/Wy/LxaPXpl374L4z5TnqVFe8UjaBzZgnU=; b=TTZHFmxFMtWySz3lC1poWdXsBPDuRSNCItnEHN6+u6c9XxjXxZ9gd/JDtE1WtfVdt0 kMn4nBu9O9W0tcOAsngTvf2TylHigUcQO2+d0n3Kcpurtp7ZlDflYRJ+GEuyqecYeDNt 5MA3wkZ3Gt0bS1pNM+1bHjycvxVGzai4njPtF1P1S8Iulu2xRNL6NjjOOj0eBqENygf0 /5J+tM+kU+seZPpCPSRA4bt4jL37RjHJxtA33UJwndFVvQujJW9p809DrMbxYpIDI24g NzPAOKny7Id4XgqlxMEhbSAMy/4imWpfki3UE90Q8L0AcfmOZketOdS5gmWZl8XS4QtD zITg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UPzAb0Gv; 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 w5si6285113edv.513.2021.02.05.01.38.56; Fri, 05 Feb 2021 01:39:21 -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=UPzAb0Gv; 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 S230322AbhBEJhw (ORCPT + 99 others); Fri, 5 Feb 2021 04:37:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:38536 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230192AbhBEJeB (ORCPT ); Fri, 5 Feb 2021 04:34:01 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D735564F87; Fri, 5 Feb 2021 09:33:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612517600; bh=sEJ206tK8tfWovLmF9zh6XZG7atL05JuXezYQtriNBw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UPzAb0GvJ+zfqZaRj+jnoizNb7fyyDlHpsNPEyn87lqK9Yzg56Qdt8ERu14vUT4xt 71e2cstB2jH2l5z7jdgZShNvmjIsjb46wxu6uNXubOd+/AyaOHJzZ756dTJer3vymL 2/Czw/RFBS5uzL/govTHnuUBrsxKVgVN1mggYBl4= Date: Fri, 5 Feb 2021 10:33:17 +0100 From: Greg Kroah-Hartman To: Pavel Machek 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> <20210205090659.GA22517@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210205090659.GA22517@amd> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 05, 2021 at 10:06:59AM +0100, Pavel Machek wrote: > On Thu 2021-02-04 09:51:03, Greg Kroah-Hartman wrote: > > On Thu, Feb 04, 2021 at 08:26:04AM +0100, Jiri Slaby wrote: > > > On 04. 02. 21, 7:20, Greg Kroah-Hartman wrote: > > > > On Thu, Feb 04, 2021 at 05:59:42AM +0000, Jari Ruusu wrote: > > > > > Greg, > > > > > I hope that your linux kernel release scripts are > > > > > implemented in a way that understands that PATCHLEVEL= and > > > > > SUBLEVEL= numbers in top-level linux Makefile are encoded > > > > > as 8-bit numbers for LINUX_VERSION_CODE and > > > > > KERNEL_VERSION() macros, and must stay in range 0...255. > > > > > These 8-bit limits are hardcoded in both kernel source and > > > > > userspace ABI. > > > > > > > > > > After 4.9.255 and 4.4.255, your scripts should be > > > > > incrementing a number in EXTRAVERSION= in top-level > > > > > linux Makefile. > > > > > > > > Should already be fixed in linux-next, right? > > > > > > I assume you mean: > > > commit 537896fabed11f8d9788886d1aacdb977213c7b3 > > > Author: Sasha Levin > > > Date: Mon Jan 18 14:54:53 2021 -0500 > > > > > > kbuild: give the SUBLEVEL more room in KERNEL_VERSION > > > > > > That would IMO break userspace as definition of kernel version has changed. > > > And that one is UAPI/ABI (see include/generated/uapi/linux/version.h) as > > > Jari writes. For example will glibc still work: > > > http://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/configure.ac;h=13abda0a51484c5951ffc6d718aa36b72f3a9429;hb=HEAD#l14 > > > > > > ? Or gcc 10 (11 will have this differently): > > > https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/config/bpf/bpf.c;hb=ee5c3db6c5b2c3332912fb4c9cfa2864569ebd9a#l165 > > > > > > and > > > > > > https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/config/bpf/bpf-helpers.h;hb=ee5c3db6c5b2c3332912fb4c9cfa2864569ebd9a#l53 > > > > Ugh, I thought this was an internal representation, not an external one > > :( > > > > > 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 :) > > > > So, let's leave it alone and just see what happens! > > Yeah, stable is a great place to do the experiments. Not that this is > the first time :-(. How else can we "test this out"? Should I do an "empty" release of 4.4.256 and see if anyone complains? Any other ideas are gladly welcome... thanks, greg k-h