Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2030637lqo; Mon, 13 May 2024 06:09:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUSwOtdwpSi7K4G36ZQJS3QG++rNh6BUdUnrMd2Y+cS2dZtmfePRADakykMf6BcQHEFJ0fJHlWyl6OvMLzYKRyv/MwXNqhqKV8EIiJ6yQ== X-Google-Smtp-Source: AGHT+IGRRJHYWpQsTjbIriZkAku2D2hINAIDhnFZV6JMqCa7V7Yb7SPwXlv417bpbdPek2OMvCme X-Received: by 2002:a05:620a:4607:b0:792:c2ce:2980 with SMTP id af79cd13be357-792c7577920mr1322490985a.16.1715605751375; Mon, 13 May 2024 06:09:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715605751; cv=pass; d=google.com; s=arc-20160816; b=GMcy9OhdV99kPPPNXWXrX/DoioFj3MfMzko877j8SxQGdlHPLElV6FHTjevxoIAtvl c5v3pnOAmmoOqDe3V3rDXYftqUhmt3J2jBEzTX1NqLzsoI/d7OUqpI9hiArwKSdHme5w QrlQTAmcQsb2mylfvd42LoU4u6gPLPjYMgR3L/QYHMvHG0/IS3qtGsb74SevsgjKZdTn jd9GVDvNm3WPDoe5Q7IHODTEmoeb5N2dPLqjw2/NWPF2c48bmTOpjdnjTVMjelubXEjS VMb725ObK/UYB+NJccHIpVqVUnuB30tRLrQYZJKmT0lcXSiU/2da5CcSvTGUqSScMRuI u7rA== 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=zoSxVBCVN+gkwt4Gp0eaYQXVfaorf0WQt7DhqdHnm2c=; fh=hn+qAubgpoGPoQeks2ysE9HeCKKfk9iy2R0XqPT/dIk=; b=opoCb1vt3FxiTDQDWz4aOEh9EC80jE/HM3uHbBWNth6Zp1nks6+tNqyl68/OMAfbV1 XjduERsoi87pTn2Z2lJfTxGDWYplXwY+SoG8ZA+7SzZgpJa063Ar154ceRSgyMOQWgwk ajZs6QtTYKTSEp7ZnaSmQ+5l1Al1DegEm14dAF2uFjqW/C6eTJo4YlnoIGK1d4EuNfER HLqc44F3TeXvRpl9CF7AZZ6Kw5FCGDjqdIO3cySJYq3a9SMjYMw41feKONYo3NuLluh1 pSMq3Omo2zR8tGdVH9/7W4/dxBTniLZ7f8sCxjPqd9SOTGG5RoUvthxgYCo3mRDigwF5 MLPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=flRn3mXZ; 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-177608-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177608-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792dca876casi285659185a.468.2024.05.13.06.09.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 06:09:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177608-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=flRn3mXZ; 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-177608-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177608-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 E65B71C22DB1 for ; Mon, 13 May 2024 13:09:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD0C8152173; Mon, 13 May 2024 13:08:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="flRn3mXZ" 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 38CE6DF6C; Mon, 13 May 2024 13:08:49 +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=1715605731; cv=none; b=MlH1gvueAWKip+cTrmfK1a84+sPpi4Q302TpBxI76xf9CQKgy8F6UGuzc6x69fKZ1NC2H5gAYoKRDQItZra5RcdYEdH66ro4OGv/BXObxMK9dQaaHg17qVFg27zsmMgSFMaPlScBHmJgxbNtVy0afdLYWyKoPVeNAiAnh4Yhmf0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715605731; c=relaxed/simple; bh=zoSxVBCVN+gkwt4Gp0eaYQXVfaorf0WQt7DhqdHnm2c=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=XuoI8sKAyfO4TtSMSO3B9IjT9I4ATzr4Zg+e9mnkaD9k9WzVP8L/mTpGrR1iurTsR0wknp596EArI/y9aDx3QZY9RWUzdDWRYiyBBe6KeeJP5ZucirplaIsC86DUHUdYynHr8IG9U600HYeFITThzxDSQVNZNjT0PDEUa9fmFP8= 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=flRn3mXZ; 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=zoSxVBCVN+gkwt4Gp0eaYQXVfaorf0WQt7DhqdHnm2c=; t=1715605729; x=1716815329; b=flRn3mXZiejYyJXcHhi6iCknEDNovmuCCT9UeWelz/lZF5h H29WY6QKlt/mYp400YZbS8+tyV/y/+GtqrSV4jQ1eC0xgJ9G8uKpRJFe6tsryf7WWaQh4saapqWr8 OUv+ZxLJH2L+Zb4K9AZ6zaCmLms0aasIgvE2LcEmZ3semzjPT8KzaVT3YZ+hRZkXL0uqyxNGlQqHM N4e2zhWvfclmRw97KKAfEZyNzWhkj3E7t8BbLuGz32nQ0bBN5khO9LvFMP62ncdEpwrIn6DOJkjsL LZZ6lYri1masynJFV2FkVv1SDG6WXi+vKP4mEIWfumR3sdbV3ZrJn+C+joYr6uqw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1s6VPs-00000002HwD-0hyI; Mon, 13 May 2024 15:08:32 +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 15:08:30 +0200 In-Reply-To: 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:58 +0200, Roberto Sassu wrote: > On Mon, 2024-05-13 at 14:52 +0200, Johannes Berg wrote: > > 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. > >=20 > > 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? >=20 > Ok, I guess the right word is instrumentation (got it from commit > d4be85d068b44). And the reason is that the vDSO is executing in user > space. Will fix it. No, UBSAN is fine, but you're only disabling it for the vDSO :) The commit message doesn't even mention the vDSO though. johannes