From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pz2-f12.google.com (mail-pz2-f12.google.com [74.125.228.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 55C92363C53 for ; Mon, 14 Sep 2026 03:45:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.228.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789357525; cv=none; b=kfjqdoap1qEvvDtoCuoKuNB8E5WPKN7AYtTX4mPhsuSfP5oE3rjewzzXIa6ZFCDDgN5/Pu/HOgh7NVy4Xb+QODTeXOkfmxpxT63HJesGlqdmBCQ5MietM8dW7smmuS1ua6qQmur9A8YwT47dQLzAk0ObWFLZxgLaccNvnrN0SeA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789357525; c=relaxed/simple; bh=kLQB8+tIzL2zH1e9g3qNWfJ3MutMe/rWb/PEeNpXolU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=fdluVWQYbgIjp3j2Lyuh10ACOVCo1qEJiOLHWhSVcUMobbpeH4MzMYt+8QiZFvg+fILze5mvEu5+PlxNr4gbe2Ms24m8nwuQHVHztKoXGnlTu9w8XMxmXeaOHpHPTO90YtLo7omDyaZ01hyCK3eC5qb+hOrZKXMpKbqBLz8Z110= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Hlu/rniL; arc=none smtp.client-ip=74.125.228.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Hlu/rniL" Received: by mail-pz2-f12.google.com with SMTP id 41be03b00d2f7-cc4aa0f1a94so1003113a12.2 for ; Sun, 13 Sep 2026 20:45:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789357524; x=1789962324; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=kLQB8+tIzL2zH1e9g3qNWfJ3MutMe/rWb/PEeNpXolU=; b=Hlu/rniLg9kmzKhwHQroiJdc6ZqJ18biYifheskyvHh2AmYxkwWFlPbz3X2Q1M8WxB aSK4iOWFWTA9UIE6ALfj+KZhR34EizYDpICJQxhAhXD2BDSg4QQV0gDit6qoa4Mc9Fwu Y6TaDlkNqdJn+QatQ2wIFKZji3joz+hrcT5HX8DdlEqxZuwZT09YyX7eHSRflT8nGms3 LHk9Tl384GgmR4GJrlrzzH0OCK1ASCWISXfnYQbZTw0dXZQrnhv0oTuHUV4YIRUJ2Jlo Ntt2rM9OGlfMCa2EXUBbI2lBHyGAj6rxH8FoLkHzSyhWTtxVCTdOA4gz69XJpfmY25aB r2Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789357524; x=1789962324; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=kLQB8+tIzL2zH1e9g3qNWfJ3MutMe/rWb/PEeNpXolU=; b=TifHFb2ECGSQS/wRoR/5zhrsC3fMAfYo3lQP0PMQjH1h9XIEmUhTK3rqDiTKwcDkK3 4Hmrr9CckGoEE0fsTB3M7PwkUU2eRFjxE1HWMySuFt9wsM+SK84dlFsF6e6alS5sIw+2 8cUHJR2fqPrC1tnCuuhYVxN8MmXOQQrHGVISYTxktMmAC9CsOpBbGhvKZhb22pZP2tR5 XT+LVCB77wxy0Hp6UOMayMJarjJF3jz4wRrK/KT7nbtvr75mU080qcPJXxbcQY5o4Zry +lQK6KGlDxqCRwvFxlRi6c48SJ5sWl05sDVakmjPyMUYoGrT4QZ0x0xoJJsN9SJhfbSm oTXA== X-Forwarded-Encrypted: i=1; AKwUvBwjaoaBW6UilOsCUoZK0IWpisS7LkOx14r6kdt0Sl5DQuKzxftcyLcaAW0awDgDBBPHRZ3q4D7Vmp500JE=@vger.kernel.org X-Gm-Message-State: AFuF++mdfxm8VndG8W0rBrF4hNz9ilowDTmGqXFfdI1fIT8aIt/W14Nm RTYjYdhae8tjCwzwYcjXgnArnh1hA3oqHqyXqCRbx15yEEVkIgOas7Q= X-Gm-Gg: AYBFou1IzcLE6W/O6t9+B1SvH/42oX818b87abv53fikhNcNn/ifEdPpd+t7drocL37 U9QcxTEaYl55crQh280S7yXnkDosTD186hZ46xyleDR0EDudJnQ5Crp7bWqyjj99Rbf0IJdKhPv wQwdWiXj45ueaVLAoItXz3jNzrs4xHXXCgfqXA1FqxqqxJFFoANXhaRTk+1Vo5qXVd1yNO4Rzpw 7FBY6MSd+b1byYgCs9mBsWkwZCtG/9sjlhAD+Auvl3Z2MBI3+q9j+ezJBKMT/XYIykjug4Fw3/E ZodBhHOaj6oK9NyjgQk8+4hYmFWK6X6rT0G2FxoLL8DTABFYIe02PGfkX6QuthCXdn1elpOuzth pBe36tEn9zZslrXO6ODUVRxjf/q90neJJw1bKWnPglFn5xGyNir1kX+BoeJ5Spn9T79Z9g3ZOtP fjZT4ks9XsMP0wluyklJORI8geTA+Dy+Zai07eEP9f2kZbHd7enPDkX0exQ8TxYXNQi3idboC/D hNODAchHnqXCpB/s3gayq9LNIxF X-Received: by 2002:a05:6a20:d70f:b0:3bf:6222:2e7e with SMTP id adf61e73a8af0-3db4039d992mr1502008637.4.1789357523650; Sun, 13 Sep 2026 20:45:23 -0700 (PDT) Received: from ydg-Zenbook-14-UM3406GA ([2001:2d8:7f00:8c85:3b80:bc61:4619:5346]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-cc4c6596265sm4130339a12.27.2026.09.13.20.45.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Sep 2026 20:45:23 -0700 (PDT) From: Donggeun Yoo To: sashiko-reviews@lists.linux.dev Cc: Donggeun Yoo , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Tom Zanussi , linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tracing: Don't log an error for the speculative field variable lookup Date: Mon, 14 Sep 2026 12:45:16 +0900 Message-ID: <20260914034516.946387-1-donggeunyoo.kernel@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260913204554.91A9F1F000FF@smtp.kernel.org> References: <20260913203156.941433-1-donggeunyoo.kernel@gmail.com> <20260913204554.91A9F1F000FF@smtp.kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit On Sun, 13 Sep 2026 20:45:54 +0000, Sashiko AI review wrote: > This isn't a bug introduced by this patch, but while reviewing > trace_events_hist.c, I noticed a potential memory leak of var_ref > hist_field objects when a variable is referenced 3 or more times. Already fixed in mainline, by 4bddcb346a6c ("tracing: Free histogram var refs regardless of how often they are referenced"). It removed both halves of this: the get_hist_field(ref_field) in create_var_ref(), and the refcount test in __destroy_hist_field() that the quoted code relies on. At 22098763a10d, __destroy_hist_field() has no refcount left at all. That commit merged the same day as this review, so the baseline predates it.