Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp237823lqp; Thu, 4 Apr 2024 11:37:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVwh3ZqxV/6MYTWmuK9FD5qOPdsFbP8rGw0ugkDk7FQpFAMoN77Y9dJBqAIdEnnsswiTd4sMtiVwkOOqjGs6i4umHFMHoqTaAoVG9nMBQ== X-Google-Smtp-Source: AGHT+IGo9akg/6UZw7GavzxG0C8Q+fMs4qOeraxHtqoPbQZX1+cnjYgSmWPWZsdVRdR0sskYD2E7 X-Received: by 2002:a17:902:f20c:b0:1e2:36d1:33fd with SMTP id m12-20020a170902f20c00b001e236d133fdmr330843plc.27.1712255836338; Thu, 04 Apr 2024 11:37:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712255836; cv=pass; d=google.com; s=arc-20160816; b=RboIHsU7Cmof2JofoMnDrhabcIKXfR/BXXLjjhHjH+lVs8Pdj4rbZ/AQQyafmrPbsV 3HkEsZQWF1N7/l5rvAclg8jWV8ER+If9oy9mvLjDOm3CfNoDtPN6CztGaLT1N0v8ZvGv rHHANSTyqJDi53oDtKIQ29BNl6ORNPLYWMH/Bx4cql2teycU1MMl6IqcmSDWmGt1KXL/ Fuc8OWu6e/e4wow+Nbe+5V8iQxfd9zpFKhL7lluTWLIg1T47kqXIM4KLeN+LqrGW0U6p EvxaSj2vqrecnqU3sdqD3B9ER9jHicsqXlWWlsMociDf4DHVhNZI41JcO9ErdTOr7LDd btNg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=83I9k9ZrdsX2r7O7H5Gkj8PYJzbyq6W1ygBD5t31yoI=; fh=m+YWFlRqUXjqLUk5yRy3vB91R35Y4Nvz9bDMUD2sCdY=; b=YbCwqjyscj2fdYq279+8xl1TQTCKEBG/sVTOUR0pPhDbFiCF/KS2T4/17gxZxKAC/l Rw2Lw/VMeKPxN67y2AY2O+0RdC+0/1FxF+wLW+H1UJdd4+OOuesFwnViOCNY9NH674fM vyJWtGIBEi7nQW5AucFcb/J4UtUQGAmv0ikWnh232LSrAwQcklTwpqLzH7iNSlNtwvLg 7jbO9HOLDj1c4CNf84E5YtTT6Cr8najLOJHYd55w2KA9m7DB0perpu5V/wuEgQYwW7/G K6gB3saHOkrmEb1PWTj15a5QqgHzAPm1p/zG8pVjnCmW7xs/cfR5GbHP1YNXlR/3vVMB /XzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=VKWxIBSO; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-131949-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131949-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id n3-20020a170903110300b001e003c4fac4si15602798plh.309.2024.04.04.11.37.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 11:37:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131949-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=VKWxIBSO; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-131949-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131949-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id DC481B25ABD for ; Thu, 4 Apr 2024 18:17:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 54BDF130A45; Thu, 4 Apr 2024 18:17:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="VKWxIBSO" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7768812EBDC for ; Thu, 4 Apr 2024 18:17:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712254665; cv=none; b=rscEGDaQMGZBbfiggdnNoEeJ3ajTpQkXEY4F/HSDmK4pk0Lyo+Rynmf05h3uqvk0cuQi3ZSRA0cOBDmvK7gEmEOHs7vRJHpI7fEMpeEM+n9DW56tA+hP+JaV5mWjAeMLxL2MRjoly8ligWhnXVu9Otx/yy8vNUa9FZ8DcdybVic= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712254665; c=relaxed/simple; bh=Ys+tfPTB29dKoiO/XRPcPu+ySPFIy2NcZ8tTJg+DcEU=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=pAL/jjzR1we7BXZsLQ4FHdaPnCjnEQFVL71aK8zTUaDYNpBsDwYbBaSfV2lgJhByu5IgrgjpbCVYvkizqaNTPWjLqpd7UuzTR0fQOaKne4REm9HQznpeGvDFp1DO9Ytg822jMb/fwYtecoNwsKObp6MAmfTDibS4f7BNxwvgpZQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=VKWxIBSO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4C39C433F1; Thu, 4 Apr 2024 18:17:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1712254665; bh=Ys+tfPTB29dKoiO/XRPcPu+ySPFIy2NcZ8tTJg+DcEU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VKWxIBSOGkkveo9J0k/54HOhz1qVvosnpYa5vwgUx0d8aeKZPIDtcC8lxDXRu07GP +qxe/ydvAexKVD/ILep3so990PjkvaixsUmi3OebfdphMJ30C+Xd0+fOt3kTqYcDZb zmx/spqkAqMr7wnwsBtxtwgApyJZBL55sIdUXLnw= Date: Thu, 4 Apr 2024 11:17:44 -0700 From: Andrew Morton To: Arnd Bergmann Cc: Andrey Ryabinin , Arnd Bergmann , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Vincenzo Frascino , Mark Rutland , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] kasan: hw_tags: include linux/vmalloc.h Message-Id: <20240404111744.40135657cd9de474b43d36c7@linux-foundation.org> In-Reply-To: <20240404124435.3121534-1-arnd@kernel.org> References: <20240404124435.3121534-1-arnd@kernel.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 4 Apr 2024 14:44:30 +0200 Arnd Bergmann wrote: > From: Arnd Bergmann > > This header is no longer included implicitly and instead needs to be > pulled in directly: > > mm/kasan/hw_tags.c: In function 'unpoison_vmalloc_pages': > mm/kasan/hw_tags.c:280:16: error: implicit declaration of function 'find_vm_area'; did you mean 'find_vma_prev'? [-Werror=implicit-function-declaration] > 280 | area = find_vm_area((void *)addr); > | ^~~~~~~~~~~~ > | find_vma_prev > mm/kasan/hw_tags.c:280:14: error: assignment to 'struct vm_struct *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion] > 280 | area = find_vm_area((void *)addr); > | ^ > mm/kasan/hw_tags.c:284:29: error: invalid use of undefined type 'struct vm_struct' > 284 | for (i = 0; i < area->nr_pages; i++) { > | ^~ > mm/kasan/hw_tags.c:285:41: error: invalid use of undefined type 'struct vm_struct' > 285 | struct page *page = area->pages[i]; > | ^~ Thanks, but I'd like to know which patch this patch is fixing, please. Is it mainline or linux-next? I'm suspecting it might be a fix for fix-missing-vmalloch-includes.patch but without knowing how to reproduce this I can't determine anything. > --- a/mm/kasan/hw_tags.c > +++ b/mm/kasan/hw_tags.c > @@ -16,6 +16,7 @@ > #include > #include > #include > +#include > > #include "kasan.h"