From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 10 Oct 2016 15:26:51 +0200 (CEST) Received: from localhost.localdomain ([127.0.0.1]:34340 "EHLO linux-mips.org" rhost-flags-OK-OK-OK-FAIL) by eddie.linux-mips.org with ESMTP id S23992009AbcJJN0od97vD (ORCPT ); Mon, 10 Oct 2016 15:26:44 +0200 Received: from scotty.linux-mips.net (localhost.localdomain [127.0.0.1]) by scotty.linux-mips.net (8.15.2/8.14.8) with ESMTP id u9ADQhTn008317; Mon, 10 Oct 2016 15:26:43 +0200 Received: (from ralf@localhost) by scotty.linux-mips.net (8.15.2/8.15.2/Submit) id u9ADQhDB008316; Mon, 10 Oct 2016 15:26:43 +0200 Date: Mon, 10 Oct 2016 15:26:43 +0200 From: Ralf Baechle To: Paul Burton Cc: linux-mips@linux-mips.org, Kees Cook Subject: Re: [PATCH] MIPS: Enable hardened usercopy Message-ID: <20161010132642.GA8229@linux-mips.org> References: <20161008214714.5375-1-paul.burton@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161008214714.5375-1-paul.burton@imgtec.com> User-Agent: Mutt/1.7.0 (2016-08-17) Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 55377 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ralf@linux-mips.org Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips On Sat, Oct 08, 2016 at 10:47:14PM +0100, Paul Burton wrote: > Enable CONFIG_HARDENED_USERCOPY checks for MIPS, calling check_object > size in all of copy_{to,from}_user(), __copy_{to,from}_user() & > __copy_{to,from}_user_inatomic(). Patch looks good but I was wondering how about further usermode accessors such as csum_partial_copy_from_user, csum_and_copy_from_user, csum_and_copy_to_user, csum_partial_copy_nocheck? Ralf