Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2867479pxv; Mon, 12 Jul 2021 03:59:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7BVd8HJjJOEurMCrth1xBxam6KsZIQURYkv4qGLl8Rt6v1xOOomrCeERvdSc4YAJjTOk9 X-Received: by 2002:a05:6e02:1208:: with SMTP id a8mr18756484ilq.257.1626087598635; Mon, 12 Jul 2021 03:59:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626087598; cv=none; d=google.com; s=arc-20160816; b=JkaTM6WcocJkEMGIMjUDNJEKh7xOWgqAAcQjaZyv4OrF9nQ0paLWjvzhNnRJU/bu5m kGEaigMaA31mmQgg798LTNws2XjhMUCb4e9J7P3vlYsxVIG0BJiyJdkom5CRJGu0lYEs NBuUORfspRchrwSfH6M+5LVfhmdz5uOEIE3mjferEKf28dNq+qzfOfZlcRHt18bU8jPS 8v3hWzid+sQVa+GJTn3CVyHeJfYEctZ6nkBSvFpOaTtErJYHJyYHjQjEJck4oPsajNqp PLfSDe0S4SnUHd1oy+C7UXsuLx37ra1j+iDo5vXwPHyfCAbKzmel/8yDGakaKlKSnSi0 8Ajw== 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 :dkim-signature; bh=yajbxOo57nmgvhsi33H+Z3Do1y/ehnLcsplIfOi+4CA=; b=mgY8BLhRmxEB+6LOloX0ML8cuujFkuperrFXWV62NQByMdkkbnZOnHu4a8eqBsMmhx OgZf9B1pm53POTtcrSB3jhVH6GwIXvQ7efxpMlq9AZDzGTtgxtlKvjJFY9ndPQD1BcTo nDLxPLOPNJM+5rnDu3XaaTGt6SrVtPZb19DjypqQB+T6tJKpk7jwxxcmzj5JptMS9rSE NN9a7sGGm8im87piqKdRpJnwh6CfxGQ04OZ7bu1+gJmd17bwrP0B+RygbzZq7+bKBlYp oldVbVbctu7LitN9Rsl2e119/+f3ov7DhtJ46ndRSgD4C2Mkz1Ur8sOvenwoWUUh586m SKaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sp0gWhga; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b16si2656768ile.135.2021.07.12.03.59.47; Mon, 12 Jul 2021 03:59:58 -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=@kernel.org header.s=k20201202 header.b=sp0gWhga; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234887AbhGLKB1 (ORCPT + 99 others); Mon, 12 Jul 2021 06:01:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:56374 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234878AbhGLKB0 (ORCPT ); Mon, 12 Jul 2021 06:01:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 483AA61002; Mon, 12 Jul 2021 09:58:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626083918; bh=tAO2c2XXve5OQIfwuwmw8NDac9gYcA9t8R4T8p3VA0Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sp0gWhgawuzzkSTZB9An1dEpC06L7mSKerBgmHNsBuQEZqcX7v/G/eqD1eXNqzWe4 yZAkZzS6Jq5C0os3RCAFe1lMoJqAY+DAPY2CpxU4/0RukVap9iaXoSgjoHUaZz7PfF p6cCtj476QWfjI+v+DjtN/6VgQUdHDWlK9/akaQFyv9Jv7bhQ5OxzaVbvD69pX4stF +7Di9KazK8Wt2lnWl3MXvN24QJtGwNkSpiH0cuXUm3lOPnGNAKAwUHUBj4pWWqcjHW sOOQNC+TOsXyJqjR+Bu5As4jU8sJnn23PPD6Pw13Nr+3iDT9TTBLnemK86jOnQsmN7 VzQWv0FdIsWmA== Date: Mon, 12 Jul 2021 10:58:32 +0100 From: Will Deacon To: Andrey Konovalov Cc: Mark Rutland , Sam Tebbs , Robin Murphy , Andrew Morton , Linux ARM , LKML , Catalin Marinas , Dmitry Vyukov , Alexander Potapenko , Andrey Ryabinin , Marco Elver Subject: Re: [PATCH] kasan: fix build for CONFIG_KASAN_HW_TAGS Message-ID: <20210712095832.GA27643@willie-the-truck> References: <20210708144411.25467-1-mark.rutland@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 10, 2021 at 09:16:14PM +0200, Andrey Konovalov wrote: > On Thu, Jul 8, 2021 at 4:44 PM Mark Rutland wrote: > > > > When CONFIG_KASAN_HW_TAGS is selected, uses _RET_IP_, > > but doesn't explicitly include where this is defined. > > > > We used to get this via a transitive include, but since commit: > > > > f39650de687e3576 ("kernel.h: split out panic and oops helpers") > > > > ... this is no longer the case, and so we get a build failure: > > > > | CC arch/arm64/mm/kasan_init.o > > | In file included from arch/arm64/mm/kasan_init.c:10: > > | ./include/linux/kasan.h: In function 'kasan_slab_free': > > | ./include/linux/kasan.h:211:39: error: '_RET_IP_' undeclared (first use in this function) > > | 211 | return __kasan_slab_free(s, object, _RET_IP_, init); > > | | ^~~~~~~~ > > | ./include/linux/kasan.h:211:39: note: each undeclared identifier is reported only once for each function it appears in > > | ./include/linux/kasan.h: In function 'kasan_kfree_large': > > | ./include/linux/kasan.h:219:28: error: '_RET_IP_' undeclared (first use in this function) > > | 219 | __kasan_kfree_large(ptr, _RET_IP_); > > | | ^~~~~~~~ > > | ./include/linux/kasan.h: In function 'kasan_slab_free_mempool': > > | ./include/linux/kasan.h:226:34: error: '_RET_IP_' undeclared (first use in this function) > > | 226 | __kasan_slab_free_mempool(ptr, _RET_IP_); > > | | ^~~~~~~~ > > | ./include/linux/kasan.h: In function 'kasan_check_byte': > > | ./include/linux/kasan.h:277:35: error: '_RET_IP_' undeclared (first use in this function) > > | 277 | return __kasan_check_byte(addr, _RET_IP_); > > | | ^~~~~~~~ > > > > Fix this by including explicitly. > > Hi Mark, > > Marco already sent a fix for this. It should be in the mm tree. > (Although the link to it in the Andrew's notification email doesn't > work. But they rarely do :) Do you have a link to the patch? I couldn't spot it in linux-next. Thanks, Will