Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp542994rdh; Wed, 14 Feb 2024 04:52:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXHKECUb5d07ZIi12Qq4dmaB/za0vumQrUjTQrHYriPwVKVfUfFnHFcXV/zHh9g1F7B3KSKY34MLpWCPUZ9kHb31xbcxSSDzGXnfO0x3Q== X-Google-Smtp-Source: AGHT+IGKiA07E1YNE1oI0r5xwUHXEzOdwrX5LSvZ8x/rmZbcImcdbl1JgXR3C8qur/CVEBaic06R X-Received: by 2002:aa7:d5d1:0:b0:561:8452:3634 with SMTP id d17-20020aa7d5d1000000b0056184523634mr1712523eds.36.1707915171749; Wed, 14 Feb 2024 04:52:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707915171; cv=pass; d=google.com; s=arc-20160816; b=Kq0xuMeotzMDtZ1cPdhDf0jrpSxD0/sV6xx08W95Z9jhBC5QSE5ikPdG+3Ydp4GdpW JBsPxkMgItjZzjav8SnMIq2LotA/mjM5hVJ9fyEFanAnoOBL6KiXzVq0rd+htzwyp36Y wnl7KRj8oKTvRCuxp1R0z/140PWbfvHp4D1w/Rk2O3zsIJoi4SEs89fM1ALZpsi/NrNd JkjH53CYbGhKv75FvdGzyweDC1m9NvsO0urNNF86ZzgNhNjOpPJ9LNUyFgMo7/IBHRIM P7cufcC2lS9W5ojJk6iil4wNWdrz5T6NKI9EPllvdVg6H8HU1EIMlo+1u/HTRnK8qiT3 dEKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:date:subject:cc:to:from:dkim-signature; bh=gDvqfwTyYBxuf29AFE7t9GxnwNv4hrAUFcw3kWh18yU=; fh=ZIwPCbPuRC+XiywF1JQWxLDUiydE5DcQlVfbiUURNxE=; b=GAheOugh6C3xlL5/ed15df6niC8SHBtJf5hy8Q+HqxryFi6a9g3hdYYOXIg1gqcoYz jV7kJgz5V97ngk4zBDQiWIjYGyIfBV7Mcviqy+ine0jxS2++v+6SH+yG9TITqot3hIR3 gL/VFLlfZC51PeQike9+RAZDVNxOFT4ltBFlprI9RGhWDGtMIXNRBHvv4kq3uOP+3U3q lXCOeD89FhTyx6BLTOiRISvPBntKzKi5L6o70Y/L7ufjlr9IvHTponUasWBqFcsLzCWM fo8UJCdS/7xiWTCk1dB/u4m0yxIr2HPmKhelWGCmU145AQvKTP1D2/TNNZpz9uqmrAlx Qb5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GbHHB5YM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-65219-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65219-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCXSIToedh/p/ssw7TnqverAnluUnyWo2JbAVtA/wSiybCDbmIYhwsbL/HqBFoBimwCXl6FH2rga6Dq82u0m9eZT/C+P73zKyGMs9fSdTw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id r27-20020a50d69b000000b005621abc4d80si511757edi.213.2024.02.14.04.52.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 04:52:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65219-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GbHHB5YM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-65219-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65219-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7E95B1F210B3 for ; Wed, 14 Feb 2024 12:52:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 74BB553390; Wed, 14 Feb 2024 12:51:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GbHHB5YM" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9702552F6D; Wed, 14 Feb 2024 12:51:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707915060; cv=none; b=JBe/3R4IZ97wG1dYfRs4idAYsAk2K1KhGt9EMWJ5ngJ0mYbUYWs33+2+lnLXDGBulMHt/fNNov518buOmIReebmnbHud4z4YWTcCdoJp/ObF9xZikPj16KpgAx1K/RCd73h0tBYo4O2RfRYtx+5uQujwr7g0PPRllpHMP9/v/1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707915060; c=relaxed/simple; bh=RWvrLf1KdKNmNFeac58ILq9M4ZuHDUel2ED6opH/yF0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=TLj5G5r4NHifJ6cYqx4Gmjv+F0vfRxVz51mFrZ2kWM0NOvvgI0s+/MrDybch3sP8FZrtnRJvayTFNVCHe8Lz9AGV+nfUf/HrjGbafnIbXeOippc9q87DzXsIcgj5Hm41V9fyzvsf3w/MVljjeARmKS0bTXSfhgnOdPWSnrpGXh0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GbHHB5YM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01DFDC433F1; Wed, 14 Feb 2024 12:50:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707915060; bh=RWvrLf1KdKNmNFeac58ILq9M4ZuHDUel2ED6opH/yF0=; h=From:To:Cc:Subject:Date:From; b=GbHHB5YMLk9ThdE3OtsWaRdn22I5l5bLwWAedWKevCHc5W8yZd6L6/SWY4GkFQE++ U+O2SIC/j63NEbYi5s1B03pgX6wanqWt6CHuTCP1RF47hGs0zDb01R7FeB/ej1r1Hr OTMs+FfCPJZl0MmyuiKEflyaFLgGxWipLa1S46wBFm7n9an5HleDce8BT1We13WJdB VKRjNyXPHfmqwZ2Ndv+TGv1BHVfug1ukdClnKVkrdZZ8zUeSdAs+JBNazv9CztW1rL LOQgPbZiKBLX1oB0F+bcNEs4roCyQp0sPYIiRGNvQkWfJqd2TpdwELVEhM3r7S3cm9 Ulm2Os9SwpbVQ== From: Kalle Valo To: Steven Rostedt Cc: regressions@lists.linux.dev, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Jeff Johnson Subject: [regression] tracing: kmemleak warning in allocate_cmdlines_buffer() Date: Wed, 14 Feb 2024 14:50:56 +0200 Message-ID: <87r0hfnr9r.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Hi Steven, I upgraded our ath11k test setup to v6.8-rc4 and noticed a new kmemleak warning in the log: unreferenced object 0xffff8881010c8000 (size 32760): comm "swapper", pid 0, jiffies 4294667296 hex dump (first 32 bytes): ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ backtrace (crc ae6ec1b9): [] kmemleak_alloc+0x45/0x80 [] __kmalloc_large_node+0x10d/0x190 [] __kmalloc+0x3b1/0x4c0 [] allocate_cmdlines_buffer+0x113/0x230 [] tracer_alloc_buffers.isra.0+0x124/0x460 [] early_trace_init+0x14/0xa0 [] start_kernel+0x12e/0x3c0 [] x86_64_start_reservations+0x18/0x30 [] x86_64_start_kernel+0x7b/0x80 [] secondary_startup_64_no_verify+0x15e/0x16b I don't see this warning in v6.8-rc3 and also reverting commit 44dc5c41b5b1 ("tracing: Fix wasted memory in saved_cmdlines logic") makes the warning go away. Let me know if you need more info or help with testing, I see the warning every time so it's easy to reproduce. Kalle