Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp244385pxy; Wed, 21 Apr 2021 01:48:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyK2aafO8IxfDEcQJ7NnNRZNMCC3ltk3kLpA9kWEABhf4//DpSkcNd3Lx2C6kCYN28aoYIM X-Received: by 2002:a05:6402:5107:: with SMTP id m7mr22260220edd.75.1618994911349; Wed, 21 Apr 2021 01:48:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618994911; cv=none; d=google.com; s=arc-20160816; b=aGMrfcxU3zVTF7CINaaS6tbDRWiPP1dro1S5BLRw2dYmuy9pMDEgKnsI/b1mZHVkID RbKpATp0sd7oAmWBLoTUXgoitvmYBqP5KtbIDedA0IBMiJ1ZhZ6q9VUs3w28YfXyXAYx Gs4xHWQS3++vmRCCPQ8+zMffda09XOHMAphBXFwiBtHJOsNgJ0L6HDPM4XN/qsUdVqLN sIVIOPCcv0UoIgkA39gSyGmIBFoeYZe9HF9YGNBzwoMwOAfY4sHmNigyX/dxBD6u5ice gN7E2xL3N1TGENBj5Bxg3cYKVuaD23y0+Da13osefic3wvP7yvW+Jbl7+nq4dwXJC8/K KVZA== 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=msdAKUkaozlyVVqcOzRUhmh/jucXO4phsOtdu8kld0Q=; b=C7BkXl3kN7zxChJtUEgy3dGF8sjhynNC+AjZnnfG+H+CWgsvTcnFk6Lt0hSHPhNBZX QrR3graM+eGQyvdzdz0Si1bdR78fMlRZRqD7IOgR4rgmLp8koliSCbg4XrrVO45Fnwat zKD2Xyzh+9vSC2pZySIkumy9J1DgKs+XXuEuMOdJLtfQ8NBOceJMr7iH3IsdHfg877In TDH0/Jbf9731eMrL9Hl7zIRZeuTLFW4feceTsibvtoUph0a2n6dzBH/sL3a62hnkB1AL N1Qh8iwsL6CFxy8TiYJaIdhDZx0RrqS+VSy+qXmygpKkt8FMWqhVDdMcMrHghNFEB2s9 X6ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pmcZpnXr; 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 zh8si1433504ejb.639.2021.04.21.01.48.07; Wed, 21 Apr 2021 01:48:31 -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=pmcZpnXr; 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 S234438AbhDUIMT (ORCPT + 99 others); Wed, 21 Apr 2021 04:12:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234439AbhDUIMS (ORCPT ); Wed, 21 Apr 2021 04:12:18 -0400 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26B91C06138B for ; Wed, 21 Apr 2021 01:11:46 -0700 (PDT) Received: by mail-oi1-x22a.google.com with SMTP id u80so8063244oia.0 for ; Wed, 21 Apr 2021 01:11:46 -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=msdAKUkaozlyVVqcOzRUhmh/jucXO4phsOtdu8kld0Q=; b=pmcZpnXrP/hJMVCWPTO21s5w2C6jBAae3cwns8jXbIAlH8wJ0ociggMr54Xu8ecPyu Ts3vAfnbXRjGjjaOpdE3khaNxMfkIVFLJs/VPTchrldH57VyWiKm8/PkO/l23yKf4/B3 PXP7y7a4IoRg94BZn74bFwwZuTsbMP2+7LlFMn6D4/NCGWLNAD/L1eTKPx8wPv62+K5u Q63UbNpzHT2Bhe2SyiaDu8W01foSt9YJIpvEZ+mbLLePdV1OVgc1nHGpkdTQIyVNOYz5 7nu42E7mOjFlfnXKGUZk9PnyUQSPNEG+OC0vaYfSAZ+E4f+Cce2o4a7yASOZ0U6u4TA8 eCag== 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=msdAKUkaozlyVVqcOzRUhmh/jucXO4phsOtdu8kld0Q=; b=jWl4KOYrSQCneJL8cBhQ2wkg6wGTHARXMGznqN9wKLTW7/G/Kff26lhGIT+jBAVf8I K56WucSIZvcBqHYfqLMZg3OeDIa8S7Gg1/JN4XTKqKymg5xdKDINs2qSoUA6w+rso78o jcdnuBCS8r4yD9EG0SND8Qi7xh6UvxxGkUf4R14wr0BiJ3hIycA/66JCWc9kMSaKwWS6 Re10R/fhd4laxBCQ7guCGFlmWsyuBzYg05yd+JVB9JxMy/rbVVKpkdGh4SR9e5MxMcQo sF9/sonGv8Lw3eu1iS+8u2cd0T6xi6a7HZCKfIiZaTlhilOSZPGU359oSz7nUWqEJWZk 40YA== X-Gm-Message-State: AOAM533B9BASsf7H++njaes/L3hN+BrFo3px00DJymJydtyKk6NoavRZ D2CnUI4i08RWe83BJrpGulSbhtbB6sWT7QHB8Hk6jw== X-Received: by 2002:aca:bb06:: with SMTP id l6mr6066042oif.121.1618992705356; Wed, 21 Apr 2021 01:11:45 -0700 (PDT) MIME-Version: 1.0 References: <20210408103605.1676875-1-elver@google.com> <20210408103605.1676875-6-elver@google.com> <1fbf3429-42e5-0959-9a5c-91de80f02b6a@samsung.com> <43f8a3bf-34c5-0fc9-c335-7f92eaf23022@samsung.com> In-Reply-To: From: Marco Elver Date: Wed, 21 Apr 2021 10:11:33 +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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Apr 2021 at 09:35, Marek Szyprowski wrote: > > On 21.04.2021 08:21, Marek Szyprowski wrote: > > On 21.04.2021 00:42, Marco Elver wrote: > >> On Tue, 20 Apr 2021 at 23:26, Marek Szyprowski > >> wrote: > >>> On 08.04.2021 12:36, Marco Elver wrote: > >>>> Introduces the TRAP_PERF si_code, and associated siginfo_t field > >>>> si_perf. These will be used by the perf event subsystem to send > >>>> signals > >>>> (if requested) to the task where an event occurred. > >>>> > >>>> Acked-by: Geert Uytterhoeven # m68k > >>>> Acked-by: Arnd Bergmann # asm-generic > >>>> Signed-off-by: Marco Elver > >>> This patch landed in linux-next as commit fb6cc127e0b6 ("signal: > >>> Introduce TRAP_PERF si_code and si_perf to siginfo"). It causes > >>> regression on my test systems (arm 32bit and 64bit). Most systems fails > >>> to boot in the given time frame. I've observed that there is a timeout > >>> waiting for udev to populate /dev and then also during the network > >>> interfaces configuration. Reverting this commit, together with > >>> 97ba62b27867 ("perf: Add support for SIGTRAP on perf events") to let it > >>> compile, on top of next-20210420 fixes the issue. > >> Thanks, this is weird for sure and nothing in particular stands out. > >> > >> I have questions: > >> -- Can you please share your config? > > > > This happens with standard multi_v7_defconfig (arm) or just defconfig > > for arm64. > > > >> -- Also, can you share how you run this? Can it be reproduced in qemu? > > Nothing special. I just boot my test systems and see that they are > > waiting lots of time during the udev populating /dev and network > > interfaces configuration. I didn't try with qemu yet. > >> -- How did you derive this patch to be at fault? Why not just > >> 97ba62b27867, given you also need to revert it? > > Well, I've just run my boot tests with automated 'git bisect' and that > > was its result. It was a bit late in the evening, so I didn't analyze > > it further, I've just posted a report about the issue I've found. It > > looks that bisecting pointed to a wrong commit somehow. > >> If you are unsure which patch exactly it is, can you try just > >> reverting 97ba62b27867 and see what happens? > > > > Indeed, this is a real faulty commit. Initially I've decided to revert > > it to let kernel compile (it uses some symbols introduced by this > > commit). Reverting only it on top of linux-next 20210420 also fixes > > the issue. I'm sorry for the noise in this thread. I hope we will find > > what really causes the issue. > > This was a premature conclusion. It looks that during the test I've did > while writing that reply, the modules were not deployed properly and a > test board (RPi4) booted without modules. In that case the board booted > fine and there was no udev timeout. After deploying kernel modules, the > udev timeout is back. I'm confused now. Can you confirm that the problem is due to your kernel modules, or do you think it's still due to 97ba62b27867? Or fb6cc127e0b6 (this patch)? Thanks, -- Marco