Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5714791rwb; Tue, 22 Nov 2022 04:05:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf7nu9MEQi0aalFoogGsueab1ekM2YJlIg3/YnETkMA67kkNFyh3ZAmZlrRB5NPTih1hl5U7 X-Received: by 2002:a63:fa44:0:b0:476:d169:30ea with SMTP id g4-20020a63fa44000000b00476d16930eamr3366507pgk.474.1669118717516; Tue, 22 Nov 2022 04:05:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669118717; cv=none; d=google.com; s=arc-20160816; b=A1WvQgDpcQpCxA7LkDRWzjRNySLVofIJjJZ5ZgcxfOdZQLjxwYHtzXJk7TF5BT+7pe /BQNAYVlR2kr1XklQuzfDlUgMyJ3sWRKYzZJQ96Czvk28rZBDEjd7OBnkogk+2fpM0gy /G1Gv5NuK1TeSLtXL/C+FjMYfVkQVbXCeyjd8sMxUZJZJR4i7Dotmc9aDD2uC3+x0cd5 JdbE+peN6WUnniogkR2g5veNVFdu9ox1TxpO6V6XS029MIZFPQOY9J3D1Vxk8B6Xd3ti qamCWDuBOwA4DcFM24FffnWAaddrU1doD55uEd4LUMc+MPm9RjvcDatvgLwe9p0fgst9 DSTQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=gi2WlP5Zdwk8PRGKzYD5z08u+9dLExeKMbf/xGGfE+4=; b=WlyM9SknPUQJEEfmesEO9ahFzA04gM1nKgC2JO3HwxNhPtKx2xOqR5tcXYgZbgnrs2 4FbKCB15Q8K+cJ2Y4CapsQD3KnGHsRF32WzKANJ7v1sPQWLXTNLinBfFTYq3ac2CJ0Jd zd1RJ8JLrDtlXT+lgf2JG2KeiDzn9cyIvnOIigYjhnXphtzxS1WUrF4Y4A5LOA01UJXa DO+hlgjRFYwZ2hyuyFKAIdfQicw3nsq84aetzfKEZsaViGXjQzwYsa3HhJDUX9YBZTBn DCzznIGBgqdklYKDktzUh6jO+h9YhUQtQhryJPq8v7Xo+IByxfK4w1ou5/dn2moq6BH6 mWyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ispras.ru header.s=default header.b=SdIP03hT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ispras.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c127-20020a624e85000000b00541c0da3083si12906536pfb.302.2022.11.22.04.05.00; Tue, 22 Nov 2022 04:05:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ispras.ru header.s=default header.b=SdIP03hT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ispras.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233332AbiKVLTD (ORCPT + 90 others); Tue, 22 Nov 2022 06:19:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbiKVLRf (ORCPT ); Tue, 22 Nov 2022 06:17:35 -0500 Received: from mail.ispras.ru (mail.ispras.ru [83.149.199.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 537CD6069E; Tue, 22 Nov 2022 03:14:50 -0800 (PST) Received: from localhost.localdomain (unknown [83.149.199.65]) by mail.ispras.ru (Postfix) with ESMTPSA id 5DD6140737D3; Tue, 22 Nov 2022 11:14:46 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 mail.ispras.ru 5DD6140737D3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ispras.ru; s=default; t=1669115686; bh=gi2WlP5Zdwk8PRGKzYD5z08u+9dLExeKMbf/xGGfE+4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SdIP03hTfI1NPSEvLMieLadei3nHwxitjzhDFs1oysvYyePn46+906Ot4745cHGst IaGVBW2lNi1wB8XP7f7X/4a8NaCKlORCVX6e8y9GH6kgsYYfn/+TiGmeNgYRGzloyw 6WqHplq1pX/a8Vnb8HXX/mktbJo0UxhQ4BuNZlGI= From: Evgeniy Baskov To: Ard Biesheuvel Cc: Peter Jones , Borislav Petkov , Andy Lutomirski , Dave Hansen , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Alexey Khoroshilov , "Limonciello, Mario" , joeyli , lvc-project@linuxtesting.org, x86@kernel.org, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: [PATCH v3 24/24] efi/libstub: Make memory protection warnings include newlines Date: Tue, 22 Nov 2022 14:12:33 +0300 Message-Id: <0bcea49ef39c76f84ee9a79976c91aa6e94080fa.1668958803.git.baskov@ispras.ru> X-Mailer: git-send-email 2.37.4 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peter Jones efi_warn() doesn't put newlines on messages, and that makes reading warnings without newlines hard to do. Signed-off-by: Peter Jones --- drivers/firmware/efi/libstub/mem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/efi/libstub/mem.c b/drivers/firmware/efi/libstub/mem.c index 35acec241dd3..d10996e4eb01 100644 --- a/drivers/firmware/efi/libstub/mem.c +++ b/drivers/firmware/efi/libstub/mem.c @@ -294,7 +294,7 @@ efi_status_t efi_adjust_memory_range_protection(unsigned long start, rounded_end - rounded_start, attr_clear); if (status != EFI_SUCCESS) { - efi_warn("Failed to clear memory attributes at [%08lx,%08lx]: %lx", + efi_warn("Failed to clear memory attributes at [%08lx,%08lx]: %lx\n", (unsigned long)rounded_start, (unsigned long)rounded_end, status); @@ -307,7 +307,7 @@ efi_status_t efi_adjust_memory_range_protection(unsigned long start, rounded_end - rounded_start, attributes); if (status != EFI_SUCCESS) { - efi_warn("Failed to set memory attributes at [%08lx,%08lx]: %lx", + efi_warn("Failed to set memory attributes at [%08lx,%08lx]: %lx\n", (unsigned long)rounded_start, (unsigned long)rounded_end, status); -- 2.37.4