Received: from mail-ot1-f47.google.com (mail-ot1-f47.google.com [209.85.210.47]) (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 1BE3E21257E for ; Tue, 21 Jul 2026 12:36:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784637375; cv=none; b=AfpaGtuARs8ZJBBPm4LsmRQQGJvGtfxU/KQ+ZeEjXZLYLraBvja4b4dwN+0+jpVWqetgCe2UstjUb1DdKWica+dg5LFGyZMNwX4aZYhJV3YWvKvmpK+3+2SyX5se9ahYCY4vdxgoi7EZ3tgXpXTQeQj8cPhGFIdQ7YfUr1npuCE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784637375; c=relaxed/simple; bh=jDLW790EM1fyBuBh9mKBqaQkQC6X+ZdRp9/0gz4O5YU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=HUpQsDrDBsIEQkE9HCbvgblC0bJfJ1Ub10LzPW9EQq/xD8FWkVc0DIWC31SHdKv/Eyl/q1QKUrTEFiYM7BK8g+Yadnm0VyTIoW+oGoD9bA/rBODvM3Dd6NsQikuEXzsMNnyBDf6nAMzjMnZ7MC5du1C6NC1/pds1lsvNTDcK07Q= 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=ddjrkhSN; arc=none smtp.client-ip=209.85.210.47 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="ddjrkhSN" Received: by mail-ot1-f47.google.com with SMTP id 46e09a7af769-7ec49608332so2469790a34.3 for ; Tue, 21 Jul 2026 05:36:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784637373; x=1785242173; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=fXKZ+mCy8htaHCjZ0GyevgxuuwSsosaOIhPAQIQtoX4=; b=ddjrkhSNfoardY4ZWr5nM8ZHpjbZbbDmZrKyBMmVrjQa1RGu2ZkqWbucM8/50Ap5Wr b4pyWIv+Do40N23o+xaRSmyvTjNgEVQO12J6Eq5b6HFuaGwqhgrmGLhZ/c+M6+tnWrdB SffMcbxiBMWlZxGMTsZYHmGPLJWhHrcmw7rjymKVuhkcRgMOiwsxHCDe/+rbxD6wTXHF rCJfSgWgdv2lT98yaUvzzDJkBR5sNS6obcoiSYaKE1sIy3RCXmcbciZG/rjCXmaz6Lbm eHPKBtev0VihQbjDXJ3zCMRwk9NTyXVlpMwgMJlWhIYRmiQo+FUAMb3al7g8vNROBxYb 4/Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784637373; x=1785242173; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=fXKZ+mCy8htaHCjZ0GyevgxuuwSsosaOIhPAQIQtoX4=; b=Yn0DzBEfQ6nyQ9KUudKSlktQ2ZJxp4dIfNP7/vtazCVrixbVgq3MtHQ3mKmCh9lgUS AWSIJOCBwxIPSdpYPs47Nu89VpdxI64i9YjNa0dMU6Zrx3w0osn/QVPfqQUQHQ/7jhXv Nn8SoJBekHOYez3pEPSufw8na0ZuegpgQRmwEns7381vOLCn1E0skx6BlLeF4O6DJ8o8 IVHXmCiiskfeHRjSEYpZIA8J5OqQ13QSavcxS3u7RgldjKkYyAocK1n0FCoArlQVMpa/ VSNrXXswRg50nTFZFjLDmyX/jMzSz+8APfKeY+m0CuaYt7YFX6Wm0MAO71APY4xr0pqV pDvA== X-Forwarded-Encrypted: i=1; AHgh+RpZj5WvzYZNbHM553hUGiU4czHJTx09rMmfLK5etoHPwkqqud0hsRbg1vIFxqQ0lkbGbqAT9AjY0l4=@vger.kernel.org X-Gm-Message-State: AOJu0YyLrzv9o3NVFDGHAmg9Yrd/vsgztzRJ9cke7s1Pl8ReOgnoBDAc nIB3Hwh+HmReT/I13FXPFzG7j2onEbDShQuIoW3HqrWB1wrP8yvTgKhw X-Gm-Gg: AfdE7ckhbtHUuBxExK0YTZI/XbwhKha1BpbjXMTf8xG2vtEn1o3hapybRNQajPT1a4z qrE6Fgxjwl6W+UGX8+keJZ74B+Pcq5/eqQkKmZ4BtMX0syKt0+Nyzmm81u7bSzcYmoZgnKOXlQl ebmB4M7tvenxUrmKAbabCO631T+i3gKxOIKLEIU6YBc7QXrZX9Rm4i1sify9MgQlkbPBWgGFMde I/U+VhBDhXbYDjRwvFedtMu7YSfKANa0AUZ8IHjQszgN04hEMnmSxvtLlEWDUxSIQAhz5gKNHqQ M4PkA0adsNpxs9+I6Xrl3HGuvVJ29KwDqLWJVvuWJ8Ymz609dumzTq9syRKOD2JTLrI7IZWXNq+ v3pdg+P4okMc1+vl4ZsthYS2fMICHNaxbfSyjrm0Dw80afUiYjHQpu6AwoJZLwEcnhmin8s2blc mUksncEQ== X-Received: by 2002:a05:6830:82e3:b0:7e9:b946:e1bb with SMTP id 46e09a7af769-7eda153266amr9848253a34.23.1784637372781; Tue, 21 Jul 2026 05:36:12 -0700 (PDT) Received: from [198.18.0.1] ([144.24.58.22]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7edaf94a494sm10332132a34.13.2026.07.21.05.36.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Jul 2026 05:36:12 -0700 (PDT) Message-ID: <0565e7d4-fb0f-4b84-a20c-0c73ac964b51@gmail.com> Date: Tue, 21 Jul 2026 08:36:01 -0400 Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH v2 00/13] mm/kwatch: dynamic hardware watchpoints for hunting memory corruption To: "Masami Hiramatsu (Google)" , Borislav Petkov Cc: Dave Hansen , Andrew Morton , Peter Zijlstra , Thomas Gleixner , Steven Rostedt , Ingo Molnar , Dave Hansen , "H . Peter Anvin" , x86@kernel.org, Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Mathieu Desnoyers , David Hildenbrand , Jonathan Corbet , Matthew Wilcox , Alan Stern , Randy Dunlap , Alexander Potapenko , Marco Elver , Mike Rapoport , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-trace-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-doc@vger.kernel.org References: <20260717125023.1895892-1-wangjinchao600@gmail.com> <91f3486b-3b85-4b43-b099-0a5325643352@intel.com> <20260717181004.GBalpv_MOaAflgFxgh@fat_crate.local> <20260720232442.3e6b0e70c6939541b8362e05@kernel.org> Content-Language: en-US From: Jinchao Wang In-Reply-To: <20260720232442.3e6b0e70c6939541b8362e05@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 7/20/2026 10:24 AM, Masami Hiramatsu (Google) wrote: > On Fri, 17 Jul 2026 11:10:04 -0700 > Borislav Petkov wrote: >> Looks to me like folks need to sit down and agree on strategy first. > > Yeah, I need to talk with Jinchao. > > Like kprobe, wprobe itself integrates watchpoint functionality into > the tracing subsystem. Jinchao, I would like to ask you to redesign > the kwatch tool based on fprobe and wprobe events in user space? > I think that could reduce redundant efforts on the similar feature. > > Using fprobe entry and exit event trigger, we can make a Function- > scoped watch window. Also, since fprobe and wprobe are having BTF > typecast support, you can access to the members of data structures > more naturally. > > If you are interested, I would be open to having you handle the > development of the necessary features for wprobe. > > Thank you, > Thank you, Boris and Masami. Boris is right that we should agree on the overall strategy before moving either series forward, especially since they share the low-level HWBP work. Masami is also right that fprobe and wprobe provide a more appropriate foundation than introducing KWatch as another standalone debugging tool. After reconsidering the design, I will stop the standalone KWatch series. Instead, I would like to work with Masami on extending wprobe to support the function-scoped dynamic-watchpoint use cases that motivated KWatch. Masami, thank you for being open to having me develop the necessary wprobe features. I am interested in taking that direction. --- Thanks, Jinchao