Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp120398ybl; Mon, 27 Jan 2020 23:36:26 -0800 (PST) X-Google-Smtp-Source: APXvYqwSbS7H5bKPOySEGe16aqJ/vtyjZaNAyDlAJKUovX1vSWs/ppfkzcxyMYVfZqaZt6n8f1Yg X-Received: by 2002:a05:6830:95:: with SMTP id a21mr4552315oto.171.1580196986578; Mon, 27 Jan 2020 23:36:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580196986; cv=none; d=google.com; s=arc-20160816; b=Ru1VmsWFH1S3Bg2kXP3chffuM1Ki24LGDPZg5KG1i29BfwTK97gmg9llaRoSTn4tO+ C69xm03FZ4nDUrNjZ2Zhu7UItbnWXIfnDt1uk3HC/gz59Za5vZFh9IWD2lwpvh3anGYr bmxy7giRmsFdjaspxkoVhu7xHINa1FA9ukR/fZ2uiVgx7yxJwjTV6i82Ch0TixDzYfdP 4YLnpuHolnh/k4NodpFbDMwrVb1yH68c4UhAyVki53c2oRLxkG7J67q4p1IZtg2VSxZY R5bkIqek+XUp/WaNZcB4FSuioxGCDmWT1CVILwMNDk7z9B8RVHSCpUoHhFw90FsdZ0BB U0vg== 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=M8/h2bPEqPWeThJEypD1fDrIV3uZkJ0Spf9SsxFALTw=; b=BsMhvD5XecpuUJtPF5zfZA0SaxfHMTva1QIF4OGrkDuNt0G+qUZoFtLY5SY0KoD6iQ wap2nMFR8QEdiMeGw3Z1TGrahWHp7cmF0Z/IMKOXcnGxbQe75uaHnHLjSXdQDq3HyKdJ hH2wRQRK024OoLkbTz67m/hKMrdJ8DUFmVob6ukqUsrMDL2oIaPJFcVwerdEi2uzWtuC A/4o52HJa/BQZZ0PQoHmln+Z8MKa3m1YufdxScCXc2h4D8FIc9tgGZXiLJaf0DiMQccL 47sU8b9On4nlh4o/66/KIRIqltLq/14q5ni3Jkx8RAAu9k853aoA7MG2ON6weYzVphaC V6cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dwotw4Ka; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w24si4253864oic.260.2020.01.27.23.36.12; Mon, 27 Jan 2020 23:36:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dwotw4Ka; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725927AbgA1Hd6 (ORCPT + 99 others); Tue, 28 Jan 2020 02:33:58 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:40978 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725776AbgA1Hd6 (ORCPT ); Tue, 28 Jan 2020 02:33:58 -0500 Received: by mail-wr1-f66.google.com with SMTP id c9so14766156wrw.8 for ; Mon, 27 Jan 2020 23:33:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=M8/h2bPEqPWeThJEypD1fDrIV3uZkJ0Spf9SsxFALTw=; b=dwotw4KanF7Rr5R8R+2zrC3GotxW2umZNPfukUzk39baBmVods+BoK4dMAq69uYY7g w+SGWEGZHNJ117MWwkKscB+LUpFA0VTRNzPK5XqDaJvKe5Qj2nkaCcDoJ37jygI6Qko+ TrLELDx6JWBc5d4RGGgNhVk054IOYJNs7Gz1W+rYkqSELCoMtxiqUTLaa+Ua/RvykWui fB3lw5IUXN6sGkdbULostObMmmUdEVueFtG0ZIY2lKIFB1p2LE2rZw9EW/wnf5Kug4nS MGe6fZlyEvhDmlbzuJY2E+FIUkQkEF8t9chSY/c3eX8dC4ULgOQy+d2PN6O42rumfvFZ 6/mQ== 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=M8/h2bPEqPWeThJEypD1fDrIV3uZkJ0Spf9SsxFALTw=; b=F41EbY1vZNsdelE9ijA052l59HKzMj3CI8pFzhi8wWqlcaUUirO+10/khF9DtV1jl2 /hVz9AdoXhDmhBnybn68X2XKn/srwz4wLCoSskIRXtOtH9o9EFsvp7hJthdI3CQKy7U1 iMyuDjuKzI14Qzg8dfBivysRoFGO9WQ+yCCy5MUmYeqi9gnEK7ez13mCY7OIPLunFsvN 8FbZOmWz+yKpRbV91i0vUAQRb7sx1DEddg8qfG6MhjsEiEWGMqAWg4Qq43kuUdKJK7i9 6BiMywDHzhTJGfYKK2Vu2UFcc56U8EjrWZ/feQTWj0SlMaYMBvMBm6yt91nTO+523fbj lVWQ== X-Gm-Message-State: APjAAAW6ijC8yr4Qyqsa/p/38SNmExfuevoOOZI88sg+Heip5bgCZZnr +ucn3LI9XwheSdKUjWIwM9XrPyoSvVwS2zXdzTVSpA== X-Received: by 2002:a5d:65cf:: with SMTP id e15mr26280990wrw.126.1580196836110; Mon, 27 Jan 2020 23:33:56 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ard Biesheuvel Date: Tue, 28 Jan 2020 08:33:45 +0100 Message-ID: Subject: Re: mmotm 2020-01-23-21-12 uploaded (efi) To: Dmitry Vyukov Cc: Qian Cai , Randy Dunlap , Andrew Morton , Mark Brown , linux-fsdevel , Linux Kernel Mailing List , Linux-MM , Linux-Next Mailing List , Michal Hocko , mm-commits@vger.kernel.org, Stephen Rothwell , Ard Biesheuvel , linux-efi , kasan-dev 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 Tue, 28 Jan 2020 at 07:26, Dmitry Vyukov wrote: > > On Tue, Jan 28, 2020 at 7:15 AM Qian Cai wrote: > > > Should be fixed by > > > > > > https://lore.kernel.org/linux-efi/20200121093912.5246-1-ardb@kernel.org/ > > > > Cc kasan-devel@ > > > > If everyone has to disable KASAN for the whole subdirectories like this, I am worried about we are losing testing coverage fairly quickly. Is there a bug in compiler? > > My understanding is that this is invalid C code in the first place, > no? It just happened to compile with some compilers, some options and > probably only with high optimization level. No, this is not true. The whole point of favoring IS_ENABLED(...) over #ifdef ... has always been that the code remains visible to the compiler, regardless of whether the option is selected or not, but that it gets optimized away entirely. The linker errors prove that there is dead code remaining in the object files, which means we can no longer rely on IS_ENABLED() to work as intended. > There is a known, simple fix that is used throughout the kernel - > provide empty static inline stub, or put whole calls under ifdef. No, sorry, that doesn't work for me. I think it is great that we have diagnostic features that are as powerful as KASAN, but if they require code changes beyond enable/disable, I am not going to rely on them.