Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4877615ybi; Tue, 30 Jul 2019 09:40:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCizmKRg7rfhbD4TtSrfjNL9aN//wu9W/VDv8wAI4K3rBfnfOREJXav0Vph+/61BioH1P0 X-Received: by 2002:a65:4841:: with SMTP id i1mr109382890pgs.316.1564504851923; Tue, 30 Jul 2019 09:40:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564504851; cv=none; d=google.com; s=arc-20160816; b=AZFn0tg6wSoTehpHRZnaUshZqY8exQqvsWM+Rwo7xnFhJ7ZT4asCbpA6kB1R11Voz8 r4vtVFi9N58LdEzCZgu6J55ePkc9yclIgWOGDPVKwok23a9CDhfBu2rFCZbNHQBM6A7a qfHnSkqqFutvnQMAAND3EVswP3MqybPDeLz3LWxPIXVK2pdaCN82H701/DvFJyiSp40M HqkoU6Sp0lfPnTxfHOVa/BSn0+hCXwyxE9Zae0k1PzNKdgzAd2U8sKhBKa8ag3yr8Sog KdGNmeKMelB/lxvX3B+Y8pROw1bxK6fJDHRjiOK2aNRRNxym0HM5o8v96jTC2/NrjEL0 yAIQ== 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=+TsaPv7btxKYET4XEO4VsIG1TF0FubECBVi69Yua3t8=; b=lrukaPMIdPGPxQlnAit6osq8ne94pvx8ikUCHUOgyAk4cAL3SzbEgmox9bn3jSe5Lo +EYFkhF3yYwujPTus2vXy2+eQoG2HFwGb+14cTCfZbtE/pHzAqc9wrgT0EElhaLBLvR/ 5enEFU4ITL2RjSnLaZzqbZNY/oX1JVyPyq1SiYKlOBk0VHVaju44KzLFtQ2Qc63ne6lY RU30meIZSqBFO25ldVDEWiNeeLY2+jLF+5QCEVu4GL7UyVmDKSO7eXNJLoQ3ojKZhwrq Ac3UEbueM/pfIyAnB1oiDZ+cuJu8nk2sLQG2U8a9sNgy3z48IKhfHuZUKVNfAdaHb1WV Vtyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=D4M5SEhW; 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 v33si14691475pgk.152.2019.07.30.09.40.36; Tue, 30 Jul 2019 09:40:51 -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=D4M5SEhW; 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 S1732087AbfG3Pkq (ORCPT + 99 others); Tue, 30 Jul 2019 11:40:46 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:41787 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732016AbfG3Pkp (ORCPT ); Tue, 30 Jul 2019 11:40:45 -0400 Received: by mail-pf1-f195.google.com with SMTP id m30so30051951pff.8 for ; Tue, 30 Jul 2019 08:40:45 -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=+TsaPv7btxKYET4XEO4VsIG1TF0FubECBVi69Yua3t8=; b=D4M5SEhWmgpdhlQENr0EWrj+Jd+ccJ6vkHVsl7sKWxgFLdT4SsinEcWlv3VCq/152U ZBIoPET0gRdd8KVbsZzlMcOdJsp3pfx5xij9VPh+lBpnbf5ptgFryW/LfOsws3JHfBHZ gWlcgg8LUglTD5JczuFzHHrhwaEKCdr9vXvmE= 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=+TsaPv7btxKYET4XEO4VsIG1TF0FubECBVi69Yua3t8=; b=Et88lRP8i0WTeSR2Obgd3c4kO5tZ6uXgjP72mCXHZJn/y4cl/wJNerqYs9roE8PFbn hL8Y+uOlNOB34hqP4YjK58b7TjhfPQbb+0ew6g8Nv01vTKSZ6IHMbAYtLM1DiDnkWzER LlL7p0qkhNWrSU2Pw3MrEp3P6IRwZLPPvmbZbvh9eThxONHwdXT0WQL35i6SvtWCtcbR Zycn6GAwLsTSuSbSGAD8K2dYW8pOXpcNWfj74ecNJ5Gdt22OGj/vhRTQL8Zk0FPKT+vl dusiIimHtPWKssEEH7Es2/uQlfAI8YwUvi8aC6ATYaJn4JX1GJjRATS6s2Og1IjSFIvj xEqA== X-Gm-Message-State: APjAAAVjSuqP9mw6lwqByco7BcsI5JoaYK2hvskrUIiRCpnXvKO4riVl rxn+5x2pvIRLPvAcc+iOVzR7wQ== X-Received: by 2002:a63:4404:: with SMTP id r4mr107857554pga.245.1564501244406; Tue, 30 Jul 2019 08:40:44 -0700 (PDT) Received: from drinkcat2.tpe.corp.google.com ([2401:fa00:1:b:d8b7:33af:adcb:b648]) by smtp.gmail.com with ESMTPSA id f197sm64641762pfa.161.2019.07.30.08.40.41 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 30 Jul 2019 08:40:43 -0700 (PDT) From: Nicolas Boichat To: Andrew Morton Cc: Masahiro Yamada , Kees Cook , Petr Mladek , Thomas Gleixner , Tetsuo Handa , Joe Lawrence , Uladzislau Rezki , Andy Shevchenko , linux-kernel@vger.kernel.org, Stephen Rothwell , Catalin Marinas , Dmitry Vyukov , Andrey Ryabinin Subject: [PATCH] kmemleak: Increase DEBUG_KMEMLEAK_EARLY_LOG_SIZE default to 16K Date: Tue, 30 Jul 2019 23:40:27 +0800 Message-Id: <20190730154027.101525-1-drinkcat@chromium.org> X-Mailer: git-send-email 2.22.0.709.g102302147b-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 The current default value (400) is too low on many systems (e.g. some ARM64 platform takes up 1000+ entries). syzbot uses 16000 as default value, and has proved to be enough on beefy configurations, so let's pick that value. This consumes more RAM on boot (each entry is 160 bytes, so in total ~2.5MB of RAM), but the memory would later be freed (early_log is __initdata). Suggested-by: Dmitry Vyukov 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..b5a24045ab13310 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -596,7 +596,7 @@ config DEBUG_KMEMLEAK_EARLY_LOG_SIZE int "Maximum kmemleak early log entries" depends on DEBUG_KMEMLEAK range 200 40000 - default 400 + default 16000 help Kmemleak must track all the memory allocations to avoid reporting false positives. Since memory may be allocated or -- 2.22.0.709.g102302147b-goog