From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zeniv.linux.org.uk ([195.92.253.2]:48342 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755184AbcB1XDG (ORCPT ); Sun, 28 Feb 2016 18:03:06 -0500 Date: Sun, 28 Feb 2016 23:03:03 +0000 From: Al Viro To: Amber Thrall Cc: linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 1/1] fs: strncmp() for user space buffers Message-ID: <20160228230303.GQ17997@ZenIV.linux.org.uk> References: <1456699822-2924-1-git-send-email-amber@thrall.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1456699822-2924-1-git-send-email-amber@thrall.me> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Sun, Feb 28, 2016 at 02:50:22PM -0800, Amber Thrall wrote: > The simple_strncmp_to_buffer() function provides an easier method for > developers to compare a kernel space buffer against user space data. This > process is done in a few drivers and may be simplified to a single function. *blink* The name is rather confusing and I would say that semantics is unexpected as well. I would like to see proposed users of that primitive...