From patchwork Tue Jul 11 12:50:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Pavlu X-Patchwork-Id: 118528 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp483046vqm; Tue, 11 Jul 2023 06:34:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlH69aYGhOsA25BncjBf5AwNhdQrZhGrVssom+395tN1XiahJ9pQ/yKNxeNC6O+Gn0P7aHqa X-Received: by 2002:a17:902:e54a:b0:1b8:9552:ca with SMTP id n10-20020a170902e54a00b001b8955200camr14510226plf.45.1689082471849; Tue, 11 Jul 2023 06:34:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689082471; cv=none; d=google.com; s=arc-20160816; b=Wzw10ZP6NmEVJ1JCdyfOoy9O6IsCMQnqZJ5b0zgg3Dm+hhb1xquCY8TxwFp8CSZBMH 7RurS763J2QSTlPkHFqSZOfqyMZug/+JH4hXqsjAO5zdTx2T31IcalXY+l4AwTuvdlYW 2gxTvCRVZTgPu6nEgHwJz7jXExcPLhNxFNw++DHD+taci8ykRd7jjETc5EubCDvbXUyL xXocM0ASXnxJGhZ8h937NSxmIl2NbGoyokjo4BFYOwoLfpX4T/j/KzoY67C01m3x9PvO /0Q8BumTW+GcNkW3cX8dLg1JOpfqVe+rtNBNshPXOhQG6JdZTBQosUF/JOb9GNbjHq+1 9uRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=nS/Yg6QEzXBrMLnDzymRUQ3/vdKmPN/jkAyJcBvJ29o=; fh=3E0AC/ewV8jjwKGcvCbFGijsoDHyzp3fdpWjtDQdBZ4=; b=HGVqS3DFGePhSB/0j6E19fL9A7Y9ntyX3EJMuwoyhDHWkvwDrk3g8WzpgWdrTFNHdx eBWXltlX8x5bvqhnhIdl/6fhS1jYCJ/rswg6O1jTZnUsLVz6UpcuNr7RSTlJpIcFXxBP DEc5t8MWQJStEQ9JcRTwXYk/nJFIZXitCDV8ILNfjis3KmSXLFXsdqV8qPMVYDjKwljf NFUsJUGj9PGllb6NTFGegp/TX8PuIZ/1RXBMQsJk6zn/9kNnIx3x/bU3FC8JNvtzmG34 3dhx9aZ7UtyMtqfN3m/tCoRYUqsZVJ+DByEh9kzKnM+BJ95Eeylj+wEZtDS10Q46w45w Q+KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=p93uIXje; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o11-20020a170902d4cb00b001b3dacdf717si1653346plg.608.2023.07.11.06.34.18; Tue, 11 Jul 2023 06:34:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=p93uIXje; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231491AbjGKMvH (ORCPT + 99 others); Tue, 11 Jul 2023 08:51:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbjGKMvF (ORCPT ); Tue, 11 Jul 2023 08:51:05 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC0CB98; Tue, 11 Jul 2023 05:51:04 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 6579F2232B; Tue, 11 Jul 2023 12:51:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1689079863; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=nS/Yg6QEzXBrMLnDzymRUQ3/vdKmPN/jkAyJcBvJ29o=; b=p93uIXjeRBxJ68aujj1J5E2pAOpi/T4Yf+t/nq10zsj265N4q8ugZJUe9nmZkMcW6oK32w fFcro0PiyITrAK5w7vzSa/AZ+haqvRL5yTk9x/1KsK16zHOkdTcqwLXIIjEMttOwS3UmVF Eiue+dUnY4FPlORNmsS8A/nbMxFyDLY= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 415671391C; Tue, 11 Jul 2023 12:51:03 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id +rebDjdQrWRGRQAAMHmgww (envelope-from ); Tue, 11 Jul 2023 12:51:03 +0000 From: Petr Pavlu To: arnd@arndb.de Cc: keescook@chromium.org, will@kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Petr Pavlu Subject: [PATCH] vmlinux.lds.h: Remove a reference to no longer used sections .text..refcount Date: Tue, 11 Jul 2023 14:50:54 +0200 Message-Id: <20230711125054.9000-1-petr.pavlu@suse.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771131341879133614 X-GMAIL-MSGID: 1771131341879133614 Sections .text..refcount were previously used to hold an error path code for fast refcount overflow protection on x86, see commit 7a46ec0e2f48 ("locking/refcounts, x86/asm: Implement fast refcount overflow protection") and commit 564c9cc84e2a ("locking/refcounts, x86/asm: Use unique .text section for refcount exceptions"). The code was replaced and removed in commit fb041bb7c0a9 ("locking/refcount: Consolidate implementations of refcount_t") and no sections .text..refcount are present since then. Remove then a relic referencing these sections from TEXT_TEXT to avoid confusing people, like me. This is a non-functional change. Signed-off-by: Petr Pavlu --- include/asm-generic/vmlinux.lds.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 0587354ba678..9c59409104f6 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -578,7 +578,6 @@ *(.text.unlikely .text.unlikely.*) \ *(.text.unknown .text.unknown.*) \ NOINSTR_TEXT \ - *(.text..refcount) \ *(.ref.text) \ *(.text.asan.* .text.tsan.*) \ MEM_KEEP(init.text*) \