Message ID | 171d0b8b2e807d04cca74f973830f9b169e06fb8.1703188911.git.andreyknvl@google.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-9027-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp660202dyi; Thu, 21 Dec 2023 12:07:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IEY/DP1AuXxXBcPD57exMI6AKuwjvsjPA6Tn2r+LZKADdXdUwSvtMxAc44Ae8W1xa145y59 X-Received: by 2002:aa7:c7d4:0:b0:553:451d:981 with SMTP id o20-20020aa7c7d4000000b00553451d0981mr70394eds.27.1703189262373; Thu, 21 Dec 2023 12:07:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703189262; cv=none; d=google.com; s=arc-20160816; b=HLqISsQV4n9+xrqBr8481Wuvo5TR8UdYw5LNd2w8TYIKxyYYvO/zlxklukQZnyjQSe pVT8yd+kW1yXlMadQdFRGTx0cB/U0q6L5phn3SpU1jaDAfTuOfGATaqdElf/D3CCgj/y EiZWQ3V2Ql03bv2qALzXVGWu0OD3CPCJKILI//fhYSMiLw5wamZlaGHqFLWeYPZ3ywgc t53u/5c6oQlf1O2IXYXz3WVNfBiIYHe73XoYafSwlCXuO1JK0/VPaN5KKAFg6/czaBNY S6Sb0Xe/z3OWBkEhT+gJxvNusFL93XrhPPYxZHhQm76qAAwEr3DosVuv/YqT1JFz+o0j taQg== ARC-Message-Signature: i=1; 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 :date:subject:cc:to:from:dkim-signature; bh=a/6/sI3HKZf6Tm/zhA/G4IhIpYOeRmpfsNisTtqnMzE=; fh=GyTEpUCUNPwsl1pqA0jDPXgvja+iZTM9USlQd9sQtQg=; b=NkDPRpkPzEW3dpF53HnTwt9GJJqcD8MNRmDymTiiph5sW2BQx8MQK2cgHSC2Nuhe8e Mtr+QBN0IuDbAOYFcTsx3MBAYA9jV2aJfEGl5I+9rRCdByRW6ZbrJMGa1ZoKhlnu5FDX 9X9Y00SZ8nO1j6J5CvFNfiwkHPdu3nekcPdDkp6RMfeZEYXM4UIyGmlLLmA5reuCAoEC Jvloxtx50fY/kedIH8ejWnRG3s+ZnTlBp9Vdf6MKBWNvU0BdCeBUHDHxfq4MlQzVtz5Q 2btIakLifEOqcJo/xnSG1zq2hDqXNjYFua3vwYZI0fupom+wIYj054xVrGufRiaxQqge eDCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=eN0oFbJi; spf=pass (google.com: domain of linux-kernel+bounces-9027-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9027-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t16-20020a056402525000b0055220681e9fsi1187777edd.644.2023.12.21.12.07.42 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 12:07:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9027-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=eN0oFbJi; spf=pass (google.com: domain of linux-kernel+bounces-9027-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9027-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 am.mirrors.kernel.org (Postfix) with ESMTPS id E92A91F25039 for <ouuuleilei@gmail.com>; Thu, 21 Dec 2023 20:07:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29D1D77F07; Thu, 21 Dec 2023 20:06:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="eN0oFbJi" X-Original-To: linux-kernel@vger.kernel.org Received: from out-176.mta0.migadu.com (out-176.mta0.migadu.com [91.218.175.176]) (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 6CE5F7319B for <linux-kernel@vger.kernel.org>; Thu, 21 Dec 2023 20:06:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=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=1703189166; 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: in-reply-to:in-reply-to:references:references; bh=a/6/sI3HKZf6Tm/zhA/G4IhIpYOeRmpfsNisTtqnMzE=; b=eN0oFbJiwT3zUnq2cxeXoUm44eMoYM8NmUuh4m/ta8P8IRSzUOmK1w4vpgo38zt4d8LCrA exyl7aMfq6fUaijIp7KICaNRhlJzWlDY/wAMTLTJJ2IRzzSfwwE40tPn7y2fMMvcsd7cRE +bxk8A7+0pKfZWEiGw/4jcKK7Qx1fWE= From: andrey.konovalov@linux.dev To: Marco Elver <elver@google.com> Cc: Andrey Konovalov <andreyknvl@gmail.com>, Alexander Potapenko <glider@google.com>, Dmitry Vyukov <dvyukov@google.com>, Andrey Ryabinin <ryabinin.a.a@gmail.com>, kasan-dev@googlegroups.com, Andrew Morton <akpm@linux-foundation.org>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov <andreyknvl@google.com> Subject: [PATCH mm 09/11] kasan: export kasan_poison as GPL Date: Thu, 21 Dec 2023 21:04:51 +0100 Message-Id: <171d0b8b2e807d04cca74f973830f9b169e06fb8.1703188911.git.andreyknvl@google.com> In-Reply-To: <cover.1703188911.git.andreyknvl@google.com> References: <cover.1703188911.git.andreyknvl@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785923384104633904 X-GMAIL-MSGID: 1785923384104633904 |
Series |
kasan: assorted clean-ups
|
|
Commit Message
andrey.konovalov@linux.dev
Dec. 21, 2023, 8:04 p.m. UTC
From: Andrey Konovalov <andreyknvl@google.com> KASAN uses EXPORT_SYMBOL_GPL for symbols whose exporting is only required for KASAN tests when they are built as a module. kasan_poison is one on those symbols, so export it as GPL. Signed-off-by: Andrey Konovalov <andreyknvl@google.com> --- mm/kasan/shadow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/kasan/shadow.c b/mm/kasan/shadow.c index 30625303d01a..9ef84f31833f 100644 --- a/mm/kasan/shadow.c +++ b/mm/kasan/shadow.c @@ -145,7 +145,7 @@ void kasan_poison(const void *addr, size_t size, u8 value, bool init) __memset(shadow_start, value, shadow_end - shadow_start); } -EXPORT_SYMBOL(kasan_poison); +EXPORT_SYMBOL_GPL(kasan_poison); #ifdef CONFIG_KASAN_GENERIC void kasan_poison_last_granule(const void *addr, size_t size)