From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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=-3.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no 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 5AC65C433ED for ; Mon, 3 May 2021 21:09:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2E76861283 for ; Mon, 3 May 2021 21:09:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229603AbhECVKj (ORCPT ); Mon, 3 May 2021 17:10:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbhECVKi (ORCPT ); Mon, 3 May 2021 17:10:38 -0400 Received: from zeniv-ca.linux.org.uk (zeniv-ca.linux.org.uk [IPv6:2607:5300:60:148a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7BEBC061573; Mon, 3 May 2021 14:09:44 -0700 (PDT) Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94 #2 (Red Hat Linux)) id 1ldfou-00AkQv-2m; Mon, 03 May 2021 21:09:36 +0000 Date: Mon, 3 May 2021 21:09:36 +0000 From: Al Viro To: Andy Shevchenko Cc: Andy Shevchenko , "J. Bruce Fields" , Kefeng Wang , Linux Kernel Mailing List , linux-nfs@vger.kernel.org, Linux FS Devel , "J. Bruce Fields" , Chuck Lever , Andy Shevchenko , Andrew Morton Subject: Re: [PATCH v1 10/12] nfsd: Avoid non-flexible API in seq_quote_mem() Message-ID: References: <20210503204907.34013-1-andriy.shevchenko@linux.intel.com> <20210503204907.34013-11-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Mon, May 03, 2021 at 11:56:41PM +0300, Andy Shevchenko wrote: > On Mon, May 3, 2021 at 11:54 PM Al Viro wrote: > > > > On Mon, May 03, 2021 at 11:49:05PM +0300, Andy Shevchenko wrote: > > > string_escape_mem_ascii() followed by seq_escape_mem_ascii() is completely > > > non-flexible and shouldn't be exist from day 1. > > > > > > Replace it with properly called string_escape_mem(). > > > > NAKed-by: Al Viro > > > > Reason: use of seq_get_buf(). Which should have been static inline in > > fs/seq_file.c, to start with. > > I see. > > > Again, any new uses of seq_get_buf()/seq_commit() are grounds for automatic > > NAK. These interfaces *will* be withdrawn. > > You meant that this is no way to get rid of this guy? > Any suggestions how to replace that API with a newer one? seq_escape_mem(), perhaps?