Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1928851imu; Thu, 17 Jan 2019 05:42:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN5oh6nID5sPiDdpQx/yKm6wAmR+RCRC/wglhxmy2IKJcsIwjHIP09WQX1dGk+ZLOC69hBX2 X-Received: by 2002:a63:9a09:: with SMTP id o9mr13013460pge.94.1547732551831; Thu, 17 Jan 2019 05:42:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547732551; cv=none; d=google.com; s=arc-20160816; b=XekdN7jiU46b2rLZRdwiWXm9KTll3RHxOOMIOIhij1glynyDdBXkdTs0A82qHwVZo6 7HJcM0CRpmI7tfClfLe097Dlaxx6l5QszycKvy2muxXbqCpFk9vQ5kRTBHRhzaJjEr5U 0nKXScDT3tIpNzdPMWAIor0zDhM3VRN8Flw4Z6HvhI9vrg5F7NTGId28TOEHwR5VIj7E AEVHHZgWUsDzqwl0PJrKTpuJzB96KdWSSVjxYJOJGFw6z3btB5jo70ZIQ0VOvgJ+DmF/ eQIZUMCYwx3Bod54LG2fSzBse3idSAPLu7H5qXJcI0IJb2apKJGmi2xcH0xCL0TPjX+R 6fXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=AQjoHdomPu1/XnHaKylbAJlzWpon/One3HsvhvyuIzM=; b=Am1HSpIhlhNbbH8taxgzL0+S6KaXoja/5Euh8HB4JCxcl0n3CcMzvWDi7G1nGCmMUZ 2CdUHqyqFuYkQ3bY2fB7bsBYoNWQV5/YanKqUUVPEZFz/0bu3uFOo0R1M8vFYZVs1b/W hdjILPpu03BahL9qrUbfoUcWTN7b2eQvbBFtOq4OoHgczi450usg1BLHZO1oaSByUHhr ec8/iUm1QgCuO8FMKRt9pL6KpeG7rvGLl/lqqhxfwRHK0uD/naAvAGf8qaeMjW0LCH+x waRJ1k74FgpuZAI5NjJCrt4q7QQRb68J8j+yxMvBOcoe/F/LadswX0TjpvQQQjv/DROn V6qw== 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 38si1656130pgx.460.2019.01.17.05.42.16; Thu, 17 Jan 2019 05:42:31 -0800 (PST) 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 S1726119AbfAQNjR (ORCPT + 99 others); Thu, 17 Jan 2019 08:39:17 -0500 Received: from ozlabs.org ([203.11.71.1]:43047 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725868AbfAQNjQ (ORCPT ); Thu, 17 Jan 2019 08:39:16 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 43gQCj3VYrz9sBn; Fri, 18 Jan 2019 00:39:13 +1100 (AEDT) From: Michael Ellerman To: Masahiro Yamada , Linux Kbuild mailing list Cc: Ard Biesheuvel , Samuel Holland , Alexey Kardashevskiy , linuxppc-dev , "linux-stable # v4 . 20" , Michal Marek , Linux Kernel Mailing List Subject: Re: [PATCH] kbuild: mark prepare0 as PHONY to fix external module build In-Reply-To: References: <1547536740-1572-1-git-send-email-yamada.masahiro@socionext.com> Date: Fri, 18 Jan 2019 00:39:13 +1100 Message-ID: <87imyn4d4u.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Masahiro Yamada writes: > On Tue, Jan 15, 2019 at 5:07 PM Masahiro Yamada > wrote: >> >> Commit c3ff2a5193fa ("powerpc/32: add stack protector support") >> caused kernel panic on PowerPC if an external module is used with >> CONFIG_STACKPROTECTOR because the 'prepare' target was not executed >> for the external module build. >> >> Commit e07db28eea38 ("kbuild: fix single target build for external >> module") turned it into a build error because the 'prepare' target is >> now executed but the 'prepare0' target is missing for the external >> module build. >> >> External module on arm/arm64 with CONFIG_STACKPROTECTOR_PER_TASK is >> also broken in the same way. >> >> Move 'PHONY += prepare0' to the common place. Make is fine with missing >> rule for phony targets. >> >> I minimize the change so it can be easily backported to 4.20.x >> >> To fix v4.20 for external modules of PowerPC, please backport >> e07db28eea38 ("kbuild: fix single target build for external module"), >> and then this commit. >> >> Link: https://bugzilla.kernel.org/show_bug.cgi?id=201891 >> Fixes: e07db28eea38 ("kbuild: fix single target build for external module") >> Fixes: c3ff2a5193fa ("powerpc/32: add stack protector support") >> Fixes: 189af4657186 ("ARM: smp: add support for per-task stack canaries") >> Fixes: 0a1213fa7432 ("arm64: enable per-task stack canaries") >> Cc: linux-stable # v4.20 >> Reported-by: Samuel Holland >> Reported-by: Alexey Kardashevskiy >> Signed-off-by: Masahiro Yamada >> --- > > Applied to linux-kbuild/fixes. Thanks. cheers