Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1462826rwb; Fri, 28 Jul 2023 09:42:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlGg8sc4qj2mwg9KwfpNfOO1IPlVvIV9Fck72aHwkphNr5hCCxyH9eHVllEoKZ3/zk9mkErh X-Received: by 2002:a17:903:1107:b0:1bb:3a7:6af7 with SMTP id n7-20020a170903110700b001bb03a76af7mr2467724plh.23.1690562565576; Fri, 28 Jul 2023 09:42:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690562565; cv=none; d=google.com; s=arc-20160816; b=pFn53wdbgBSqJ/U7vqn5XRAwNXiIkBP+158d1z9vpi1Bo6SM+RNIoTZErgo4OWq1K0 I2eimw7N9QECt7iLTSdxbQsrM0p0aj7zoI9cX85YDydF1O8RfAo4T1S1WfNHL4GLSbWR mOYHZ5iH4jDEEuYOqhyYOOOeho097ja0DektggP4xmBVr2E/uNocfLLymOli6hflbPB6 aQRPkU0NEiBqpCCSqdxjPXc5dU9i1qtHcRJ1ndqQ/tw70TnizLmC/78lppNkw4LkwrOQ 3QgCRtRlD2qQBeXDvzvur7pjs2H+z0P3uAclbbUtLmlew3UguHPSISnNtD6SMO1CTS2i nXRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:dkim-signature:date; bh=O2+wYfg2qc/dbl2pgvjkp5a1AYZnnmGamTG/T/UMqAg=; fh=wAq6EqOMu8slU1/QjuCysBOiJUz5N1wKjvmxRajdiy0=; b=EIYlqnAgfOiyO9Ocbi9SUnEguFD6sSdP0IbT1YA/8pdDDR4t7tBCvQgJl7r+mhsssJ Mwc4mKOmCU21Y/h+U7lrBR53haspAGprRrUHXaxAhbqafk92zEZkGXDQ7w7yq/+50pY5 h9+U9hLDAuvDllsSFvfLkTUK+aDSShW69TVZuduA+pe6IcvN+i/07sC0p/YDBRv1/x6l c1PPuhCfV4CweRP6dltnrLDXv1bmzLs38VQrMQZvpu2g/FEVpS2n7oSjOVGFrEaslBOF gMk39vx3YUhnHPpDTTkuoyZd1l+OBe/L+T5O7Hy4KQ4BWDXh5ioEm3spXabW35fg29Vs 94mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=biJli4et; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d2-20020a170903230200b001b7fa0f052dsi3432533plh.484.2023.07.28.09.42.33; Fri, 28 Jul 2023 09:42:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=biJli4et; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236834AbjG1PHZ (ORCPT + 99 others); Fri, 28 Jul 2023 11:07:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbjG1PHX (ORCPT ); Fri, 28 Jul 2023 11:07:23 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA77C35A3; Fri, 28 Jul 2023 08:07:22 -0700 (PDT) Date: Fri, 28 Jul 2023 17:07:18 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1690556841; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O2+wYfg2qc/dbl2pgvjkp5a1AYZnnmGamTG/T/UMqAg=; b=biJli4etcT7aONa6IYmphL4wUoVahSXfpSltitzbI83XpZnWBIoZgisHH1J/b7dKj1hCvy +1uuXs72Uy3hhsTfR0XqDi3yQ6v/75NnStY1mM9GUzkWuAV2BQigDd/c7HnimkuZmX2Ndi XY0w8CQc7sYvIHkK+xmCGS/h2t2WOeG823poStHJaICIc6ko8ID5//1wxEvoNZTQy05kEz RvEU/oII2yKw19EBsuaOIjGY/yhtLmQNn5cqQEQzhEPNHJ15cJvnKQXpDT/GDAoHAdAYIG g4VpbX8/iT5NyG3Y/qerFM6FZpBP+T4bB8vy8Y27krx8g6tufCPyK1Gtnboh8w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1690556841; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O2+wYfg2qc/dbl2pgvjkp5a1AYZnnmGamTG/T/UMqAg=; b=JzHT8tRW/hrS6muMmXIMQRfpN62WVAsKIar1aWM8+cr3TFCsZwljmod41RuUn9blT+eqeP qc/K66O0SB/lhGAg== From: Sebastian Andrzej Siewior To: Mike Galbraith , Peter Zijlstra Cc: Arnaldo Carvalho de Melo , Marco Elver , linux-rt-users@vger.kernel.org, Linux Kernel Mailing List , Juri Lelli , Clark Williams , ThomasGleixner Subject: Re: 'perf test sigtrap' failing on PREEMPT_RT_FULL Message-ID: <20230728150718.8odZX-jD@linutronix.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-07-26 08:10:45 [+0200], Mike Galbraith wrote: > > [=C2=A0=C2=A0 52.848925] BUG: scheduling while atomic: perf/6549/0x0000= 0002 >=20 > Had bf9ad37dc8a not been reverted due to insufficient beauty, you could > trivially make the sigtrap test a happy camper (wart tested in tip-rt). Thank you for the pointer Mike. I guess we need this preempt_disable_notrace() in perf_pending_task() due to context accounting in get_recursion_context(). Would a migrate_disable() be sufficient or could we send the signal outside of the preempt-disabled block? This is also used in perf_pending_irq() and on PREEMPT_RT this is invoked from softirq context which is preemptible. Sebastian