Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2824253iog; Mon, 27 Jun 2022 03:49:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vUQKQDj7/GN5EWZIq4lHlxFJuWhQl3C5bWKDWk+kFHssjwqJWx+7gsS37id6jkFV3xwu49 X-Received: by 2002:a05:6402:2708:b0:435:da6f:3272 with SMTP id y8-20020a056402270800b00435da6f3272mr15284784edd.160.1656326948908; Mon, 27 Jun 2022 03:49:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656326948; cv=none; d=google.com; s=arc-20160816; b=yV6pDieASNSPwnzw5ZTJfMehAS9Z9f1H04UiL6dahCxjugFEL/FeNnDDqFSPLYYlVr IJbMV6ZuQDska+QG2KlNQDOPWRwVKu4VfEZifPL5VVfzCirk5SSUCFXbQsJSyi07WzI1 SjMTBP0EKzuSEIcf4QanngdYsil+aHiguaS1smqKmYbzTYA6mAiebomTvJWVcAcycZ2S JJcZPqry+9+qxJPLO7qddgZwxXcCsjja2R9HfHe4ir3g2J9Eycu2PHtEM8oB1Fc3TS6f lv3ZSBHDR0z1Qi3iZGvVjuZEoPk5iyAI/9rNQy8LW2pGiTEEIkWo1Xi/TrbpnTrwA8cf Z9Og== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3sUF1MULxxGBGqC2R8WwsBki11TfJar+6wP9cKTVjJs=; b=BFBSoGfMQv05sNhI0ToKqNkw9EBY+eJ8HxaJGADDX+ova6O/yh6QKarvkr+/BEeyCF Sn4hhkSvuRmjYdx5PcpIf6GwifDQzsn+tvoShO5JEmqheRtppqftjZ+7EeWoiHQsX6jI yWPrRNBbe0d5f9SsWxK7Cw3jNo9qAcMhDdiTcQPOSK+XXVRUoSoSkMmdBsRtO167f7nZ acwYev4A0Egk+rAKKXuW3IxnntQSIBqSuxzBvrr5X5b1gfP0GUPBZ9AkaSsNTdHim4Ox g4gwUtshs/YPdiuKoQnXdo8cQ2ejruoJHV64N4s+vHxhAsNUWL3uarHQiQwTLkfmtdpu MVtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=oZ0+h54G; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz37-20020a1709077da500b006f508f07fa1si11876877ejc.458.2022.06.27.03.48.44; Mon, 27 Jun 2022 03:49:08 -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=@suse.com header.s=susede1 header.b=oZ0+h54G; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234239AbiF0KSv (ORCPT + 99 others); Mon, 27 Jun 2022 06:18:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234231AbiF0KSt (ORCPT ); Mon, 27 Jun 2022 06:18:49 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2174AD5C for ; Mon, 27 Jun 2022 03:18:48 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 312301FD05; Mon, 27 Jun 2022 10:18:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1656325127; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3sUF1MULxxGBGqC2R8WwsBki11TfJar+6wP9cKTVjJs=; b=oZ0+h54GYHc+r/c5mxQSQzpeMTj0a7oeksNNUZ/Mp8YhQwtm1fLwiyQdDcO8G3TXuCNDp+ oO1xMC+vz5DbZpcr2nCCqH3SsBT8hUrxev9pJHglbuW9ISLMhJcYg3koUjF7IdQclCpzwT WA1KjY5618VdBzTfp/cSv6GWOMhO/Zo= Received: from suse.cz (unknown [10.100.201.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 0A1F22C141; Mon, 27 Jun 2022 10:18:47 +0000 (UTC) Date: Mon, 27 Jun 2022 12:18:46 +0200 From: Michal Hocko To: Tejun Heo Cc: Petr Mladek , Lai Jiangshan , linux-kernel@vger.kernel.org, Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Andrew Morton , Linus Torvalds , Oleg Nesterov , "Eric W. Biederman" Subject: Re: re. Spurious wakeup on a newly created kthread Message-ID: References: <20220622140853.31383-1-pmladek@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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 Mon 27-06-22 17:21:12, Tejun Heo wrote: > Hello, Michal. > > On Mon, Jun 27, 2022 at 10:07:22AM +0200, Michal Hocko wrote: > > So if somebody has woken up our thread from inside kthread() then it > > doesn't have that pointer on the stack and I couldn't it find elsewhere > > either. Maybe somebody has an idea where to look at. > > One way could be bpftrace'ing or printking __wake_up_common() and > friends to dump backtrace if it's trying to wake a kthread whose comm > starts with kworker/ and doesn't have (struct worker > *)kthread_data(task)->pool set. I am afraid I won't have a chance for a runtime debugging. All I have at this stage is a crash dump. -- Michal Hocko SUSE Labs