Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp211912pxy; Wed, 21 Apr 2021 23:48:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz21QGZONiH6bczgEqdMeuOSHdtsv+wTadO7wWRCcYwjPJXrizb67P8QivO1EOnK+A5X04y X-Received: by 2002:a63:ce03:: with SMTP id y3mr2034363pgf.414.1619074099462; Wed, 21 Apr 2021 23:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619074099; cv=none; d=google.com; s=arc-20160816; b=J2e4TvXkRJcOa53Xg7zdanypImrNg1T0S3KZl7vM0gAyyRm7hRNB7ctiCZHHqUsabr yT6GHl3Ak5QreXG16gaEILr1nMQ3c7jUnAnxd+78wxogmYPztWb6bIIFp9Cd+KMlF2+c qSfshpRY8kbhpuAKVRv7L9CEGl2o53VMk4oFnFa36Klr+mNLAsofcV3PBYK8QBrgvBvi SBkrf483Jm8LWaJ7e5rE1v+KlWE48ym670+2y2KO+KC0qPD5XDAWQ2lD+LyIaOy1aMEH mEBtE9kquRYSqU+TrD9jB9DsvwpqHeKVdTt95UdVv7EXLnpIMLBGXx7XbpAE0wyj+U/5 g61A== 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:dkim-signature; bh=wTjjN5jAG5wIij1DihAnfF2YGoCBK9l6YKfTSDtQuuw=; b=UqEDPIlh6mm3xeN4z47LZvatm5+MW3Kv+uIR5eMto9lF+FqgvIZ7A2Q2P7f/eV0v1q /HRhwjZL7ozDe1x7oDvcQsgq3exG/byWoxDdFtpaGToM8ECAKf7nWEN1orvVuBmIA71M ucgXjdkVkKnOuMIQ7ZkuVt8IR9124Z7qUzNn8EZdKDMGSn8X/1V/s87uG6KQq9Ei2o7u lDKccF2YlyOo7i8DQ7GCZU4YkEsFbELBxsZYm5adERiLz3RmzkVxqXtoH4Q6d9xJGBgh k+4YzAXnoofEUgruc90XOO+UvTQZeLVYwRIKaJm1Gz31WTG3rF/JV9jD1hu/odYUWFd0 /OzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="lA/wdfNn"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y22si2076066pgk.25.2021.04.21.23.48.07; Wed, 21 Apr 2021 23:48:19 -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=@google.com header.s=20161025 header.b="lA/wdfNn"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234887AbhDVGsC (ORCPT + 99 others); Thu, 22 Apr 2021 02:48:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234913AbhDVGsB (ORCPT ); Thu, 22 Apr 2021 02:48:01 -0400 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C80B1C06138E for ; Wed, 21 Apr 2021 23:47:26 -0700 (PDT) Received: by mail-oi1-x22e.google.com with SMTP id l17so13540883oil.11 for ; Wed, 21 Apr 2021 23:47:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wTjjN5jAG5wIij1DihAnfF2YGoCBK9l6YKfTSDtQuuw=; b=lA/wdfNnxbUzsB2aSrzU1nhguY4+P6Aj7qnVqkf5OhF3sIXJOlTSGd9kiMXUAzxysb W9QxSlfFJL7eB48TdEIbZwylUsW48RfPkIAqFU/rp2hCT5QWBBzk8WEoWFAagDOwQM/e Vrf8OGXAY/yBa15JsD4ffNk5Yq521ogLASDGN+9A73YZBNVlqNihiexcQD9WoaQ67iJR TgLFSLgTG6X7ptC8ZGmhj9i5I1DB7ubEaF0JWBSUgGG1mljq/HcUXyo9XgxL9gMNrINK 2XsvC7sxwvCG4Rb/UT4z60h0z7UJ36wu/Uh+Ls0nO6/f21RJ61u0O+KXLP+C5dPrvvs4 eLHg== 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=wTjjN5jAG5wIij1DihAnfF2YGoCBK9l6YKfTSDtQuuw=; b=COxbqAth/xFHIHMTfzEH+zQhSW5B77BuHRMsmgf5eKiOXK2VPIekHQGmQ19d9uiKfo Vl2nNRGy9B3fCyUg8ooR1PQKGzQZSxbrbruaA1uoEYwk/HurJmASbXsopfTo8iYo0fwY ct2cVV2DZ2oIzPN45iqBIxWKP8uDQQo2aOi5nUeYJsVfexXYHwITWOcLvZOqbH30KRbX q6WU9hfVcpbDGnaDxT6i0mk9UbIOi9snaOW7VCQL2TFvf4F0oHhOrge4F5LykdWPLfwN GAFseEg3RNmDKwUQPwJRJIWIMcbNZHP/6tQZy2FhRrPQHK/amcov4Fv+qfjp+NW9ql7/ B9Nw== X-Gm-Message-State: AOAM532qkUF74hpbM/Z25Tpq4WteVRHSGS1tUqpgJYGky2yZ2U8yRszu u9Q3Ow51xx5uJcaHzYdccQ5xdfROPlVfeXMH6uwriQ== X-Received: by 2002:aca:408a:: with SMTP id n132mr1231205oia.70.1619074045847; Wed, 21 Apr 2021 23:47:25 -0700 (PDT) MIME-Version: 1.0 References: <43f8a3bf-34c5-0fc9-c335-7f92eaf23022@samsung.com> <740077ce-efe1-b171-f807-bc5fd95a32ba@samsung.com> In-Reply-To: From: Marco Elver Date: Thu, 22 Apr 2021 08:47:13 +0200 Message-ID: Subject: Re: [PATCH v4 05/10] signal: Introduce TRAP_PERF si_code and si_perf to siginfo To: Marek Szyprowski Cc: Peter Zijlstra , Alexander Shishkin , Arnaldo Carvalho de Melo , Ingo Molnar , Jiri Olsa , Mark Rutland , Namhyung Kim , Thomas Gleixner , Alexander Potapenko , Al Viro , Arnd Bergmann , Christian Brauner , Dmitry Vyukov , Jann Horn , Jens Axboe , Matt Morehouse , Peter Collingbourne , Ian Rogers , Oleg Nesterov , kasan-dev , linux-arch , linux-fsdevel , LKML , "the arch/x86 maintainers" , "open list:KERNEL SELFTEST FRAMEWORK" , Geert Uytterhoeven , Bartlomiej Zolnierkiewicz , Linux ARM , linux-tegra@vger.kernel.org, jonathanh@nvidia.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 22 Apr 2021 at 08:12, Marek Szyprowski wrote: [...] > > So I think we just have to settle on 'unsigned long' here. On many > > architectures, like 32-bit Arm, the alignment of a structure is that of > > its largest member. This means that there is no portable way to add > > 64-bit integers to siginfo_t on 32-bit architectures. > > > > In the case of the si_perf field, word size is sufficient since the data > > it contains is user-defined. On 32-bit architectures, any excess bits of > > perf_event_attr::sig_data will therefore be truncated when copying into > > si_perf. > > > > Feel free to test the below if you have time, but the below lets me boot > > 32-bit arm which previously timed out. It also passes all the > > static_asserts() I added (will send those as separate patches). > > > > Once I'm convinced this passes all others tests too, I'll send a patch. > > This fixes the issue I've observed on my test systems. Feel free to add: > > Reported-by: Marek Szyprowski > > Tested-by: Marek Szyprowski Thank you for testing! It's been sent: https://lkml.kernel.org/r/20210422064437.3577327-1-elver@google.com Thanks, -- Marco