Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp680916imm; Tue, 5 Jun 2018 02:40:19 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJa2PykXp19QWcFxlS/X5KH7OlI5Kl/9CkKwOFEvMxQ0hY5Bt9MfMQdvdqdp21+sc1R4fge X-Received: by 2002:a63:4384:: with SMTP id q126-v6mr19908341pga.294.1528191618913; Tue, 05 Jun 2018 02:40:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528191618; cv=none; d=google.com; s=arc-20160816; b=fweTUyaTlRmxmCk1a1GISK+7mYOs9IRU0urlUo+vYq2xvS4uEqqEnVTgQ36APXx5Ms mepTPopDoBET8JLaIyD9gICFyLBjNSDJu8lTTKJv4Yqii5xblBriEgu+/AUF+IpfLbVC PbFDX5KMaiCNvd88tE/jZAArVLJIsoDgFc4xmYINXw1gMZbhDF7q4i5MMt7CWFpKHDD0 oQNKSEjK7XGxY9/pkDgywqQCqB+QE6RamyTciocacWLet35O7BtCtrqlxdygebeVe0ej skRcL6LN3jbuPv3o+MxgkQnokpUZuRV7pgR3Dw3Qk3yeJ2hCaISE3fTT1OrYPW4yfndN t4mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:to:from:date:dkim-signature :arc-authentication-results; bh=voWxgs37uo4hAuZqhCn7kL3eyHAOtn5c1HZVwInFkbY=; b=Gl8k7mqbw+luPZdoYYL1PjAXOv2cReFkUknHBimyV0kXlp5FAUh14tvtw/+jtijIT4 99spFbkacsNkr4GMUchwJCnGZw0UU3UJvECftqdKzy0lrVEflM2mfphCg6VOphA8jMaw 49gvqtfMFCNeQVF6sXsRjq/buqAFJsmMA3zeVaoua4T0tIp+vT7Ts//bPK1HsjfIuDlU g2beNsQ41z/5Cx+ItXLBcro7RP55j1on6+ATGnH48qGVNRMdWSRyORA/ipxLA5o0IGrg vEqcDE3pojlP4tHroR8k9dEBKNRifMiVNxizwvnx1Qr4UA9V+cf0tKkWAefxmONf9StE 8Z+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L+TT3fVj; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32-v6si25162982ple.447.2018.06.05.02.40.04; Tue, 05 Jun 2018 02:40:18 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=L+TT3fVj; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751756AbeFEJim (ORCPT + 99 others); Tue, 5 Jun 2018 05:38:42 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35637 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751502AbeFEJik (ORCPT ); Tue, 5 Jun 2018 05:38:40 -0400 Received: by mail-pf0-f193.google.com with SMTP id c22-v6so567149pfi.2; Tue, 05 Jun 2018 02:38:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=voWxgs37uo4hAuZqhCn7kL3eyHAOtn5c1HZVwInFkbY=; b=L+TT3fVjTzku7DdgPuFLCWITMm0she158Dlj4Xu66VbAL0XCfvUaxap/D6ABoSlmbm 2JI4ischQ6y5I3WXivge561qVe3QJGOhSqvtOVO1Mcm0OSue7k0fck4lo8M5fVPDRDEF AZkpI7v1auG9aU5WTNhBwM+pUTqyIaqS0ZUF8i4SeW1wdS5uy0+3jlv90qsGG1eQiyOj Bx+D5nUa/i5XFNntI2UpNdZFF9UE5Ekz/ihp6kOlLtpcvwOGhS5KyniTMrCCX3gCSwrm fDG24yKxty0WTQvyKKhBwi1LWDAuys7eeBHTp2krJl780WnvcF8o2jK8bAnbVH0Z0KVU 5paA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=voWxgs37uo4hAuZqhCn7kL3eyHAOtn5c1HZVwInFkbY=; b=tIl7t7nb/0SAqPnSuyOW+NZv62KZ8DiyG2x93RMcCtkib+WV3ygPDlix7CLSHE1NJH gjcBXxD+S/AYcPRNEZGn3VrdifOW1nf4t0G/qcXl1JVk9F11pOeRczWfueVq1FaUU5hO 1WQuCaDt2llyCgA7FNkEgt/1S3YLiiSsdIZXeYk3mjLPzQ+qCIlegVRXlXy7TSS5WsSJ Fo+zgqFeXjI3qQRGz1GKw7eEBEnX2MHyCnIW2oZ74OY/WwoMb9Fofni5djqAAFHX65HX az09OSILbmafwfwJEJD9kUfm8eDBAKI4lmGtRhwrz5zEPyrlpaXRucvFDBomY6Zkfkfv NVDA== X-Gm-Message-State: ALKqPwfi7Rt7yl0YS3QD8Y4/CdcILyM8tLcZBUhZyLINqczp8IxPZa2o LdfUXnQm39D3gc49ZoI69Ypj8XuY X-Received: by 2002:a62:458a:: with SMTP id n10-v6mr20705971pfi.215.1528191519589; Tue, 05 Jun 2018 02:38:39 -0700 (PDT) Received: from udknight.localhost ([183.90.37.235]) by smtp.gmail.com with ESMTPSA id n18-v6sm110253576pfg.36.2018.06.05.02.38.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Jun 2018 02:38:38 -0700 (PDT) Received: from udknight.localhost (localhost [127.0.0.1]) by udknight.localhost (8.14.9/8.14.9) with ESMTP id w559cjBY009569; Tue, 5 Jun 2018 17:38:46 +0800 Received: (from root@localhost) by udknight.localhost (8.14.9/8.14.9/Submit) id w559ce60009564; Tue, 5 Jun 2018 17:38:40 +0800 Date: Tue, 5 Jun 2018 17:38:40 +0800 From: Wang YanQing To: axboe@kernel.dk, gregkh@linuxfoundation.org, pombredanne@nexb.com, tglx@linutronix.de, caizhiyong@hisilicon.com, rdunlap@infradead.org, jiangheng@hisilicon.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5] block: add verifier for cmdline partition Message-ID: <20180605093840.GA9488@udknight> Mail-Followup-To: Wang YanQing , axboe@kernel.dk, gregkh@linuxfoundation.org, pombredanne@nexb.com, tglx@linutronix.de, caizhiyong@hisilicon.com, rdunlap@infradead.org, jiangheng@hisilicon.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180510030637.GA25734@udknight> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180510030637.GA25734@udknight> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 10, 2018 at 11:06:37AM +0800, Wang YanQing wrote: > I meet strange filesystem corruption issue recently, the reason > is there are overlaps partitions in cmdline partition argument. > > This patch add verifier for cmdline partition, then if there are > overlaps partitions, cmdline_partition will log a warning. We don't > treat overlaps partition as a error: > " > Caizhiyong said: > Partition overlap was intentionally designed in this cmdline partition. > reference http://lists.infradead.org/pipermail/linux-mtd/2013-August/048092.html > " > > Signed-off-by: Wang YanQing > --- > Changes > v4-v5: > 1:Delete unnecessary blank line at begin and end of logs. > 2:Delete newline character in log, pr_* will add newline > automatically. > > v3-v4: > 1:Fix grammar typo, reported by Randy Dunlap. > 2:Delete unnecessary type casting, reported by Caizhiyong. > 3:Record the reason why we can't treat overlapping partitions > as errors into changelog. > > v2-v3: > 1:Fix log one pair of overlaps partitions twice in cmdline_parts_verifier. > 2:Fix out of bound access in cmdline_parts_verifier. > > v1-v2: > 1:Don't treat overlaps partition as a error, but log a warning. > > Hi! Jens Axboe > > What is your suggestion? Hi! All I just want to know what is the status about this patch? ACK or NACK is welcome. Thanks