Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp771567pxk; Sun, 30 Aug 2020 23:43:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEBXHQVBw8Vma7gh78ChJkAQkOsYJBajNSwmFtYwsQ0mHHjsl3yWicpMLF+L+dpCho+Xrh X-Received: by 2002:a17:906:941a:: with SMTP id q26mr9071135ejx.496.1598856195125; Sun, 30 Aug 2020 23:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598856195; cv=none; d=google.com; s=arc-20160816; b=Qre+lzMl2cHsGwYB94IZqSzZzCKhGvOR0FNAErVHAu0rWAmLBAYsNNA9NvAqEDLd9X /4zQMN6XusSpzpcxwDMlXx9ZLHL2PYXrBOuyOkjPSB25TbsLFxdkXANBlNntgaNTpXFm 7ac4bQjf387BKN61U83WCAMSV9911ku3iFK021K4eB75d/BPsigsPuHAektly+S1HhNK yc7fkqt91cU/p6uW43xZVo4FB6/2raEP+CBWzQBDcg3NmLTIEbBGnRUpjTQfSVRzdEnL nbnfuXqvhNglgGTx3suWlldA30+aF9dLRHog6rhCEhzHB86KrjILrqJ6mfPzducM9wnN FmqQ== 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=mBJNIRqUExiPeZF8xMwliEHPk0u0KNgv6oRniOleVd8=; b=maUB/pQNLN1EC3py99O2osw7augR+e7RZ5J7MPs36VBUC9pvgR5m4WuP26Xv8oDaEC MwT5KTkj52ovTxrjvSCO3QDZUiaVj8HcYpYMRDpTJaUC5i7i3/beWpixceqWwKJ1QXIb /gQ+Extgj4pgNXVWz4ABd4UdLaUgj7oxsW3kHdTrQP8ktjkpKSXodYEabLzpOI0q/sET tPElNTkShCcgeBIe3ZztuzBnmI4QcmGj5lq+Wl5jwJdQHOTv7opLDvZgmMcRpd41xBZ9 mIVyFGSwdHiA+mpn5dhPWkkM13ddUpUhPD3DdWmWI7JQgKLtJPw+m2gEBLlmZ0KiQ1ex qJmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=UYoh3tKA; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z2si5126661eju.353.2020.08.30.23.42.52; Sun, 30 Aug 2020 23:43:15 -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=@google.com header.s=20161025 header.b=UYoh3tKA; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726756AbgHaGll (ORCPT + 99 others); Mon, 31 Aug 2020 02:41:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726144AbgHaGlj (ORCPT ); Mon, 31 Aug 2020 02:41:39 -0400 Received: from mail-oi1-x243.google.com (mail-oi1-x243.google.com [IPv6:2607:f8b0:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6ABFFC061573 for ; Sun, 30 Aug 2020 23:41:39 -0700 (PDT) Received: by mail-oi1-x243.google.com with SMTP id j21so111526oii.10 for ; Sun, 30 Aug 2020 23:41:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mBJNIRqUExiPeZF8xMwliEHPk0u0KNgv6oRniOleVd8=; b=UYoh3tKAOAIrKDKQ4n/n3fg9NdqM4Zdv+pRbjqMsouewV6+NDU7kiuLwYNg0yfygvn d+xvGICR8hgMeHYkQQUBF9nQbYNuPrXbFZ358Dnu5mprBOHgvtLUbzvndQOczfjLqDKp 4h5PpVTouOutgcfX6xFnVqrMrRXGpXyPSGcyrmuWMjBg5lzbyKZ1sVHwil4lUxQewNvq hFxS+3CeDCaLYJBX9IiPoUtWgPc1/JrnT6TyBqC1Udmoyw40YOhe9mssfVtf2bgpCWme qEmn+sJH/QE0bUHZI/H8CNSyPZeVoVYVDdgMx2ZJL9s3KDcNAAjxk17odKg6ahH+GaBL 4L0g== 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=mBJNIRqUExiPeZF8xMwliEHPk0u0KNgv6oRniOleVd8=; b=tsobvGzkhJpSVyniJP0aKtR/x+xRiEjwGtVNaPnvqCRS1T3kZjT8ISb4WzJHKgkcnp FZ9LFo66bqf5Hoo+9QO7b7N8ZivLAWVBbBmIIvP3sT36tfMased6vr9fe6RTMWq26VIL NXHkCFrWAwbfAf7D46qjTBXWFcCElEUcjuFcYdNV92lqb2vzip6rmwDMPb/Q9dNb0pHa 5Guu0q/zvFuen1vsXrsMLrilSI/tVi3AL0zAS0I0SHkC93GaHGODmVJTtswd00g9oU2S fSvv+Evx95O9qx7G34kCDwZkz2DtKZH+kkGHpzISbPfRRuKT2NVa2l0Bcxn/dNc3b0Hz zMqg== X-Gm-Message-State: AOAM533o8V9xvVJ1gJwyRrIQYdkK79sbZwctIsDENyXmTTN3SMuB3OfJ T5QLhbmjWV0J6I1vkE82rcKe5UNingVs4H2DRtq2MzvHa7k= X-Received: by 2002:aca:5158:: with SMTP id f85mr53219oib.121.1598856098398; Sun, 30 Aug 2020 23:41:38 -0700 (PDT) MIME-Version: 1.0 References: <159881061564.27993.11909051048930389391.tglx@nanos> <159881061804.27993.16119786735164087221.tglx@nanos> In-Reply-To: From: Marco Elver Date: Mon, 31 Aug 2020 08:41:27 +0200 Message-ID: Subject: Re: [GIT pull] sched/urgent for v5.9-rc2 To: Linus Torvalds Cc: Thomas Gleixner , Linux Kernel Mailing List , "the arch/x86 maintainers" 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 Sun, 30 Aug 2020 at 20:54, Linus Torvalds wrote: > On Sun, Aug 30, 2020 at 11:04 AM Thomas Gleixner wrote: > > > > - Make is_idle_task() __always_inline to prevent the compiler from putting > > it out of line into the wrong section because it's used inside noinstr > > sections. > > What completely broken compiler uninlined that single-instruction function? > > I've obviously pulled this, but it sounds like there should be a > compiler bug-report for this insane behavior. > > Or is Marco building the kernel without optimizations or something > like that? That has not been a supported model, for various good > reasons.. Certainly with optimizations, but also with various debug options and sanitizer instrumentation. (FTR, the config used: https://lore.kernel.org/lkml/20200820144931.GA4120397@elver.google.com/3-a.txt on GCC 10.1 with GCC 11's KCSAN patches backported.) Checking GCC's sources, the inlining policy here is that the compiler tries to sanitize as many functions as possible, and if only 'inline' is used, it'll avoid inlining such a function into a 'no_sanitize' function in favor of instrumenting it. With a normal non-debug config this should therefore never happen. Thanks, -- Marco