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 BDF14C43461 for ; Mon, 3 May 2021 20:54:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8B64561283 for ; Mon, 3 May 2021 20:54:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229753AbhECUy6 (ORCPT ); Mon, 3 May 2021 16:54:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbhECUy4 (ORCPT ); Mon, 3 May 2021 16:54:56 -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 BF64BC061573; Mon, 3 May 2021 13:54:02 -0700 (PDT) Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94 #2 (Red Hat Linux)) id 1ldfZk-00AkGr-7J; Mon, 03 May 2021 20:53:56 +0000 Date: Mon, 3 May 2021 20:53:56 +0000 From: Al Viro To: Andy Shevchenko Cc: "J. Bruce Fields" , Kefeng Wang , linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, "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: <20210503204907.34013-11-andriy.shevchenko@linux.intel.com> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Again, any new uses of seq_get_buf()/seq_commit() are grounds for automatic NAK. These interfaces *will* be withdrawn.