Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp883167yba; Wed, 15 May 2019 11:35:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyf2noD6UtJJeeaJiEcYWHDGqb8a4zjpNkABzawose8Mm40FBJePjUSfp2iwmWlY8BSWjrM X-Received: by 2002:a17:902:24c:: with SMTP id 70mr1034265plc.119.1557945323942; Wed, 15 May 2019 11:35:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557945323; cv=none; d=google.com; s=arc-20160816; b=JlEFZ/BamF3OGY3iBXB6G0Sh3BamldcRjKiePxa+1+VaaAOODHbjXrfCigPdhafRQb xzNIRRxhf8iZ3BjfwVb3/LhDYprIvqtRftcdSZ1Ogi3sA0ytUhbNKALbupHaT+rvvzZ7 VX80nJNIoqMO79n3KEl/dhcUCn3hoIGf53Z77eWIUC2hkznZMR6ZNPBcB/9xzj9AQdwL vUeGwwdFQmoRQarbM66ADUjg3ahgZQrYrf94EAhwFxpQkaAyjDJ6EHuXLJQKLrKk9v+G R/qcpnlXbfwBXWIilxcd1Iee6iy9ZfHppyX7FDS7c+BsMDzD4K9VAQI6gAQK20XrFeh2 /S5w== 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=dUC2a3jB0+5/g8cV2hL7m5tmIeb5vZOWc/mOTmulY1k=; b=dV8YdC5QfoCJtdWWq6g1XoGWOSESW3l1G3iMwa6f5GMAri4ZnB4BRCM1MXP9KwEPND NBxK7S/9SFEJ5wwBMhVG05gCYU1k86ea/IMnjoJT6j5Q/8fAncXhtifiUUzDaNXzh8/W fzHfm+cOzMIhGjE97t3kzAjQPFHF1ENXrWHMscvodR9uoDxwZoISliaKHlE3mkuriMfu M89vGD6kAbtIiBzx1lITnfpwEvEg5R/T2IZgHjwsJThDIqvocdY6grzQ9mafHscnFPq4 PzxP5fJDRg3kkvEPbQE58UB2PdVgmQEVdZ9WMPwXXB+Uo6lO3u+dAyFjyAco3SRD2nNf TQzA== 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 b1si2378179plz.57.2019.05.15.11.35.08; Wed, 15 May 2019 11:35:23 -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 S1727143AbfEOScu (ORCPT + 99 others); Wed, 15 May 2019 14:32:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:36396 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726422AbfEOScu (ORCPT ); Wed, 15 May 2019 14:32:50 -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 9887720843; Wed, 15 May 2019 18:32:48 +0000 (UTC) Date: Wed, 15 May 2019 14:32:48 -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: <20190515143248.17b827d0@oasis.local.home> In-Reply-To: <20190515172728.GA14047@sultan-box.localdomain> References: <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> <20190515145831.GD18892@redhat.com> <20190515172728.GA14047@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 Wed, 15 May 2019 10:27:28 -0700 Sultan Alsawaf wrote: > On Wed, May 15, 2019 at 04:58:32PM +0200, Oleg Nesterov wrote: > > Could you explain in detail what exactly did you do and what do you see in dmesg? > > > > Just in case, lockdep complains only once, print_circular_bug() does debug_locks_off() > > so it it has already reported another false positive __lock_acquire() will simply > > return after that. > > > > Oleg. > > This is what I did: > diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c > index 774ab79d3ec7..009e7d431a88 100644 > --- a/kernel/locking/lockdep.c > +++ b/kernel/locking/lockdep.c > @@ -3078,6 +3078,7 @@ static int __lock_acquire(struct lockdep_map *lock, unsigned int subclass, > int class_idx; > u64 chain_key; > > + BUG_ON(!debug_locks || !prove_locking); > if (unlikely(!debug_locks)) > return 0; > > diff --git a/lib/debug_locks.c b/lib/debug_locks.c > index 124fdf238b3d..4003a18420fb 100644 > --- a/lib/debug_locks.c > +++ b/lib/debug_locks.c > @@ -37,6 +37,7 @@ EXPORT_SYMBOL_GPL(debug_locks_silent); > */ > int debug_locks_off(void) > { > + return 0; I'm confused why you did this? -- Steve > if (debug_locks && __debug_locks_off()) { > if (!debug_locks_silent) { > console_verbose(); > >