Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6960629imu; Mon, 3 Dec 2018 05:42:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/XMT0WLxq8yuae9RlSwG2egq+xUJI3Cz757Nsq59g6EGsdUyZi1xtlPfBaWrLK1KA5Cz3qT X-Received: by 2002:a62:7a8b:: with SMTP id v133mr16273658pfc.159.1543844546597; Mon, 03 Dec 2018 05:42:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543844546; cv=none; d=google.com; s=arc-20160816; b=afrlWI+m7uaJknhDdBprl3wrIFvXAz4yKwZw9ZDDRzHCpPr/iOd3Qg8dOV50Rwa1+T 70/2zyMl1GGKeEiiQdxS1OXbW14KXSSBf4GsUSxHmyNyABR2ML1s/HfJOOjvYh6IXLjS c9BRWtBFFi2iypssq6OuCanM79Ny415pohO9RkNXewfJIOe300xZ3Rv3ge38MJRZX2sl MlY7sMokBmQR7vJUrz14qI4vv+WVqTf/eeQoK56d31eR1WEL1HDpdnbBEsA34fMx7WQf IxgFouckIIB4kJofDyY5yYckVArQakp9vlptv+oIVwlaXnCbDH1qau4/XsrqcBi6EjPk LDKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=oxKD0DtAs0EwX4YkTPQEeyRUlO5sV32LISDyUk+bRpM=; b=VB5DCq0h2i6sDhZG994RC2fqL0ynMJkDKBnlAeTMauumOAoPyZnjClstjab/XfauZW Nf5GhUgNPnR/B6lzpqEbcQmYJ6etbXUMxdlThfKomlzmSg0GaaA14UCrLxRUJ69ASVV1 nkzzxM5uh05BARbZ7Il1eS5FoMHabAhBSsMo3DN3z4EZq820Het34qBlSxTTOWtRYMRN jNCkyhpJsEklacf6c7aQIG77ZQIK1tvAtGIV6f/CHg273ms3Q0cf3K9YecT8k9ZP+Cjg bIS2Bkn4sYuSWcGQ12y+5kjmTOF67P0Yk6B2eA9w+lWeiBQsqvf7dltT58pd5EwJPEqo VA5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16si12122924pgh.58.2018.12.03.05.42.10; Mon, 03 Dec 2018 05:42:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725917AbeLCNlZ (ORCPT + 99 others); Mon, 3 Dec 2018 08:41:25 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57610 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725830AbeLCNlZ (ORCPT ); Mon, 3 Dec 2018 08:41:25 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 296D6394D29; Mon, 3 Dec 2018 13:40:20 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.43.17.12]) by smtp.corp.redhat.com (Postfix) with SMTP id D832F6717D; Mon, 3 Dec 2018 13:40:17 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Mon, 3 Dec 2018 14:40:19 +0100 (CET) Date: Mon, 3 Dec 2018 14:40:17 +0100 From: Oleg Nesterov To: Michal Hocko Cc: Ingo Molnar , Linus Torvalds , Linux List Kernel Mailing , "Rafael J. Wysocki" , Chanho Min , Thomas Gleixner , Peter Zijlstra , Pavel Machek Subject: Re: [PATCH] Revert "exec: make de_thread() freezable (was: Re: Linux 4.20-rc4) Message-ID: <20181203134016.GC31795@redhat.com> References: <20181203074700.GA21240@gmail.com> <20181203083942.GF31738@dhcp22.suse.cz> <20181203123149.GB31795@redhat.com> <20181203123857.GS31738@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181203123857.GS31738@dhcp22.suse.cz> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Mon, 03 Dec 2018 13:40:21 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/03, Michal Hocko wrote: > > On Mon 03-12-18 13:31:49, Oleg Nesterov wrote: > > On 12/03, Michal Hocko wrote: > > > > > > Now, I wouldn't mind to revert this because the code is really old and > > > we haven't seen many bug reports about failing suspend yet. But what is > > > the actual plan to make this work properly? > > > > I don't see a simple solution... > > > > But we need to fix exec/de_thread anyway, then we can probably reconsider > > this patch. > > My concern is that de_thread fix might be too disruptive for stable > kernels while we might want to have a simple enough fix for the the > suspend issue in the meantime. That was actually the primary reason I've > acked the hack even though I didn't like it. > > So can we find a way to shut the lockdep up You have already mentioned freezable_schedule_unsafe(), but I agree with "DO NOT ADD ANY NEW CALLERS OF THIS FUNCTION" above it ... > when this is not really a > deadlock? not a deadlock, but lockdep is obviously right, suspend still can fail if another task needs the same mutex. Again, we have already discussed this, in my opinion we should blame exec/ de_thread for this and other problems. > Or maybe this really is one and then we need a real fix for > stable as well. Well, strace -f can hang if it races with mt exec, it would be nice to have a fix for stable. Oleg.