From patchwork Wed Nov 13 23:45:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 13874386 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 7C224198A38; Wed, 13 Nov 2024 23:45:37 +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=1731541537; cv=none; b=SW0LIDydxkQ08DqcOiznRFB3T2yqw7kAD9/qgsM8jYtVZJwDzlL6UJXB6DIUNAyJ13yeHdRa4euXFbrTubYpMuFexiDo1rGYHzV5JgraEgcpvw1kHfFMLljN1QPO8xT27MQLGJBnEWQMpUzpppmIeU4PsSSTz3R68NQQK7vM8cM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731541537; c=relaxed/simple; bh=3HBYAGNGyHrTWjvKeN+W+xHvcuACXQo+fVHWYPeN1AY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CNBkJ7XNFzrMRvAJTiftPvvlEOTqHqqjmhHNQkO3WTjrwYpDw40A0KBGvcjlUlmLMittN11t7cQCLD/67qLH5d2YOj3yYKVHshNWYPeTbE66torIOTgUWQ2tvTDpyN/aV26PjTXU2eC760VJUJ0dX36tIydFsc/lf0Cg7AAtU+A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uhDYWtg6; 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="uhDYWtg6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65218C4CED2; Wed, 13 Nov 2024 23:45:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731541537; bh=3HBYAGNGyHrTWjvKeN+W+xHvcuACXQo+fVHWYPeN1AY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uhDYWtg64Bq9lA9U038eHKmYJLV72l8gr/hIfTIUUyX1SZRqJBBB00XI+P3rTaO9d YK5MTJ/y2hnKXIhcKYFls3XgzuWOZ0tlSbhx060ciJd5PoD1VEmKAYtE+0iDWeuzEX 2hjwgTRo5X1qycB6Ngm1Y6nIyf4ss8PenK/IBPaiyNOG+AmwRfi/OIdY3K+8MM8cPP UYMyWjTFmT6V/AJywOWsQdnw9BSR1M54UhOUHYFjpzTgC3EuF7NXTwenjDeso3ehej GM1OcI6h//ZwXyLUUzsLEZXkTJZm7/XfOnPnzmZrnbZ94win0C6wPt0C3vVFo/Cq2K GlkPo8hDxFatQ== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Paul Menzel , Borislav Petkov , Nikolay Borisov , Marco Elver , Josh Poimboeuf , Masahiro Yamada , Nathan Chancellor , Nicolas Schier , linux-kernel@vger.kernel.org Subject: [PATCH 3/3] kbuild: re-enable KCSAN for autogenerated *.mod.c intermediaries Date: Thu, 14 Nov 2024 08:45:23 +0900 Message-ID: <20241113234526.402738-4-masahiroy@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241113234526.402738-1-masahiroy@kernel.org> References: <20241113234526.402738-1-masahiroy@kernel.org> Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This reverts commit 54babdc0343f ("kbuild: Disable KCSAN for autogenerated *.mod.c intermediaries"). Now that objtool is enabled for *.mod.c, there is no need to filter out CFLAGS_KCSAN. I no longer see "Unpatched return thunk in use. This should not happen!" error with KCSAN when loading a module. Signed-off-by: Masahiro Yamada --- scripts/Makefile.modfinal | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/Makefile.modfinal b/scripts/Makefile.modfinal index 0547a4b59f13..3e56a3f733e9 100644 --- a/scripts/Makefile.modfinal +++ b/scripts/Makefile.modfinal @@ -22,7 +22,6 @@ __modfinal: $(modules:%.o=%.ko) modname = $(notdir $(@:.mod.o=)) part-of-module = y GCOV_PROFILE := n -KCSAN_SANITIZE := n ccflags-remove-y := $(CC_FLAGS_CFI) %.mod.o: %.mod.c FORCE