From patchwork Thu Dec 21 20:04:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: andrey.konovalov@linux.dev X-Patchwork-Id: 13502598 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02255C35274 for ; Thu, 21 Dec 2023 20:05:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1848A6B008A; Thu, 21 Dec 2023 15:05:04 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 10DF96B0089; Thu, 21 Dec 2023 15:05:04 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F16316B0088; Thu, 21 Dec 2023 15:05:03 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id D719C6B0085 for ; Thu, 21 Dec 2023 15:05:03 -0500 (EST) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 81AF1806DC for ; Thu, 21 Dec 2023 20:05:03 +0000 (UTC) X-FDA: 81591904086.28.03FF509 Received: from out-188.mta1.migadu.com (out-188.mta1.migadu.com [95.215.58.188]) by imf09.hostedemail.com (Postfix) with ESMTP id C95B214002A for ; Thu, 21 Dec 2023 20:05:00 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=skZG0MAM; spf=pass (imf09.hostedemail.com: domain of andrey.konovalov@linux.dev designates 95.215.58.188 as permitted sender) smtp.mailfrom=andrey.konovalov@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1703189101; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=sNjSVQSFVUV8ISkHCvyHjupyoa/1urB/LVlJZWSj/S8=; b=wPAZbIFgY9VxaYjlYpqSnDl6AjTAiA6lhVUF3zHgzVaS6GWQqGCAlA5uOTWOm+LdSChCON ilG6VbIphFHzy/dgHbB6ByjbDmVLFX3uErnlfWRnpTYt75xDFi7xXiFxcd5YDcJI0wgira +vLkziScVJHXNg4nR4mEnp10eMvVmQA= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1703189101; a=rsa-sha256; cv=none; b=Lbu1pUUkTX7jZYezwnR0GMyQXzQZiS5dD7GB76qvQwJo5H+RIiqBfW1F/7jDdB+/qUskcP RICCgiS7rD7oNbiD6F2gQomgdTcp6xik7oU+moUf91aw1oX/dLb1jzIH+o+VGV275IQUUk 32qwqAkrOzNcSK+eB7sTy4XxUeqMSpU= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=skZG0MAM; spf=pass (imf09.hostedemail.com: domain of andrey.konovalov@linux.dev designates 95.215.58.188 as permitted sender) smtp.mailfrom=andrey.konovalov@linux.dev; dmarc=pass (policy=none) header.from=linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1703189098; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=sNjSVQSFVUV8ISkHCvyHjupyoa/1urB/LVlJZWSj/S8=; b=skZG0MAMyl6rsB9CCsmBPP7NznukYYsecWppGCwYHrmvvYnQyMvlOF6jBnMft0q/3vtPVN /GAZWrPBGeieQcJ4RhLnGqH2ikIUM3Ej5bau/5zQL2rkFZcQPeWhNOJhaGTDjqnJOhtaZ0 ONn/64VbboXzqOkOPots7VsHnkIicy4= From: andrey.konovalov@linux.dev To: Marco Elver Cc: Andrey Konovalov , Alexander Potapenko , Dmitry Vyukov , Andrey Ryabinin , kasan-dev@googlegroups.com, Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov Subject: [PATCH mm 00/11] kasan: assorted clean-ups Date: Thu, 21 Dec 2023 21:04:42 +0100 Message-Id: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Rspamd-Queue-Id: C95B214002A X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: hj5ofopesxjku738p9s4w7qo4n56y1c5 X-HE-Tag: 1703189100-710601 X-HE-Meta: U2FsdGVkX1+0MYhHj9Me2enlhD6Uqguj5vy8CLglYfHbt5nxFp4+usy6J+uqjprIdgsAlVKwqWDuKUuEq1Pz/0ti4Pm1U87m7EhnMDJXJ9tkjiB4hWOE4aR+7q0VVDnv0tQVUZ/wHvFe5Qgc190H4KAt5xo0sZ/i92vupNgcp5q2TL7p3p6dkE4AueoTa6dwS/2yZ80zjfLqKnzEDpzTAGu1UTaHeNMvcKMxxYaz3gNe1zGa7GQcU75atl/k7EL0IDkzR+0a83AGr+uFQNiRoXVt7WZk/DzX6ju0TTTOytBCjyQuiJsbtJhobQqXpWIsTllHqvn2po92u4+hB2ZWMqIcYao87+HwuElblq/RkUWG8G+wpQ10QbCB3LLKTwz4pRZYO5i7grttucDvH+ly028bRMdPHB9DkZYCEUh0dPYNIkka9kJMDyosdG5Zp00caBxcRCbh7zAIWhGtMKPkl7eK/9e11S6pzvyEEAifMjofZJDYrRQ8CkEaorIpX1YtKY3fHC6KZmLR4n1ASgODGDiVWO3dpy0l1xVQll9eiaSGsLztAHYrJHpAYH0uYsmaXILxIkLN/h/NQKQ6hw7FOcu5/Npo0u5yx2eoU1cXm0v/2kQ7mhx0Tetsmp2nXiOrsfHD38ocWXrfCB/hWQ0RitsRQ4XeXWN+JaFCR8lkVQLdeGa0Th6iK47gEt4MnXg0XjZgv0WZSR2x+9VIkOhPngqqstBTI4CbIehDVRBi3CuxkEEEgLTfuVPQhFkkNS8zSA6YgndMyBnZjYR/ste1o2HFHge6g7O4bmq0XKUfA0jrt7SzEsBpVmzWFoS7uvt3ks/U7YzvG1bjK8WO29eGVTByRtNx2hINl94ZI84eIlLDza5ABglu5gbZX+MbU8qhvDDQgeFQTxrCegIPjhr8bC168fuROHkcnJV8FWvVqvoBpXQo0hwQqu4DwXwiWWntd0Z0LbNDrRbifatGO5U 15EZSqdI JXbNHSGh91C+ywEq+vNUYWTxd9ODYNThFlgF3h++B+KmPnZg32XqTaph0Bf/uS13ARvJ30eA5x+0FhaeRms6wZcHk5jAkdF3a9y/tCtDyJrNB9ev3J86K6qor8RGxiYVhMG/F0Z2zlMYIdnqp7aVxwGsBU57Pa41A0DNz X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Andrey Konovalov Code clean-ups, nothing worthy of being backported to stable. This series goes on top of the "kasan: save mempool stack traces" one. Andrey Konovalov (11): kasan/arm64: improve comments for KASAN_SHADOW_START/END mm, kasan: use KASAN_TAG_KERNEL instead of 0xff kasan: improve kasan_non_canonical_hook kasan: clean up kasan_requires_meta kasan: update kasan_poison documentation comment kasan: clean up is_kfence_address checks kasan: respect CONFIG_KASAN_VMALLOC for kasan_flag_vmalloc kasan: check kasan_vmalloc_enabled in vmalloc tests kasan: export kasan_poison as GPL kasan: remove SLUB checks for page_alloc fallbacks in tests kasan: speed up match_all_mem_tag test for SW_TAGS arch/arm64/include/asm/kasan.h | 22 +-------------- arch/arm64/include/asm/memory.h | 38 +++++++++++++++++++++----- arch/arm64/mm/kasan_init.c | 5 ++++ include/linux/kasan.h | 1 + include/linux/mm.h | 4 +-- mm/kasan/common.c | 26 +++++++++++------- mm/kasan/hw_tags.c | 8 ++++++ mm/kasan/kasan.h | 48 ++++++++++++++++----------------- mm/kasan/kasan_test.c | 45 ++++++++++++++----------------- mm/kasan/report.c | 34 +++++++++++++---------- mm/kasan/shadow.c | 14 +--------- mm/page_alloc.c | 2 +- 12 files changed, 131 insertions(+), 116 deletions(-)