Received: by 10.192.165.148 with SMTP id m20csp1069617imm; Wed, 2 May 2018 13:34:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqWSe8dsE+W7Dj4mrmkhRaTKDOaxprhKfECesFPKcQv9TPdNffL/aJy453nVzP+2NaF0acW X-Received: by 2002:a17:902:7c18:: with SMTP id x24-v6mr6241422pll.173.1525293266330; Wed, 02 May 2018 13:34:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525293266; cv=none; d=google.com; s=arc-20160816; b=aUdF3b6/Ij7bucjaXUe2KMwWAdg9akgBixX8acFAtHcGhF/QNEbkcqf6H2si/sEVlo IybV3T+u6Diw5Se880kgZvdOTtG4TU+ls9um+PUvJLpmcv0Z+B/o+Gp18Dg+aSYjDrRe WUVT24g56JffnqbojXhzQOtzxkMAnylIgvWf0uEQ95/kUbRSrOjA9aNWAHkCqpEsFSqb N3pPCvHV7jcGbky+YfneiWuuKwrXAJBpWP8cXbzAPpBvYiEVuDYSnVpLwHaaYKBiKdT9 fJSGGvpuMydZcYc4OAFdH2l9+/64QjiJWGfhwQH/DkxQC1MQolgtgEiND8yVXVQxHS0F 03Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:message-id:date:subject:cc:to :from:arc-authentication-results; bh=DsWYgrOadecsHOgLAQ1fsX8NlnmWugxlbHAsw4ySI08=; b=g45+C8LvaczJ8ML2WiyQzeGCTVIouMYXe+pAeDy7O5cV1r8BhEP687PVb9ExCL7OA3 SK3b+NcdYM49w1CZZKm5lThQ5a6HW2v39dvDCKAaSTI+MQbAqH7/CzK0cSIiJ3Dc3HfM 0CTPG/eE7aGJ/GNvRZUQUVuk0c0ebAwGE3vNDqcVkw/o5WB+WvlQso8oChrYB5LvmOo0 gM0kdV6IU95BzQCNYkfAH5/uwZKAgw/qeHl9TYvr+DPrmyqPn794FGCM3e3Am4805dU6 klILDSMCBqaBZ6ufLNIAUKltKVu01WpkQD+6dkE+dhJDoBlJgM8TQORiJgtQjPWw8Pqr zzKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u13-v6si976373plq.161.2018.05.02.13.34.12; Wed, 02 May 2018 13:34:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751272AbeEBUdg (ORCPT + 99 others); Wed, 2 May 2018 16:33:36 -0400 Received: from mail-ot0-f194.google.com ([74.125.82.194]:45073 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751111AbeEBUdc (ORCPT ); Wed, 2 May 2018 16:33:32 -0400 Received: by mail-ot0-f194.google.com with SMTP id 15-v6so3321885otn.12 for ; Wed, 02 May 2018 13:33:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to; bh=DsWYgrOadecsHOgLAQ1fsX8NlnmWugxlbHAsw4ySI08=; b=VLEYzC9vVyT7AGjsec+rA326h1VdV17YTB6EMEY0uE2cuid3cL9y7xC/me0Ni1ZUjN pb4TNbUHob7XeJlbIXpX5ZiTR3VzQSXeVXDjD4z/tRbF8IdStKwQ8nML1zC5YnMYrU7A VyRx8iHzzkPZVleQeLoMc7AFC3SPqcJM6o9PnJRfl/P/ZBX7kN3sm+p9dGt4PPHjHfOe t/nuEdIKhi2turYACAT/j4jhPRjCM1USEa4Iv1kCJwLIz2UFE+qjrG3E+0JvmZmtFEov Plth1rOQfCKEBw5n71QV6rOkjSM902HufscaG9eIMpDADL9W8OrN0oylrda2Nif02Zh2 VrJw== X-Gm-Message-State: ALQs6tAyYIfjgdgvQf01pvG0sA+kApwVJmQWEIpZ5gWS7UAQ8U9n+St3 JKM/JEK7llB7Pdpm6jN/siPgTA== X-Received: by 2002:a9d:6059:: with SMTP id v25-v6mr4660976otj.100.1525293211075; Wed, 02 May 2018 13:33:31 -0700 (PDT) Received: from labbott-redhat.redhat.com ([2601:602:9802:a8dc::d2dd]) by smtp.gmail.com with ESMTPSA id v140-v6sm7141762oie.52.2018.05.02.13.33.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 May 2018 13:33:29 -0700 (PDT) From: Laura Abbott To: Alexander Popov , Kees Cook , Mark Rutland , Ard Biesheuvel Cc: Laura Abbott , kernel-hardening@lists.openwall.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] Stackleak for arm64 Date: Wed, 2 May 2018 13:33:24 -0700 Message-Id: <20180502203326.9491-1-labbott@redhat.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <1523024546-6150-1-git-send-email-alex.popov@linux.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an extension of the arm64 stackleak plugin, based on top of the v11 version for x86. The biggest change from the previous version is the conversion from assembly to C. It's mostly taken straight from the x86 version modulo a few cleanups and seems to work just fine. If this gets Acks, I'd like Kees to start carrying in his tree for -next. Laura Abbott (2): stackleak: Update for arm64 arm64: Clear the stack arch/arm64/Kconfig | 1 + arch/arm64/include/asm/processor.h | 6 ++++ arch/arm64/kernel/Makefile | 3 ++ arch/arm64/kernel/entry.S | 6 ++++ arch/arm64/kernel/erase.c | 55 ++++++++++++++++++++++++++++++++++ arch/arm64/kernel/process.c | 16 ++++++++++ drivers/firmware/efi/libstub/Makefile | 3 +- scripts/Makefile.gcc-plugins | 5 +++- scripts/gcc-plugins/stackleak_plugin.c | 4 +++ 9 files changed, 97 insertions(+), 2 deletions(-) create mode 100644 arch/arm64/kernel/erase.c -- 2.14.3