From nobody Mon Dec 1 23:04:12 2025 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 95DB91391 for ; Sat, 29 Nov 2025 09:56:31 +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=1764410191; cv=none; b=iCOjczDchgYLQqltmnC/fOyWG/hDgZGIH4/T+V4YlXFOEwBx3y71rgCGvV0IrWk+xOL80/xB6xIcXFXFOIfBGYVB6D0l0jW301OUMkvsDKGKNSM9TenbQgxWs/RbxD0M956ks4U7ZLkTi/QNsZdEEIn5roga+5FiYlz0LpplxeI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764410191; c=relaxed/simple; bh=D332WuuSN2u8Im5Q2thvdLGIXxokqDby1Zp25sCFMuI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=o5aJs3B0mZNip7sUNFBw0dOXP2HEs1Hh+2PhHzYpQJw/Vb0qK01vZO/ErDkFGVfDWBGiQG9heUW9NOwsseltewm0Pe924bT9sOPnFeb+P/p4aOymH3J1PaiZ+g6dbVNxEQTF+/yi+Vl76DQOrhb3g3J6vbDbtaIvs9/Z2q4B3wE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LP38N3ei; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LP38N3ei" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6411C4CEF7; Sat, 29 Nov 2025 09:56:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1764410191; bh=D332WuuSN2u8Im5Q2thvdLGIXxokqDby1Zp25sCFMuI=; h=From:To:Cc:Subject:Date:From; b=LP38N3eiRVkhVx6YBFOP1pRu2z2ElZi5NuyK4d5LGGqThAhfgLVa6qvabi79zMHxc fyC7qNNcwv5/n0kzkF+5l38/sIj7AbVQQMJJxq+gvukFvRVei2ikHcJM1BpFr+8sVe nJGhYzBKiQScIV4QNBD4I5cs/9U4H9dtf6Mp8oApgQ38UyokqQoAxYa+jqTCRCgFDj 8EwDJM/zNNkEmTHV7k6S1Ws8ghq6nDqGjLzTQi5UvxsX7XD/bdg4WBwTIQqFJ7Pw+D 5z1zwUFfUe9qBm9F/Mlb9wFoZ+Zm7d6+zcB7ZN7z2JghxWQYmdZA207NHmU6amZs1f HfoG+XiWSLTNw== From: "Christophe Leroy (CS GROUP)" To: Richard Weinberger , Anton Ivanov , Johannes Berg , Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Vincenzo Frascino , Sabyrzhan Tasbolatov , Andrew Morton , "Ritesh Harjani (IBM)" Cc: "Christophe Leroy (CS GROUP)" , linux-um@lists.infradead.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, kernel test robot Subject: [PATCH] um: Disable KASAN_INLINE when STATIC_LINK is selected Date: Sat, 29 Nov 2025 10:56:02 +0100 Message-ID: <2620ab0bbba640b6237c50b9c0dca1c7d1142f5d.1764410067.git.chleroy@kernel.org> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1454; i=chleroy@kernel.org; h=from:subject:message-id; bh=D332WuuSN2u8Im5Q2thvdLGIXxokqDby1Zp25sCFMuI=; b=owGbwMvMwCV2d0KB2p7V54MZT6slMWRqHTY2T45b7xlWMXfp+VdnYhaKHBex8K7gib0oznZJ6 q1ER5V/RykLgxgXg6yYIsvx/9y7ZnR9Sc2fuksfZg4rE8gQBi5OAZjIPRWG/xEphwTWuEXyi//y SW54e4fF99G/U++2P6hnllltebytU4WRYVPItAv8uc6nL9fIRseFnlE5mj47j/lIUq7Kqk/dVwy 7GAA= X-Developer-Key: i=chleroy@kernel.org; a=openpgp; fpr=10FFE6F8B390DE17ACC2632368A92FEB01B8DD78 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" um doesn't support KASAN_INLINE together with STATIC_LINK. Instead of failing the build, disable KASAN_INLINE when STATIC_LINK is selected. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202511290451.x9GZVJ1l-lkp@int= el.com/ Fixes: 1e338f4d99e6 ("kasan: introduce ARCH_DEFER_KASAN and unify static ke= y across modes") Signed-off-by: Christophe Leroy (CS GROUP) --- arch/um/Kconfig | 1 + arch/um/include/asm/kasan.h | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/um/Kconfig b/arch/um/Kconfig index 49781bee7905..93ed850d508e 100644 --- a/arch/um/Kconfig +++ b/arch/um/Kconfig @@ -5,6 +5,7 @@ menu "UML-specific options" config UML bool default y + select ARCH_DISABLE_KASAN_INLINE if STATIC_LINK select ARCH_NEEDS_DEFER_KASAN if STATIC_LINK select ARCH_WANTS_DYNAMIC_TASK_STRUCT select ARCH_HAS_CACHE_LINE_SIZE diff --git a/arch/um/include/asm/kasan.h b/arch/um/include/asm/kasan.h index b54a4e937fd1..81bcdc0f962e 100644 --- a/arch/um/include/asm/kasan.h +++ b/arch/um/include/asm/kasan.h @@ -24,10 +24,6 @@ =20 #ifdef CONFIG_KASAN void kasan_init(void); - -#if defined(CONFIG_STATIC_LINK) && defined(CONFIG_KASAN_INLINE) -#error UML does not work in KASAN_INLINE mode with STATIC_LINK enabled! -#endif #else static inline void kasan_init(void) { } #endif /* CONFIG_KASAN */ --=20 2.49.0