Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2108841ybk; Mon, 11 May 2020 12:07:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKnD6hRW8RjLyy16sVk7HBOnhDuSRjjthhRaKM4hEVtl8dgdwd/3b8K/r8OR1xfGvYFG4X X-Received: by 2002:a17:906:c308:: with SMTP id s8mr4855270ejz.366.1589224036232; Mon, 11 May 2020 12:07:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589224036; cv=none; d=google.com; s=arc-20160816; b=YSDr6Fs9P2ZQWJeLL/Yl65h5qGZzih7IgzRUcn/Vl0lCGG765zoS8s4SaHwqVnAJZC Y5JHD/zVyxJD84uRmx0N9nL5Df2yvKnvHsWja4OeUJBKn/egfLZZbxRw+qKTnSjhLU3L DenNWQ5yT6l9bwP01vorsIwEH4kie7zkiR/ITfAvBffpzIaOPvDH9D2nPbOfe8et3/7q FnunBuf3/d8GduRjDnuumZkFPfNFDQ8SGQgW3B6xRhiWzmuP7aaQ54efGiJTp+J7Vli/ GWZsWO9Z4qegQdw2iMneau+tCi+gKWNuyU4iL4FagoWKtM4ye/LI+iql+OrQzU8sr2dY jcAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=YzsKJVzyv809UlovZpoNnJ1plerWdeBBXFFvRwVCLfU=; b=TPlDzeHc/pMa77Vp8clFJeTqzI/jxorGYaSZH651Anoe9HoXyEs4i1G8oZkycxBZW/ gzSfzWzt603ANy0BJz72qls1aifFRhSV3j/sx+fMEzuzb+ljDJeXRcD1y/y88/yghTTP SlKYlGYvmjBjdhcVROV3KgnsXH49yqMtJ1SkxB0j0a0jZtsgiOVbM1px2cGCxUoUMNbZ M+e106mVhpLKhdPDTq02W1rBHpTt9dJ4gtak1MtpE6HIWfEQz7WiOZ426eVwouFOQT1n wUd7ZHIYIs5w4IrFwcg//09oNfzIiSTdkNZZ0W54K8W9+5lcbsRFrdnCNzKbLV/Kh6yB 868w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Aityn5qw; 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 c2si2436378ejb.278.2020.05.11.12.06.49; Mon, 11 May 2020 12:07:16 -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=@linux-foundation.org header.s=google header.b=Aityn5qw; 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 S1731273AbgEKTE3 (ORCPT + 99 others); Mon, 11 May 2020 15:04:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1731263AbgEKTE2 (ORCPT ); Mon, 11 May 2020 15:04:28 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BEC4C061A0C for ; Mon, 11 May 2020 12:04:28 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id 188so8453069lfa.10 for ; Mon, 11 May 2020 12:04:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YzsKJVzyv809UlovZpoNnJ1plerWdeBBXFFvRwVCLfU=; b=Aityn5qwpqm1WDEUGTp+1nV456XmvV8CfFEmW41oj4/bMkwJhVeEng5HZPhERMEjHU nCY9cggNS6UjKU4dGM6tzdYgB+qfI9VUHZ+DaRJy6199MAVi3dYOMOGDK92kbBygXWj9 X+8s8UBqSDnkYdebJ7Q86uwTiep2ZsMcMt2rA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YzsKJVzyv809UlovZpoNnJ1plerWdeBBXFFvRwVCLfU=; b=Lf53/13rpQQQ9ePSBBxmNqxSoWHMkcU/OQ6UTQY0kv6BMfFU9dNB/NF428XM1glygd 8Wtw9eR58Kfz6KAUGhYYAdcvki/8owhzKaLIn3PjeDZc/R4CkBfZWISKlHmQ9ESYe35A mwrEW5p4FMktJHwdn3UFacYf+aW+tjiIIhohiiEKlzRF8fXnjEm2mM4H+wf60/X2KG4u z+jG02XvX7UoOYW025WcRme/vo9XO/NXPrJPgm6eHVyA6q+1foqtahY6BHf33xxc5VFS McvIdljgtg/vF4oGnyFbvME/DOmux5TPpgoP2Ymr8GyCoH2tNlekaDakhu3N8E520AyP K47g== X-Gm-Message-State: AOAM533r5wJUcwB/HN1W+EjT289wcKtS//Ra6U7d5eReyubwG3/x3l46 XZFtuL8jiJZBFBLJSnpKiZMQlI8InVY= X-Received: by 2002:ac2:4354:: with SMTP id o20mr3094608lfl.102.1589223866538; Mon, 11 May 2020 12:04:26 -0700 (PDT) Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com. [209.85.208.175]) by smtp.gmail.com with ESMTPSA id o204sm12034279lff.64.2020.05.11.12.04.25 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 May 2020 12:04:25 -0700 (PDT) Received: by mail-lj1-f175.google.com with SMTP id e25so10777048ljg.5 for ; Mon, 11 May 2020 12:04:25 -0700 (PDT) X-Received: by 2002:a2e:9a54:: with SMTP id k20mr11892212ljj.265.1589223865222; Mon, 11 May 2020 12:04:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Mon, 11 May 2020 12:04:09 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] RISC-V Fixes for 5.7-rc5 To: Andreas Schwab Cc: Palmer Dabbelt , linux-riscv@lists.infradead.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 11, 2020 at 1:13 AM Andreas Schwab wrote: > > On Mai 09 2020, Linus Torvalds wrote: > > > glibc depending on kernel version is WRONG. It's bogus. You can't do > > feature detection based on kernel version, it's fundamentally broken. > > > > So I really would prefer to see glibc fixed not to do that stupid > > thing, instead of adding pointless vdso notes to the kernel. > > I'm not aware of any discussion or bug report on this issue. Any > pointer? We've discussed it informally several times, but that really is just "I remember mentioning this before" than anything else. Basically, testing kernel versions is pretty much always a bug. You _will_ get it wrong, sometimes spectacularly (we've had programs literally break when the major number changed, because they only checked the minor number). Other times you'll get it wrong in subtler ways - testing for features by version number is wrong, if that feature is then disabled by a config option (a lot of new kernel features work that way). Or, the already mentioned "distros often port back features to their older kernels". The latest example of that is Wireguard being ported back to Ubuntu 20.04 - using kernel version 5.4, even though WG was actually upstreamed in 5.6. So the whole "look at kernel version to determine if it does X" is simply fundamentally wrong. Why is glibc doing it in the first place? Is it some historical thing that is simply irrelevant on RISC-V simply because RISC-V doesn't have that kind of history, perhaps? Linus