Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6483235ybi; Wed, 29 May 2019 08:27:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqyM5scCZwmHh6Ncg42D2Rr4coDPyk/lRzkfGfp92rOnGWfXP4HQkRgYKmxJmDECrek+YPqR X-Received: by 2002:a17:90a:bb82:: with SMTP id v2mr13362280pjr.73.1559143664223; Wed, 29 May 2019 08:27:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559143664; cv=none; d=google.com; s=arc-20160816; b=yeOTDQ058AW2zMy50OtFHlsLjZL6EZooJaRMcd+AfxlX3Llp3DJ5o9gNudKHzDm+6K +pr77Fv0nTlGnRnfbGWQ4LoXWbX8todQKmwGnig8yGye/+byQkjttwF2gGY2AbWJeGUF z/vLqRWQ4V/kFP3+kpZU+oZh092x9rcbyTPFikhY2h4pg66eglTa3tR25aVFLmQaWEmS yLJiuXLszGuTLRJcN1NZF5uI5s47KmAgKv48YAvh/kDMVlHzb17Kh8yOdqInvia22wTw 73gU0sBvtluqqvgP8FFruJM+WoA2ykrT1VqxBHGvpuUmUC6KQQhNt60+XlwIp1Bq4Jau pHDw== 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:message-id:subject:cc :to:from:date:dkim-signature; bh=8fDLamalhq9zwp0W3zCZkIPwsllp49nCKwsLUyTJ3Hc=; b=D/o1tPdhlddZXh57g0tycuP8AR/IAAWSYivuEjkADmlZNCAotFxGoa0B23w0OmazK1 6ipRs4wJVTFrVvZapbxG7DnJyUFTjwraGgWfda+RrjCID0BVpHMeGfK2CodRuwMNCIug yG/CHrn5X10ommiH5SKIrmypQ4AFzrDtQhsyB0vS/dFIYoADfxEB8r3EJurSTDaQrAv/ zJ5FEqrwpjbMbszSWUeYmKEkaI8OX+hAWlaUwd95PqVC2HX7Gc4xMehQOslcpRiC1sh0 /w57OJ952LFRXQWSpa8jnR8R5wS5DuJCGXgDzDyqmeQ74b74HuBb6Nk0zQx0HRTQtfDR sn4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R66SrP4C; 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 ci14si29070852plb.311.2019.05.29.08.27.27; Wed, 29 May 2019 08:27:44 -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=R66SrP4C; 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 S1726836AbfE2PZC (ORCPT + 99 others); Wed, 29 May 2019 11:25:02 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:34370 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726012AbfE2PZC (ORCPT ); Wed, 29 May 2019 11:25:02 -0400 Received: by mail-pf1-f193.google.com with SMTP id n19so1869910pfa.1 for ; Wed, 29 May 2019 08:25:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=8fDLamalhq9zwp0W3zCZkIPwsllp49nCKwsLUyTJ3Hc=; b=R66SrP4CmgFcNeUP8BET9lkK2bUkt81I/nJIZDpuDb6b54j4CNcYX91lBtMdtlSLEn 7hXaQkv8+wCEduPHFzF5QQsZBB4EvxYNDJ0Yu0slJVXcyIHDE8PdP99/skhi4t5TfZns UnhObnEOY9cPJ+7qZsIDoNGlz9V0C2x0RjSb5EUK5LHgq/YI1u7Hms24qhK+5zG3NluC qHNoUPQX33HkAf6F6bd5cTqNpxR6AFN/sFlcg7Id6tsPNSC8qXto8nW5yiqL70eYzrYi 2sVH5EKxfNO99oP8vxU9KSki1q2W9jKAMYSnRrmuZVTaUhNPYUwFTGTDr/BnWZhk47Li 9xjQ== 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:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=8fDLamalhq9zwp0W3zCZkIPwsllp49nCKwsLUyTJ3Hc=; b=XDc7YbJAaZubn4GtbSawEYZVZuqn65fqgKlDefb+Z0BuCSgEJP2GMVDISUHUg3UPiv iE3EZKVSQqBmj4/fFLa3cSfrpmwtJVzNbUvqSJIKSpUTl/rrrIPTdB9zYGWQlxEeizmv m/2CgbEDTHAU6djeH/JqrQHZ/FrKKDW6CqfpKD5eNbsLQSy6hLaJi8Je277Rw9JncIta rfCWE7M2Z2W3v8VUqOOS2/z7fhx8OEOiB9wwknbBOPYNSO/EmB8Y2ZXvThRGzerqSwyg fCSgdisn9bX3o1P/FFrYPFXNj3IEf/j+hPAniFalR08jsUTULNrFk7ukQe0H8VQ6Wzlw kC8w== X-Gm-Message-State: APjAAAWR6jyk3z7jiUL1IO1LSQ7/L0Zps6vE6MGFKJJr9Qr4Ec6QH64/ d1pbYs0/AXpQ75o6fnLl8U0D1/AC X-Received: by 2002:a63:6445:: with SMTP id y66mr29504576pgb.23.1559143501459; Wed, 29 May 2019 08:25:01 -0700 (PDT) Received: from zhanggen-UX430UQ ([66.42.35.75]) by smtp.gmail.com with ESMTPSA id f2sm14826080pgs.83.2019.05.29.08.24.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 May 2019 08:25:00 -0700 (PDT) Date: Wed, 29 May 2019 23:24:43 +0800 From: Gen Zhang To: Bart Van Assche Cc: agk@redhat.com, snitzer@redhat.com, dm-devel@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [dm-devel] [PATCH] dm-init: fix 2 incorrect use of kstrndup() Message-ID: <20190529152443.GA4076@zhanggen-UX430UQ> References: <20190529013320.GA3307@zhanggen-UX430UQ> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 29, 2019 at 05:23:53AM -0700, Bart Van Assche wrote: > On 5/28/19 6:33 PM, Gen Zhang wrote: > > In drivers/md/dm-init.c, kstrndup() is incorrectly used twice. > > > > It should be: char *kstrndup(const char *s, size_t max, gfp_t gfp); > > Should the following be added to this patch? > > Fixes: 6bbc923dfcf5 ("dm: add support to directly boot to a mapped > device") # v5.1. > Cc: stable > > Thanks, > > Bart. Personally, I am not quite sure about this question, because I am not the maintainer of this part. Thanks Gen