Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6575349yba; Tue, 14 May 2019 09:46:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3Bdiubgc3RhdJ3kAsLsjJQkXadQxZkUOUEdhJ/kqM9vheliMFKS+H9vSDmTxRX2JMKOk/ X-Received: by 2002:a63:c14:: with SMTP id b20mr38591982pgl.163.1557852393219; Tue, 14 May 2019 09:46:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557852393; cv=none; d=google.com; s=arc-20160816; b=oh9RhPc+xHw5wHrShs+0imfxUM1rmZno7i80VdDuZJBlbJK9WDnfYHuhaA9FHejQVf ORjBeIqWQsX3/Ks0THHsl23Xz10z61rBfXirVdOQUzmFYCiWWmq4i38E38BOFTSaDOCF Qv4gRa9vkw6KXwS99zOdl1LPRcQ6x5CDi6GpHooBTYWgXkUeb4Xj1HPaG4WLxN4sIc6w 0mh1rQvfTGtUtwAAz9FGmpUKXxnV0MWQULFod9MSGrErEGLd1jgFEFEMKCOYaB7Hta/5 VuM6Kilf+FsHguZmP8Y28XSXi5cEIRBEfDaAoeT4aEf0K7vy2uhTpIm33nT5co0v2WJm +1Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=KLpbl2WvS+msNhS3NmBmekLDDmmP+NNcoapAUKZkpt8=; b=pWNXXOtyZmOMH6oGsvxeeM8oMTCusGRkVzY/jsQJtv90Fx5BDMro4uORAYie6EhqP2 bbvTiiNpHLfeyd0XTnhJBRgWu7amz5RH/je+C96YLcduVERyYeh8nndTyXU9Laa+KDZe he/QFl4GM0oR2B2UquPYQuUUA/lMMGY27160KAv37BtGT2huaQy6gaWL34GmjF+7YSbn X3Ro4dsBGYWMSVT/ylF1GNLVUQHD/mxJaCpYZVwmZRz4igYDtsZCFMEE6xyYGjc8vsCq xD2/g+8Rxf+5uUOlYOJL9E580pD4hwyz6rAdaGizNbZEtjhvVfHxgkL3Qe4mmM9FnqiW T+Yw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f64si21296791plf.128.2019.05.14.09.46.15; Tue, 14 May 2019 09:46:33 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726325AbfENQo4 (ORCPT + 99 others); Tue, 14 May 2019 12:44:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:57052 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726013AbfENQo4 (ORCPT ); Tue, 14 May 2019 12:44:56 -0400 Received: from oasis.local.home (50-204-120-225-static.hfc.comcastbusiness.net [50.204.120.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D709B2084F; Tue, 14 May 2019 16:44:54 +0000 (UTC) Date: Tue, 14 May 2019 12:44:53 -0400 From: Steven Rostedt To: Sultan Alsawaf Cc: Oleg Nesterov , Christian Brauner , Daniel Colascione , Suren Baghdasaryan , Tim Murray , Michal Hocko , Greg Kroah-Hartman , Arve =?UTF-8?B?SGrDuG5uZXbDpWc=?= , Todd Kjos , Martijn Coenen , Ingo Molnar , Peter Zijlstra , LKML , "open list:ANDROID DRIVERS" , linux-mm , kernel-team , Andy Lutomirski , "Serge E. Hallyn" , Kees Cook , Joel Fernandes Subject: Re: [RFC] simple_lmk: Introduce Simple Low Memory Killer for Android Message-ID: <20190514124453.6fb1095d@oasis.local.home> In-Reply-To: <20190513164555.GA30128@sultan-box.localdomain> References: <20190319221415.baov7x6zoz7hvsno@brauner.io> <20190319231020.tdcttojlbmx57gke@brauner.io> <20190320015249.GC129907@google.com> <20190507021622.GA27300@sultan-box.localdomain> <20190507153154.GA5750@redhat.com> <20190507163520.GA1131@sultan-box.localdomain> <20190509155646.GB24526@redhat.com> <20190509183353.GA13018@sultan-box.localdomain> <20190510151024.GA21421@redhat.com> <20190513164555.GA30128@sultan-box.localdomain> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 13 May 2019 09:45:55 -0700 Sultan Alsawaf wrote: > On Fri, May 10, 2019 at 05:10:25PM +0200, Oleg Nesterov wrote: > > I am starting to think I am ;) > > > > If you have task1 != task2 this code > > > > task_lock(task1); > > task_lock(task2); > > > > should trigger print_deadlock_bug(), task1->alloc_lock and task2->alloc_lock are > > the "same" lock from lockdep pov, held_lock's will have the same hlock_class(). OK, this has gotten my attention. This thread is quite long, do you have a git repo I can look at, and also where is the first task_lock() taken before the find_lock_task_mm()? -- Steve