From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) (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 1040717A2F6 for ; Tue, 21 Jul 2026 12:36:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784637375; cv=none; b=pa05+r8jGlXcAbANVMO+aCMReEamh0crjrglhbqht5fFqzr/FLEIdx2RrfXVvy1/vb/06c62DhaKpwR+CDhz2016vBSrvA712IV2q3Wv4/0TBWlPVN4XERDWoLtdBVUs5Q0qbhVUBz36ya943uEOXYNrv5cUFMkEkBnMeEa5GFo= 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.44 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-f44.google.com with SMTP id 46e09a7af769-7e9d7464b71so3941929a34.0 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=OSQCcV5a/2r5SaalHpwPSTWtiJqCznflHJCf6d+vMSIKWzcE3wNNGK6cjryWk1rN0Q rVRm0DI6RtRs00nD4xUwgvM+ljE6LFUIkuSxQz5yQtWuk/aHzzjF3D6Py79GS2yFGHLn J+37BuL9L9XKCMJUbyQD9x8lJqkc0o4UVeuKZdKZSWVZwAjPxDAec8gsuAahRu853g35 +25XO6yZyKfOkgZqI2+MwQ3aUyCEbYCC5JBKLzLnH7AdyGm+3J2MY1KyUWH+uR1C8pq1 nM+1B3cjr5M4kKPKsT6l1rW/S3L+cpp2ZPiHJezJ+F2JTjMjwZaz+b4woKoePycZ1AAp UeLA== X-Forwarded-Encrypted: i=1; AHgh+RpywjzQjXpsupu6SMc/72rFVhCmKMiKrZcdEhsAlJpOiV7gm9b22BOxR5BSgCjugm3A0LvoRXPlqB4vHF0=@vger.kernel.org X-Gm-Message-State: AOJu0YwdEZGkGxwB0Ovh44eNf+PpD6ahRsZB6Nb5vjJnB+/7h+STkMEy 8sHrV4iImUID3Ov0bry74hsMfPWAdmdAwBIYXvrw4SHZNYFP8XyyTV5N X-Gm-Gg: AfdE7clq5dryphUjfUPOVb9A8lqwsJz5T0kkhduR5HkKMoVQ8MAsO+4UboC/qF1caZ2 aM8TNyoFbBCq88QZvNd6jV9xO4swdOVRLFA9SV5wPeRCyK54xR2EaYDBkOvIodJDEm/wgQE/UVy I0BLe1/5s5XtI6c3JH576Qk6w7/X/dXSNLmZ6ksvCH6dbMEqQJifPdSYIWrWfKnlNUexAfc5qm6 NKNfL3SbYTq/x9d2tXJWCEl516aJb4p3YBXeK+KWa/FbwcJUO7jdqcnK7OZlzfRUDV27brFtrHX b12aP9UzIifeRt8Qwsr4PRVM8YoULlHSX/xmFXDyQ5bR2DiXJWmbLdOxRl2X4xbrlrK5cwrhPty eZ6Efd90e3phFmouzNX36/rWHdiQi7pvcmcMN4Ou36rbPR9FMlxr5gCxcv+xb1xPhf4r5Gvmx1A OpEB1gxg== 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-kernel@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