Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1914315imj; Sun, 10 Feb 2019 13:25:51 -0800 (PST) X-Google-Smtp-Source: AHgI3IZhU2bri/+PVlKjMzQGqAY+vdQwAwEgo8dL/6bBNrbbhIRSYUuc0avdfmjmj9qpclftvB9R X-Received: by 2002:a63:ce45:: with SMTP id r5mr31092868pgi.112.1549833951006; Sun, 10 Feb 2019 13:25:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549833951; cv=none; d=google.com; s=arc-20160816; b=Q+gLpjQT6LH/qjWlrW1CQGq5gox2XlD45ftD71Xg8QtL8TAWR3RPMwPBzCUNXFIDkI YvgpRalVWXJKBQx9R9Prn7xOiD4KPwS/naQ+JO3DKGa76yg5pZsBILx72ajupKvccSnj pNxy1lIcye7EXdpsm4XaO/0+zXQTM2VwHhS7xSRM7uDpzTR4pyAWTzmpzU5tpcGfoEbC Bj8xDP3VjcJqhQh9HtRSUMqd55NyQ2AZKC+mi/Wvb4/ue6lA/lB9evJU9WAj1gMvj8y4 W8POC0/Sg2MheGjgAwTbiljPoCZQ1wnj2oOKsEEb3TRYavjHz051Iq48t01cCNVeyP/Q R7Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=LJubhYaKeH3c5ujNTnXmAAIho7bNTv6clYBR7bqfXak=; b=r7iURAB6HNR/TsATJHYxsezAavQ6QTbYFRCKGOs5BfIIgi8Dyr3p5p2CRXABa8BKnt bClbCbg+ru/uPB4CQ46k7E93PGoEWDuHq57ZL6IWIZISETXPGXJvAH9gwfOn+HwXCe9k M54ZBTALBBueEK/mqX00waS7v/xPGkY+VFdTnWDQ47Lqxi1+tg8bcad49xqttsB3S+WQ p/sZd+4WHuHGWzKEMelUVZ5SICO9VnCyfZb1179dpaVrIT59AleSYNcC++QQZMrjO/Zo pK+pmHjU3xjHYYfe0m0ViI69ZISkzwpY9oGaVU5tlxODdjTM0CQO3iWlrIlekn6ZV54a hMAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j5si3617931pgq.82.2019.02.10.13.25.35; Sun, 10 Feb 2019 13:25:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726363AbfBJVXt (ORCPT + 99 others); Sun, 10 Feb 2019 16:23:49 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:37383 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbfBJVXs (ORCPT ); Sun, 10 Feb 2019 16:23:48 -0500 Received: from p5492e0d8.dip0.t-ipconnect.de ([84.146.224.216] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gswZm-0001Of-Dt; Sun, 10 Feb 2019 22:23:46 +0100 Date: Sun, 10 Feb 2019 22:23:45 +0100 (CET) From: Thomas Gleixner To: Alexandre Chartre cc: LKML , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Josh Poimboeuf , x86@kernel.org, Peter Zijlstra Subject: Re: [PATCH] x86/alternatives: check int3 breakpoint physical addresses In-Reply-To: <1548428249-8258-1-git-send-email-alexandre.chartre@oracle.com> Message-ID: References: <1548428249-8258-1-git-send-email-alexandre.chartre@oracle.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 25 Jan 2019, Alexandre Chartre wrote: > Note that this issue has been observed and reproduced with a custom kernel > with some code mapped to different virtual addresses and using jump labels > As jump labels use text_poke_bp(), crashes were sometimes observed when > updating jump labels. Rightfully so. text_poke_bp() pokes at the kernels text mapping which is very well defined and unique. Why would you map the same text to different virtual addresses and then use a randomly chosen one to poke at it? Thanks, tglx