Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp144163ybi; Tue, 2 Jul 2019 17:56:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsr2i2XxbPj0GNsbrvbb5DtQ/vZWZRrhllFqTYf815M9WYKqHr9Wpn+zxlBTTPTVYYzUjZ X-Received: by 2002:a17:902:d81:: with SMTP id 1mr5131208plv.323.1562115363738; Tue, 02 Jul 2019 17:56:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562115363; cv=none; d=google.com; s=arc-20160816; b=euPc+RjjnaBT+vSqSjPStjlPNgGrG8b7IHGYePHF8EMf7/Sp9XQsWFLMHsQgM5mgSj u5ndj8EIcJVPJ0UYBE+iJfaUVGNBoYayr/0VRS14I3V1gvxC8YZ6yg1KEKFxx86I+ufb vQDTTHMdzYjeCIOHpLrIp0vA/z9lGD5E0v6FlDJ4gz0igxIGmMCE7CZxAyov7eMgmvM1 YZVbMx6lY+VE5nTa2gJgIA3vQcopcm4bUGslnQEyRrNiA/EgiSZQ2omn2h6M1/J0UtXJ Lr1gy+JX+l5ymOoqDj726NYY7Qj1VVRC+XvK6Ieq1BKzRHa4EkmNhoirXXYD/EtqGzbW +T5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr :ironport-sdr:dkim-signature; bh=elHOsEoTCgG+Uk0vswqhp1q8HoXn5cht9JWoeA+uiso=; b=0y1lFx6h64geK6Bgifv7cYmXy/7fndtl+PoNrbdkoij1sqM8u023BMuRJKyRA6bz+w kKD4te0/MA5AoQrDCWcnKl3QzOiZ1qSa9eOHhLxJbscXgOH0N2KqsxfIFoZFMLpFXLTQ IhC3K+trPogpceEEvZRcgeUPsvAnSYEFW6G8fs4sHJb1M4ZDs8t3k0lTB3xXTpqweBLr mADL2y9d6+nhiZSDqSfJyeBzsPTGMxIkEuhUcmY6JCSWkdcewAz7j77DhJ6s89gYxzSN 5bWCHAA8XZou3Sqw8cSmYWMFlJ5Yyxi/inBkrBsf/9N62rivuexFaOoZOjRVUTjpiFOD cfUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=hEdLVLX9; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g69si382994pgc.159.2019.07.02.17.55.48; Tue, 02 Jul 2019 17:56:03 -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; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=hEdLVLX9; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727370AbfGCAyl (ORCPT + 99 others); Tue, 2 Jul 2019 20:54:41 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:53186 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727049AbfGCAyl (ORCPT ); Tue, 2 Jul 2019 20:54:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1562115281; x=1593651281; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=fVT1Neu72Cl7Ti24Xfa8jpNhBvPMuWv91mK1LHqkCSA=; b=hEdLVLX97kyJRiEd+bxnw2YMyBr1Cnmouuwv4r1VmEA3MIxoGcEPD7yz LManCbYvIhcvy7/pmH6ZNGI+JDAfy2NvFP10Y4joBe8c5kSw7H8w+5sp+ i9fm6nwwrfaxz6BBocw/0pBGKksVLmSbtermfwaKRe/FKZCncljPv/lG9 yEb7LGSqqrv4/HAN3Qz2li094hKtvIfTv0b7ZCA/1nRNQ728+xnsv7I7N qFY3L1WY/Cl14xA9pfLe2/i7j2YVxy37nU0zziu2AihKnWQswDRQFY5If wLxj8hlAd4d9WyEQxEDlO3Vuep/zMOSZGj1XY/UJnIBZAeMAEdsIlWS9D g==; IronPort-SDR: sl0pWYsrzo1WizLcFQJCThEl3psYdQ5qorW4DLQAOpQyWenFwIWU83U6DbJm0HeWzMy7GYV4SN KQxFlhLHfB1qVrZDRUxMCqZbI9Mze58YSbkuj8IVCRMSkoYC/1C00Y44wkE0DecfdvH96vS5RR LsbGHDwMl1nT3KLISr92GHGBGJutJWCrLkcJtj3k2Fn/BKmowWRUs8X01iwYiLwW97daOJ38gd il9StJWX5IZbmszeCqheihOeRz51Yxe2ZbJGJDTRFMLvk/qud4H0cSLihbQvBnre2WOAeDNtjN Hbw= X-IronPort-AV: E=Sophos;i="5.63,445,1557158400"; d="scan'208";a="113716743" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 03 Jul 2019 08:54:41 +0800 IronPort-SDR: Cv0UqDRPdqm7tL2awNL5BBMz4ALeO/qghQctSObPmRAsyxKJVO8QKz3aA8W+xo3o/vWMT62emF bM8ofbCrY1HjilujaKmvpBnwkmIR6+MSE4/c+hZ42TWZ9OhGHYBKCJwa7MpmPjqrkyGmxtNfIC N33UIPRKqtKn9BQNWz5nSiFc/RkWmB7ZdxMjVwwq9H4snENgVNz9O8Ql5trNREuO2+lnlVcjQ6 bGwBISNPnyefffkhXh/Bdt5Lw8cK0iZ9bxgC4RwOhT9pfzNhdEaMcfb7CyEPYZjK6uax4BcmCK 7ziMww4848sHmLeJZCagan9/ Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP; 02 Jul 2019 17:53:41 -0700 IronPort-SDR: 3uwdGreIxlVjC6rLHAVUNPxCvYFm12JW++t5byZuYThYEKpHQy1rvPmQ3xRuq3bHiMuNnv4Hq7 63wzCLqFIFApUyBBAcjPM74IesbGPjKYsPFPpuufziviVGB/UkXWgcGM2tZsqTjMkIhvf4D+UQ QojHazb4wUUMSjboC3ARtuE89wBtlKhK6Jx8R0Q4qcn4UNQJe3cHoKaHzdb/G2Cyi68fnwbElo tp+WtZHcEEzeowOCXxYJUduMa2yzOo5GB0CBsspNsy7AprVueWfrW2IeIt7UG4W4ouF7OhCsgw AVk= Received: from risc6-mainframe.sdcorp.global.sandisk.com (HELO risc6-mainframe.int.fusionio.com) ([10.196.157.140]) by uls-op-cesaip01.wdc.com with ESMTP; 02 Jul 2019 17:54:41 -0700 From: Alistair Francis To: linux-riscv@lists.infradead.org, arnd@arndb.de Cc: linux-kernel@vger.kernel.org, alistair23@gmail.com, Alistair Francis Subject: [PATCH RESEND 0/2] RISC-V: Handle the siginfo_t offset problem Date: Tue, 2 Jul 2019 17:52:00 -0700 Message-Id: <20190703005202.7578-1-alistair.francis@wdc.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Resending the the correct linux-riscv address. In the RISC-V 32-bit glibc port [1] the siginfo_t struct in the kernel doesn't line up with the struct in glibc. In glibc world the _sifields union is 8 byte alligned (although I can't figure out why) while in the kernel wordl the _sifields union is 4 bytes alligned. This results in information being lost in the waitid syscall. This doesn't seem to be a great fix, but it is somewhat similar to what x32 does (which has 64-bit time_t like RV32) and I can't figure out why the two allignments are different. 1: https://github.com/alistair23/glibc/commits/alistair/rv32.next Alistair Francis (2): uapi/asm-generic: Allow defining a custom __SIGINFO struct riscv/include/uapi: Define a custom __SIGINFO struct for RV32 arch/riscv/include/uapi/asm/siginfo.h | 32 +++++++++++++++++++++++++++ include/uapi/asm-generic/siginfo.h | 32 ++++++++++++++------------- 2 files changed, 49 insertions(+), 15 deletions(-) create mode 100644 arch/riscv/include/uapi/asm/siginfo.h -- 2.22.0