Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp952889ybi; Thu, 30 May 2019 09:12:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGZ9bmRGHe2gLIld/Uh7oK01fYAFXNIDb/yh40ffn8jAoI1lvWsVfvJfkPuj2Mo+8CzEv2 X-Received: by 2002:a65:63c8:: with SMTP id n8mr4228484pgv.96.1559232764953; Thu, 30 May 2019 09:12:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559232764; cv=none; d=google.com; s=arc-20160816; b=rViW1kwPkUrle9pLcki3YB9vRWE41gu7t7ApgGkXXX971byZskEqAATO5dssNnEUQY vWgChxWWFuNn4zOUxgswNSos4uxJ8PNC/Okm4DdJgOrE8bh/1mkyT/XUlpyDlqon+E/Q vV6I7zrW2wVIACt3exPGb/K3kHJFL/utwFgSv/aheHhSoQymOwA2ulRN+F04wuWWGjl+ Is9H06kExMfEZWWT6A8kL9RNTWRfzJ8VsRDFvLbETGFctv23HD4w4M+OhKHJtj9B3wrx 7+L5CyaNL9MH40bzd808CFA/KmrBC8fnSIr0fYE5aYxByTfh/c1gXqP065RVB0ogmCb7 02+Q== 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; bh=H32mcOELPLwaekjuyDdsQqRHo1N2A76o/SCgxdZTXnk=; b=rPUCIbWDu2W/CTo2cXNwJ7GLOeofSqi1VLpwIV0/btRpkyEp32uwaiK4PxNJ/VntHG 9DclCpYT8IYbzRe1NCBOAAU6wyUvuWlPzNBFgH7x3RHiVWm4K/MlLRoC4WzpDTSX0T2Q /GZ6q+Kilo9QjUt20CIXj92CQn9d+8FuFMd9hb89ujQWpAZiAsecrJW8PsWb0pBuSuKC Nl9ArRLYvE6k5r6OEZ3Cc0Na+PZtRDu5ngOcYRDGPg4MAOrMR/h6RCa/GKPCAGK3YvvQ A2M+lXPVMIZyya1Z9jA+xu5/d61W53f6SZmD5zSDP03fFuqUL4ePChpCvPZhoEHOyZ2O 0p7g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w24si3268172plq.103.2019.05.30.09.12.28; Thu, 30 May 2019 09:12: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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727710AbfE3QLJ (ORCPT + 99 others); Thu, 30 May 2019 12:11:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51240 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726015AbfE3QLJ (ORCPT ); Thu, 30 May 2019 12:11:09 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 26820859FF; Thu, 30 May 2019 16:11:09 +0000 (UTC) Received: from localhost (unknown [10.18.25.174]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C18591001E93; Thu, 30 May 2019 16:11:04 +0000 (UTC) Date: Thu, 30 May 2019 12:11:03 -0400 From: Mike Snitzer To: Gen Zhang Cc: Bart Van Assche , dm-devel@redhat.com, agk@redhat.com, linux-kernel@vger.kernel.org Subject: Re: dm-init: fix 2 incorrect use of kstrndup() Message-ID: <20190530161103.GA30026@redhat.com> References: <20190529013320.GA3307@zhanggen-UX430UQ> <20190529152443.GA4076@zhanggen-UX430UQ> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190529152443.GA4076@zhanggen-UX430UQ> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Thu, 30 May 2019 16:11:09 +0000 (UTC) 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 11:24am -0400, Gen Zhang wrote: > 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. Yes, it should have the tags Bart suggested. I'll take care it. Thanks, Mike