Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8485041ybi; Tue, 23 Jul 2019 09:22:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxAbg6aM+YO/ZuzuxtGwVc2YW+fqBC/VqbztEUK5gb1LGrIqxApw1gdyq9x4TK4xTA1EQp X-Received: by 2002:a17:902:8203:: with SMTP id x3mr81998305pln.304.1563898942178; Tue, 23 Jul 2019 09:22:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563898942; cv=none; d=google.com; s=arc-20160816; b=EbRc57FNesV5yGa3dknhiR+lbG1Fz7CzAI47kQVRJuI+Gm7SIN76g7wieDlIQIQYJ7 3YFU/Og2qbqL9aOJwq375qNRvM7I6ByrZh0+f+510cp8lLN6XP/35HfTt3kNo/JawVHV 4q74IXx5tpdUEXauC64N+Js7wyEmfi29c2GKaPp1fH04x1FVrHNK6kQBtDOBN16IB3OF 96/ofxlDTf/2l2LcfToW4xoDrVYY6hU7joOwlFZtoFvTu7knma9n6qs/3DIwxD5Lh3DU ZvD8FasEcn/qmnRtXXrTKhhvYrBWIeUd40+W6PR9ZXvfkGvWC4Z4n+U6r+Emq38kq8+R 3Kow== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=ZVZ61BiSzBKJ1JT8Cvz6WiCNSXWAXSUthPiD0rVVcPA=; b=gzmewROuBkua941Wpm0/oSwLR+zSuaNuw89roUuz+h+J3WMON4+0rv/mMQPWxLEBif 7N2Bu+3j1gx26aEPUfeW307fnZKqSFI3tboilACtEyxzyL/l2BbSAzJhS7dPx+X+MHTo f0rrXT+q7ybaW2Zj9sqDUXbrBVyQupwoioPPK5xLbZbOY6STBrxk49vJdj+IDDJRqotG Qu7BPmpHxLmex9a4HBop1mGb13l3AJ0Wly27WtegfAqzXLtElitXgUfMySka14RlvLcj 2HIslxU7N17AZkVBNyh4mn2m9Kkd400By3VTtvLmujti7j/E2Bz7CvkVto+5RImq4arX w2nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gocQCkAY; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t2si16226768pgq.488.2019.07.23.09.22.06; Tue, 23 Jul 2019 09:22:22 -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; dkim=pass header.i=@chromium.org header.s=google header.b=gocQCkAY; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388305AbfGWH0O (ORCPT + 99 others); Tue, 23 Jul 2019 03:26:14 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:35696 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729058AbfGWH0O (ORCPT ); Tue, 23 Jul 2019 03:26:14 -0400 Received: by mail-pg1-f193.google.com with SMTP id s1so12656976pgr.2 for ; Tue, 23 Jul 2019 00:26:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZVZ61BiSzBKJ1JT8Cvz6WiCNSXWAXSUthPiD0rVVcPA=; b=gocQCkAYncRSzUUCtbO3BJahbIuaWTM4EaSrObCoPhrkQw8xDGMQMZtnJqNF++4NSd p5XrXrhWRrJjTwrm1fW8EoHMNTAd1OxsUwfU5HhSFQSfwFnBTKG0J6vjrwBvvTnFnLRR hlD0qD2vVrPxshPPpevMZa9cGTQ/nvrlla+U4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZVZ61BiSzBKJ1JT8Cvz6WiCNSXWAXSUthPiD0rVVcPA=; b=OOgakfTJ+kc5aqn2iksD1NjlWQmyTsa/6MuQk+6axHRB6zqGVjMGZkhoyYTnJGWowI NlZqyKuXH3jehLuACYmQxk97HuP7nutwCAvNm5S0yvQnhS7RPQq6/rh/rX7TizQxcZU0 5X+xfYQEdiRdQTPJx9rJ3WDEUg7Q5pOmltVS5+CPzrcOPBz3VnunH77eSqdvw7/m8Kwz bTNZ828nRiMy0ud2cVrbetRTQ3huLvRh3DHo4hdLxZF+SWY7Jh0rF93qHyZ02f5GEqfP dCZ9z7rnUp3b4adVXroqloRrwdxI7x3VzYi2grR7gtSvvM9fqpyPU9P/VKKZO8uWvRhX Sbsw== X-Gm-Message-State: APjAAAXydnKHY+Vwgun8Npx1odruQJZ367RBGXOMM+K1sYVfK8oY6mLK Dt2xIJNPhfHKH33mNgp6Aef/8g== X-Received: by 2002:a63:ff20:: with SMTP id k32mr75509673pgi.445.1563866772783; Tue, 23 Jul 2019 00:26:12 -0700 (PDT) Received: from drinkcat2.tpe.corp.google.com ([2401:fa00:1:b:d8b7:33af:adcb:b648]) by smtp.gmail.com with ESMTPSA id o95sm36406676pjb.4.2019.07.23.00.26.09 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 23 Jul 2019 00:26:12 -0700 (PDT) From: Nicolas Boichat To: Andrew Morton Cc: Masahiro Yamada , Kees Cook , Petr Mladek , Thomas Gleixner , Tetsuo Handa , Joe Lawrence , Sri Krishna chowdary , Uladzislau Rezki , Andy Shevchenko , Changbin Du , linux-kernel@vger.kernel.org, Stephen Rothwell , Catalin Marinas , Dmitry Vyukov , Andrey Ryabinin Subject: [PATCH] kmemleak: Increase maximum early log entries to 1000000 Date: Tue, 23 Jul 2019 15:26:05 +0800 Message-Id: <20190723072605.103456-1-drinkcat@chromium.org> X-Mailer: git-send-email 2.22.0.657.g960e92d24f-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When KASan is enabled, a lot of memory is allocated early on, and kmemleak complains (this is on a 4GB RAM system): kmemleak: Early log buffer exceeded (129846), please increase DEBUG_KMEMLEAK_EARLY_LOG_SIZE Let's increase the upper limit to 1M entry. That would take up 160MB of RAM at init (each early_log entry is 160 bytes), but the memory would later be freed (early_log is __initdata). Signed-off-by: Nicolas Boichat --- lib/Kconfig.debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index f567875b87657de..1a197b8125768b9 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -595,7 +595,7 @@ config DEBUG_KMEMLEAK config DEBUG_KMEMLEAK_EARLY_LOG_SIZE int "Maximum kmemleak early log entries" depends on DEBUG_KMEMLEAK - range 200 40000 + range 200 1000000 default 400 help Kmemleak must track all the memory allocations to avoid -- 2.22.0.657.g960e92d24f-goog