Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2141394pxb; Fri, 5 Feb 2021 09:53:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJymznYb89E0c0aau+/JTTzEhDzEMvHdLSUcnAhgQHrLTxtXJ1k2QnNl5j1vuma/f+HW6aja X-Received: by 2002:a17:906:3285:: with SMTP id 5mr5172388ejw.356.1612547596391; Fri, 05 Feb 2021 09:53:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612547596; cv=none; d=google.com; s=arc-20160816; b=i1re0It/e5u+ng7jIlVhuNIMsDJDivuRcHTXikEEWNm1WROai5NV0Lxqyvc1DncmTp jn5mADgfeeV9OcGlNOaOKzlxmBLY2EVPHQgO+Sc66l2/6eIM5QOujvoqWYCtR34Sfckm +Cyg+P84Dh9TlD9w2I29+EYLl5y9Ug0X2cxPsr1nJM96hOBAQ5fltexGk/9AMCSxwqnd 86O4dsCE+YsaaCx1M06jv3nb67sjoI2L49y1G0uWhfY3s8cetjGpU8gySHYicoX8G19J wPwGGW27vcUa8EG+ftP1YITUz2p4HW16RU9zw79xggG3LBO90pi4m047PUhocqHddHsz VvAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:cc:from :references:to:subject; bh=sHZ51gXeJhiulqeYqxwXHbNLuByn5aCZ8IrZzZGhfxI=; b=DHWBBq63KR2aXwVQSA7+UQWlSFBPYuwyoYAD+Se1T/Iw586CmNxPbqHieDrEr6/dqH h2cKDnb5TpFxTraSRXjWw5rAgnoDof+B00Gm8B/SGn8qxFBNUsh86NNrQTtZo8M9vuWp Q+ykmoE43Ka5XGYrk88GjP66jLcvc6SDWL4kRvzpc6d6tyKfMNIzXfCZ9yRNt6ismarR QfSPu6gGTdmXheCIA9f+e1947GRyY2eW0AsN/gr2/K+JqrPZ8h+9znYVIZLpyjSk2vbm D/bHlXSsOePEM10cV2oPnSwKdyimXVWzADrN1Y28Ojr4ZNLgKR+DUi4neUZ6fHRL+tUU OVCA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp21si5228363ejc.108.2021.02.05.09.52.47; Fri, 05 Feb 2021 09:53:16 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229587AbhBEQIJ (ORCPT + 99 others); Fri, 5 Feb 2021 11:08:09 -0500 Received: from mail.cybernetics.com ([173.71.130.66]:40446 "EHLO mail.cybernetics.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233499AbhBEQCH (ORCPT ); Fri, 5 Feb 2021 11:02:07 -0500 X-Greylist: delayed 725 seconds by postgrey-1.27 at vger.kernel.org; Fri, 05 Feb 2021 11:02:07 EST X-ASG-Debug-ID: 1612546268-0fb3b014601af740001-xx1T2L Received: from cybernetics.com ([10.10.4.126]) by mail.cybernetics.com with ESMTP id LjUxXFWAiKKmTNJg; Fri, 05 Feb 2021 12:31:08 -0500 (EST) X-Barracuda-Envelope-From: tonyb@cybernetics.com X-ASG-Whitelist: Client Received: from [10.157.2.224] (account tonyb HELO [192.168.200.1]) by cybernetics.com (CommuniGate Pro SMTP 5.1.14) with ESMTPSA id 10522515; Fri, 05 Feb 2021 12:31:05 -0500 Subject: Re: Kernel version numbers after 4.9.255 and 4.4.255 To: Jiri Slaby , Greg Kroah-Hartman X-ASG-Orig-Subj: Re: Kernel version numbers after 4.9.255 and 4.4.255 References: From: Tony Battersby Cc: linux-kernel@vger.kernel.org, Jari Ruusu , David Laight , Christoph Biedl Message-ID: <0b12bac9-1b4e-ec4a-8a45-5eb3f1dbbeca@cybernetics.com> Date: Fri, 5 Feb 2021 12:31:05 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Barracuda-Connect: UNKNOWN[10.10.4.126] X-Barracuda-Start-Time: 1612546268 X-Barracuda-URL: https://10.10.4.122:443/cgi-mod/mark.cgi X-Barracuda-BRTS-Status: 1 X-Virus-Scanned: by bsmtpd at cybernetics.com X-Barracuda-Scan-Msg-Size: 1445 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/4/21 6:00 AM, Jiri Slaby wrote: > 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. My preference would be to be monotonic and get stuck at 255 to avoid breaking out-of-tree modules.  If needed, add another macro that increases the number of bits that can be used to check for sublevels > 255, while keeping the old macros for compatibility reasons.  Since sublevels > 255 have never existed before, any such checks must be newly-added, so they can be required to use the new macros. I do not run the 4.4/4.9 kernels usually, but I do sometimes test a wide range of kernels from 3.18 (gasp!) up to the latest when bisecting, benchmarking, or debugging problems.  And I use a number of out-of-tree modules that rely on the KERNEL_VERSION to make everything work.  Some out-of-tree modules like an updated igb network driver might be needed to make it possible to test the old kernel on particular hardware. In the worst case, I can patch LINUX_VERSION_CODE and KERNEL_VERSION locally to make out-of-tree modules work.  Or else just not test kernels with sublevel > 255. Tony Battersby Cybernetics