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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03CA8C433F5 for ; Fri, 11 Mar 2022 10:15:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8B9EC8D0003; Fri, 11 Mar 2022 05:15:24 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 869968D0001; Fri, 11 Mar 2022 05:15:24 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 757578D0003; Fri, 11 Mar 2022 05:15:24 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.28]) by kanga.kvack.org (Postfix) with ESMTP id 6326A8D0001 for ; Fri, 11 Mar 2022 05:15:24 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay13.hostedemail.com (Postfix) with ESMTP id 23D5B61113 for ; Fri, 11 Mar 2022 10:15:24 +0000 (UTC) X-FDA: 79231698168.03.BF1CA06 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by imf31.hostedemail.com (Postfix) with ESMTP id AD3BF2002D for ; Fri, 11 Mar 2022 10:15:23 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: gtucker) with ESMTPSA id 67D121F4651D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1646993722; bh=CXbZB2r1b/1g4K17WHONm0b5nTskHWpS/0PWyWxfnbw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Npwdv59rYQ7Dmv7mWYlsndREOIgJHVXQgzGaYT/brUiy0Oz/liLZsMkYVfWTOGrVX FoRlINRSCIlQzKNj9oesYuZBEgedx0m80gUWgUhp9BFlWbz2oP9QdDZKS82th77vLB tOgoDQolfIP5BSsDPIpuRBwv7MprHXmwVhrY0b9JjAhTVb0jYed01u7QWNALwSHT2I zCEBWtXOvIsREoGGBmkMmsh2gxQ6MVPMvg+AhIECH6ooiW1SpsF9rA4YYRGujYrQoj 3JOLGInucafLslSQFV41qDhzSXLs6/XKngiplp9mhvFb7DxNt+02T1kBIX5n9k4u7d iiYkYodl4BeVw== Message-ID: <89e684cb-8cac-541b-10f0-39a6ba1089d3@collabora.com> Date: Fri, 11 Mar 2022 10:15:20 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: [PATCH] selftests, x86: fix how check_cc.sh is being invoked Content-Language: en-US To: Andrew Morton Cc: Shuah Khan , Borislav Petkov , Dave Hansen , kernel@collabora.com, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org References: <9320d88a3a65350d9bfdc5e258742cd0b162f017.1645794882.git.guillaume.tucker@collabora.com> <20220225170305.de0aa0dc898ca583d8a83e5c@linux-foundation.org> From: Guillaume Tucker In-Reply-To: <20220225170305.de0aa0dc898ca583d8a83e5c@linux-foundation.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: AD3BF2002D X-Stat-Signature: pij9rxfiougwccnf3bcdzhtz7e8qrpx6 Authentication-Results: imf31.hostedemail.com; dkim=pass header.d=collabora.com header.s=mail header.b=Npwdv59r; spf=pass (imf31.hostedemail.com: domain of guillaume.tucker@collabora.com designates 46.235.227.227 as permitted sender) smtp.mailfrom=guillaume.tucker@collabora.com; dmarc=pass (policy=none) header.from=collabora.com X-HE-Tag: 1646993723-913690 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000005, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 26/02/2022 01:03, Andrew Morton wrote: > On Fri, 25 Feb 2022 13:15:43 +0000 Guillaume Tucker wrote: > >> Add quotes around $(CC) when calling check_cc.sh from a Makefile to >> pass the value as a single argument to the script even if it has >> several words such as "ccache gcc". Conversely, remove quotes in >> check_cc.sh when calling $CC to make it a command with potentially >> several arguments again. > > This changelog describes the fix, but it fails to describe the problem > which the patch is fixing! > > Presumably, we're hitting some form of runtime failure under > undescribed circumstances when running selftests. But that's just me > reverse-engineering the patch description. And me reverse-engineering > stuff is a gloriously unreliable thing. Please spell out the problem. Thanks for the review. I've just sent a v2 which is rebased on other changes in linux-next and with a reworked commit message which should hopefully be clearer. The issue was seen when building some kselftest binaries and $CC is defined with multiple arguments such as "ccache gcc". Guillaume