Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp389799rdb; Thu, 21 Dec 2023 12:07:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IHlqQOCVFqP5yyykt6Qec95uodKw0NVTjC0tBBUlO9iXg1p+u4qcYG+XT7rDZMZtekC0aJW X-Received: by 2002:a05:6402:366:b0:553:9e08:3f86 with SMTP id s6-20020a056402036600b005539e083f86mr60032edw.58.1703189229124; Thu, 21 Dec 2023 12:07:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703189229; cv=none; d=google.com; s=arc-20160816; b=Jb0Xy4ZWtv6SF/3Mot8EGVZt/dWUSJfWtHnxlU4NpfCAJ5fmL7rjLK9oHLRO7PCPgh YOp8D11M/bM+QHxfiKiqhGAdFqv68oMnxqIcBCSVXvt+8Fv9corxwRYhHkuSPIVg2GsV O6jmo4XL0AQo4j9irijiX1DQpIll7zd7YwbRHIPI8sM5ZAv2k0W53Pg0Ihcipak3lXuO d7KKHWfHnD+n4RngsTHH610yTXiqgLbTXrZDwTD58OU3KDzh3ekCYfWzBBBWyMAfO5r0 +War3aTrawGrXmcxCynuDMibm1/QAP5rD8KTilGcMB6c+seQrjXV5fN1pe86iAGsa7Yx sr1g== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9027-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id p19-20020a50cd93000000b0055425c7f7adsi741432edi.441.2023.12.21.12.07.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 12:07:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9027-linux.lists.archive=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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9027-linux.lists.archive=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 A44AC1F212F8 for ; Thu, 21 Dec 2023 20:07:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A4927691B; Thu, 21 Dec 2023 20:06:11 +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 ; 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 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 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: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT From: Andrey Konovalov 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 --- 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) -- 2.25.1