Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1579479pxb; Mon, 12 Apr 2021 01:17:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsKIAqufIB4a7t2fW37NmLfqDP1aU4nWJFVx4H/gnrJ/Vnm+hwN0c4pJ/M2y9lraDXS5de X-Received: by 2002:a17:906:fcc4:: with SMTP id qx4mr17061489ejb.42.1618215421732; Mon, 12 Apr 2021 01:17:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618215421; cv=none; d=google.com; s=arc-20160816; b=nb2xk+mTBlCl6ipPM9cvGIMrfdd9s8ommS4t7wHbsjAS/Rmw/ymH+4tpRa3PIOX4Vs epamtFbMDN9bEwWiHBX1Vabik51eB6uLQrljng8NsIhfNfUFRs6dqdCT09DZFonXs66U UneYRk2nbPiV50yncPG37eAqvlfG48JGk1JmvPR8s0iIdJiwrZOAzNQ8EIZKosfGvwPh omQom7h/BoTwd/OfmfyEcTx0/yU88FeCWdQ+9y/sbogimK4zeAksf02WFyymQfSOAJfU pb6GZspj+CR3wJ3EpLV922paJLWRt0/vWUCv5h9HwIDrFd/SCRu8lEu6ime47izq27Fy If1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=CaFPVzFbf7fzB0behm4q3vs+AcCwPNn/fO4/oYpeYXg=; b=EVkbk1Es9hlTYNwWr8YC26yw5N/I6pZz+M7rPYkWKkAg+9WWVYkzxBNy3jMv/Ar5LJ VQrPtACVFuCLunIDjd7hADQLFxQJODG7JQEmTE+8/TSQLScVypAyGdvC/oJc3XZZ53ld DNtAYn8rvxT2RTZl8NryYYznk7nfIAavSqK0hbJZyGHD1XLaDtPKnjiVphGaV6xxPs7W YcfhSUbesLp0OzbTD9TrKUWAqmiwLpGSfDzBW/GZJyc/Xf8gZkbU6zveGcWOMpD+1QI4 I/URq/bCKhJrB+r8cJHGHt8a7VRcdTUIX2SWi3JuOSGVFRQ1TJzj2DmIXVR04WhiWmxW SXLQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nd11si7247367ejc.470.2021.04.12.01.16.38; Mon, 12 Apr 2021 01:17:01 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236974AbhDLIPk (ORCPT + 99 others); Mon, 12 Apr 2021 04:15:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:56810 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236973AbhDLIPi (ORCPT ); Mon, 12 Apr 2021 04:15:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6F7FB600EF; Mon, 12 Apr 2021 08:15:18 +0000 (UTC) Date: Mon, 12 Apr 2021 09:15:15 +0100 From: Catalin Marinas To: Andrew Morton Cc: Andrey Konovalov , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Nathan Chancellor , Arnd Bergmann , kasan-dev , Linux Memory Management List , LKML , Linux ARM , wsd_upstream , "moderated list:ARM/Mediatek SoC..." , Walter Wu Subject: Re: [PATCH v4] kasan: remove redundant config option Message-ID: <20210412081515.GB2060@arm.com> References: <20210226012531.29231-1-walter-zh.wu@mediatek.com> <20210330223637.f3c73a78c64587e615d26766@linux-foundation.org> <20210411105332.GA23778@arm.com> <20210411150316.d60aa0b5174adf2370538809@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210411150316.d60aa0b5174adf2370538809@linux-foundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 11, 2021 at 03:03:16PM -0700, Andrew Morton wrote: > On Sun, 11 Apr 2021 11:53:33 +0100 Catalin Marinas wrote: > > On Tue, Mar 30, 2021 at 10:36:37PM -0700, Andrew Morton wrote: > > > On Mon, 29 Mar 2021 16:54:26 +0200 Andrey Konovalov wrote: > > > > Looks like my patch "kasan: fix KASAN_STACK dependency for HW_TAGS" > > > > that was merged into 5.12-rc causes a build time warning: > > > > > > > > include/linux/kasan.h:333:30: warning: 'CONFIG_KASAN_STACK' is not > > > > defined, evaluates to 0 [-Wundef] > > > > #if defined(CONFIG_KASAN) && CONFIG_KASAN_STACK > > > > > > > > The fix for it would either be reverting the patch (which would leave > > > > the initial issue unfixed) or applying this "kasan: remove redundant > > > > config option" patch. > > > > > > > > Would it be possible to send this patch (with the fix-up you have in > > > > mm) for the next 5.12-rc? > > > > > > > > Here are the required tags: > > > > > > > > Fixes: d9b571c885a8 ("kasan: fix KASAN_STACK dependency for HW_TAGS") > > > > Cc: stable@vger.kernel.org > > > > > > Got it, thanks. I updated the changelog to mention the warning fix and > > > moved these ahead for a -rc merge. > > > > Is there a chance this patch makes it into 5.12? I still get the warning > > with the latest Linus' tree (v5.12-rc6-408-g52e44129fba5) when enabling > > KASAN_HW_TAGS. > > Trying. We're still awaiting a tested fix for > https://lkml.kernel.org/r/CA+fCnZf1ABrQg0dsxtoZa9zM1BSbLYq_Xbu+xi9cv8WAZxdC2g@mail.gmail.com Thanks Andrew. I didn't realise it was sent and then dropped. However, we should decouple (or rather reorder) the two patches. There's no functional dependency between removing the redundant config option (a fix for an existing commit) and adding support for KASAN_SW_TAGS with gcc-11, only a conflict in scripts/Makefile.kasan. Walter's original patch applies on top of vanilla 5.12-rc3: https://lkml.kernel.org/r/20210226012531.29231-1-walter-zh.wu@mediatek.com -- Catalin