Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5297012imm; Tue, 18 Sep 2018 07:24:17 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbXzbB6ISfTqHdJ/hlPvuuTW6Dfzs2gWV3cS7wndfKbaFkWeFPfgebeaDn/EzsC9WegIExZ X-Received: by 2002:a62:4494:: with SMTP id m20-v6mr31462366pfi.205.1537280657130; Tue, 18 Sep 2018 07:24:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537280657; cv=none; d=google.com; s=arc-20160816; b=PX0AuYRv2yqCOpgRd130RURbCY4doGMs6iSZIwcRLFqDSpPrU8GxaqqLKahSCtGk1d in9HV2KifsNfLjeJYQuEaT3kfnFUR9aqJfjEnV1W98we1DEbGd8cLpbvRum8H7aguxyZ 3QerZWJEzYUKS4PwVWp5+Y6SyNDYmci9/MWnbN+eqHsAI4IdAHVP7Nq2zGXGGIwQPOr7 8RT6Ke/ofNOXLp9116icLsOnZOs7XRANjjF2kd0SDms+WzUiVKnXR2gFFO0FJEsw4xun hsQ/6hjlb0ApCtKtcHyDe2/zBZqZNe3wfx8E7ijII5IS6uh7I0DLHKdKOe29zNu77eaJ HD0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=mBezYcy63E4L2TTh0bwZ86gDBJJe5e8Ts5qKs6if3bE=; b=rH7ImP5oo0dugMWyqh9vHdoyu36X5nXUctiL2fEOnk3Ke6Z2SgcZ5RE7nfast8q7uT zzsbMVmobuLMfqPqJ5ahzqqlAxIr/uUNc4N7OEqQ1tL61N8kPZlr0Ntf4jRrkEFNOGWb HEEka8aXRBsZMAjhAscNVMYbaK8kyiGLa7+TXpgUEkG+67rs8Uie7FlW2PF/m1COLB9w p/njSyBuoQAJIHYjyX8woUGc4zWANmF77k5DEpocR/joPiLtP7gg8yWZffauHkt/KX6P 8/Ncu3EcIY1X10ZYfvkMn2t1eeLrkaWKE8mx5+q02smMR6TySahb5BY1flGFdGwJcin4 jIqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9-v6si18406102pln.462.2018.09.18.07.23.47; Tue, 18 Sep 2018 07:24:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729885AbeIRTyW (ORCPT + 99 others); Tue, 18 Sep 2018 15:54:22 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:39271 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729766AbeIRTyW (ORCPT ); Tue, 18 Sep 2018 15:54:22 -0400 Received: by mail-qt0-f193.google.com with SMTP id o15-v6so1829874qtk.6; Tue, 18 Sep 2018 07:21:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mBezYcy63E4L2TTh0bwZ86gDBJJe5e8Ts5qKs6if3bE=; b=uQryEN6NvyTiAE4vKkjSt3eubwqJc2/3uYlHlnqZpaBYfKO4p6gIhF9/C5J9+gGJ4v FC5eyLGfTOvOn8y+tlzioYasxkWKuBsTpzWgttOU2ll9XIfcfA0tM3hg3Ol7oy/5qFGQ 638u5WpE6cD6bRaWPBBhPC8XHKrDP3Wpc7jdU3dP6dg1ljZznaMooRaPgN3PuPvnt8EC Vn/I00UF496ZPWdvtVYXITNMA3jNyq89x7ZMGEED0dKexnxpBoNBDOv7gjfaSXGcJBAp T4gSAwcunxx03CBr2AaHf/IC34CmV/6b9nv65+TE3UbSR5zDZE6vqvr74zgHHLl57u+J Q0Yg== X-Gm-Message-State: APzg51DkcWuOu97wVpdS5Ylc0i2ltmOHvxYmA1mC/Bz12fmnUxcogrBH AK47nzitMTG5DF+pTI2v/6zfhqSLw6M8TQKjo2c= X-Received: by 2002:a0c:8b67:: with SMTP id d39-v6mr20692455qvc.180.1537280492911; Tue, 18 Sep 2018 07:21:32 -0700 (PDT) MIME-Version: 1.0 References: <20180914113929.953895-1-arnd@arndb.de> In-Reply-To: From: Arnd Bergmann Date: Tue, 18 Sep 2018 07:21:13 -0700 Message-ID: Subject: Re: [PATCH] [RFC] making uapi/linux/elfcore.h useful again To: Joseph Myers Cc: linux-arch , Linux API , David Howells , GNU C Library , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "the arch/x86 maintainers" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 17, 2018 at 5:05 AM Joseph Myers wrote: > > On Fri, 14 Sep 2018, Arnd Bergmann wrote: > > > +typedef unsigned long elf_greg_t; > > Does that need to be unsigned long long for x32? (At least glibc thinks > so; I've not tested what an x32 core dump actually looks like, but to be > useful it certainly ought to have 64-bit registers.) Yes, I think that's right. 'unsigned long' was correct inside of the kernel, but copying it into a uapi header means we have to use '__kernel_ulong_t' so it gets interpreted right by x32 user space. Arnd