From patchwork Sun Nov 26 17:04:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 169894 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp2583410vqx; Sun, 26 Nov 2023 09:05:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6j2KyCkWGdZnyLCZu1ViUC0fqH3osOyLzn4a9Kk5sWXnTmian6hBHPpwsVgx8omxAd11g X-Received: by 2002:a05:6a20:1588:b0:18c:2685:57fa with SMTP id h8-20020a056a20158800b0018c268557famr8123174pzj.33.1701018303435; Sun, 26 Nov 2023 09:05:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701018303; cv=none; d=google.com; s=arc-20160816; b=SgRk/4lIp+9pv/keA3zgb883ZU9kXLrTn1Q9Z06d/bwN99DRKI9VPvjuX/52GLkPzO WCslj7vCVTG6MMqX+HpIYwqQJVfgY3dpesW1MNnL2WVq0an8ohzQC3sXvNFiWdOMmM/z 0iQc6wI8b0+I3T9ZhggtBfByE1dQwDWsJ8E7O2rPi7IKU/wqo6aMiGCrqWos8tEvsNKs tLpKe70spJhAuc/P/mkg7Ar3yKKLJ/9oj+VAim8tJLVQk4JkcGSB/OGdFKHWGiXUJW9N Ph/Ks0kPY7riIGO6kv4m1xNu9Iw+S4GUqMkO93dZKiI9QpH6D4L9DOQ1G1UNuud2gDCs LFFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date; bh=y3hIHuFrCw4ZoLTxtoVeaJ4/ClEXBQbWXgcmPhfBfxM=; fh=CghBDShdVEs+eg0pyzMFWnkbnOVUawCTd8Q4b0oZ2ic=; b=yBDPwfpypL50SKbbwzUdd9jevNwIFnGzNomU8d0PEHd0lZhKK4Ssq7GY3xAnrjxvXK VQX9GpiE3nj0QBzmbUCXmOLhweYDgDVGJH1nXiwlfkUCPG/74C3GgB9PlHt1EtQWCjVT M7+ui3hEtrNTnfkkWZqIvMBskIkUouTdcYeGeG+kcAVrBI9zaTmHKnvtAZoBmXvHli5h hXeEIGMmVVqKdLao2sKzfVqVHebEQ03RRXY2mPr29TGXKduk+lrttgdPb3/VO8vLjVwX SDzu5C7N4W/B8sE32VOTEppusRZwo57KQ9nRYDn3AR5FPYfk6EH7OUivqhYzCnc94Rif YCuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id b4-20020a17090a800400b00276b35bc424si3791001pjn.26.2023.11.26.09.05.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 09:05:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 60CBD80A9ABF; Sun, 26 Nov 2023 09:05:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229489AbjKZREj (ORCPT + 99 others); Sun, 26 Nov 2023 12:04:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjKZREj (ORCPT ); Sun, 26 Nov 2023 12:04:39 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAF14FA for ; Sun, 26 Nov 2023 09:04:45 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23DD0C433C8; Sun, 26 Nov 2023 17:04:43 +0000 (UTC) Date: Sun, 26 Nov 2023 18:04:41 +0100 From: Helge Deller To: Linus Torvalds , linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, James Bottomley , John David Anglin Subject: [GIT PULL] parisc architecture fixes for v6.7-rc3 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-0.5 required=5.0 tests=FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Sun, 26 Nov 2023 09:05:00 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783646968335637231 X-GMAIL-MSGID: 1783646968335637231 Hi Linus, this patchset fixes and enforces correct section alignments for the ex_table, altinstructions, parisc_unwind, jump_table and bug_table which are created by inline assembly. Due to not being correctly aligned at link & load time they can trigger unnecessarily the kernel unaligned exception handler at runtime. While at it, I switched the bug table to use relative addresses which reduces the size of the table by half on 64-bit. We still had the ENOSYM and EREMOTERELEASE errno symbols as left-overs from HP-UX, which now trigger build-issues with glibc. We can simply remove them. Most of the patches are tagged for stable kernel series. Please pull. Thanks! Helge ---------------------------------------------------------------- The following changes since commit 98b1cc82c4affc16f5598d4fa14b1858671b2263: Linux 6.7-rc2 (2023-11-19 15:02:14 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git tags/parisc-for-6.7-rc3 for you to fetch changes up to 43266838515d30dc0c45d5c7e6e7edacee6cce92: parisc: Reduce size of the bug_table on 64-bit kernel by half (2023-11-25 09:43:18 +0100) ---------------------------------------------------------------- parisc architecture fixes for kernel v6.7-rc3: - Drop HP-UX ENOSYM and EREMOTERELEASE return codes to avoid glibc build issues - Fix section alignments for ex_table, altinstructions, parisc unwind table, jump_table and bug_table - Reduce size of bug_table on 64-bit kernel by using relative pointers ---------------------------------------------------------------- Helge Deller (9): parisc: Mark ex_table entries 32-bit aligned in assembly.h parisc: Mark ex_table entries 32-bit aligned in uaccess.h parisc: Mark altinstructions read-only and 32-bit aligned parisc: Mark jump_table naturally aligned parisc: Mark lock_aligned variables 16-byte aligned on SMP parisc: Ensure 32-bit alignment on parisc unwind section parisc: Use natural CPU alignment for bug_table parisc: Drop the HP-UX ENOSYM and EREMOTERELEASE error codes parisc: Reduce size of the bug_table on 64-bit kernel by half arch/parisc/Kconfig | 7 ++++-- arch/parisc/include/asm/alternative.h | 9 ++++--- arch/parisc/include/asm/assembly.h | 1 + arch/parisc/include/asm/bug.h | 38 +++++++++++++++++------------- arch/parisc/include/asm/jump_label.h | 8 +++++-- arch/parisc/include/asm/ldcw.h | 2 +- arch/parisc/include/asm/uaccess.h | 1 + arch/parisc/include/uapi/asm/errno.h | 2 -- arch/parisc/kernel/vmlinux.lds.S | 1 + lib/errname.c | 6 ----- tools/arch/parisc/include/uapi/asm/errno.h | 2 -- 11 files changed, 43 insertions(+), 34 deletions(-)