Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp672044pxy; Fri, 30 Apr 2021 13:45:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPQq6mYrzJm5eDUzoxPpc2EXSRxEl+v7YD41kTTBE/G4LRuNEfDQKw5I0MV1swgafdbq7C X-Received: by 2002:a17:906:7842:: with SMTP id p2mr6641733ejm.87.1619815507850; Fri, 30 Apr 2021 13:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619815507; cv=none; d=google.com; s=arc-20160816; b=oQAvSnvRm8f1rX3GNAtmDv68ppIO3bD1gqu+8NmrK/fj1hK5LWMI963aUODESridgb wX7B+FhxVmBwU+raPK35qX9R4i7I7gI54qXCMvIrZnuESXlXAx8/TWEFFw8ltPU3tVfW 8ezZ3GgG51LvaZ3AQJvHSL2Yn1ZcJjtI77EbTk2/Yds2LoChQonkn/ICIsRSfEmY5hSB mKvtrcR+HrAk8HFzvZ8FGzORyU3jWwDwMY0DpltPZmR7eTLo6oO/VJL4NSMd5zKdPQRR D/JiF6/rzMyzpsvwy40fYj6au2wcYX4IQCGSvN42N7xepJnV51YOmB4g677uWvGWng19 pfQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=3xuvPUiFW70v8A7b4QJlGXXjjayYCI/7YbDiNjBENrA=; b=X8ImAdHSG31odkHR273AxV0Efonn83gTx47XQXn+MkwNQEPHp5xpBPplau3BITx5/M P5zrvw4p4c6mEtIGleAs3oqgCKtsNfawAz+mLNM630lVjeQ5UPB0YqolV1XIUBDiKwc2 /5s2sEqf0GnUjIEC2jkI5uk2nQuXK4mRqff5LzT5287qvwdI9i4Bor7zgREP22oWRc85 +MfYQdcbIEvuZB7OQ2J/xJ1T9u2euoF/HHsXRTHXnTKfxNmuncSSF2DF8OlyIaCFIuJs roMQRpsyNNnXA8upDG2ErVB4wLa6598Id5HKZhPkz1lPwl+PhQ10WlXcPOqq+clkvx+b I2+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w24si4971555ejb.528.2021.04.30.13.44.44; Fri, 30 Apr 2021 13:45:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235384AbhD3Uoj (ORCPT + 99 others); Fri, 30 Apr 2021 16:44:39 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:54357 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231325AbhD3Uoj (ORCPT ); Fri, 30 Apr 2021 16:44:39 -0400 Received: from mail-wr1-f47.google.com ([209.85.221.47]) by mrelayeu.kundenserver.de (mreue109 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MPGJf-1lvUSH3dvB-00PeWe; Fri, 30 Apr 2021 22:43:48 +0200 Received: by mail-wr1-f47.google.com with SMTP id x5so21688547wrv.13; Fri, 30 Apr 2021 13:43:48 -0700 (PDT) X-Gm-Message-State: AOAM532Fd+80CDAQiJ4dOI5oYtlGRKoV1X6wNkWhf9P0klr/OCIMcsPU mQxAr2GNWF6OKzcgxXkglDhw8V1ReNniXhYMa/I= X-Received: by 2002:a05:6000:1843:: with SMTP id c3mr9808647wri.361.1619815428535; Fri, 30 Apr 2021 13:43:48 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Arnd Bergmann Date: Fri, 30 Apr 2021 22:43:09 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: siginfo_t ABI break on sparc64 from si_addr_lsb move 3y ago To: "Eric W. Biederman" Cc: Marco Elver , Florian Weimer , "David S. Miller" , Peter Zijlstra , Ingo Molnar , Thomas Gleixner , Peter Collingbourne , Dmitry Vyukov , Alexander Potapenko , sparclinux , linux-arch , Linux Kernel Mailing List , Linux API , kasan-dev Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:1T39EDIEGbC+K2EWO8vif5PitZfwh83eNXC5FhSEd6gpm6wI/mg 0LsG6tKV2Wbj1GzC2XsrKRG/oSKE85phpvLwKPkcyh5KLDaOBzIsM52bwsO8uSACBGsYFX+ PzRDHD5mjgShUF7QVg6NwyzXadfx+3T7hAgSIr/cGcEKL6vqK/cIlbp4au1xdWJa74NG9Lw vWkkVu41JAR1YOI6ToAVA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:bD7bHAN+nZg=:nbPLcZgrKRCeaw9/+G+s4P 6vCC3nyX46/35Fso9jkovVD1ok6BDjyqpM1cJtPfYGNbfl4kNZ8w50HaCWWtjoD+YD94sC38b 69F+/x5Vyx0FzCaFh8CQTdyKRNAhHV6KWA3AVMeYvA0UzrGJyGb9mprWPbPblC2XNPMts4i8+ loDDg/qQRc3KMrtDDn5KnBG+g2X7e6Z17zSyVmjd/Cy4Ygg/zPuM3X7RP7J04WpkQkC019exW A6HeWvSvI/4/3BXGx8xsgcGYEwDs6vFrK9lWHnlxzSVjWwmOwXhoG5Sm6gpMP5nkjMbP0inwo n+TQhS6i9Cxl8VLAL7gP1qFTuR4uBoL0iMeVRKb8Ej1KpFOmImiB04cORNmIOLMlIZwl3sLjZ 9T3u738ZckAnS0cE7yALGh6uif/D10BOo4WGBMa4vxfVZ2PxyDgdUjdmDU0OzyFf66W2LS7SB bVNdtUQkMufFwZBsP/7t/uz0xc+deDtLPrvZBSYO7GyU82DY+NCrzfxv5vZky4s4WsoWPUyi6 2p0pzDkSUvQTXZJTFg3Rc8= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 30, 2021 at 7:08 PM Eric W. Biederman wrote: > > The code is only safe if the analysis that says we can move si_trapno > and perhaps the ia64 fields into the union is correct. It looks like > ia64 much more actively uses it's signal extension fields including for > SIGTRAP, so I am not at all certain the generic definition of > perf_sigtrap is safe on ia64. > > > I suppose in theory sparc64 or alpha might start using the other > > fields in the future, and an application might be compiled against > > mismatched headers, but that is unlikely and is already broken > > with the current headers. > > If we localize the use of si_trapno to just a few special cases on alpha > and sparc I think we don't even need to worry about breaking userspace > on any architecture. It will complicate siginfo_layout, but it is a > complication that reflects reality. Ok. > I don't have a clue how any of this affects ia64. Does perf work on > ia64? Does perf work on sparc, and alpha? > > If perf works on ia64 we need to take a hard look at what is going on > there as well. ia64 never had perf support. It had oprofile until very recently, and it had a custom thing before that. My feeling is that it's increasingly unlikely to ever gain perf support in the future, given that oprofile (in user space) has required kernel perf support (in kernel) for a long time and nobody cared about that being broken either. sparc64 has perf support for Sun UltraSPARC 3/3+/3i/4+/T1/T2/T3 and Oracle SPARC T4/T5/M7 but lacks support for most CPUs from Oracle, Fujitsu and the rest, in particular anything from the last ten years. Alpha has perf support for EV67, EV68, EV7, EV79, and EV69, i.e. anything from 1996 to the end in 2004. Arnd