Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp38230pxu; Thu, 10 Dec 2020 17:33:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKukd6LTU/qJvOcr2T4W1x8KkemMTMACTouzrHAc3rYIh2IF5f13q/mddg5EVtktl+WvZt X-Received: by 2002:aa7:c353:: with SMTP id j19mr9521789edr.204.1607650396231; Thu, 10 Dec 2020 17:33:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607650396; cv=none; d=google.com; s=arc-20160816; b=fdHOutK71XrjV/I+r/PJk99VVgT0VV8Pd6eByqv/DmsF0yylQFORA6MrdUXq+WUGut BQFEm04psvLxYPtvI9ryY/19CajfTdDXn6uAYgPNLlhtbGsl/lqgFXy6Pl3qG5/5ASEG AUp51s8Y2LW+N3Ea+aB0w998d/4vbALAgpb6Fx6lIYfkGZkkpPfgDsjYwD4LdmZGeR8X uMrDYMKBBEhelZmDJnUZh6LcuAfSSDQm8ERkc7KvotDEGlSJxa/Sx3ymFdKfmY2QqmVG E11gFRTjyl/Gc4Ai1YjNkmkLo1nR+aA54vRTIWqbtuHJf7EIHOeO0I/bitkrbGcj/riT 0FBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=avgiugfVJShHoD/99ddhgeY87Mq3LDnKN/5MBocn2x0=; b=jSUlE2EOFycStnzmcMFGK/VgAC8BidafQhEYPTyNY5U46lO96Ni0j0qOoFGzXiFNS9 Evh48rBn2DQaZhuBZrKojud9gOC0iOtZPoAe+j6qPh78BBeSlMgPrCQYMTrGic3KQTVE OIf21YugS4EjdlNa7zngl9BgFTOJ63wRF/5ZFWyKHwg3GwY8Q8GUxCoSHkvtipANLtLg HlXm/wq6wOp0yz0oWoAX6kEH3pKGle2Ucak3DMWCAzH4gWuzK1HCfo5G4LcJCxXmN1Pt 69HLAi2qY+AcdP0DdPDbwEfnQ5YoQvz8af63bJiXCMkF2esOIS9l7Wcp5ZbK7gI7l3M7 y5RA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bj16si3590281ejb.652.2020.12.10.17.32.46; Thu, 10 Dec 2020 17:33:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390931AbgLJOfi (ORCPT + 99 others); Thu, 10 Dec 2020 09:35:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:41734 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390743AbgLJOd1 (ORCPT ); Thu, 10 Dec 2020 09:33:27 -0500 From: Greg Kroah-Hartman Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mikulas Patocka , Mike Snitzer Subject: [PATCH 4.19 20/39] dm writecache: fix the maximum number of arguments Date: Thu, 10 Dec 2020 15:26:59 +0100 Message-Id: <20201210142603.278587563@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201210142602.272595094@linuxfoundation.org> References: <20201210142602.272595094@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mikulas Patocka commit 67aa3ec3dbc43d6e34401d9b2a40040ff7bb57af upstream. Advance the maximum number of arguments to 16. This fixes issue where certain operations, combined with table configured args, exceed 10 arguments. Signed-off-by: Mikulas Patocka Fixes: 48debafe4f2f ("dm: add writecache target") Cc: stable@vger.kernel.org # v4.18+ Signed-off-by: Mike Snitzer Signed-off-by: Greg Kroah-Hartman --- drivers/md/dm-writecache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/md/dm-writecache.c +++ b/drivers/md/dm-writecache.c @@ -1883,7 +1883,7 @@ static int writecache_ctr(struct dm_targ struct wc_memory_superblock s; static struct dm_arg _args[] = { - {0, 10, "Invalid number of feature args"}, + {0, 16, "Invalid number of feature args"}, }; as.argc = argc;