From patchwork Wed Feb 15 13:00:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13141620 Return-Path: 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 D0A98C64ED6 for ; Wed, 15 Feb 2023 13:01:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 35ED26B0072; Wed, 15 Feb 2023 08:01:19 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 2E70D6B0073; Wed, 15 Feb 2023 08:01:19 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 161B86B0074; Wed, 15 Feb 2023 08:01:19 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id F2F5A6B0072 for ; Wed, 15 Feb 2023 08:01:18 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id B2DD9A0156 for ; Wed, 15 Feb 2023 13:01:18 +0000 (UTC) X-FDA: 80469537036.05.2991875 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf06.hostedemail.com (Postfix) with ESMTP id 88AC0180007 for ; Wed, 15 Feb 2023 13:01:14 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=u6ljbQgA; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf06.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1676466074; 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:references:dkim-signature; bh=LlL1XccJ9W7u9oEjuE1n8xFo22cK7tQYzezyENp4RVg=; b=K3Rv3oK+l7QQd5IqB8lzA7mrDfbRvI7z91WcmpyIXf5WFbVnrXeA/VU5EDvaAC2nLJgnB3 e0j7ItEtakP8xsl1FgxBkZPvcTwzqzxFPcMc+B3QGvbvsXUdAyygT+ybYjZPTPYsUKD61j eN62OsQjdTvPRAxVuec+CVoSY3oNpRw= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=u6ljbQgA; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf06.hostedemail.com: domain of arnd@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1676466074; a=rsa-sha256; cv=none; b=21/96RTE/3um2IMfNTL7S6HTnF8bjEO3tph4UhzrR/odARQ4S5hnnLEhN91mj+FABDmSUb i5hxAxZ43x5guU7ikGth4xzDcWqItemJ6vdyyfMJPaDYSsHjWSpS4Z5FZqCvfI/rVJJ2ck Ce0yqK/m1RP3ztE0YOBXNMBOpEIpHQI= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 82E6D61B91; Wed, 15 Feb 2023 13:01:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBBA3C433EF; Wed, 15 Feb 2023 13:01:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676466073; bh=/ty4K/gkLsk7zw+XWjgV6xnYCwV+ng1Uvr9uV/F92FU=; h=From:To:Cc:Subject:Date:From; b=u6ljbQgAWVxr91+XjvfSLT2FE1UiKoUEQEIEz5SQnk2GWHYhI88M2/W6eA6tgnFwQ TBy3OOH/jBkI18gZv3DvP4UsmYI/0vHCQCAaJkEKmLh1mU8Mgpeb/A9RVZlC2e7qvm vMiWDAtDSbO85LRV1Ismi7bc2LmmpaHzQaMHSceZSHEsehr8mAOjNXKyhIkixndZ/O OHSQuahdD5jGG/yvK0Gr9vXu70HFBeRBKV9nJgfcMD3ftTS29vaCjklxaZJtx8eREg UdqUA03QeanFnWSgO9qULxXDBwWtq/nBDVUXX+K2lRH4eLgFMVVApB2W+FM68YUYT5 DmXO75Kz3t/0A== From: Arnd Bergmann To: Andrew Morton , Josh Poimboeuf , Peter Zijlstra Cc: Arnd Bergmann , Alexander Potapenko , Andrey Konovalov , Andrey Ryabinin , Dmitry Vyukov , Kuan-Ying Lee , Marco Elver , Vincenzo Frascino , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] [v2] objtool warning fixes Date: Wed, 15 Feb 2023 14:00:55 +0100 Message-Id: <20230215130058.3836177-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 88AC0180007 X-Stat-Signature: pamozqcrwwh76zts5fdiuh8xgr7gtq5i X-HE-Tag: 1676466074-264114 X-HE-Meta: U2FsdGVkX18sjxO8A+H7y51Lr5naEjNknCiC5JX5F50+rd88m5vbND+96d86KsiJ9L5M+yWerFCxpEp/ZW1wldaggSwLpQC8ZTn6MCqb6qUaueJKR0bqSvTqCzpf/E21Owj9HLzCCVRGPwTIvgbMcnCv3WRh3tEY08nvpn3Vcuh6kJXLxmmOzhWrOGix090d9pJOJvFNDMfUnIJgQNDTOmY+oAG+n0IyBoqVKtq2I2+WfrtrnmBaq/hAd5prawG7tomQmLDYVXM324wAP+47hTvdtL2EhXVuDaCxJodppQ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np2nK7zxY5kUZGAb4l6RQ9viFbGk/92D1WAPqp3z74D9c+6hwgkLtzqHCq/pIPn4I/oIOAikSRYn8I07rL+yMP5YCTlsBrgGNkZ8f2mRKTj4/otUBFqqJnZkCrgx0kuut+eftXESeGyQa98HnXrLMhcUKVugoNxvhl6OMZdVgZ/SuGKR+mmnEiYP7hSViU0hbcBjfL3aCcGN19TxNSzlZJC96+A+SEEH2+AP4mPiUTzA4dY0xaz/YY2i5MMrHpXJNFvQPniNaOeSYDzD/LaXNQKVpT325HeGszcjCrTS2QBlWjqG+7M+dl2lN5iV7ya7Qat33CgxY= 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: From: Arnd Bergmann These are three of the easier fixes for objtool warnings around kasan/kmsan/kcsan. I dropped one patch since Peter had come up with a better fix, and adjusted the changelog text based on feedback. Link: https://lore.kernel.org/all/20230208164011.2287122-1-arnd@kernel.org/ Arnd Bergmann (3): [v2] kasan: mark addr_has_metadata __always_inline [v2] kmsan: disable ftrace in kmsan core code [v2] objtool: add UACCESS exceptions for __tsan_volatile_read/write mm/kasan/kasan.h | 4 ++-- mm/kmsan/Makefile | 8 +++++++- tools/objtool/check.c | 2 ++ 3 files changed, 11 insertions(+), 3 deletions(-) Cc: Alexander Potapenko Cc: Andrey Konovalov Cc: Andrey Ryabinin Cc: Dmitry Vyukov Cc: Kuan-Ying Lee Cc: Marco Elver Cc: Vincenzo Frascino Cc: kasan-dev@googlegroups.com Cc: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org