Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3680207ybt; Tue, 30 Jun 2020 08:47:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzm2VXpN88/7uuyns58Pl7zfLu1pvq5bl3zVROytAoB/1xHCp1TQil099iJ4AGJOIkdV8y X-Received: by 2002:a50:ee87:: with SMTP id f7mr24379494edr.355.1593532074994; Tue, 30 Jun 2020 08:47:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593532074; cv=none; d=google.com; s=arc-20160816; b=oboCL3djjBfotxKqKyGOniny6Ux8LYk4/8hSSaU3GNGXHrWKgShJK3iH90IOhQ/hrp ooK09uUxYzz0OUIO0TMoHzb7a9b5xnjgLwWOO1WGKTWsFS3wSc6TgLLuvfBp+8xfoef7 R1PSvS4axH4SnnkU2OlMVbLDa5z5niM3yRlCWanaXpi+AguGlFcRnVPP31UZJ9PHoZhS F3N4lOx16CuF25IKRTpZH2Q57jS2CjQTnYQlWqO7LAkx3Xv5GlHGot3SPfSYJGrz/ASD SD6yPQ6NgCMYKjwkadgWZBTdekNCPmsrU5wbbr5naKKao/oyltgY5/nTjCREjCUrZJAw 6YBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature:dkim-signature; bh=4OadfORqojVU6tSHIODgSKE3kV/kwuYcqcsLijCNPzI=; b=vXRjvx2bUshfxh9FKFJVhHx6hSVLq1e8H/zsDoZtLt+/qnThC4OwWhwMmkyDyvgW58 TnTYQnTdI1+RwoohjLMUNKAZAAIy6acXBa568i5cWzCTTOwGs1RXAVpIlY1bcVD6YO/m M5EAz1+m0LEkYsfPAl45MaKkGo7cZYMZOr4RDTPbHzozAENszTV3i+MDCX0HoIDlTP+N L4WhrQh8WUqucA/gOkkTYuVafzZ8Zq/+GooS+QN/wm9PRGHNzBcSKXVp6CxgkDx1uBAK xFoaEq/pqLzw0YGLN20MxRKbAAo3ixZU2aLJ61GBa3MgcezhJlLtAoFN/dKaW7vXFhCY QI0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=wcr7+XLL; dkim=temperror (no key for signature) header.i=@fluxnic.net header.s=2016-12.pbsmtp header.b=1+gJ5HvL; 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 u6si1933704ejf.218.2020.06.30.08.47.31; Tue, 30 Jun 2020 08:47:54 -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; dkim=pass header.i=@pobox.com header.s=sasl header.b=wcr7+XLL; dkim=temperror (no key for signature) header.i=@fluxnic.net header.s=2016-12.pbsmtp header.b=1+gJ5HvL; 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 S2389715AbgF3PqA (ORCPT + 99 others); Tue, 30 Jun 2020 11:46:00 -0400 Received: from pb-smtp1.pobox.com ([64.147.108.70]:54984 "EHLO pb-smtp1.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389432AbgF3Pp7 (ORCPT ); Tue, 30 Jun 2020 11:45:59 -0400 Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 63F087A818; Tue, 30 Jun 2020 11:45:57 -0400 (EDT) (envelope-from nico@fluxnic.net) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sasl; bh=qtNUAx9ee2dr/6KMkTsUA/oi30Q=; b=wcr7+X LLtKEZszPzxEwePuzobuOh1tLdpz5VYsVI5qY2i0ovxoJ0nwLJxHq+pnmqGSnJjj MLLCde6KCENi9NqPhYXPTKWxesjyAnJhlUApmx9aoRWw4GyH+lK1S70og0askc0r 9Mm5CauM0c1+13f0EBu08YpE0E5NVszJRyEXc= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 5A0D97A817; Tue, 30 Jun 2020 11:45:57 -0400 (EDT) (envelope-from nico@fluxnic.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=fluxnic.net; h=date:from:to:cc:subject:in-reply-to:message-id:references:mime-version:content-type; s=2016-12.pbsmtp; bh=A0aF3p7sqCBXQ5afZPVyfIXLWjyDeU13XjzH1QUb90s=; b=1+gJ5HvLtA+38vIw09LDadOwkgZpTpiYsAG/BQ4gb8ZzhLvXsVXw4iZT+oObw91aKG4OZIM4aBxpRHLotoWyV4isvbdSz3We1FJaEX29q1dfEkD/LOCVpPz1UOjnG7QUKC+lLyxVaHSvKzR/3LQ61gSilfZWZEf36djCfAj210A= Received: from yoda.home (unknown [24.203.50.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id ACB097A815; Tue, 30 Jun 2020 11:45:56 -0400 (EDT) (envelope-from nico@fluxnic.net) Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTPSA id B47712DA0A5D; Tue, 30 Jun 2020 11:45:55 -0400 (EDT) Date: Tue, 30 Jun 2020 11:45:55 -0400 (EDT) From: Nicolas Pitre To: Al Viro cc: Linus Torvalds , linux-kernel@vger.kernel.org, "Eric W. Biederman" , David Howells Subject: Re: [RFC][PATCHES] converting FDPIC coredumps to regsets In-Reply-To: <20200630043641.GD2786714@ZenIV.linux.org.uk> Message-ID: References: <20200630043641.GD2786714@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Pobox-Relay-ID: C9B187D6-BAE8-11EA-BD60-C28CBED8090B-78420484!pb-smtp1.pobox.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 30 Jun 2020, Al Viro wrote: > The obvious solution is to introduce struct elf_prstatus_fdpic > and use that in binfmt_elf_fdpic.c, taking these fields out of the > normal struct elf_prstatus. Unfortunately, the damn thing is defined in > include/uapi/linux/elfcore.h, so nominally it's a part of userland ABI. > However, not a single userland program actually includes linux/elfcore.h. > The reason is that the definition in there uses elf_gregset_t as a member, > and _that_ is not defined anywhere in the exported headers. It is defined > in (libc) sys/procfs.h, but the same file defines struct elf_prstatus > as well. So if you try to include linux/elfcore.h without having already > pulled sys/procfs.h, it'll break on incomplete type of a member. And if > you have pulled sys/procfs.h, it'll break on redefining a structure. > IOW, it's not usable and it never had been; as the matter of fact, > that's the reason sys/procfs.h had been introduced back in 1996. Huh! That's convenient alright. Acked-by: Nicolas Pitre Nicolas