Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2019517lqo; Mon, 13 May 2024 05:53:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWIP7hKc4fO//t7Z9FFFIJtKTlg92lxpAeEAIeHxLMTJVbO0Xe+SbR9jvTJvWVEEArQrLCQUpF2s5PjWOETNIio4ENI5uZUlXEfqzmD/g== X-Google-Smtp-Source: AGHT+IEjf/P6GouCeAXxjo9wEBBiPCbD6eU9s4xGJFFOD5hDn7Pt6cLXtFO14J1MEWyKE2sTwyIh X-Received: by 2002:a05:622a:5a15:b0:43b:487:44e9 with SMTP id d75a77b69052e-43dfdbb7d10mr126149471cf.61.1715604804185; Mon, 13 May 2024 05:53:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715604804; cv=pass; d=google.com; s=arc-20160816; b=w3y1ffrVwRHXbV+GHodnMVEsMOJqI17/IHEFuXAuPddaEkqnaTJn4l0/R291jRDEAw zh3jb02z02jrDY8gH+BM2HmoTnxyYIfVwQV1tiIsP3zzDym7+/1kCwSEctmOhjX4v3Ib dJ9h+E7K/7uAS+B/F8rV9Ify2KiCZldz7yvGLJvvypTTisyNdbaKbX7fFY8pf5ZzNj7k mFSeeMpA9nQILgu8VtwxTGelzRwnsLq9ad5BrO2rt63QjbWHjzpw53y9NbNcmwHpa3+B fcBfW1Ts5CsYivU6Wr2yHxRkLdralcGa25Y3Mw8rZv1TXoelNhc3UAgkKx6EL6hJABfq B8/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=8bkkbkRkMtHeGtx/q1XYfdnXfjo5YYKtbt2tSjRiBYo=; fh=hn+qAubgpoGPoQeks2ysE9HeCKKfk9iy2R0XqPT/dIk=; b=wJlfGURz9ZSUHgRCaXLHnNbhMiGW94EpwI6x/+y2FgMohTQPOEFtiCJi5kiLLhiYLh w2vtQPQTOZkMDGUykaeSR/A172S2XDEjh2iy1O1R70gVQBC6+daWOHlbdETphNv3UhpJ dKT+0SZ8yXf+MuC8Nn3QOwQpn9JHzmEJo8h7vZJmq/Qu/m2zXY0NLPpB5tDpHeW8H2yh OZD2IoJMx/ZzC7nuQ2w83giXe3XlAatz9zia2OQV2EW1lGqvNdpSZFQvexhl0+V1P7ja KSguOhmE7emFUmtcYzrdGOnJnBXGQDemLydzR83A1O3UWmMDFg7A3GgM3WlLoPLYjsgd j7Nw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=tIPcgE+l; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-kernel+bounces-177584-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177584-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df56ed061si95366361cf.788.2024.05.13.05.53.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 05:53:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177584-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=tIPcgE+l; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-kernel+bounces-177584-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177584-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E1FD61C22D8A for ; Mon, 13 May 2024 12:53:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5CBC215099B; Mon, 13 May 2024 12:53:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="tIPcgE+l" Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (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 0DED314C5A3; Mon, 13 May 2024 12:53:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715604797; cv=none; b=tZ8vv24gSKQMfGzExoreBmy/txjyuhcaGsMFXAEu8p4ZSgto0Np7DgdTPoYr0ZeXZ+et5nlY5PV3dHfZGKHAs6EpBCLhEuDbys211HCqybuKtSuxagS9O70DHnBfE6Y+T/nYLq2Z04pGIKjkKAvn1S2xGehrh6bDgG6dzSy9lA0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715604797; c=relaxed/simple; bh=8bkkbkRkMtHeGtx/q1XYfdnXfjo5YYKtbt2tSjRiBYo=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=Q2tKykPBhb2SQ7w1C+++8I+cIFhJDZSrVFy3707g2OtEagvpXm3L4eK87aa26mdtj2zERcb+uEGhOm/IM3DYU4IsK19ip9zgXFdOt5hCucZzxsDKvdN+i9icAnSBSvr3FftBkNvd+doQICWnCEdvGMx85grBzr4GyV+0Fc4Sso0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=tIPcgE+l; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=8bkkbkRkMtHeGtx/q1XYfdnXfjo5YYKtbt2tSjRiBYo=; t=1715604796; x=1716814396; b=tIPcgE+llQTThOuMOnayQFnJgv93Wyr/m3thMFFaf/l6mZ1 KA5ie0be39IgSF3hxKROFtLr6LxtKWjwJSmN9jrOQ82duhDstfRxQs6VwbK2VoqP6iFT9mwgL8pBo bSpUrCYsSx+cHae1N5sgXeeujfmeBnaykhI8fpRUkCk6Y40nLVcmBhzAEMPa05YOFDhd26Xg5Ag2q AXYixoMCZ04+KzatReLMHpB/QqHLfCPSfrPkg5m1emp9gcow9JYh2R+Dh9v1PJmQ8tFZRoPdQK2dQ 84hUj+EJOjcMAbfCUiJcxjE0EOv+PJyXj73PfGapo8TxEOvpNcKBJ0iifxLvlaYQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1s6VAo-00000002HEm-0LUs; Mon, 13 May 2024 14:52:58 +0200 Message-ID: Subject: Re: [PATCH] arch/x86/um: Disable UBSAN sanitization From: Johannes Berg To: Roberto Sassu , richard@nod.at, anton.ivanov@cambridgegreys.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com Cc: x86@kernel.org, linux-um@lists.infradead.org, linux-kernel@vger.kernel.org, zohar@linux.ibm.com, linux-integrity@vger.kernel.org, Roberto Sassu Date: Mon, 13 May 2024 14:52:56 +0200 In-Reply-To: <096121b3e74a7971b5e6a3d77ca8889380de1885.camel@huaweicloud.com> References: <20240513122754.1282833-1-roberto.sassu@huaweicloud.com> <096121b3e74a7971b5e6a3d77ca8889380de1885.camel@huaweicloud.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned On Mon, 2024-05-13 at 14:42 +0200, Roberto Sassu wrote: > On Mon, 2024-05-13 at 14:29 +0200, Johannes Berg wrote: > > On Mon, 2024-05-13 at 14:27 +0200, Roberto Sassu wrote: > > > From: Roberto Sassu > > >=20 > > > Disable UBSAN sanitization on UML, since UML does not support it. > > >=20 > >=20 > > Luckily, that isn't actually true, nor does it actually do this at all. > > Please fix the commit message. >=20 > Thanks, I was actually wondering. I based that statement based on > ARCH_HAS_UBSAN=3Dn. >=20 > Any other solution would be ok. Not sure I get it. What you're doing in the patch is perfectly fine and almost certainly required, but you're definitely not disabling UBSAN on ARCH=3Dum as you described in the commit message? johannes