From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3ACAAC47425 for ; Wed, 30 Sep 2020 13:59:41 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E938820754 for ; Wed, 30 Sep 2020 13:59:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="daEjAXw3"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="tjUAeQaV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E938820754 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=O25ELUZ5W4bhEcP5gBfGiiANlJ+A/Vl3mCv67J8HLzM=; b=daEjAXw3ytng5Jb7qyA+jPzdd edra0PpWNqiuI8pWUFdlbb8eLd0nCL3KxzW2P+7Y7P1NDE+RvNIXIaDw2mURjPdKfkWuKWl12ZeP6 c1uo2oJKBh/yQCKkmhRD4Ja1XcZuGx3Fm1fNu0UtdbbAtE8DfZ623Mclwu8NgebaWHGQKKiQI3kSR bblr4jgmCBnL1f+F9NyDrPdgjBtc1D6l+7uJhLQTeIX+DTkA89HozzcPFnyQXc18MOyvW2B1lCYH1 uYBYtDLg81phe5i2s7VKUFnT4Ln1iQgLhBWmuFa50ld5lGi2KcEcjtg/ePts4QlMvqzfs3NaZUqlw tzpfFUHrQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNccd-0000ci-D7; Wed, 30 Sep 2020 13:58:19 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNcca-0000aj-H3 for linux-arm-kernel@lists.infradead.org; Wed, 30 Sep 2020 13:58:17 +0000 Received: by mail-ej1-x62f.google.com with SMTP id q13so2953493ejo.9 for ; Wed, 30 Sep 2020 06:58:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=48cYY9fCUs7qmGKNVy05KuGWxzPcUKDwzDxzj9tXpmI=; b=tjUAeQaVkXGGcEq5FhfrNYKu62uP/y55LgusVyQo5/NmXn4SLU2cLm+CB/ho9X+cO2 HZF0Khp7EqAVL+UwSiIQjMIfwcPkBE1Dt4HZ78Bzb/lUE9kTqdZGfRoJSxBkIpTfTPnH l/XA0oZyNXWDswzsW4ELzu22M6HRTACOpknMFPfDxo5Fu/Z8Y2tmn8mqOKcLJ0x5sVYH LWbOfPPi1FSFBpN4a7Nlev/OQWjL5JjEIyly2Tt73ucq0E1aNlPwiLSGnLYG79iGD5Qm CrQo0bPXg8MOc7d5dT6mKnstSNaOXjoYUMbFT1rEghjO/5tD4j74MqpsgIJ17A6cF0IZ ViEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=48cYY9fCUs7qmGKNVy05KuGWxzPcUKDwzDxzj9tXpmI=; b=NYbYWDd6znnRuWzJxd8D1gGfbf9EUnx7pn2rBl5lXaZLOAvtwMsL5NEzFwWB888c05 kQjnABqkzz8Ay11BsvWVhEhhdOFEwl18MuDG9xWHJX658pSqOFrH+I1FQTIA/kj+surk DQX4vYnTtLZJ4PtqomK70wYLbqNb3S9T5P+f4IvQY2Oo7nYWwaV1CdOfeg23wWzZENkg +C3sE5pB3R+P4WaAc/pjFZ1VKkmAADD2YFGbCZAUbXhNd96gRcE1TDzYBB1CXZhtLU8s qGieYos4KZYD9tbJgwIptz9Bc0LNWMDfyMRkt1h++2NORFkyv9f/3irfhxatsRkqwKTk 6nrw== X-Gm-Message-State: AOAM531MQYwcjtklCvxLmGSuIQg6o296/CvcTHoGc5HRjBAk9Bgl8JsO FKuG8XNMhhyWyhk0puAavrliAHe2xecJDKJ+Kks= X-Google-Smtp-Source: ABdhPJzo9tGSm9fnGUSk/Gfwh2XahJvhcS5RGsJsYVpEf/U7JjBnHYZ8+MYs9RIZp2ckEem8iRxpOXPvE0v/NVZDZZk= X-Received: by 2002:a17:906:4151:: with SMTP id l17mr3100975ejk.116.1601474293698; Wed, 30 Sep 2020 06:58:13 -0700 (PDT) MIME-Version: 1.0 References: <202009251301.A1FD183582@keescook> <202009251338.D17FB071@keescook> <202009251647.FD8CECD4@keescook> <202009260933.C603CD8@keescook> <202009281248.6F601005CA@keescook> In-Reply-To: <202009281248.6F601005CA@keescook> From: Pintu Agarwal Date: Wed, 30 Sep 2020 19:28:02 +0530 Message-ID: Subject: Re: KASLR support on ARM with Kernel 4.9 and 4.14 To: Kees Cook X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200930_095816_590950_FACD6F1A X-CRM114-Status: GOOD ( 16.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Thomas Garnier , Arnd Bergmann , Ard Biesheuvel , Marc Zyngier , open list , Kernelnewbies , Russell King - ARM Linux , Ard Biesheuvel , Tony Lindgren , nico@linaro.org, Dave Martin , matt@codeblueprint.co.uk, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, 29 Sep 2020 at 01:20, Kees Cook wrote: > Note that I still can't explain what you're seeing. /proc/kallsyms > shouldn't be affected by these patches -- I would expect it to either > report the true value or 00s. > > > I will disable kptr_restrict and check or, I will enable > > CONFIG_DEBUG_CONSOLE_UNHASHED_POINTERS and check. > > I would start with kptr_restrict=0 and see if that changes the contents > of /proc/kallsyms. If it does, then it is the hashing. If it doesn't, > well, we're back to square one. :) Actually in that board, the kptr_restrict=0 already in both case: 4.9 and 4.14 Kernel boards. In another board with 4.14 and kptr_restrict=2, I see that the addresses are 00 always. I further checked that when I enable this config: CONFIG_DEBUG_CONSOLE_UNHASHED_POINTERS, then the addresses are remaining the same in every boot. But this particular config is not present in 4.9 Kernel. So, I think it is controlled using this config. -- Pintu _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel