Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp634336pxv; Thu, 15 Jul 2021 12:04:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzI80KelrQEmpZgG18wsb+4QO1W5YyNB97xkBmOWkZ0p8fX7M21k2VJxmF5yICVWybING9p X-Received: by 2002:a05:6e02:525:: with SMTP id h5mr3476332ils.205.1626375856840; Thu, 15 Jul 2021 12:04:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626375856; cv=none; d=google.com; s=arc-20160816; b=EfGp3Bs92xdyEe7+5jvY7bHb1dS2rti1Rps/aqF8987+XlzSKkKQBBZQrRlJir8h6r rgp9fzZocDGh84KFUCstY7rNuSw2uTwOtLtchtZ6H7Da8kkaKFEUx0T26wx3pilc7avh uijvwAlCiaJGt2k78x14SGLcFwJznINE5aXmQwE3he+l3DJuYUBZ0oCCt17dh5NHFXa8 MVEZPP8b2HY8m/qHF26HhWmkXvusHbpodvhC43JyJBKpCY/Ytx3I8mt5N8xoyL4gruhS s1S+1ymTv44QfYYp016AVUBRO1EH4QYWlWmfw1LZDz3pVNgAjK3/aTyXyCx0xWJV7Brj U5pA== 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=KWJjqXpaPyP6bxGQBwA1ky5jwEXXr2SSxSJ6RBADlzt/GRvCi3kIJc9HRReNt/1MRm JSqeij82g1Ibpcfq1XLtONqRmx7jtdENh0BB76z42ThVggyqOQzgXlwyq0G/xiMF9s2W 3iSozdNX/7DFugDxftStJ+e98VbUjV2YPc1ZuHFX17IvR/9G4h30817BDSfKRXL8aeXR cWm0IYRNA+67+XIKHycDOgWLNH5VvOfsEerflpxMilQlycxCSLmWYg5OqGvLFCPntoZT lUYQ0vSCkxLnej/Qg6bvfW0d8eeIi57hRmYHdx/hUAHhyM9M7SeP7ZwuOiRZAL618L4C dZCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CUDP2NIQ; 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 q15si7111577ile.132.2021.07.15.12.04.02; Thu, 15 Jul 2021 12:04:16 -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=CUDP2NIQ; 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 S239383AbhGOTEk (ORCPT + 99 others); Thu, 15 Jul 2021 15:04:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:60164 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241424AbhGOSzj (ORCPT ); Thu, 15 Jul 2021 14:55:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9D75D613D7; Thu, 15 Jul 2021 18:52:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375165; bh=1tqM7/OZJmjCmbVM0r30LOSGKM98unFp0oG6gavf3kY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CUDP2NIQ4MmCr0JUAZttqcXnbVw60KoKCdSKGXMwUP/m45BiokFwsc1fiRKdsf9ty bL2GqXXCcORn5dsAPmhKVqz0NgetDmITCgsWzv1Bz6e6G+rvB5aAo9h1xUZXbN2HLV Q8tB/9mII/IhNJ3uM4qrpOLGkcT4okEF5cNlKNMo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kees Cook Subject: [PATCH 5.10 185/215] lkdtm/bugs: XFAIL UNALIGNED_LOAD_STORE_WRITE Date: Thu, 15 Jul 2021 20:39:17 +0200 Message-Id: <20210715182631.973798667@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182558.381078833@linuxfoundation.org> References: <20210715182558.381078833@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)