Message ID | 20210726153823.934940637@linuxfoundation.org |
---|---|
State | New |
Headers | show
Return-Path: <stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1001C432BE for <stable@archiver.kernel.org>; Mon, 26 Jul 2021 15:42:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ADED060F38 for <stable@archiver.kernel.org>; Mon, 26 Jul 2021 15:42:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235286AbhGZPCF (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 26 Jul 2021 11:02:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:41482 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235712AbhGZPCC (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 26 Jul 2021 11:02:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9F60D60F38; Mon, 26 Jul 2021 15:42:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627314151; bh=GJEsyEFWDRfuRJhaHzFCGf+JMrkruI0bSdRTpe+Yqqc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oLK/NlglE4XKkHSb6dQ9g18b1DwWU815WfrM6odh2Dx/tQ/E/1z1Fmg4hFv8pqtT1 JVAuWhgE3LfJmWJpU3qNJHE0dnlimuiFte58d4BjWJDbkKLcfVT/MoGKvmmjNTCD0u vHWjNTPHUEIPPN6bKJu1VH3eY0yGPBtNLTMli5TY= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, David Disseldorp <ddiss@suse.de>, Thadeu Lima de Souza Cascardo <cascardo@canonical.com>, Marcelo Henrique Cerri <marcelo.cerri@canonical.com>, Alexey Dobriyan <adobriyan@gmail.com>, Christian Brauner <christian.brauner@ubuntu.com>, Michel Lespinasse <walken@google.com>, Helge Deller <deller@gmx.de>, Oleg Nesterov <oleg@redhat.com>, Lorenzo Stoakes <lstoakes@gmail.com>, Andrew Morton <akpm@linux-foundation.org>, Linus Torvalds <torvalds@linux-foundation.org>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.4 30/47] proc: Avoid mixing integer types in mem_rw() Date: Mon, 26 Jul 2021 17:38:48 +0200 Message-Id: <20210726153823.934940637@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210726153822.980271128@linuxfoundation.org> References: <20210726153822.980271128@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: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/fs/proc/base.c b/fs/proc/base.c index b1ff8eb61802..4d68f5a9e4aa 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -887,7 +887,7 @@ static ssize_t mem_rw(struct file *file, char __user *buf, flags |= FOLL_WRITE; while (count > 0) { - int this_len = min_t(int, count, PAGE_SIZE); + size_t this_len = min_t(size_t, count, PAGE_SIZE); if (write && copy_from_user(page, buf, this_len)) { copied = -EFAULT;