From mboxrd@z Thu Jan 1 00:00:00 1970 From: Felix Fietkau Subject: Re: [PATCH 1/3] kallsyms: don't leak address when symbol not found Date: Mon, 18 Dec 2017 10:55:34 +0100 Message-ID: <5b86abe3-2c9d-1396-777d-a5a8f19555ef@nbd.name> References: <1513554812-13014-1-git-send-email-me@tobin.cc> <1513554812-13014-2-git-send-email-me@tobin.cc> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Steven Rostedt , Tycho Andersen , Linus Torvalds , Kees Cook , Andrew Morton , Daniel Borkmann , Masahiro Yamada , Alexei Starovoitov , linux-kernel@vger.kernel.org, Network Development To: "Tobin C. Harding" , kernel-hardening@lists.openwall.com Return-path: In-Reply-To: <1513554812-13014-2-git-send-email-me@tobin.cc> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On 2017-12-18 00:53, Tobin C. Harding wrote: > Currently if kallsyms_lookup() fails to find the symbol then the address > is printed. This potentially leaks sensitive information. Instead of > printing the address we can return an error, giving the calling code the > option to print the address or print some sanitized message. > > Return error instead of printing address to argument buffer. Leave > buffer in a sane state. > > Signed-off-by: Tobin C. Harding I think there should be a way to keep the old behavior for debugging. - Felix