From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE2C0194C86 for ; Tue, 30 Apr 2024 08:49:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714466995; cv=none; b=X/idF1eKcPdLp4Hwhf83z1EhXBWGpi2QAflH6ykItp+GhxBaVvC2DTbjGt4ybi5VQWnskYWV7/Kl6LRQ/PPQ4k413QRwAfeub53zVsEIiiEReZHHbwo76xGwEpN40lgnPvUsMIK75Kq9Lr7E/OKhw15ExSlyG5naNWSAXac/ojA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714466995; c=relaxed/simple; bh=yyMNMoRKfJR9At+yF2EqurovbVGI9TqL1Gi+KT5Pnps=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=evgKx0ze0xZRvyTdNuSgl0VGyY3eJ5M2l1bObaQSWNr267I45LVEvAg5PoapupWik0Kv5a7eLjbbiAlmgl6nOCrUDIY7+2w7Abbq0dgzOYToKRORGPptgT6jQ9RqGaTNTXLU6sky3G2eImWZMEuVGIGIno0LPj6k1gwM8oJL57M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NlY0K5kw; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="NlY0K5kw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C37A3C2BBFC; Tue, 30 Apr 2024 08:49:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714466995; bh=yyMNMoRKfJR9At+yF2EqurovbVGI9TqL1Gi+KT5Pnps=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NlY0K5kwWLAAIV1mwhsR1YF19tIzu0A1EEnrvVtLkf52Xj+AVm2gu0Gmk46mfr1AP Ct9O0GxG9hoc53aErKhPMfUX71QUNTgAJsnVECk/1RweXDftVjtw1aeKJgG3I/aEq0 un1nMDJ5WT7vRuKQCAzZ/O9wkbdKessKEJ6Z6GUs= Date: Tue, 30 Apr 2024 10:49:52 +0200 From: Greg KH To: Srish Srinivasan Cc: stable@vger.kernel.org, agk@redhat.com, snitzer@redhat.com, dm-devel@redhat.com, ajay.kaher@broadcom.com, alexey.makhalov@broadcom.com, vasavi.sirnapalli@broadcom.com, Mikulas Patocka , Mike Snitzer , He Gao Subject: Re: [PATCH v5.4] dm: limit the number of targets and parameter size area Message-ID: <2024043044-eternal-scandal-77ee@gregkh> References: <20240430083259.13876-1-srish.srinivasan@broadcom.com> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240430083259.13876-1-srish.srinivasan@broadcom.com> On Tue, Apr 30, 2024 at 02:02:59PM +0530, Srish Srinivasan wrote: > From: Mikulas Patocka > > commit bd504bcfec41a503b32054da5472904b404341a4 upstream. > > The kvmalloc function fails with a warning if the size is larger than > INT_MAX. The warning was triggered by a syscall testing robot. > > In order to avoid the warning, this commit limits the number of targets to > 1048576 and the size of the parameter area to 1073741824. > > Signed-off-by: Mikulas Patocka > Signed-off-by: Mike Snitzer > Signed-off-by: He Gao > Signed-off-by: Greg Kroah-Hartman > [srish: Apply to stable branch linux-5.4.y] > Signed-off-by: Srish Srinivasan Now queued up, thanks. greg k-h