Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp957516pxb; Wed, 3 Mar 2021 22:30:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxUUV4+lqqulcBvlfzJDnjLZBe7Zd2Ks18j8ahyO6En64KkKyebpFJa8uX4eShVm8S1Ap/ X-Received: by 2002:a17:906:8447:: with SMTP id e7mr2559749ejy.523.1614839400443; Wed, 03 Mar 2021 22:30:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614839400; cv=none; d=google.com; s=arc-20160816; b=UkHZL34oTRVZf9NaN1yzjIjD5e+1G0BwSCLxS7YQZFGuBiYPvAOLDIdyBMVm731bY2 SGhQobfmQiUZM7vr/UxPdt3TzsfZcNl/o4ohTpI5IbR76zFA6l5Gf+R2uy0jjxqiH6fa CBZHKtkcM7/BKoy683xps4dxGbgzL+mOYEyMn+IHBdFX1bretUe/GpN0mQjqj6VAbBMk N4uChcuXhyTsK0UGiUW0bTBKslRKXDEoZRbAgamQbCQzOLRW8xYvGW8YDBHucOp4FmYG CI8swAcsPqcCQcSc1TZPphyn0fsnn28Ko3dIrNyj5A51S5Q0NqdrmAFo0Li5pa4rWYol fGdg== 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:subject:cc:to:from:date; bh=ctnSHbv0r3l7yXypV1YG0pU41HiNJHHeyLaRuBsp9e0=; b=KorCkp1P/f8WtK4dwo16UrOuGFgDU+8WoqXVm2iNwaxxTGiMMS2KNdWnlcDULS3OtU mlwnQS1iYdzPM9xLhzFSJxDW02z1uSXvQ9nhM1QcZYkbsBRogfxsK7BbB7gc9em7ukhi 1wDSzIihgAJpoOhUdFGqQ29EBU0ywDsjeDzFccJnlDYFhRBgnlftPdgVxbN4NdicB5n0 amAPPoSRjiEx+44UI487WY9rWVBAFgWdYiwP4HHUY2M3SCSzqLQXOAegFXzGnX4mUlEh aO4w3oZsRREhIkLnsPRo+lI8l/+tB6KNh1RJWc9sahVnqflLk0Dd2t+S8AyOfQIiOrCl PZZQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk18si8774426edb.178.2021.03.03.22.29.38; Wed, 03 Mar 2021 22:30:00 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1835085AbhCBQ2x (ORCPT + 99 others); Tue, 2 Mar 2021 11:28:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:42770 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573056AbhCBOI5 (ORCPT ); Tue, 2 Mar 2021 09:08:57 -0500 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BACBB6186A; Tue, 2 Mar 2021 14:08:12 +0000 (UTC) Date: Tue, 2 Mar 2021 09:08:11 -0500 From: Steven Rostedt To: Geert Uytterhoeven Cc: Vlastimil Babka , Petr Mladek , Marco Elver , Timur Tabi , Sergey Senozhatsky , Andy Shevchenko , Matthew Wilcox , Andrew Morton , Linus Torvalds , roman.fietze@magna.com, Kees Cook , John Ogness , Akinobu Mita , Alexander Potapenko , Andrey Konovalov , Rasmus Villemoes , Pavel Machek , Tetsuo Handa , Linux Kernel Mailing List , Linux MM Subject: Re: [PATCH 3/3] [v4] lib/vsprintf: no_hash_pointers prints all addresses as unhashed Message-ID: <20210302090811.620ae7d0@gandalf.local.home> In-Reply-To: References: <20210214161348.369023-1-timur@kernel.org> <20210214161348.369023-4-timur@kernel.org> <8893ff08-1e50-316c-f632-cd37be1690d5@suse.cz> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2 Mar 2021 14:49:42 +0100 Geert Uytterhoeven wrote: > > So this is basically a kernel tinyfication issue, right? Is that still pursued > > today? Are there better config options suitable for this than CONFIG_DEBUG_KERNEL? > > As long as I hear about products running Linux on SoCs with 10 MiB of > SRAM, I think the answer is yes. > I'm not immediately aware of a better config option. There are no more > TINY options left, and EXPERT selects DEBUG_KERNEL. Since the trace_printk() uses the same type of notice, I wonder if we could make this into a helper function and just pass in the top part. + pr_warn("**********************************************************\n"); + pr_warn("** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE **\n"); + pr_warn("** **\n"); + pr_warn("** This system shows unhashed kernel memory addresses **\n"); + pr_warn("** via the console, logs, and other interfaces. This **\n"); + pr_warn("** might reduce the security of your system. **\n"); Only the above section is really unique. The rest can be a boiler plate. -- Steve + pr_warn("** **\n"); + pr_warn("** If you see this message and you are not debugging **\n"); + pr_warn("** the kernel, report this immediately to your system **\n"); + pr_warn("** administrator! **\n"); + pr_warn("** **\n"); + pr_warn("** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE **\n"); + pr_warn("**********************************************************\n"); +