From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932589AbdECUNS (ORCPT ); Wed, 3 May 2017 16:13:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56862 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753414AbdECUNK (ORCPT ); Wed, 3 May 2017 16:13:10 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 7EFED128D Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=dhowells@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 7EFED128D Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <87shkl3fni.fsf@rasmusvillemoes.dk> References: <87shkl3fni.fsf@rasmusvillemoes.dk> <149382747487.30481.15428192741961545429.stgit@warthog.procyon.org.uk> <149382748241.30481.12971647975706869540.stgit@warthog.procyon.org.uk> To: Rasmus Villemoes Cc: dhowells@redhat.com, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, mszeredi@redhat.com Subject: Re: [PATCH 1/9] Provide a function to create a NUL-terminated string from unterminated data MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6061.1493842387.1@warthog.procyon.org.uk> Date: Wed, 03 May 2017 21:13:07 +0100 Message-ID: <6062.1493842387@warthog.procyon.org.uk> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Wed, 03 May 2017 20:13:09 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rasmus Villemoes wrote: > > Provide a function, kstrcreate() > > why not kmemdup_nul, since it seems to be to kmemdup exactly as > memdup_user_nul is to memdup_user? Yeah, that would work too. Or kmem2str(). David