Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp326100pxb; Wed, 18 Nov 2020 05:41:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDfRLtUEyLE//2vAlQ2+Ec5dj/DBZbYUjCdxl09OVtW7PvU2wkEElcg6J+33NSRlc3+kbO X-Received: by 2002:a05:6402:17d1:: with SMTP id s17mr2668057edy.2.1605706898864; Wed, 18 Nov 2020 05:41:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605706898; cv=none; d=google.com; s=arc-20160816; b=TGmABYUbiglfFXbeLAXXQDQeTONsbdG/7NfkULqUbylqC40KW/V7wPeP1/CPrbVsOf kgmJAYUvGsNq9r1m0WBG2Hz/57fdLmiEedqNL65V+7lRfgnJblNKhF56GD1ZnOuqwW9P 292L5c95UBVnPIEukUhX1PIntUsT+2L/pHW5/E4VBc5HcVCIfmcOZnswFOfmdW6/RnYz 35rfYx/2ymDdTUYO62aq6qNOM0M0TPhXX8w9uYKcOUkw6immpgWfNtp4DDS24EwUa2vN hUFz3R67SI5XoG3Pnhq3/CT/Ezfrud3dds/LUHl31Z9BP8rcf+9SOqYGKsF5gA6Z+2yD FvSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=9svr+aJ73g7Uvx8x5Lpwh3vlNXKhTyFQUZJdPc9gArY=; b=pAZvQYMe0rkS22S+pW73TPvjKXFUyDgrCTT5jipzHRidJGHxmibzOrwdowRAeu534p FsD1CFrYF8CmdzQBeIhF270LL9/1Hnrv8v/pLe/uv2nTwcgY7jzEqe41dr5m57IXNyr/ 65r+f22iIX1BCBLoIKao7pWA+60U1wwT1mHwMFXmssO57Gd1zLOmyrlCk+TgP+vBlUys K8gqL7iSi2M4n85pGsTKTldMvZxmJIHmlVT1quH3s3KtN5DCxCD+AIACHaF/Z7uUEQFn LSB9ZCic4muCqLHuACQNjaw8gKiWy1OXvUVmxVjVRdeRMqieRadc1APvNWYIPR3lIU6C 7z9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JsjIixJ2; 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 p8si14736353ejf.396.2020.11.18.05.41.15; Wed, 18 Nov 2020 05:41:38 -0800 (PST) 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=@kernel.org header.s=default header.b=JsjIixJ2; 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 S1726384AbgKRNhO (ORCPT + 99 others); Wed, 18 Nov 2020 08:37:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:52778 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725834AbgKRNhO (ORCPT ); Wed, 18 Nov 2020 08:37:14 -0500 Received: from devnote2 (unknown [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6480C221FC; Wed, 18 Nov 2020 13:37:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605706633; bh=cV8xboE+vwduqcWKaW5/o9EZjaAnw20e+Iftri0evSE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JsjIixJ2shQWmNKole/jMmGY4+SN8DDUZjk1byE2Tbflq3yOltSzHi0Yo94laStw3 LzsW1GL80qOuyNFm3ODZeiMzBOs5tjFy9lTaNUNTVX7OKSgAzNFpgbBZeX0Pr1vWc2 t43ojnPKdlWm3Wu9vYV/YOe6F/ccBu0wg6Km/+E0= Date: Wed, 18 Nov 2020 22:37:08 +0900 From: Masami Hiramatsu To: Chen Yu Cc: Steven Rostedt , Linus Torvalds , Chen Yu , LKML , Ingo Molnar , Jonathan Corbet Subject: Re: [PATCH v3 1/3] tools/bootconfig: Fix to check the write failure correctly Message-Id: <20201118223708.4b196db7bc1030f7604876ad@kernel.org> In-Reply-To: References: <160560676899.144950.4148778261999789656.stgit@devnote2> <160560677952.144950.8229834525319742454.stgit@devnote2> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 17 Nov 2020 20:10:10 +0800 Chen Yu wrote: > On Tue, Nov 17, 2020 at 5:53 PM Masami Hiramatsu wrote: > > > > Fix to check the write(2) failure including partial write > > correctly and try to rollback the partial write, because > > if there is no BOOTCONFIG_MAGIC string, we can not remove it. > > > > Fixes: 85c46b78da58 ("bootconfig: Add bootconfig magic word for indicating bootconfig explicitly") > > Suggested-by: Linus Torvalds > > Signed-off-by: Masami Hiramatsu > For [1/3] and [2/3] > Tested-by: Chen Yu Thank you Chen, BTW, I found another bug in bootconfig error handling. Steve, did you already pick this series? If not yet, I will update the seires to add that fix. Thank you, > > -- > Thanks, > Chenyu -- Masami Hiramatsu