Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2950124pxb; Sun, 26 Sep 2021 00:31:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvDijZiDYDnTzMLwG3QQX8WQiIKb7HnZSi4EuK+If8m+WmziMC1B6vdHL44iJ1gli6UPo7 X-Received: by 2002:a17:906:f8d4:: with SMTP id lh20mr21288673ejb.382.1632641465355; Sun, 26 Sep 2021 00:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632641465; cv=none; d=google.com; s=arc-20160816; b=d1EHUPpUrlUe/NDVVldIE0qQuCRpBrcP3JLUujp+ZzmUyaYfuMJc3+Lx9+cUuEw1Xh 2vZGBw/03AsN6k5w4UTHzBVecD76qZjn1tIl+5zsJwnZg+FXq+rznyWvpARHUtgNQnJ5 SMNdH7L8mO/Kvi/jAI89sEFs9MisOi1tXWmbqeiUg8h/xreru2NQJ+Z0AKmgdJEejUlb /4Y/C6/M9lQpJ0kP2ggquuJgdCFatkO4Y8lgyJbkfzZupOKJxpY1CAAD83PnypkFaptS DScQer+HGpx0J9oc5rmR7OC9NWMK1rWMBDZF0wlmvdPHJY6kqPdGBoHGJv81EfkOeYn+ 5k7A== 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=U/fa5dAqjwomdTS9WpyMFLiAf/tXRxxf7mBFKcOIJh8=; b=Ce0fOhnb+8XUPbi07DtAz6SZHHaTsHi0nJ0AWu/s7K1QVM+k9Np5orspCYEEwELmYG 0NOBYSGp3OJukmx5BZ8jnaHFSo0hmHQpyFeEgEocsoM3pYoBeb2YknuGBSJJ+Q0idQdR 43XT6bvxt3zSrVnZRLkVMOW4/VzOGB3xiCCiM1iTaRmWDmd7ovTswwyWFZCO5gTGStIV Fw6Fd+8UoIaR9i0AIBHDOhXPwHmuD3ECd8iMKwUE3ert0/mdBNzXQSaCKPBztfhOd1Iq JXMReNcF8iVwKaIqQT9ly/ti1zneTsTv2ERgB4xQA4g+uuUshmhkrF9HVY8lg3Q2CHy1 tgGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="GG6/JS9m"; 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 p15si18912213edj.83.2021.09.26.00.30.41; Sun, 26 Sep 2021 00:31:05 -0700 (PDT) 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="GG6/JS9m"; 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 S231231AbhIZHai (ORCPT + 99 others); Sun, 26 Sep 2021 03:30:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:50956 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230035AbhIZHai (ORCPT ); Sun, 26 Sep 2021 03:30:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4BD8760FDA; Sun, 26 Sep 2021 07:29:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632641342; bh=rA4EpRlk04zViZbAIum/pdFKwvy6AuMHAMVKrsQM+NY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GG6/JS9mNqTWP6n/28vTfAWqLjEDPnYi7UE97rPqkxcb7YR0MTedCJN2BFVhB8M9r rGnuHL8vJ3MfzHeMr9lPVjVecvUFqJdQOgmf1dLbgSFM9pifSkoCHt03n5VwAj4B1/ jug49+BQCiR/HQYikFt8tZhXbddn7hAWNRAAhwe0= Date: Sun, 26 Sep 2021 09:28:58 +0200 From: Greg Kroah-Hartman To: Jari Ruusu Cc: Sasha Levin , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Jiri Slaby , Mauro Carvalho Chehab , Linus Torvalds Subject: Re: glibc VETO for kernel version SUBLEVEL >= 255 Message-ID: References: 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 Sun, Sep 26, 2021 at 07:23:33AM +0000, Jari Ruusu wrote: > Earlier this year there was some discussion about kernel version numbers > after 4.9.255 and 4.4.255. Problem was 8-bit limitation for SUBLEVEL > number in stable kernel versions. The fix was to freeze LINUX_VERSION_CODE > number at x.x.255 and to continue incrementing SUBLEVEL number. Seems > there are more more fallout from that decision. At least some versions of > glibc do not play well with larger SUBLEVEL numbers. > > > # uname -s -r -m > Linux 4.9.283-QEMU armv6l > # apt upgrade > Reading package lists... Done > Building dependency tree > Reading state information... Done > Calculating upgrade... Done > The following packages will be upgraded: > [SNIP] > Fetched 145 MB in 1min 57s (1244 kB/s) > Reading changelogs... Done > Preconfiguring packages ... > (Reading database ... 39028 files and directories currently installed.) > Preparing to unpack .../libc6-dbg_2.28-10+rpt2+rpi1_armhf.deb ... > Unpacking libc6-dbg:armhf (2.28-10+rpt2+rpi1) over (2.28-10+rpi1) ... > Preparing to unpack .../libc6-dev_2.28-10+rpt2+rpi1_armhf.deb ... > Unpacking libc6-dev:armhf (2.28-10+rpt2+rpi1) over (2.28-10+rpi1) ... > Preparing to unpack .../libc-dev-bin_2.28-10+rpt2+rpi1_armhf.deb ... > Unpacking libc-dev-bin (2.28-10+rpt2+rpi1) over (2.28-10+rpi1) ... > Preparing to unpack .../linux-libc-dev_1%3a1.20210831-3~buster_armhf.deb ... > Unpacking linux-libc-dev:armhf (1:1.20210831-3~buster) over (1:1.20210527-1) ... > Preparing to unpack .../libc6_2.28-10+rpt2+rpi1_armhf.deb ... > ERROR: Your kernel version indicates a revision number > of 255 or greater. Glibc has a number of built in > assumptions that this revision number is less than 255. > If you\'ve built your own kernel, please make sure that any > custom version numbers are appended to the upstream > kernel number with a dash or some other delimiter. > > dpkg: error processing archive /var/cache/apt/archives/libc6_2.28-10+rpt2+rpi1_armhf.deb (--unpack): > new libc6:armhf package pre-installation script subprocess returned error exit status 1 > Errors were encountered while processing: > /var/cache/apt/archives/libc6_2.28-10+rpt2+rpi1_armhf.deb > E: Sub-process /usr/bin/dpkg returned an error code (1) > > > > Above upgrade works normally if I edit top level Linux source Makefile to > say "SUBLEVEL = 0" and re-compile new kernel. > > I am not pointing any fingers here, but it seems that either glibc code or > stable kernel versioning is messed up. Are you sure this isn't just a warning coming from a script that apt is running when trying to install glibc? Or is this from the glibc package itself? And what exactly is it testing? We fixed the build time detection of the kernel version here, so you should be able to build glibc properly. This is the first time we've seen this reported, are people using the newer kernels on systems that are not using glibc? thanks, greg k-h