Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7635514rwd; Tue, 6 Jun 2023 13:58:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7d8QYAyIfquqch73woA1lIhgHNRz0IsLbN97rYCSwcHGTtIsvrEgw75bKBSnXGdaTbFa5t X-Received: by 2002:aca:2303:0:b0:39a:abe8:afc3 with SMTP id e3-20020aca2303000000b0039aabe8afc3mr3250443oie.38.1686085118018; Tue, 06 Jun 2023 13:58:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686085117; cv=none; d=google.com; s=arc-20160816; b=MVpgSl/Izf6WPQhxsgVATHnlLMkuz0y1xeVlyGgBghS9R8DosEf4hxydqUof1uFbYc LEwNiv8Yeagq7OIHAS/Qpjf3COsjNlNqP3nJ2JQ4kjLQd0+f6b0xM/Kqg1vUVHAVz30X zNDhpFo9TLib9814ldrOFy1CBA7GtZWq5ghxKp1w/klxF4zSI7fcF8ThT6ZMIQkZvabF xmzL90p6bkIMceLGz84nIcFxNSd7emNXsRKZscQ/YnfgvzszfORD8BW7PCCK/jvVyl3l +jAIE5rPUixfqU+JiNJVtg6CrIowTWIMkbatrVGe67AgeCo79d8gdy3PX/vOBdsz3NtZ d+Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=P3iJUW3O9cWWP9HZBjdRT6iyvu3td7ivmZhPbatcmK0=; b=mxEsfugcB0apkgRQGI5ln9/fw0NIZGzEXhU7fS9VXc1AVfGZkTFyNArpJ+FqNV+Api bE0ndKWL/Gymz3NbIBPo4Am/yegMu+qpCJZXLLQ4R/ogfZMCNH65JnMnKnMooYvE+gUr ZkFUSzDtgIhgjDnMZXgwAlHZYAsxl/Ex3mlJPZUZmyXXd+D3/hFT9+9A6KZaoKPLT8KO wV2DidRP5cVXD8ISBHJA0UncO7so2aO5xwIZLOLivDBr4MOfp7Zfh/RRE+uAxpqNuL0z mpb0k7Oq+3ySmFZRDSzAa8ANCtzBTYKn5Znv3Zzl8e0emVfZAyf9Y3i1aYZH1IFtWnJA U2iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aY4LQeBv; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w18-20020a170902e89200b001b061af058csi8129367plg.591.2023.06.06.13.58.23; Tue, 06 Jun 2023 13:58:37 -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=@redhat.com header.s=mimecast20190719 header.b=aY4LQeBv; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237924AbjFFUlV (ORCPT + 99 others); Tue, 6 Jun 2023 16:41:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234109AbjFFUlT (ORCPT ); Tue, 6 Jun 2023 16:41:19 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D90CCE7E for ; Tue, 6 Jun 2023 13:40:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686084032; 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: in-reply-to:in-reply-to:references:references; bh=P3iJUW3O9cWWP9HZBjdRT6iyvu3td7ivmZhPbatcmK0=; b=aY4LQeBvgYU72D9XDPq3wPj9cEz6TwL9wU26ww4YoACxB52MLNq9nS97xUVLXPa536Iqpp 4aQhFc6kChp85+KjvbNm/ky9DgYOezx3/E4T87xt199Qk/mWOCrkYQqJBG5T56PybdYSPj AIcZDYeN6lOrSP4mEDUC6D6rqRaOuTI= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-447-LsOftGK6NhKr4A3Eit7AyA-1; Tue, 06 Jun 2023 16:40:28 -0400 X-MC-Unique: LsOftGK6NhKr4A3Eit7AyA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 98B318032FF; Tue, 6 Jun 2023 20:40:27 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.45.224.112]) by smtp.corp.redhat.com (Postfix) with SMTP id 6439FC1603B; Tue, 6 Jun 2023 20:40:22 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Tue, 6 Jun 2023 22:40:05 +0200 (CEST) Date: Tue, 6 Jun 2023 22:39:59 +0200 From: Oleg Nesterov To: Wander Lairson Costa Cc: "Russell King (Oracle)" , Brian Cain , Michael Ellerman , Stafford Horne , Kefeng Wang , Andrew Morton , "Liam R. Howlett" , Vlastimil Babka , "Matthew Wilcox (Oracle)" , "Eric W. Biederman" , Andrei Vagin , Peter Zijlstra , "Paul E. McKenney" , Daniel Bristot de Oliveira , Yu Zhao , Alexey Gladkov , Mike Kravetz , Yang Shi , open list , Hu Chunyu , Valentin Schneider , Sebastian Andrzej Siewior , Steven Rostedt , Luis Goncalves Subject: Re: [PATCH v9] kernel/fork: beware of __put_task_struct calling context Message-ID: <20230606203958.GC18866@redhat.com> References: <20230516191441.34377-1-wander@redhat.com> <20230517152632.GC1286@redhat.com> <20230529122256.GA588@redhat.com> <20230601181359.GA23852@redhat.com> <20230602173302.GA32644@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,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 06/05, Wander Lairson Costa wrote: > > Thanks. I found an unrelated earlier splat in the console code. That's > why I couldn't reproduce it in the stock kernel. As expected... So... Not sure what can I say ;) can you verify that this patch doesn't solve the issues with CONFIG_PROVE_RAW_LOCK_NESTING pointed out by Sebastian? Using stress-ng or anything else. This is not that bad, unless I am totally confused the current code (without your patch) has the same problem (otherwise we wouldn't need this fix). But perhaps you can make 2/2 which adds the DEFINE_WAIT_OVERRIDE_MAP() hack as Peter suggested? Oleg.