Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp700911imm; Wed, 25 Jul 2018 04:51:06 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcLO/YMOJPZSVAgDwUWsqFmUcwTwd0t/K+6X6xf3mFQhuRGv75klUB1zUHVNZjbrPmZ9kcn X-Received: by 2002:a62:4494:: with SMTP id m20-v6mr21712479pfi.205.1532519466393; Wed, 25 Jul 2018 04:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532519466; cv=none; d=google.com; s=arc-20160816; b=ZcQaD0/FA7ODVUJvf3W4m0Jv5pOenaxbJ1zNhTigql08nB3A9WF+SMhFzSmCGwJfJ2 H3+WlPu0vxP/EYKIAXJP8dBkcDjislNq1RDdP9WDCkavsaOINmMaFPy7GnSWWcZ62Lhd PxsK9/oP7/iPtWswqkqX3xi0OoFWqsAW2T2+Zl1y6KTTA/GV8rUI/jCj3hQLnCZKr4o3 dPO6VxAqTwPRkNvG6YNcnxW3poqdiPmQfV03REopx/WK2q5pfIAy04Vyt45E2ei75/cW S3u0DfZBYO5WTbw8d4zJlKSljfFec521qsPdOfMvBtPX3fxiTW4b1ANX6brKpT2QcnyO tBXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=mHUQrwr4sv9r64p5aaihRVnxpSKUuICmzYH4iuPoihQ=; b=ozgcakTuI2/vZaXB574LSsEJ8d3qTPj7TArm1+LyiajfMqJ6ufZWxfaSm6ja5KqhRl lz6tnM6c2cGmIA5hn87Tc4Ky0xtUPA6zSxO8qLrbMxt6p37/YWZRja52CU1GJgv3AUfZ y5JYyg+YTR32nlfE05Xupu0V41O3GWUXP4RrubvUEq0oiqLJW6JGBaRhqwrO5ZvYPTYT 1NaJI3yU0Kiy0vhwN6UUUmk9W9R3QbKrXI1y9X3MCnlYeELBq2yaLyKhtW3Y4wJLAdOT zeNMGbdeMX5ivH9VlzoVnwSbwxL7GNy/2BjAbaFxnxJy4Slxys2DdAw1MZbQ4sW1XbLa 2Iyw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z3-v6si13082644plb.246.2018.07.25.04.50.50; Wed, 25 Jul 2018 04:51:06 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728938AbeGYNBP (ORCPT + 99 others); Wed, 25 Jul 2018 09:01:15 -0400 Received: from foss.arm.com ([217.140.101.70]:37450 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728681AbeGYNBO (ORCPT ); Wed, 25 Jul 2018 09:01:14 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1F2F080D; Wed, 25 Jul 2018 04:49:55 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E4E703F575; Wed, 25 Jul 2018 04:49:54 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id DA0B71AE3B5E; Wed, 25 Jul 2018 12:49:54 +0100 (BST) Date: Wed, 25 Jul 2018 12:49:54 +0100 From: Will Deacon To: Laura Abbott Cc: Alexander Popov , Kees Cook , Mark Rutland , Ard Biesheuvel , kernel-hardening@lists.openwall.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Catalin Marinas , james.morse@arm.com Subject: Re: [PATCHv3 0/2] Stackleak for arm64 Message-ID: <20180725114954.GD30289@arm.com> References: <1531341400-12077-1-git-send-email-alex.popov@linux.com> <20180720214154.2940-1-labbott@redhat.com> <20180724163807.GE25888@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180724163807.GE25888@arm.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Laura, On Tue, Jul 24, 2018 at 05:38:07PM +0100, Will Deacon wrote: > On Fri, Jul 20, 2018 at 02:41:52PM -0700, Laura Abbott wrote: > > This is the version of stackleak for arm64, hopefully ready for queueing > > Thanks. I'll push these into linux-next tomorrow, once I've had a chance > to test my conflict resolution in entry.S. I've run into a couple of issues with this series: 1. I had to install libmpc-dev to get GCC_PLUGINS to appear, otherwise the hostcc check would silently fail. I guess that's a general observation, but it might be nice to print a message about the missing dependencies. 2. It breaks arm64 allmodconfig build. Log below. Please can you take a look at the build failure? Otherwise, the patches look good to me. Cheers, Will --->8 arch/arm64/kernel/sdei.c: In function ‘on_sdei_normal_stack’: arch/arm64/kernel/sdei.c:101:7: error: dereferencing pointer to incomplete type ‘struct stack_info’ info->low = low; ^~ arch/arm64/kernel/sdei.c:103:16: error: ‘STACK_TYPE_SDEI_NORMAL’ undeclared (first use in this function); did you mean ‘SCHED_NORMAL’? info->type = STACK_TYPE_SDEI_NORMAL; ^~~~~~~~~~~~~~~~~~~~~~ SCHED_NORMAL arch/arm64/kernel/sdei.c:103:16: note: each undeclared identifier is reported only once for each function it appears in arch/arm64/kernel/sdei.c: In function ‘on_sdei_critical_stack’: arch/arm64/kernel/sdei.c:121:16: error: ‘STACK_TYPE_SDEI_CRITICAL’ undeclared (first use in this function) info->type = STACK_TYPE_SDEI_CRITICAL; ^~~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kernel/sdei.c: At top level: arch/arm64/kernel/sdei.c:127:6: error: conflicting types for ‘_on_sdei_stack’ bool _on_sdei_stack(unsigned long sp, ^~~~~~~~~~~~~~ In file included from ./include/linux/arm_sdei.h:14:0, from arch/arm64/kernel/sdei.c:5: ./arch/arm64/include/asm/sdei.h:45:6: note: previous declaration of ‘_on_sdei_stack’ was here bool _on_sdei_stack(unsigned long sp, struct stack_info *info); ^~~~~~~~~~~~~~ arch/arm64/kernel/sdei.c: In function ‘_on_sdei_stack’: arch/arm64/kernel/sdei.c:136:33: error: ‘info’ undeclared (first use in this function); did you mean ‘int’? if (on_sdei_critical_stack(sp, info)) ^~~~ int arch/arm64/kernel/sdei.c:131:21: warning: unused variable ‘high’ [-Wunused-variable] unsigned long low, high; ^~~~ arch/arm64/kernel/sdei.c:131:16: warning: unused variable ‘low’ [-Wunused-variable] unsigned long low, high; ^~~ make[1]: *** [arch/arm64/kernel/sdei.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [arch/arm64/kernel] Error 2