Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6260805ybi; Wed, 29 May 2019 05:25:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFlqO8xkhKGR/zPLubHPLgHtSq0AzZ3nSQQOCC8DUf8UPC1ZSN8NFS2hFmxBjWP9yLTzwZ X-Received: by 2002:a62:38d3:: with SMTP id f202mr104054734pfa.41.1559132733412; Wed, 29 May 2019 05:25:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559132733; cv=none; d=google.com; s=arc-20160816; b=MIrROZqgxQIefO9zuAf2NbPznxckfyKjC84z6+bCQ3XGyajPdCzSu4JXsl0ZZpwRvD rlZ4nivp+487dWJE8m9Cfdl/hJihrOfDgAZ/B8h8qVy1o2z/MD/SwcMPbzZKo403Nt5Q UVOtGpf0d8stGqzxNRS8vYz7nnZOxLA7tCwPJywbU0D3VFOA+18RMc8a7gLR8bPXOd8D BaBY6x0zAl5F3VEkrb5Wl2EpZhdDpilhcNvPfexDUSU11je40vh3oWnB+FxaoU5rS+kH tEayQ+bIVHRUAHobDEel7S/CFuKTmMtIpgwPPFBH3pvDJ1BPZY1zqnLfz9rugiJVDwC6 sEQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=rxy6f9sl7ikW/ApsyD3MIdMjQRls/RXr9QjpSHSk8IA=; b=iHXArLdzBW77K/qtuDhHGWAeKb9xSoynglzS0VDoMzU/uyOPhT+ONFIMpnH0c8nfm1 5wqIfkdHnXBrTuNlzWLKPXohUkqg4hlZgA4f8GfhKEHH4eE60gBaqMleLSuxFyQrQyFE eX5nGfNwNE6YUadeSGy0HKqFakq4jMIwy5FLcvW8gfX/8F1oed3HoyD7SS++e6k/GIbu K5CyoGra/El1H1YFqLv2hTdIieRXKWDj6R1rVytjIVto32gUmXrCEuotle9qSdkbcoQM /tDU7ocY+ioBp2jaZW3mBLDyPngPX9a3JdjaYIf9l6wucneAwl6I41YSi4JVbA44F07e Js2Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ci14si28411184plb.311.2019.05.29.05.25.17; Wed, 29 May 2019 05:25:33 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726911AbfE2MX5 (ORCPT + 99 others); Wed, 29 May 2019 08:23:57 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:35942 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725894AbfE2MX5 (ORCPT ); Wed, 29 May 2019 08:23:57 -0400 Received: by mail-pg1-f196.google.com with SMTP id a3so1287892pgb.3 for ; Wed, 29 May 2019 05:23:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=rxy6f9sl7ikW/ApsyD3MIdMjQRls/RXr9QjpSHSk8IA=; b=jDzxhqIYLFb0yi7Z6BGzA4wmQ6Whxjw5kkQKeB6DThnM7UZnTeRkrJIRvZe46P8UO8 HmAWw83CmNxyh6bcZoSCt5vEJyyRLVMxepExSStk6DCIYiP49TJ7nhMXn2xiEltBr7MA WvNr1foWeUyFa/CzI7y3TPKBZXnRQhHdRX3e/6l4gXtkfD/NEmu1Hrodjxgp0y+pO2Uh vK+8gIb45pKcu/nEFkmuC2jEUDhfbsieLgGQ/sNgNR1XAtP0k/FMnTRWb+6IFb492v2/ NGA70XZin1NNXdRIGTY8zewXQ2M6Pw207vhxDROvMARTPwc9/rO1znAA0a9v3eB02P58 Fclg== X-Gm-Message-State: APjAAAXs5D02KuWU3AMEDjPUOz+0QXgEqtjweZVfMpWCTMvcvhqy8IU/ fyGzV0yHZiCyQZoAEpJ0z7WyMGek X-Received: by 2002:a17:90a:778b:: with SMTP id v11mr12193208pjk.132.1559132635974; Wed, 29 May 2019 05:23:55 -0700 (PDT) Received: from asus.site (c-67-188-93-131.hsd1.ca.comcast.net. [67.188.93.131]) by smtp.gmail.com with ESMTPSA id e16sm5619309pjp.16.2019.05.29.05.23.54 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Wed, 29 May 2019 05:23:55 -0700 (PDT) Subject: Re: [dm-devel] [PATCH] dm-init: fix 2 incorrect use of kstrndup() To: Gen Zhang , agk@redhat.com, snitzer@redhat.com, dm-devel@redhat.com Cc: linux-kernel@vger.kernel.org References: <20190529013320.GA3307@zhanggen-UX430UQ> From: Bart Van Assche Openpgp: preference=signencrypt Autocrypt: addr=bvanassche@acm.org; prefer-encrypt=mutual; keydata= mQENBFSOu4oBCADcRWxVUvkkvRmmwTwIjIJvZOu6wNm+dz5AF4z0FHW2KNZL3oheO3P8UZWr LQOrCfRcK8e/sIs2Y2D3Lg/SL7qqbMehGEYcJptu6mKkywBfoYbtBkVoJ/jQsi2H0vBiiCOy fmxMHIPcYxaJdXxrOG2UO4B60Y/BzE6OrPDT44w4cZA9DH5xialliWU447Bts8TJNa3lZKS1 AvW1ZklbvJfAJJAwzDih35LxU2fcWbmhPa7EO2DCv/LM1B10GBB/oQB5kvlq4aA2PSIWkqz4 3SI5kCPSsygD6wKnbRsvNn2mIACva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zwH87uXxbTJAUxiWIi1np0z3/RDnoVyfmfbbL1DY7zf2hYXLLzsJR mSsED/1nlJ9Oq5fALdNEPgDyPUerqHxcmIub+pF0AzJoYHK5punqpqfGmqPbjxrJLPJfHVKy goMj5DlBMoYqEgpbwdUYkH6QdizJJCur4icy8GUNbisFYABeoJ91pnD4IGei3MTdvINSZI5e Message-ID: Date: Wed, 29 May 2019 05:23:53 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190529013320.GA3307@zhanggen-UX430UQ> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.