Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18922278rwd; Wed, 28 Jun 2023 02:31:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7m1JVZ+OaoGTFix9SFDyZUoO3vJY6vnSHvIuhhQcCIpF6Uu1RsWLJ+qYnUwRnwbGe71Dok X-Received: by 2002:a17:907:360e:b0:965:6075:d0e1 with SMTP id bk14-20020a170907360e00b009656075d0e1mr28282966ejc.72.1687944718974; Wed, 28 Jun 2023 02:31:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687944718; cv=none; d=google.com; s=arc-20160816; b=A2C5aMw0UEoreBj4fmTJJutcJXIEklS9zd8GOL9pzO70vBCcicgCaa3Vn4nFk01wYS m6qGzSGgHYUfaBe/OP2O2CCdAkjg5We1brfJIziiknh2Uamr4nrCrLn0kKVJgqotROct 6YweT6GpnMHSWFduqRp0+emY5/CTlPyW9/aPuTJo9qRFaCWawJ3F8zzwoB3w9foQlKIY 6zUboob5Iloe0lXAUNts6Kh4LE//UvyO6IplGc6Ea6FGQNVhcoakD8IFKuZbhDsCXsV8 eOJZNVsIDnv6bg5MOCdA4hyWRr9DXGmBB5XwW0ov8LdkH8CJvorAM5wZaxrKWfAnrsHx LjJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:mime-version:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=KZJNLKdtjgoDbmPLLBh4ZMAxAfXH8SRMRxK6xTKUcho=; fh=vPzDwDkaeEei3/q+oq4dGi1YmdA9F0mlNlRkraJWxkY=; b=njFWeBA1mVVv66ePkVMMk3zM9WQ082DyDlNkHxN8IYUYq7ku0NLefUwz+E79yzAmFS 7OkXSU+EbTFKOVCrukED1YQEOgpl9MFycw62mJmaGR+Z2Ru4fFBC12xOUJLISaHU5pDv f9BWqT/HeBL3pgCD2IHe0a1vSOMmQNVZHnQ+1wNC09gWo4JY44ADkuKVp0cJTexzovl4 J+5A3JlAZ+7rknvSTH/IsCSo/ZJZd2n7tY2Yk8j/8HfBiqXGxrEDpfhUAQ5dT2L3BE5c I36MzT6GT2lnOm7x5pnxqGTXfYNajhW89h2Q8Set4j1h64HmNBOglhwGX5HyBYtx+BYG xrJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=EOkie86N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r24-20020a1709064d1800b00987ac9cfb97si5210656eju.179.2023.06.28.02.31.34; Wed, 28 Jun 2023 02:31:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=EOkie86N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234438AbjF1IjA (ORCPT + 99 others); Wed, 28 Jun 2023 04:39:00 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:27192 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235403AbjF1Igp (ORCPT ); Wed, 28 Jun 2023 04:36:45 -0400 Received: from epcas5p1.samsung.com (unknown [182.195.41.39]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20230628083644epoutp0418eea67be7550c9c0cb6dca8042b0317~sxcOeQshV1104711047epoutp04s for ; Wed, 28 Jun 2023 08:36:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20230628083644epoutp0418eea67be7550c9c0cb6dca8042b0317~sxcOeQshV1104711047epoutp04s DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1687941404; bh=KZJNLKdtjgoDbmPLLBh4ZMAxAfXH8SRMRxK6xTKUcho=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EOkie86NDd4tN1srUavqdXOiEqnCBVRuYiy/RYZ6L6lbTc2AzZw/mQXb06vywyhOL /N9G2Z3+5XZNcyqp1GGerbLxb9xmedJJh9VrqpTVjg1tCqBUc1mL7484som9FS4wpB UeePw/gGSit4bAwrIuLZCg9n/1w8bMgw0OBpqvZ4= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20230628083643epcas5p19fec22088e3af806c1b6daccc1d77a36~sxcOBuMPi1461714617epcas5p1l; Wed, 28 Jun 2023 08:36:43 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.175]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4QrZgZ54nRz4x9QH; Wed, 28 Jun 2023 08:36:42 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 82.BD.06099.911FB946; Wed, 28 Jun 2023 17:36:41 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20230628083625epcas5p48b2728c6a160744ef628da9ecb49db25~sxb9JMtQI1211412114epcas5p4W; Wed, 28 Jun 2023 08:36:25 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230628083625epsmtrp1c4c53858ee4defb98904b483e92a3835~sxb9IQNxa3254732547epsmtrp10; Wed, 28 Jun 2023 08:36:25 +0000 (GMT) X-AuditID: b6c32a4b-d308d700000017d3-15-649bf1191ac7 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 13.50.34491.901FB946; Wed, 28 Jun 2023 17:36:25 +0900 (KST) Received: from ubuntu.. (unknown [109.105.118.54]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230628083624epsmtip1cedd402dbe729584598554849fbf4e6b~sxb8EahpB2786627866epsmtip1K; Wed, 28 Jun 2023 08:36:24 +0000 (GMT) From: Min Li To: hch@lst.de Cc: axboe@kernel.dk, dlemoal@kernel.org, gregkh@linuxfoundation.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, min15.li@samsung.com, stable@kernel.org, willy@infradead.org Subject: Re: [PATCH v3] block: add check that partition length needs to be aligned with block size Date: Wed, 28 Jun 2023 16:34:42 +0000 Message-Id: <20230628163442.2796-1-min15.li@samsung.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230628073214.GA25314@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrOJsWRmVeSWpSXmKPExsWy7bCmlq7kx9kpBlf+GVisvtvPZvFgv71F 8+L1bBZzX19isVi5+iiTxd5b2haXd81hs1i+qoPJ4uyED6wWn85fYLP4/WMOmwO3x+YVWh6X z5Z6bFrVyeaxf+4ado/dNxvYPPq2rGL0+LxJLoA9KtsmIzUxJbVIITUvOT8lMy/dVsk7ON45 3tTMwFDX0NLCXEkhLzE31VbJxSdA1y0zB+hAJYWyxJxSoFBAYnGxkr6dTVF+aUmqQkZ+cYmt UmpBSk6BSYFecWJucWleul5eaomVoYGBkSlQYUJ2xuL3B5gLJjFW7P+8nLmBsbCLkZNDQsBE YnfHPJYuRi4OIYHdjBK9L/pZIZxPjBL/361lh3C+MUpc7rnACNPy98BEqKq9jBJPny5khHC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q2rGL0+LxJLoA9issmJTUnsyy1SN8ugStj8fsDzAWTGCv2 f17O3MBY2MXIySEhYCLx98BE1i5GLg4hgd2MErdPTmKGSEhInJ/3iw3CFpZY+e85O4gtJPCU UWJGY1QXIwcHm4CyxLalPiCmiACfxK1bqSBjmAVOMUq0/zwPVi4skCTxddFcMJtFQFVi++u7 rCA2r4CFxKHNbVDj5SX2HzwLtpZTQEei8852qFXaEtN+PWGGqBeUODnzCQuIzQxU37x1NvME RoFZSFKzkKQWMDKtYpRMLSjOTc8tNiwwzEst1ytOzC0uzUvXS87P3cQIjgItzR2M21d90DvE yMTBeIhRgoNZSYT39pvZKUK8KYmVValF+fFFpTmpxYcYpTlYlMR5xV/0pggJpCeWpGanphak FsFkmTg4pRqYlpl/zNJ9KWY29e4fCUOGmQ/Wt9tVPo2dIZTyk/mgpWtFQaJb0It+HvVOmzUs ax4vC72/T0u1S/eGusHeNrvWJr+LRqfUH937Gz9N4z3jtLzdfREc6VeMrj22+fYt9vDH3w0L ggO2LuI1vlz3SG7Z9H6bfUKrjhTHHe7fwZX5pe7Cn2cuoQdmX5czdzDY+LV3xSujHVtCSstO mLJdtvWprGU9sKQ5N4eZZ4JrxEnxD3/TXPz9Vf6cv3f5auJus0zpnXtsj3zPKpuktrHtWb7N vx4Z778KJpNm/J8c2n11trXkxN/mB5ZuFH5xnIF/i0vckyeRBZVhv2z5H5bt1NG8V31vHl9K WWRkvXJRnk6EEktxRqKhFnNRcSIAJoBTUPECAAA= X-CMS-MailID: 20230628083625epcas5p48b2728c6a160744ef628da9ecb49db25 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230628083625epcas5p48b2728c6a160744ef628da9ecb49db25 References: <20230628073214.GA25314@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I will modify the blksz to unsigned int. For pre-existing start/length, is it ok to change them to sector_t? Thanks for your reply Min Li