Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp659769pxv; Thu, 15 Jul 2021 12:44:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwDd3KZAHrzauQ6+7ngAZJpXktaEpawwYA5IaWDsYoOKlQiQNB1y4IsFfmqBpm5VSghYVJ X-Received: by 2002:a17:907:e87:: with SMTP id ho7mr7355540ejc.184.1626378295469; Thu, 15 Jul 2021 12:44:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626378295; cv=none; d=google.com; s=arc-20160816; b=fpEN8iIwQqbZ4iNsbkOKUiEf00omJupeQy9V9EM9YvaO5bgseEFHg8zB1OLcHn9toq DvsMl1DOPFecSaDEF4ETwU9GQevUFggRi9eIScDLxtgaqaN/Xp72P+bMrBThTEW1oc1R wz+yAjca42Mu+l4dU2zm/OxapSRnkCHTJlwwnshjCsi6KC1b7waYtExM6XwalrOIf2mv gfdy85Ze9ljMrXZ5Oc8nydmAW2UM8my8sMEojY9G2NZ7CXUivut+3YUZRtwXx0YSw0Df BfaG9erQElPui9U+3K0Qcl0BJxkx6R0GTQSw/MSTvTYamyHStwXoJr2c6/gY7FT+3lkC 0zrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9qmZMqNMWdHJmVL/ObgA0PA28aut6owGxcNR0qF2xVI=; b=D3xDZunyeOmZAYGIw/MeJqfsBnOy235pZ68Y1v1ngphWFoUgJ6fXh8VG+icEnBbHhl ZGpWsH80voQGBzSyi5WqUEsUPmG9DcRCUH3cyy0nppGNPIn9rMZkmaux2mArtgMuyAbf 2KkGoobLoiNs7rV2lB33J5fJeskjzDEnj2eLb4jk0b+DUrmvZ29OBdZqOjqiLFMxBeZT hq3wfmbv7+1qKNuyjbvq9ipzfH+UCxWN649M/lzVi/qe4vSqVBp72usiGPViglmurIg4 lM2EmQA9LMG9m0L5OnL5KjKB7PrYI1yDFnscKo9CbzLUJosebN46RPyIVf//jOjQFB+d +uEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IKwcUG3f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si10012185edi.63.2021.07.15.12.44.32; Thu, 15 Jul 2021 12:44:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IKwcUG3f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243594AbhGOTqU (ORCPT + 99 others); Thu, 15 Jul 2021 15:46:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:50994 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243298AbhGOTQG (ORCPT ); Thu, 15 Jul 2021 15:16:06 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B002F613C0; Thu, 15 Jul 2021 19:12:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626376337; bh=/Xh4/2EnHRcT7GuxdNLXyhEeMEacqY+CT4ddg3qBIxQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IKwcUG3fe7fqdx9ygqhA1CDfTNdV3ucBqSZCnPSuskpTyhysC8IxmXiPnZU/yihqn SItjumPFne4Zae6gECheLTd0VQDuN6N6S32g/8hem7z3cjo/2pIfrN+1ezTFggsUWY tJwaP9a8EWEPe7WUlEU+5ZdcxWxgz9FtoRPrlI74= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kees Cook Subject: [PATCH 5.13 228/266] lkdtm/bugs: XFAIL UNALIGNED_LOAD_STORE_WRITE Date: Thu, 15 Jul 2021 20:39:43 +0200 Message-Id: <20210715182649.403467594@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kees Cook commit a15676ac8f24a9ac5fd881cf17be4be13fa0910a upstream. When built under CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS, this test is expected to fail (i.e. not trip an exception). Fixes: 46d1a0f03d66 ("selftests/lkdtm: Add tests for LKDTM targets") Cc: stable@vger.kernel.org Signed-off-by: Kees Cook Link: https://lore.kernel.org/r/20210623203936.3151093-5-keescook@chromium.org Signed-off-by: Greg Kroah-Hartman --- drivers/misc/lkdtm/bugs.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/misc/lkdtm/bugs.c +++ b/drivers/misc/lkdtm/bugs.c @@ -161,6 +161,9 @@ void lkdtm_UNALIGNED_LOAD_STORE_WRITE(vo if (*p == 0) val = 0x87654321; *p = val; + + if (IS_ENABLED(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS)) + pr_err("XFAIL: arch has CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS\n"); } void lkdtm_SOFTLOCKUP(void)