Received: by 10.223.185.116 with SMTP id b49csp797154wrg; Tue, 20 Feb 2018 08:03:06 -0800 (PST) X-Google-Smtp-Source: AH8x225XUXIywqDDBXggcr6/emIVW91VhsU4JVyCD3fGCjP0qV6eVyc7g/IpcQnVJ3jz7BThBPl/ X-Received: by 10.99.133.193 with SMTP id u184mr55205pgd.401.1519142586188; Tue, 20 Feb 2018 08:03:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519142586; cv=none; d=google.com; s=arc-20160816; b=hcosr1lNocoYVRfeUn5HJf9ad8NWnJf04etPKgfSxrqJ8wgw4vV0nuPC7zEew6I04I INVOsYgI0xqgIs1xvlequqSLMjS9iE2ATJb2GHno0kp4IlWl7Y9efHCWJ1+YDw84FxRy bSL+H2TnphThUnwH59QnpePYx+bcDeqZL+1kBUHqsRX6Aes1T0a+VEDNLDTCWWDpBLRf 7nFj/Fq/Fy84o68MmHFd7tFvTHKX06+rpySFBUY1k0QMqbPqEXTJU32QNtklea2JeXlq WZDkuTV+d8oHqv6pDrpal9mk6Rgi9T9TF5724tpWFcBeHQ9+V5XXQRJZgetyYOHmMzVQ t5HQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=sc3JbggwibX74EIHJLzJPjjBEyfVohbRlJGvLlw3cPA=; b=atLFr8P2DfqSE/vFdk4J5fdEvjI+9qfFaTjevsQNr3a4bIWfutdPs5yEmsWPec7kEd Gi7GFxCaKrLeZsDnjACRY3SHozTNfU4gtN15Rnraid08+sa07/1IIw0uwQKTFe9GS5Ow cjjDU7FKDidmgDhDl6zYXNiVRtEvyx8rZ5EFcJt+XothvLmPWgJNHwAwEHceVAtNa+Ps a6k6j2j72wh88gE2x+q61OvQy4vXrlRDlooAdo/1Klh9+Qcvdjh/X1RjeDH9nwAsO/8B +JEzdchXUrb01TUJ2kwRaV5a2t2c0L1oQNcYJt5IRFE89AKaXrKheJunhCPPvYrMo0ut pwvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=R1f29dYF; 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 e4-v6si43983pln.655.2018.02.20.08.02.50; Tue, 20 Feb 2018 08:03:06 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=R1f29dYF; 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 S1752732AbeBTQB0 (ORCPT + 99 others); Tue, 20 Feb 2018 11:01:26 -0500 Received: from conssluserg-02.nifty.com ([210.131.2.81]:57144 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752162AbeBTQBZ (ORCPT ); Tue, 20 Feb 2018 11:01:25 -0500 Received: from mail-ua0-f175.google.com (mail-ua0-f175.google.com [209.85.217.175]) (authenticated) by conssluserg-02.nifty.com with ESMTP id w1KG1KKf003529 for ; Wed, 21 Feb 2018 01:01:21 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com w1KG1KKf003529 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1519142481; bh=sc3JbggwibX74EIHJLzJPjjBEyfVohbRlJGvLlw3cPA=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=R1f29dYF/dVsSt3BZOnGJ9ly+Ae8t4Hl+4BMRqJOKP0njYR3VB8SfUjBDmZ2ZO6gE 6C84HBC4jFciBWj5S4tXjpXbdMDXFyax5KEr9g6SSYUesHrjcb7JBDR05ip/us7+c3 Fx6Ac54j8TNKVamCSnZPjz5BVRR++3WkbWTePZVAY0ajyN86yoMLe59tKKmpFRrZ+H VeWnCR2cNXoTrZ6/1UGqd16dgZOnZ9jV2x3Ms/DuLdmyHRd6ifG/ZHIZSfQBhWTRuG kSXJiXWimUqSvpaHMbBPQ0J5da3x7tBZWpJdTCq/IVEb1NYhMxzKiTlRK7G/8mNJ1v jC+pTsCALpwjA== X-Nifty-SrcIP: [209.85.217.175] Received: by mail-ua0-f175.google.com with SMTP id q8so8646885uae.4 for ; Tue, 20 Feb 2018 08:01:20 -0800 (PST) X-Gm-Message-State: APf1xPDHQMD+2sDf2X+XNxGjwbqhPDd5tk79SXtbcwTn3otAfxgjdLtX 6LCPYM1xL7WQSC+eoXUeYAU2+8THxWDFkdD4kFs= X-Received: by 10.176.76.31 with SMTP id l31mr54142uaf.199.1519142479876; Tue, 20 Feb 2018 08:01:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.83.212 with HTTP; Tue, 20 Feb 2018 08:00:39 -0800 (PST) In-Reply-To: <14335276.CH3Xr2i6I8@blindfold> References: <20180219092245.26404-1-richard@nod.at> <14335276.CH3Xr2i6I8@blindfold> From: Masahiro Yamada Date: Wed, 21 Feb 2018 01:00:39 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] kbuild: Don't source kernel config To: Richard Weinberger Cc: Linux Kernel Mailing List , Greg Kroah-Hartman , Kate Stewart , Nicholas Piggin , Kees Cook , Andrew Morton , david@sigma-star.at, kbuild-all@01.org, Sam Ravnborg , Arnaud Lacombe , Nick Bowler , Michal Marek , Nicolas Pitre , Rusty Russell Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-02-21 0:25 GMT+09:00 Richard Weinberger : > Am Dienstag, 20. Februar 2018, 16:18:11 CET schrieb Masahiro Yamada: >> 2018-02-19 18:22 GMT+09:00 Richard Weinberger : >> > Don't source the kernel config file in shell scripts. >> > The config file is not a shell script and often imported from untrusted >> > sources. >> > What could possible go wrong? ;-) >> >> Please enumerate your real problems. > > Build a kernel where the .config contains something like: > CONFIG_CMDLINE_BOOL=y > CONFIG_CMDLINE="`echo hello > world`" Same for Makefile if a string symbol is referenced from Makefile, like CONFIG_CROSS_COMPILE="$(shell echo hello > world)aarch64-linux-gnu-" > I'll send a v3 because I forgot to convert one function in the shell script to > the new bash array. kbuild bot FTW. :-) You do not need to do so. This patch is so ugly. Also, changed shell scripts have '#!/bin/sh' shebang, but you are adding bash as a requirement. -- Best Regards Masahiro Yamada