Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2022421lqo; Mon, 13 May 2024 05:59:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWK0fB3gozT0iYO1HmNTVhGolkVAtsdUm/VQYbaKYgjHb9aO233BPKb4G+8muD+MKFmKAnk9dD7Tm2hTQ3fql1gsswteKA6UBRq9HcFyg== X-Google-Smtp-Source: AGHT+IHwd6atsSda6J3Cq51SBda4lXkipIZR102oqiK/guiEsKpPPwqVJ5mWqxuiIU/ZjLgVb7f8 X-Received: by 2002:a17:906:ef01:b0:a5a:3da6:7712 with SMTP id a640c23a62f3a-a5a3da67767mr596985366b.71.1715605172187; Mon, 13 May 2024 05:59:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715605172; cv=pass; d=google.com; s=arc-20160816; b=C7SYLUerI/WzyL5yjPIDc4bioN76xHMYl7d+C8d8gLA5RLRxXVGA1OWkxN+g9DGby7 h2n4t77a3mNLuF//aPi4Yz7Ey5YnGBMs4u5Ptb21Npjbuf697FRyk2AAn1+iW8X3IYYj Ptbu7ng7aUPxC1faBi9gE5HSXWENID0/MEAYEz6tpy8zjrh3o230/pf83s1kcGLBiqdy bDT5rWKADIhc6dJ1RDnLqH1s6Qg+gOSkPwDOW6aRxQVBG2vAI0a2G4z9E3vb74OnzUEB rvmd2MRopbVbqL//NkuP85kSjOKWX/o5rqLMyuNmnqs70cYrHc4xwMxah2V00fbcrBSh 30DA== 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; bh=0yjd/sb4uh3W+XLlUFtH7oE6+l6oTatynFqvAd22PdU=; fh=XMQFYC5slOrhTlf+kYuxMdaliN4UORNAphyVWlu7CKk=; b=rYDHG12ntAQVr37hNaXS54cAYDdywq0bvTiQAkZzaOX6rE0qqkdW+qfA7KsTUV4blh nAWI27Kp390Z7rVVFWKDi6KF31nfIPx/XJKIijcloJaX7FYCLi78gbQwJAyr3Mosr2yI qOhCA52dovVXssDIwFuWHe9UGnAVi112QRKw/ZlW7WiKQUJIk2+qeH7UWOqkM/Vg/n77 RWGmcCXdIhoRvDCk1ioxg9CUwAGKXtCPMJmYZ/wtXD+WB5qefpGs6NFdvqUWv85FWRTM hMHYsvSSyWOKNBrgSN9/EmzVtuuGSTziIFod4ubxzvF3L1Ixddx1MyiBR1ojiEqMot+R QoOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-177598-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177598-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a1797d7d9si495605466b.261.2024.05.13.05.59.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 05:59:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177598-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-177598-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177598-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 am.mirrors.kernel.org (Postfix) with ESMTPS id E6B141F24451 for ; Mon, 13 May 2024 12:59:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5086B1509BD; Mon, 13 May 2024 12:59:21 +0000 (UTC) Received: from frasgout11.his.huawei.com (frasgout11.his.huawei.com [14.137.139.23]) (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 9D5DC1474BC; Mon, 13 May 2024 12:59:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=14.137.139.23 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715605160; cv=none; b=gmB2+ENfnxubeEdb3i9N8KJ5xSWoGpvN//CyX+Bu8hpFTNFUaIyRuR8pOg+inHAsx7P3503QuMt62od9V7e78f/uXI1jLA/fmjq3K4e+D8KOsmrNVtTcj90n3Dz/2BQS0qJoXdEGuoVaVTzdWtrLAN5S2IzJCqgTLhZGohSOt2Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715605160; c=relaxed/simple; bh=0yjd/sb4uh3W+XLlUFtH7oE6+l6oTatynFqvAd22PdU=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=C0+VbnlVznJJXSt1vAHDhj+vM19eJysyS/jUAOLQ69VCwOfFj8ReeT2ZjjHSMPQVaw1IGbleTjusKPopFL+ccCJpgmgPJJBpja54A5+pD135Mo89iUJ/DHdlDMlOMjeVIhXC4V5kGEnK7xIOPNv7i82k1lZMieslbw1jkrendkc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com; spf=pass smtp.mailfrom=huaweicloud.com; arc=none smtp.client-ip=14.137.139.23 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaweicloud.com Received: from mail.maildlp.com (unknown [172.18.186.29]) by frasgout11.his.huawei.com (SkyGuard) with ESMTP id 4VdJz11Fx4z9v7Hk; Mon, 13 May 2024 20:42:05 +0800 (CST) Received: from mail02.huawei.com (unknown [7.182.16.47]) by mail.maildlp.com (Postfix) with ESMTP id 0518C140555; Mon, 13 May 2024 20:59:02 +0800 (CST) Received: from [127.0.0.1] (unknown [10.204.63.22]) by APP1 (Coremail) with SMTP id LxC2BwD36hOKDkJmEmMYCA--.45732S2; Mon, 13 May 2024 13:59:01 +0100 (CET) Message-ID: Subject: Re: [PATCH] arch/x86/um: Disable UBSAN sanitization From: Roberto Sassu To: Johannes Berg , 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:58:46 +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.44.4-0ubuntu2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-CM-TRANSID:LxC2BwD36hOKDkJmEmMYCA--.45732S2 X-Coremail-Antispam: 1UD129KBjvdXoW7Xr4fXF4xJw48Xry8Zw4DCFg_yoWDGrXEva s2yFW8K39xWF47A39Igr98Janrtr40krn8J34xGFnxtw1kAFWkGa4kArWSvwn5J3W8tF97 u34DtF1rGr1ayjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb7xYFVCjjxCrM7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E6xAIw20E Y4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwV A0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWUJVWUCwA2z4x0Y4vE2Ix0cI8IcVCY1x02 67AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIE14v26r4j6F4UM28EF7xvwVC2z280aVCY1x0267 AKxVW8JVW8Jr1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2 j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7x kEbVWUJVW8JwACjcxG0xvEwIxGrwACI402YVCY1x02628vn2kIc2xKxwCF04k20xvY0x0E wIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E74 80Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0 I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04 k26cxKx2IYs7xG6rWUJVWrZr1UMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIE c7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07UWE__UUUUU= X-CM-SenderInfo: purev21wro2thvvxqx5xdzvxpfor3voofrz/1tbiAQACBF1jj51CKgAAsD 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 al= l. > > > 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? 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. Thanks Roberto