Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp396976pxy; Wed, 21 Apr 2021 05:50:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzS/xeoKJmLeJo1YCs7iqQvWJnMH0q6eC4zKL7WzeULwhWRzLZCdJxkaPo4T6YOMmFBEqGU X-Received: by 2002:a17:906:ff52:: with SMTP id zo18mr31372090ejb.298.1619009401507; Wed, 21 Apr 2021 05:50:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619009401; cv=none; d=google.com; s=arc-20160816; b=D2GG414e9zLh1VG0AiE/ewYunhR5umNroUu/ZyhvbKYXSnmNqlT/9l3KEkVexJYMlH coFPI4UA1WHWdL6RCL4KztO7PZuREzQhjFM4zeERKcWzEfD0QW8DX1mGtOWw7agmU1P+ e8283N+IR/Us0h4jQDsNMaLwPGWxdc24rgfZtle/dAT8lmw5rF3+h+T4j2sTK6sTz2O0 l/r28t6xIv4LkEpcDaHajR+ll7vy4eNPucKH7qsQS/ZsQBWBEwkiqkt1x0cGPdmF1E3j DR9RWj9AbCKTFSLkNmm8cteeW4d1xDXX22Ccx9W+RVBHk6e7TkDZmLXSTP5QTaGEcGeR dBAA== 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=VwvnjSj2op3l1hxnf84tZDl7adPmWlaJUCzqnfca75k=; b=ZKT9w+sKB96P7JUiGm8afUE7jngGquPHWyUPlNvimT4XfeRCUTVMdvnzL+ml/fO+fN uw8+qNtbkfvIkOPJC4XZv0IYeBNmUmft1aaL5fR3a5T4j9IBnbBp8RhssBOWE5vMrKKx j4eTi9OF0HF2JlnpKTrUnYBHpstri9y0CMxDYSy4u/p/88nHBbEnucVetw4Ta/mX2R9N L2BbkdtmGkMkTndL8UJTpsh57FQKSgHtRm5FC35CppaOa5SBrPf+XjFuB3vWiyduf7Fo suXO4E7l2cl8UCQ0zSBoBgdtnN5EiNwChyXfs+95EJl0lF4p2IKbpFleYCzPyYxsct9K CXlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=T25LZuGf; 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 l11si1956172edb.511.2021.04.21.05.49.37; Wed, 21 Apr 2021 05:50:01 -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=T25LZuGf; 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 S236366AbhDULE1 (ORCPT + 99 others); Wed, 21 Apr 2021 07:04:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234589AbhDULET (ORCPT ); Wed, 21 Apr 2021 07:04:19 -0400 Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A92CC06138B for ; Wed, 21 Apr 2021 04:03:45 -0700 (PDT) Received: by mail-oi1-x230.google.com with SMTP id r186so14230121oif.8 for ; Wed, 21 Apr 2021 04:03:45 -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=VwvnjSj2op3l1hxnf84tZDl7adPmWlaJUCzqnfca75k=; b=T25LZuGfJ99uC4k4xebDbykX3ipGF/M4COVddFMHTQXl6mSwJ/VYqXX9r3znYQT+Pp PdSDPCL+TNIgLmAWvoEA3dmwAEc67h6RPMGovEnvczMC9JXoJxLW0GwaZP0PsXx29EmH 7ym2FaLr3NC5RKBBRo6y8iWfbSAw1Lj38n/HVVf84B3eQLVLlaNnU9tJwgl9QDpU4njt 8xFiIRWWeIedZu7ghOH6MbFfiRr5tWrgsn6kPyTU6kynOw3dwDCwgSM42+9mKrmpKN+a anQaU7HFU9MdjYGQAayHU+s8JDMpm1R0+YApXbPtU6DWZFyqZ4MzR7O1OGfQjkf/0svc lZjQ== 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=VwvnjSj2op3l1hxnf84tZDl7adPmWlaJUCzqnfca75k=; b=pamC1WRQJFm6pwFMmcmccGez8AcYnzeb44if3XTK0EkXx2wQD/LGPniRvbtiikES/F 85b4/BVheQ4D9DB0JWp2N5bWhydMgDZ+/CwvPU5oNoHukvU1150EfXDJ1ElswYMnKh4m wdZ4d93Vvy3EOZwfJxOK/fu3DTL46qxfNnoxJXK1ev8oYkejkCkLAJGp9SLnsef8sHwE kYvZ9Q1335i9kfJL4c7V/VaUBpvKVxAMx9iv4vkRDeO6Uv+AaQq+IFuAN0gwbb52L7Zj eVwzY94axQSGkhyIpIHtBdhptH0R8P1thyBTh+nLlT5iJC8PloljBB8zgwcPWSBjAJIY 0z8w== X-Gm-Message-State: AOAM53168AhX7dz2IhpU0zKKbANP9n7iO8ArnpfEVqwum6iMAgY4pifw IfXbqE6ypHvHK6TGTCbm881g+ecZ3l44604dMIRfFQ== X-Received: by 2002:aca:44d6:: with SMTP id r205mr6376630oia.172.1619003024370; Wed, 21 Apr 2021 04:03:44 -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> <740077ce-efe1-b171-f807-bc5fd95a32ba@samsung.com> In-Reply-To: From: Marco Elver Date: Wed, 21 Apr 2021 13:03:32 +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 12:57, Marek Szyprowski wrote: > > On 21.04.2021 11:35, Marek Szyprowski wrote: > > On 21.04.2021 10:11, Marco Elver wrote: > >> 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)? > > > > I don't use any custom kernel modules. I just deploy all modules that > > are being built from the given kernel defconfig (arm > > multi_v7_defconfig or arm64 default) and they are automatically loaded > > during the boot by udev. I've checked again and bisect was right. The > > kernel built from fb6cc127e0b6 suffers from the described issue, while > > the one build from the previous commit (2e498d0a74e5) works fine. > > I've managed to reproduce this issue with qemu. I've compiled the kernel > for arm 32bit with multi_v7_defconfig and used some older Debian rootfs > image. The log and qemu parameters are here: > https://paste.debian.net/1194526/ > > Check the timestamp for the 'EXT4-fs (vda): re-mounted' message and > 'done (timeout)' status for the 'Waiting for /dev to be fully populated' > message. This happens only when kernel modules build from the > multi_v7_defconfig are deployed on the rootfs. Still hard to say what is going on and what is at fault. But being able to repro this in qemu helps debug quicker -- would you also be able to share the precise rootfs.img, i.e. upload it somewhere I can fetch it? And just to be sure, please also share your .config, as it might have compiler-version dependent configuration that might help repro (unlikely, but you never know). Thanks, -- Marco