From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id 2DDE23858D3C for ; Mon, 21 Feb 2022 14:07:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2DDE23858D3C Received: by mail-ot1-x335.google.com with SMTP id b17-20020a9d4791000000b005a17fc2dfc1so7493254otf.1 for ; Mon, 21 Feb 2022 06:07:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:from:to:references:in-reply-to :content-transfer-encoding; bh=l6xAj1dcVTyeNYB8pwHEOVsune5t69WjunFcVf0Uh2Y=; b=ZKPB7MUB0EZR5CzyYNhG7AgKDXQjlHHi9MkQiT9M1oWVGx0dqXOXBuH87duJJaM/WR +104Dcxy/9wQsOweCq3T7ujAKLvsZB7wfjEj3wz07a7ySBuVnPbkr+aQ9ype0Ecrt7Zf 3ue2vENovLNv8A8CqW6Xc0n0xPMJ81aKCTu7o6ACsdlXMxTUNcO9jXOO6ByYHNAzbstW 1zqf1s+rqe9rmgE9ddCbqcRPsZDdb7SJP7Orb0suPWkzad7BSNBcqEycFD9B9zKWvTlm WcNJ9vWPIgDNI6qwWMIOGgt/mW1xKx+mxaDJmM6TqtHnM5W5I6jpJ7Rey0/xX0A6WSov d20A== X-Gm-Message-State: AOAM531WGWPBdpWtiJSEh3AYuZcf2NxU/LcKW33dP64sQDsNRXmJcuF3 M+ybtfnGe8BZx8snXe6/zxnTx0TGK8eG4g== X-Google-Smtp-Source: ABdhPJwJyCdg2FqyoTnkF9XhTaMjVZELGQ77pbvh/lD+deoIWMJdCCz0+FRKAyrHrLBoqlmdn3EHdQ== X-Received: by 2002:a05:6830:4a9:b0:5af:5a2d:7a13 with SMTP id l9-20020a05683004a900b005af5a2d7a13mr377605otd.193.1645452434320; Mon, 21 Feb 2022 06:07:14 -0800 (PST) Received: from ?IPV6:2804:431:c7ca:cb36:ae42:babb:bfa3:4f13? ([2804:431:c7ca:cb36:ae42:babb:bfa3:4f13]) by smtp.gmail.com with ESMTPSA id be19sm7402808oib.31.2022.02.21.06.07.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Feb 2022 06:07:13 -0800 (PST) Message-ID: <5fd2a66c-6cd9-9c1f-e847-725121413eec@linaro.org> Date: Mon, 21 Feb 2022 11:07:11 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH] Remove kernel version check Content-Language: en-US From: Adhemerval Zanella To: libc-alpha@sourceware.org, Florian Weimer References: <20220221123154.155817-1-adhemerval.zanella@linaro.org> In-Reply-To: <20220221123154.155817-1-adhemerval.zanella@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, URIBL_BLACK autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2022 14:07:17 -0000 On 21/02/2022 09:31, Adhemerval Zanella wrote: > The kernel version check is used to avoid glibc to run on older > kernels where some syscall are not available and fallback code are > not enabled to handle graciously fail. However, it does not prevent > if the kernel does not correctly advertise its version through > vDSO note, uname or procfs. > > Also kernel version checks are sometime not desirable by users, > where they want to deploy on different system with different kernel > version knowing the minimum set of syscall is always presented on > such systems. > > The kernel version check has been removed along with the > LD_ASSUME_KERNEL environment variable. The minimum kernel used to > built glibc is still provided through NT_GNU_ABI_TAG ELF note and > also printed when libc.so is issued. > > Checked on x86_64-linux-gnu. I will send an update version to build on all architectures.