Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp480464rdb; Tue, 23 Jan 2024 05:47:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IESm5F7Tku+Co01WCDfp0F2S0nzi14Yrrf48lURyRuXNTgwpMPkBp3mSoLZqOv+KNk9w3+n X-Received: by 2002:a17:906:b887:b0:a2c:ac43:8e7b with SMTP id hb7-20020a170906b88700b00a2cac438e7bmr93090ejb.91.1706017652216; Tue, 23 Jan 2024 05:47:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706017652; cv=pass; d=google.com; s=arc-20160816; b=MYaygCMlYmVVgvmm5Mqnwz2iEsTJdHmYdLUInGWyTjuhDrjoyGw4y0SQZJqCT3Cc5i GH1IVbX5YR6u3C5WttqafHamDfuWOkJLMqO0E9d4eebO/zHp6kAwHjzT5F/XCuGahuGi 6miZva9ufJ1vnSY5KvRQMH+mMsqPH50CQIxTKc3gvJO80NVhgcgim3dqTrEClZU0bUEx 6Sr/60hpaCLncRdobe1JgtqGcFo06dZ94D4lev0J6ps/rnWBHsW/d0MwRJX88+ifkO+7 rO179uR5/V6X+i90UO9358wg3Cy6D8Q1MAO9e2XA5uDQ7Fb0i6Ssuj1+Ow1j+QCHUwqd m5Mg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=XxcVgVG/VhT2PIwMc/C2JlHJgaV0o1pHJqrPy/42BAw=; fh=tFivOG0bUmoK2EHS9VLmcWeXyo1o+XFqEnPgEFodz0g=; b=YgTkNUFwL/Spk6dfhayrG0BX9yieDIyeHSdjPEi1N9cRbrTvdw18DgtuokKZI7MbPn xV0EmjfqJbd73gJEwBQfMe/RAvCBmKtEW0HZYMCocnQk53BEI851sTthn0gY4k3nt3rX k9DzbsCn5nmT2tiJx9/myqfji9b2x9p6/D2/EfNIT/S3ENBV3KqAAFWYgXyTjyWg7zrc wJKsgDPli8J7rkpPLi4deHXHUVeEiS4MRiEO1SWAuFm9TXBMUs8k8lrSqz3eYJoqiECd BdHT1F4axdW+VYN+HfaF1gXnALcCEKq6BqbkZMlVddJUO32DxTEQ3JYg7cI8K05mSJ3u 4CPg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mWDqq0Ka; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-35401-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35401-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 r20-20020a1709067fd400b00a3065668a7fsi1748098ejs.124.2024.01.23.05.47.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 05:47:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35401-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mWDqq0Ka; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-35401-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35401-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 361671F29233 for ; Tue, 23 Jan 2024 13:46:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 36D0C5733D; Tue, 23 Jan 2024 13:46:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mWDqq0Ka" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5A5465F54F; Tue, 23 Jan 2024 13:46:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706017580; cv=none; b=gsdadTmappqF6OI9Pn1fOK7oAVb5X+hpaHhpo4GHdob1YOL7xz+AMyl1pDHKJ0kk61fKL8J9eoNmhUjLl//Yz9Lh2iAOdllqK4yUyoi2IAAblgDYSjzsA2f6xDyxDwVhhEZu9CbT40ZgVs2SvqyEPlTKBrG1j+oi8NIduZzIUTg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706017580; c=relaxed/simple; bh=HSbamuBevB4x3A9iN39lYXYaJn9eSzQgr6SOU7Zv/WM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=R9SEGBXtAGJkEGRQ+NDPqE7dUxHSsqtk0TKArsWVCjwNtj5+Qz0ht5yM/L6Ml2anCIIRW5OwUtsQE7wZ23nCMn+mO3iwh6vc5mPVWsNu1doJAO3mDdSwApZE3LtDoto/Ng2L7PAftu8i82XA/Ru1PQPBxNQCNIGT5L3ioYtGdt0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mWDqq0Ka; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1758C43601; Tue, 23 Jan 2024 13:46:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706017579; bh=HSbamuBevB4x3A9iN39lYXYaJn9eSzQgr6SOU7Zv/WM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=mWDqq0KaBaD1rKizM43mJuW1kUj+H3jBzBF2zu4kbtjjKUYa9ZoJsmkdyp6NTF8RL xfFLo8KZVhLkJg6bJl1+uxM1Swb8np87+uWHZNBD0WFUqGCFBLNlxvyE6EZ0HCpqWk DxdnfTogAgrPTnQmWaQ1yWz9k1YfItNoxVrWsxrubtu/hxPU9uZX9O2tTpvysDb7HV p59VlVqcFrwhRmnT7D5boacA+AhQx9Qe7sn3RWTUa7cjYgNLbG0FVitfQuEBnqeAwa yGz/43PhndOsjst9Grap296VW74/iifsN1FzDcG6dyqunA1xIyK1AFIPFsc3sosQyw B4SHV/b7/lmoQ== Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2cdfa8e69b5so47671591fa.0; Tue, 23 Jan 2024 05:46:19 -0800 (PST) X-Gm-Message-State: AOJu0YwkQoKwi+n2ga7reLh76KLVAG++stDiu8Hs8g3sBOEc2+5Ddx7q SDE/IlNDh36bk6tNqXW5hwuNfTuiOhBNF8KYXRbcF9O2otpUK8aQdDaltiUtvKID1MRTwT9H2IY l8UdLLYozhdtN/j/Cr/1gXLXBhI0= X-Received: by 2002:a2e:9c42:0:b0:2cd:6c0a:1882 with SMTP id t2-20020a2e9c42000000b002cd6c0a1882mr1760036ljj.85.1706017578067; Tue, 23 Jan 2024 05:46:18 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240123011211.work.227-kees@kernel.org> In-Reply-To: <20240123011211.work.227-kees@kernel.org> From: Ard Biesheuvel Date: Tue, 23 Jan 2024 14:46:07 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ARM: fault: Add "cut here" line for prefetch aborts To: Kees Cook Cc: "Russell King (Oracle)" , Wang Kefeng , Ben Hutchings , linux-arm-kernel@lists.infradead.org, Russell King , Hugh Dickins , Andrew Morton , linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Tue, 23 Jan 2024 at 02:12, Kees Cook wrote: > > The common pattern in arm is to emit a "8<--- cut here ---" line for > faults, but it was missing for do_PrefetchAbort(). Add it. > > Cc: "Russell King (Oracle)" > Cc: Ard Biesheuvel > Cc: Wang Kefeng > Cc: Ben Hutchings > Cc: linux-arm-kernel@lists.infradead.org > Signed-off-by: Kees Cook Acked-by: Ard Biesheuvel > --- > arch/arm/mm/fault.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c > index e96fb40b9cc3..e804432e905e 100644 > --- a/arch/arm/mm/fault.c > +++ b/arch/arm/mm/fault.c > @@ -586,6 +586,7 @@ do_PrefetchAbort(unsigned long addr, unsigned int ifsr, struct pt_regs *regs) > if (!inf->fn(addr, ifsr | FSR_LNX_PF, regs)) > return; > > + pr_alert("8<--- cut here ---\n"); > pr_alert("Unhandled prefetch abort: %s (0x%03x) at 0x%08lx\n", > inf->name, ifsr, addr); > > -- > 2.34.1 >