Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2215095pxk; Mon, 14 Sep 2020 07:35:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygYfSRZ65RTe/ctt3qR074DuAiAveurNwloHUaE53AbNJP2hOJlHPxcJRhSJ1k0IkZ4AKM X-Received: by 2002:a50:8709:: with SMTP id i9mr17878102edb.141.1600094113814; Mon, 14 Sep 2020 07:35:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600094113; cv=none; d=google.com; s=arc-20160816; b=lZx3ysRgybXndjBtElrBdDS24VC1ExEG/r9XQHvMVBLZCstgLdgbeKutECIwZ0Uel0 OikP6zI5L8XYb+Xtvh2YwDfT+1ANxi35iw1Ph3TtKnfMaStDUfoSe8WmU3H6gAEFJhyB 3JnFX5epsI6ETHH31eE++aCyDJtxzUUwY7hNp4mdz9k0E4b4TMbRBOOvueC37vj05SrZ 0UTIBE0gCZglrYe95QZI27Wiit10qMvwuw0nVxc1p3XFNKnJcGMyzVnLYPsvItmy9rN7 kFeld9NG47ZPhHdGPbqjpqkbrLPsiPWYc4v0bh8dC3hbbh6wp7Z/Nq81thaqOzp+nPep bZXQ== 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 :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=UaE0Zy68kPNweus87sVFzfnVevHrKCIDC5eT9Rp0vmc=; b=i0QhVUUHW7Fc+HxLdb1jZv5+138u1vHA3eLNjozcDhnOQC2OfyhajT95Yq4SBnJWBu AyOR9G5jieqHxa1avF/Ln/hVfjWkAK7fzk7tK+AYg5w18kvUn7MWHWy3uxx90sGoLEse pgBUBqwQQcWXHB58SlqNFDGs1/KO/gAVirfhXyeNBhShgp/usN9MnDK2iQ9R+0pvHMXC /ShxOGzEd3kbj9bnee2UZ53qduQhDjdsAx5xqMEMEUP9NqqUyJJB3wnEYyewd5SgXy+n DD71/r6CV/gH70BY0x9dxOmcySZYKPnuSaYT4mxvXe5Rhj9ufKk+mjBSiweCydJY8NC8 WFHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="nR1kdS/c"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v13si7317633edw.171.2020.09.14.07.34.50; Mon, 14 Sep 2020 07:35:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="nR1kdS/c"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726385AbgINOcA (ORCPT + 99 others); Mon, 14 Sep 2020 10:32:00 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:17443 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726583AbgINOav (ORCPT ); Mon, 14 Sep 2020 10:30:51 -0400 Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 08EEUArI003959; Mon, 14 Sep 2020 23:30:10 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 08EEUArI003959 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1600093810; bh=UaE0Zy68kPNweus87sVFzfnVevHrKCIDC5eT9Rp0vmc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=nR1kdS/c/XWFDV04iV0J5iNaTyzmspagmzGfhWZniLm708cIVFF3JgM98uhJlactE pJjbDdUDtvZnphtMRmdvfRnHKCi/Q+wUhfHNRNtHBVUfR1+xaA1mFhcrzoPuTrW1Sf kK39BVda6bcM/6Xzl/gTk5Ky7oBcltK/66KCZuu26+bYddSvrD3+go9km/6XfXNpsI JAy9c1cTExb88UuyQXqB7Oxfmyql864Os1jw9pjQmEV5VEJzseKmP5I7JghRedf9dQ OK7SOvnSec7G+WOmx3QGKgQGoE8rt0eXVuC0MKwPxpOYznoXYhHNAHjMcy28ZzKJyQ rTYFf4sVWaeMw== X-Nifty-SrcIP: [209.85.210.170] Received: by mail-pf1-f170.google.com with SMTP id z19so12777515pfn.8; Mon, 14 Sep 2020 07:30:10 -0700 (PDT) X-Gm-Message-State: AOAM533yqr7dIN3yhBLvzUI2nNm2nZXRzuexOEARs0YRngc0nKzcP4NZ Cw6LcVXZckSmMesv+BP8oFa5Purby9qm7R+bUq4= X-Received: by 2002:aa7:93a8:0:b029:13c:1611:6534 with SMTP id x8-20020aa793a80000b029013c16116534mr13503727pff.6.1600093809514; Mon, 14 Sep 2020 07:30:09 -0700 (PDT) MIME-Version: 1.0 References: <20200914133559.GA126210@localhost.localdomain> In-Reply-To: <20200914133559.GA126210@localhost.localdomain> From: Masahiro Yamada Date: Mon, 14 Sep 2020 23:29:32 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kbuild: Run syncconfig with -s To: Alexey Dobriyan Cc: Ingo Molnar , Linux Kernel Mailing List , Linux Kbuild mailing list 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 On Mon, Sep 14, 2020 at 10:36 PM Alexey Dobriyan wrote: > > > BTW., there's another, rather spurious bug I recently triggered in kbuild. > > > > Occasionally when I Ctrl-C a kernel build on a system with a lot of CPUs, > > the .o.cmd file gets corrupted: > > Those are temporary files, truncated at page boundary. > > $ stat -c %s XXX.pata_sil680.mod.o.cmd > 12288 > > I tried to fix this by inserting shell 'trap' directive but it failed > somewhere else. > > cmd_and_fixdep = \ > $(cmd); \ > scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(dot-target).cmd;\ > rm -f $(depfile) No. It is *OK* to have broken .o.cmd files as long as .o files are deleted on error or interruption (and this should be automatically handled by GNU Make). .o.cmd is included only when the corresponding .o exists. This is explained in the case [2] of commit 392885ee82d35d515ba2af7b72c5e357c3002113 -- Best Regards Masahiro Yamada