From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02310C636D6 for ; Mon, 20 Feb 2023 20:47:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230516AbjBTUrH (ORCPT ); Mon, 20 Feb 2023 15:47:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231818AbjBTUrB (ORCPT ); Mon, 20 Feb 2023 15:47:01 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 419AF10D8 for ; Mon, 20 Feb 2023 12:47:00 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id DC4F7B80DCC for ; Mon, 20 Feb 2023 20:46:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E04BC433D2; Mon, 20 Feb 2023 20:46:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1676926017; bh=pEbJkcsGlGRUUFzbG6bVyiDAtTdASKpAOQd1LjCktaA=; h=Date:To:From:Subject:From; b=C3Bgp+rZ34YShDOv0e2gK44W4CGqpsQziRp5ZkHhkDTt2BIkwc4xZdRJoQfnv2x4e hjDEOr1nN1swn+Rr2+zCxe2aVaUzqRQwwb9TZ9CIkLFsdBF/9QcsD7RBlDmt7Kspf2 jFvw0TH+ucsycycsrhMJoawg2nbW4Eeu9EBjYnNU= Date: Mon, 20 Feb 2023 12:46:56 -0800 To: mm-commits@vger.kernel.org, vincenzo.frascino@arm.com, ryabinin.a.a@gmail.com, peterz@infradead.org, Kuan-Ying.Lee@mediatek.com, jpoimboe@kernel.org, glider@google.com, elver@google.com, dvyukov@google.com, andreyknvl@gmail.com, arnd@arndb.de, akpm@linux-foundation.org From: Andrew Morton Subject: [merged mm-stable] objtool-add-uaccess-exceptions-for-__tsan_volatile_read-write.patch removed from -mm tree Message-Id: <20230220204657.7E04BC433D2@smtp.kernel.org> Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The quilt patch titled Subject: objtool: add UACCESS exceptions for __tsan_volatile_read/write has been removed from the -mm tree. Its filename was objtool-add-uaccess-exceptions-for-__tsan_volatile_read-write.patch This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm ------------------------------------------------------ From: Arnd Bergmann Subject: objtool: add UACCESS exceptions for __tsan_volatile_read/write Date: Wed, 15 Feb 2023 14:00:58 +0100 A lot of the tsan helpers are already excempt from the UACCESS warnings, but some more functions were added that need the same thing: kernel/kcsan/core.o: warning: objtool: __tsan_volatile_read16+0x0: call to __tsan_unaligned_read16() with UACCESS enabled kernel/kcsan/core.o: warning: objtool: __tsan_volatile_write16+0x0: call to __tsan_unaligned_write16() with UACCESS enabled vmlinux.o: warning: objtool: __tsan_unaligned_volatile_read16+0x4: call to __tsan_unaligned_read16() with UACCESS enabled vmlinux.o: warning: objtool: __tsan_unaligned_volatile_write16+0x4: call to __tsan_unaligned_write16() with UACCESS enabled As Marco points out, these functions don't even call each other explicitly but instead gcc (but not clang) notices the functions being identical and turns one symbol into a direct branch to the other. Link: https://lkml.kernel.org/r/20230215130058.3836177-4-arnd@kernel.org Fixes: 75d75b7a4d54 ("kcsan: Support distinguishing volatile accesses") Signed-off-by: Arnd Bergmann Acked-by: Marco Elver Cc: Alexander Potapenko Cc: Andrey Konovalov Cc: Andrey Ryabinin Cc: Dmitry Vyukov Cc: Josh Poimboeuf Cc: Kuan-Ying Lee Cc: Peter Zijlstra (Intel) Cc: Vincenzo Frascino Signed-off-by: Andrew Morton --- --- a/tools/objtool/check.c~objtool-add-uaccess-exceptions-for-__tsan_volatile_read-write +++ a/tools/objtool/check.c @@ -1186,6 +1186,8 @@ static const char *uaccess_safe_builtin[ "__tsan_atomic64_compare_exchange_val", "__tsan_atomic_thread_fence", "__tsan_atomic_signal_fence", + "__tsan_unaligned_read16", + "__tsan_unaligned_write16", /* KCOV */ "write_comp_data", "check_kcov_mode", _ Patches currently in -mm which might be from arnd@arndb.de are