Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6708761ybh; Thu, 8 Aug 2019 04:29:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxphkzw88pse1oKuXXo4yqHbJAiLxc6sGxKuMg7JBjVGLZuSIe4mPicj7k4CaggfJ0vccZR X-Received: by 2002:a62:f202:: with SMTP id m2mr15494806pfh.6.1565263760373; Thu, 08 Aug 2019 04:29:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565263760; cv=none; d=google.com; s=arc-20160816; b=WiKuiaUkdPvVC1l8G8rILY3BN5Ho2ym2C1MkfkXKK3Ww3boOO4jw0ewIFPVS026OY+ zurzIUs6EHt9xBvtm2mva5qRN7SFChpimQSWWLP7C5qu/tmaB6ZVkOqm+Za7Tz1lJh9u qAHmPuDnt/EZeVZWrF0yfhjAIMsvm3xAfZ7WgSaR9KInMdcGAoEEaKHGJDwK4N9T4k6d vnYU6mQEbXfS/5EnfcV/oqS1nKdJbLWcINpE3s0oc9wVt6U5FoPmkwqcJmtGaNfakJZr M7GQE0IgBG05ozzfJFWxVDXnxB2Rh2pGzrI2iXVTtqfXS1w1U5DnU9ZTEr+R6GcpSGur vs0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:from:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:date; bh=e79SL6ITbsTJ0KzrBjaPQjSQI3f8VN55Yzo3Q2t6FIE=; b=dQ//Di/Xq2P1aaiVZs8VW6Ttwu31WCFdG2HSrhr4m9EkLbNbnWK9dzKFXrO7eDH1aM u/6Z0efeqNUP6pIDgXWr9TaOBoehwerW5J5Lx+ejwXB6MRPf38ZlH+eO2jq73gyPQANp 7z5IwfnFs39Ri3Bb7pksDhyk8mR7ALurRjTI4Oeq5kqJO80hWHQ4BhPYF1ONTQ4LSjL1 SdnQQ1jPPTsZKTDvypwNUasit89LdgoqpL9jkxsXRF6DjCIIYNVGOTl7WVUA3y62DHgZ gh1EKSyMgjGcKKDN5ky0u9W2JV72rGKik2m444gxvPPETSgcuKTQmXpcVRmykj7ux1q+ diYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si46987895pli.427.2019.08.08.04.29.06; Thu, 08 Aug 2019 04:29:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727824AbfHHL2o (ORCPT + 99 others); Thu, 8 Aug 2019 07:28:44 -0400 Received: from fieldses.org ([173.255.197.46]:53142 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726055AbfHHL2o (ORCPT ); Thu, 8 Aug 2019 07:28:44 -0400 Received: by fieldses.org (Postfix, from userid 2815) id 16DD22070; Thu, 8 Aug 2019 07:28:44 -0400 (EDT) Date: Thu, 8 Aug 2019 07:28:44 -0400 To: Andy Shevchenko Cc: "J. Bruce Fields" , linux-nfs@vger.kernel.org Subject: Re: [PATCH 08/16] nfsd: escape high characters in binary data Message-ID: <20190808112844.GB7830@fieldses.org> References: <1561042275-12723-1-git-send-email-bfields@redhat.com> <1561042275-12723-9-git-send-email-bfields@redhat.com> <20190806121931.GA29578@smile.fi.intel.com> <20190806185008.GC9456@parsley.fieldses.org> <20190807090007.GK30120@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190807090007.GK30120@smile.fi.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Wed, Aug 07, 2019 at 12:00:07PM +0300, Andy Shevchenko wrote: > Maybe it requires more thinking about? > I think it is still possible to extend existing, rather to take workarounds > like this one. Yeah, agreed. > > So, I wrote a patch series that removes the string_escape_mem flags that > > aren't used > > Have you considered the potential users that can be converted to use > string_escape_mem()? > > I know about at least one (needs to be reworked a bit, but it is in slow > progress). > > There are potentially others that would be converted using "unused" flags. OK, that'd be interesting to know about. > > >, simplifies it a bit, then separates the flags into two > > different types: those that select which characters to escape > > (non-printable, non-ascii, whitespace, etc.) and those that choose a > > style of escaping to use (octal, hex, or \\). That seems to make the > > code a little easier to extend while still covering the cases people > > actually use. I'll try to get those out this week and you can tell me > > what you think. > > Will be glad to help! > > In any case regarding to this one, I would like rather to see it's never > appeared, or now will be gone in favour of string_escape_mem() extension. To be clear, it's already merged. Apologies, I actually saw your name when looking for people to cc, but the last commit was 5 years ago and I assumed you'd moved on. The project to extend string_escape_mem() looked more complicated than I first expected so I decided to merge this first and then follow up with my attempt at that. --b.