From mboxrd@z Thu Jan 1 00:00:00 1970 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 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: 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"