Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp2107361rdb; Sun, 21 Jan 2024 07:43:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IE5jeTIztDDLm/Lgq+M0Jseyzf2Obk6GU9sMFS7goK64paJXbfq9TH4NPZcuqYWYDs8fk0k X-Received: by 2002:a05:6a00:170f:b0:6da:e7c2:42ca with SMTP id h15-20020a056a00170f00b006dae7c242camr4216803pfc.21.1705851785017; Sun, 21 Jan 2024 07:43:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705851785; cv=pass; d=google.com; s=arc-20160816; b=iJF0SOurvwauJBTzQ2nsXV3do+/3bzW3IzSn6w8f8s3RaVNfZPKHxMNvdjSBrBFUKA +hhtERyEUXKI0vr7lXPdhwXahZyj2YUODjWOCK4A7TT6itE0qOricNdQZqQRO45WM5ev JzI37Uhi+A0sFFW20txuzcqyD3Z9O1N8+XSWXpWuBmu7rSlsDS+sVok0cQvJKx+zRsBA DG8FqtoLEqOEMhOoJRxiK01kyZicaAcNJq+N/F96EKVRrTzQg4PCFEakhfjoZhcvCAlr 1Nxt/18uXdKAioDFwuaKw03BdeUfg6PrwCl4GpucV4tYTz80mPCA3bUraW2EFjMsOa5y ocFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=YpgNzqbUY2jSsd5b0U/oVVNDxXEDJkkFN3sLHlwC8cE=; fh=RnwwGEAy5FrqXLqmGi1sB9MfygliysO0COznG9p1Zxs=; b=h8uXUi0Xxpb6vZpWNCaRmD5FPKOFRkBFoCSFUIyGaI5OQBZpljm110tLYDgxiWFdtC mhCbT1icxZVVbPZ8KkhEeJoGmVfbzA/GRtE5+Twx+9+Qrmrt7p2w5UI34NltaijRipi2 3leSfuVxKjp7YGUp+wSuMJ+jXHUrW0lNog8Fc4FAtNOP4yDHFhB0YsxmRNCL3LKzqRa3 JhoLqGEKIckGHFagmF+tBSjuYD35qz1tBPAJMwzI4LcBM2Ol7LaCSrKPymcMA4qqtXUB vNr6l6ThVYqyfZM6QySLbbjcPtFYVnrIjK0ethxa//rR5Xt/2pvNMO21jdIs0GqWuuCa LGSQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-32103-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32103-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p49-20020a056a0026f100b006d98bbbd3cbsi8851742pfw.295.2024.01.21.07.43.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 07:43:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32103-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-32103-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32103-linux.lists.archive=gmail.com@vger.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 12330B2155C for ; Sun, 21 Jan 2024 15:43:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EE8BA376F1; Sun, 21 Jan 2024 15:42:54 +0000 (UTC) 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 7A5FC376E2 for ; Sun, 21 Jan 2024 15:42:54 +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=1705851774; cv=none; b=S/UJm4odM3M0hwntWVQppzGBh9t0q3/scAUkn9suLWmwi7wH4/5xOPTlvvnj3EetG3YOYUsRZdaS6WXvDLk5rL9SJaE2mfO5alsVNS7rgDC25VlkHqM3+9/gMsIIDsAXip8RgTQUThHGODFQ7hrTycI1Da7mm2HgONDlb/TZHGI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705851774; c=relaxed/simple; bh=YpgNzqbUY2jSsd5b0U/oVVNDxXEDJkkFN3sLHlwC8cE=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=u6IuWBMRP5OsTApgPxpmZibL6CPub+9KlJZyw5I9dDur2b7IS698EzQSE1vxA82AV2sfXHYlHGxxWS3rOMTlFT5s2ys4bqUZxiGGFMcK13MgHergScArSMlaEEI12jmaCHhS3v+Sont3V/6PwH2puU3vBAc4HhUkcCH4jN0Gs7I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F7D8C433F1; Sun, 21 Jan 2024 15:42:51 +0000 (UTC) Date: Sun, 21 Jan 2024 10:42:49 -0500 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: Matthieu Baerts , x86@kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Peter Zijlstra , linux-kernel@vger.kernel.org, Huacai Chen , Jinyang He , Tiezhu Yang , "Naveen N . Rao" Subject: Re: [PATCH -tip v2] x86/kprobes: Drop removed INT3 handling code Message-ID: <20240121104249.3997125b@rorschach.local.home> In-Reply-To: <20240121180544.8c663977651d2a18291318d5@kernel.org> References: <166981518895.1131462.4693062055762912734.stgit@devnote3> <06cb540e-34ff-4dcd-b936-19d4d14378c9@kernel.org> <20240120170517.5cadbc20@rorschach.local.home> <20240121112852.381ebd7bf37ea6d2236db9f2@kernel.org> <20240121180544.8c663977651d2a18291318d5@kernel.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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: 7bit On Sun, 21 Jan 2024 18:05:44 +0900 Masami Hiramatsu (Google) wrote: > However, if the I-cache entry servives text_poke() and sync_core(), this > problem may happen. > The text_poke() flushes TLB but for the local (!global) PTE, and sync_core() > just serialize (!= cache flushing?). Thus the other CPUs can still see the Yes, the purpose of the IPIs are for cache flushing, including icache. > INT3 after text_poke_sync()? If so, on such CPU, removed INT3 is still > alive on the I-cache and hit it after text_poke_sync(). > This will be a ghost INT3... An interrupt is a full memory barrier and it looks like qemu is not honoring that. Thus the bug is in qemu and not the kernel. -- Steve