Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp712280pxv; Thu, 15 Jul 2021 14:10:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxd5LdnLKcfKHxJ1+XgF4fB4fdyGBMeR/BT77EFe5afMihICwGhXY2NI4ueLEiU/rb4i9d5 X-Received: by 2002:a05:6402:2317:: with SMTP id l23mr9753033eda.265.1626383438442; Thu, 15 Jul 2021 14:10:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626383438; cv=none; d=google.com; s=arc-20160816; b=uvzfeSEu1XbA53WmCGOcqB59dsI2a0qANFzwqgMyqjjl4rqcvsUFGML3Kdln4oS5Ii i2ttLdoVraaU83MjU+Z8Kd80u6rELmgytll4Kty9NmKjiVEVuegJn4eey+WxEYBNQypQ 8S8V4jGbzU+fHSMY7ppuJpy7FsjKZNoXD5bLhOxVYkEQOWFgnRlhp03kXMjKTjof62yD BAiaDzQUlIo6vVg8uEqbqEqhsDmsFZitHTVGCllLezEqFYvYV3uAkLOPoRMTZqq5SQNF kMYk/Jm2o8V4FQ1i8vLyUDbRa7ae08u1UTnZyLz/ztcF7YTGcHxQGQdIf1HoncutBgU8 QlJA== 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=2nrLaVO6NQF6KL4W0o7KFAFJIzb0qZ9UsQmJeXsx/j0=; b=bY14LKmC1YkQc/+zkPAq/LXKGyUau+AvWt/1w0DpgyQS0FFh3zfI7JcOA0BsZYBsHH ppQ0HXZ9QfMSuVk+2p+wPI64TwFnxGDepdJJ1aMb+ZULdmWU56VX2wwkBUvq2+VNaMUt 0NpZKqWTzvovHgTQyxvvuTM47+eIYY/ri4fg10s63iVbSUEhqdZKxgmnHZ9MwSp4gLTv DcQeuNlDJqewvPRVX8Q9F/3ZlQ5akUWgNJE9pSEu0sgUJfPyMMpqdTHG7qxOPAw96N2G +HYCawcaSqE9XQpOuzkS6CCji7Qb/APEgdJ3GCh34KSkWXROYR4QHWrn0v42oRj3YD+6 tk2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="SYpy/o7j"; 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 cw28si8384428edb.299.2021.07.15.14.10.13; Thu, 15 Jul 2021 14:10:38 -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="SYpy/o7j"; 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 S243859AbhGOTWb (ORCPT + 99 others); Thu, 15 Jul 2021 15:22:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:39756 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241099AbhGOTFu (ORCPT ); Thu, 15 Jul 2021 15:05:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DA606613EE; Thu, 15 Jul 2021 19:02:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375729; bh=1tqM7/OZJmjCmbVM0r30LOSGKM98unFp0oG6gavf3kY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SYpy/o7jmQBGizibD4x3vUpNPY56ZOlyOSiwBDATpIDgjxtCKcwCFBak6VQP+yXAw 1ZmATqUX8YHfXhtYeMtQx7UkX67kyuAbR8yIsWePIuFq2gegA371hfjqS9a99wwB/R nSohljGUEf0elA/320RgQXBH+xT/5urDZiSI/XWA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kees Cook Subject: [PATCH 5.12 204/242] lkdtm/bugs: XFAIL UNALIGNED_LOAD_STORE_WRITE Date: Thu, 15 Jul 2021 20:39:26 +0200 Message-Id: <20210715182629.204663305@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182551.731989182@linuxfoundation.org> References: <20210715182551.731989182@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 @@ -144,6 +144,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)