Message ID | 20231116224318.124209-1-jim.cromie@gmail.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp162080vqn; Thu, 16 Nov 2023 14:44:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2+2KENINe8fsIZObXWk8urp/Amw7nvCf0P6GH5oHF4xbpR4xzEpi6Umlwh18dIOU7Xpyz X-Received: by 2002:a05:6a20:2588:b0:16b:79b3:222b with SMTP id k8-20020a056a20258800b0016b79b3222bmr22588968pzd.34.1700174653197; Thu, 16 Nov 2023 14:44:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700174653; cv=none; d=google.com; s=arc-20160816; b=p3DqQc8Ut5yYkWfyQ+4czjUErsdtXPqEewJ6ZlBNtl7Muf+VV3oebSvxPc+ubdWLvl PVN1v5Y1y+nKYsAwEEUOR1wYsF3WSnZcg1fDVDqzI/VcKwyRzXPBS4pejaT1MpVLA4lR kxcMnY8Rxf7KBtmlJH29lURMlw6tWMXXN8Y6iS2seq5JQ9VJqrhFbiBfoN8X/AtcVkRz kNnE0m66TOwMEgPQV98LThqs1xvwleYAyJvSKbPCKGIexCKV0vQXOmSPv//jXVNbWi7K b4OC5tMRUF/utKo+RhBO5/doXLI0I3wrhouAM5gLi+ZZsy9SHhkmR45cVWRTbfIJE6Cy N4Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=oRSdf0PEURr52X1uXRfTSODl32tTGq0g+hPl3iixuKU=; fh=EgVkNH+Cb9K8YOTSQBPxNV2o+rDWdzEBRqk7dHoL+c0=; b=xKObn+PYg+TvFUTfGq+w5cvnkeMWUD+dsvc6ksY3LBVsn2CUElP0wNLDPLjwHDJP7t Z4/V5JtxxpeNwSYEqftZOYWOMY0d1SjZEE8w0GWTAjOU590T217Og0hoyIdHq89efQF9 FfmNb9pP+lMGOS8bO7JquEA5uneJ5fQ1ZEM1xsY1covVhmoDzxlpFSxxpEqWT2so8WVO WTfqQE5LM+zzqgCmS+i/KFsOBQ7MExUXxsiqfZ8/2z7DwQ9rBn2u100iYRCZnl+8aL9L 0Aya3qIqjmNBP4jpx0nyunt9nsoWX1JOjvojNnexSJeQBWmVaihI8kM5T8H2jiMgTgkP xTXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=kRK58Dxu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id d10-20020a056a00244a00b006c4d1f10b8asi512773pfj.99.2023.11.16.14.44.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 14:44:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=kRK58Dxu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id EA07380230AB; Thu, 16 Nov 2023 14:43:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345566AbjKPWnn (ORCPT <rfc822;jaysivo@gmail.com> + 30 others); Thu, 16 Nov 2023 17:43:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbjKPWnm (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 16 Nov 2023 17:43:42 -0500 Received: from mail-il1-x134.google.com (mail-il1-x134.google.com [IPv6:2607:f8b0:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A020127 for <linux-kernel@vger.kernel.org>; Thu, 16 Nov 2023 14:43:39 -0800 (PST) Received: by mail-il1-x134.google.com with SMTP id e9e14a558f8ab-35937f2fadeso5183405ab.2 for <linux-kernel@vger.kernel.org>; Thu, 16 Nov 2023 14:43:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700174618; x=1700779418; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=oRSdf0PEURr52X1uXRfTSODl32tTGq0g+hPl3iixuKU=; b=kRK58Dxuku5gIG5lqbmrAlcKOjNuPZy+lL7p61LJHk7ekfJ+y/7zLsSFENnA8azp2K ktMv6swUoTmPX/1rtsE8TyAyV4f7Ut/6+XNS2nEbgKh7YEkF2BKq9KblQCGweys5SEjK B7GvcXsq8DM5LFlbAc6rlpxZ5u0azQubbaKNI3wBmWu3zyKCm2cRJvH4Joqsxgru6Eho v8C8RRsYTbLe8UjDgDEIFmRZ7Hr0TU/TCGX3gqZhRg5GEDZ8kcslxi1uuSTK4qpjN7vo e6bKUf/D1YCmPOuMlur9w/NztQt1RszYbdaehUrA5MdO4AmyrcwSX5dqbsQOIp9NXatJ UxHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700174618; x=1700779418; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oRSdf0PEURr52X1uXRfTSODl32tTGq0g+hPl3iixuKU=; b=OgrT2pVIPjzrxxK1dyj7XLP/fqTlDrVh4EdwofdoXtS5sms/ffRZCSu151X+WZuIce +XwyoAIYDWP+HA5fETZ0FnusHhjD15ftqCrA59u3OFwe4w8wh2vJoVdQiz6kB2Yl+A7J SOKEqEbt7Jcr8GpqxAWtyIDlQS+e2hOoeRQ9qkWpstN8Tl7buyggAVfL1EoRA+zEc20j L50WFqxkOGPhikvBRX8MTAT7o0coaF1eeew41j6mdSize6EMDEZyrjVpKjfiO4d4Ys81 B7vhlzO+vIMKSLmXIrRxcFTKTL8c3HgNoiYGNAA9jxKT4zdGFleTHUZ1KWNC8O1Ubaqp pDaA== X-Gm-Message-State: AOJu0YxDHTcH0FbuBEj65642inlS3MT2awmwxBvtY/DSKXCPuveMVRWd g1TnuL+90/YhP7td+S4yKikBg1SEzyU= X-Received: by 2002:a05:6e02:214b:b0:359:4048:38df with SMTP id d11-20020a056e02214b00b00359404838dfmr19126254ilv.7.1700174618307; Thu, 16 Nov 2023 14:43:38 -0800 (PST) Received: from frodo.. (c-73-78-62-130.hsd1.co.comcast.net. [73.78.62.130]) by smtp.googlemail.com with ESMTPSA id g12-20020a92520c000000b0035913c8423esm84399ilb.73.2023.11.16.14.43.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 14:43:37 -0800 (PST) From: Jim Cromie <jim.cromie@gmail.com> To: linux-kernel@vger.kernel.org Cc: catalin.marinas@arm.com, akpm@linux-foundation.org, Jim Cromie <jim.cromie@gmail.com> Subject: [PATCH 0/2] tweak kmemleak report format Date: Thu, 16 Nov 2023 15:43:16 -0700 Message-ID: <20231116224318.124209-1-jim.cromie@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 16 Nov 2023 14:43:58 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782762337190318448 X-GMAIL-MSGID: 1782762337190318448 |
Series |
tweak kmemleak report format
|
|
Message
Jim Cromie
Nov. 16, 2023, 10:43 p.m. UTC
These 2 patches make minor changes to the report: 1st strips "age <increasing>" from output. This makes the output idempotent; unchanging until a new leak is reported. 2nd adds the backtrace.checksum to the "backtrace:" line. This lets a user see repeats without actually reading the whole backtrace. So now the backtrace line looks like this: backtrace (ck 603070071): I surveyed for un-wanted effects upon users: Syzkaller parses kmemleak in executor/common_linux.h: static void check_leaks(char** frames, int nframes) It just counts occurrences of "unreferenced object", specifically it does not look for "age", nor would it choke on "crc" being added. github has 3 repos with "kmemleak" mentioned, all are moribund. gitlab has 0 hits on "kmemleak". Jim Cromie (2): kmemleak: drop (age <increasing>) from leak record kmemleak: add checksum to backtrace report mm/kmemleak.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
Comments
On Thu, Nov 16, 2023 at 3:43 PM Jim Cromie <jim.cromie@gmail.com> wrote: > > These 2 patches make minor changes to the report: > > 1st strips "age <increasing>" from output. This makes the output > idempotent; unchanging until a new leak is reported. > > 2nd adds the backtrace.checksum to the "backtrace:" line. This lets a > user see repeats without actually reading the whole backtrace. So now > the backtrace line looks like this: > > backtrace (ck 603070071): meh, in the actual patch, thats backtrace (crc <%x format>)