Message ID | 20240426082854.7355-2-rppt@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 D8363C04FFE for <linux-mm@archiver.kernel.org>; Fri, 26 Apr 2024 08:29:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6CB0A6B0098; Fri, 26 Apr 2024 04:29:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 653246B0099; Fri, 26 Apr 2024 04:29:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4CD886B009A; Fri, 26 Apr 2024 04:29:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 2AF566B0098 for <linux-mm@kvack.org>; Fri, 26 Apr 2024 04:29:29 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 8A7271607B5 for <linux-mm@kvack.org>; Fri, 26 Apr 2024 08:29:28 +0000 (UTC) X-FDA: 82051008816.27.9709713 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf24.hostedemail.com (Postfix) with ESMTP id B1149180003 for <linux-mm@kvack.org>; Fri, 26 Apr 2024 08:29:26 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=c24bKCQ5; spf=pass (imf24.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714120166; a=rsa-sha256; cv=none; b=Bh31vBS8rXsTfTsINWAo0NZ+YQbUU18TsjOHBnvmLz1JMwA5R2/aYDFDfhuCFiyebA4dvh dl8Ld3wdBGt4x2NBNJiDhZP5GNujXcLEStaoQSaViEi33e+VEHq3C8YHEDqSE6Fuupbj6V R3dKm2zW25Sjg21rD/5L0wKgY4aTmWY= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=c24bKCQ5; spf=pass (imf24.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1714120166; 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:in-reply-to:references:references:dkim-signature; bh=xy/onuXdQ30KVEaYuNUZWEt3SxlLWflAgQY6tAjVj70=; b=CPWDNXmwhi9o8vV2rl90jQHaYBRDvgWtHtg81IxnCKmYG9rjKffkQEzJmdARYiiNMIk0Gx TPJphAWn+fq95F1FPAEDs6pK9irRlXrb0J77uMD1gCR0KR/p+5DhZZ6H3NYahybI9em8Wv cDnBafIg0AQcPopGGDeKYOcpZozYkcc= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id EA10F61DC2; Fri, 26 Apr 2024 08:29:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10782C2BD10; Fri, 26 Apr 2024 08:29:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714120165; bh=M6QQiy27Yx7cZTOC0617KB9Ln6pKKwikPWIcgenY/bM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c24bKCQ5nLfUTxCLWqOfgQrHZ66rXyNyy3K6/+7sZXY22/FWn10Lrl4zlYIe0pOUL lMnQgr2DBeTE7Bdkj6zwaYAFThxItyYHuSMxTkR0gqtLqINDT0PqizlT6gcZfC4sUN cieclkW2Qd72tX8Cj3W9rhCEbYpq2tQ2fcTxNT68cuSCVGGQF9jBPxBPfgkA9Q/udF LO2K80uaKqbrLmZ/ItY6/g8LKcrRxJOXkN4u2sbfQDiJFWKzUulbs75isiDuLjTGaY uzUNXOQZI0lkj3aD0OIRott2pxFL3MoWNBgluhl33vYY3U3o4rppM5pe3CB1zIuwEx 1m5Xuoq/+vTHA== From: Mike Rapoport <rppt@kernel.org> To: linux-kernel@vger.kernel.org Cc: Alexandre Ghiti <alexghiti@rivosinc.com>, Andrew Morton <akpm@linux-foundation.org>, =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= <bjorn@kernel.org>, Catalin Marinas <catalin.marinas@arm.com>, Christophe Leroy <christophe.leroy@csgroup.eu>, "David S. Miller" <davem@davemloft.net>, Dinh Nguyen <dinguyen@kernel.org>, Donald Dutile <ddutile@redhat.com>, Eric Chanudet <echanude@redhat.com>, Heiko Carstens <hca@linux.ibm.com>, Helge Deller <deller@gmx.de>, Huacai Chen <chenhuacai@kernel.org>, Kent Overstreet <kent.overstreet@linux.dev>, Luis Chamberlain <mcgrof@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Masami Hiramatsu <mhiramat@kernel.org>, Michael Ellerman <mpe@ellerman.id.au>, Mike Rapoport <rppt@kernel.org>, Nadav Amit <nadav.amit@gmail.com>, Palmer Dabbelt <palmer@dabbelt.com>, Peter Zijlstra <peterz@infradead.org>, Rick Edgecombe <rick.p.edgecombe@intel.com>, Russell King <linux@armlinux.org.uk>, Sam Ravnborg <sam@ravnborg.org>, Song Liu <song@kernel.org>, Steven Rostedt <rostedt@goodmis.org>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>, Thomas Gleixner <tglx@linutronix.de>, Will Deacon <will@kernel.org>, bpf@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, linux-parisc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, loongarch@lists.linux.dev, netdev@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org Subject: [PATCH v6 01/16] arm64: module: remove unneeded call to kasan_alloc_module_shadow() Date: Fri, 26 Apr 2024 11:28:39 +0300 Message-ID: <20240426082854.7355-2-rppt@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240426082854.7355-1-rppt@kernel.org> References: <20240426082854.7355-1-rppt@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: B1149180003 X-Stat-Signature: gikarzwbtrgpmareauxjwjoi76epu4bh X-Rspam-User: X-HE-Tag: 1714120166-645100 X-HE-Meta: U2FsdGVkX19taU3FQkpzNycEO4d0Mto37MsyQQPUsd3eNFl2e11AnzCk/szKMNjxkBtvtlutx+CjO25kLleXSpMHW6Ehv9QQ9UWQwbHntiW/zwSWk8n5ZBXJPHIsyyALAtN3UZUFmLSoql5fTb80PBjvQ47AuVf/mo8VgPIUlfg5PKLRcr96+pMcvDep9Jx8WYRJX7sRl75Z+hNbJOlEKq+06E8Ja50DWDM6VVK8TQMYloobG5MxMqxoI6tIACntbfPJ7uDdBX+ZE7Wj9gbfNCCbx5tloj8w3SV8LCCScN0FQkXRQ6g+vSvmUtSfHIT4Jls5t2PjaCuyorW2dX8ug+dmgyZe+hHkEpzfe2mrvdo+a6f7XK9NWq2Q4PDmNqFSMx56uSAQ8UehTdEnP126CzPfsgE6k6e7Vx1ctPnWPy7itWfBlLlOn/57selNZLbKayRgCEyb2Skn5nD4+jR/Ct7Qb9Dn/u1b3bMReUDxVKgZnryMqUpMAgk37uawJID9o04mF8OOlkvqvayBWGyfmyTaoev+ALz80TEmSlrC+sZvlCi8eso22TCpQe2BdqSBTyaHi9K/nEpAnpgT8953OlydNRahE8tuZTRiVMtZmWYlksYLXWG/wOD4sjadE+a5gkTqZuPZdvQwS/m2hXNMtqOw6uWXj09GdfY9P/cUAwjuwFSTt8FvdlkvEwUkaVHE+VjRPaLgDSRJkW84EhKQNtii+D19MLaKzlSEzbfyz1ZknD549uKGmIGNHmz8lscCR+q5qAFfXNqJAb1e6mG2cwArs4UAzqR7nbG1tUrqxCjmC7j1UvAatvaaYTSU3TfR9aCQKO0u/qj0BtLx6C4PO96cDcmMEy5mLMLo+6jN7rDAitpY78a+8YzCtNTAskKW6YTgaaj3JqirbPrKVbU13mRvnKfUrC+ub3gNO39gS6Y6vuj85gCP3ZMY2lW8cWnNjkSpmk4OMj+MSGD/hAo WI4atCoj rEhkh2FinFP/v/LlztE/wB+9Te0Gax29RNo3dh3OhcKR6qg4bmpZ9IdMSqOhoAuocWKWssDXvy4NzIoLzOf7/Ws2vjekOJGPYJ29XwjfwETaFlbEw4uPh8bQ4QSziZdk5lOEy9eItFDdMLE5jfkVBMOvE9SJ5Lm5aJ1HQQ5N1rD8yIsvF+do3nTjGcpHkf9tRv4PKi5YZVzY73vXtAJ2uEVvNJCs6MvvFTSHSAVVeu2pj8QiA5DozA+6cuIbBxaZdZTjQ72ei+UDhCd6uOsKEQgxrK/RljcNwUeaJyfZtLM4HkRGsGJYFx+cgF0lLq73AxJzjsQTkL0hDmxqiwOtCQIaJo8xImne1w+7uy+52jkIuZavdqnFQ3ZcqE0flbJruHAJlQ/WBZayPt+Jhjjk27+5xkAik3HzyrW3agESPsbvtFZL8sPW5KhLdLw== 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
mm: jit/text allocator
|
expand
|
diff --git a/arch/arm64/kernel/module.c b/arch/arm64/kernel/module.c index 47e0be610bb6..e92da4da1b2a 100644 --- a/arch/arm64/kernel/module.c +++ b/arch/arm64/kernel/module.c @@ -141,11 +141,6 @@ void *module_alloc(unsigned long size) __func__); } - if (p && (kasan_alloc_module_shadow(p, size, GFP_KERNEL) < 0)) { - vfree(p); - return NULL; - } - /* Memory is intended to be executable, reset the pointer tag. */ return kasan_reset_tag(p); }