Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp779309pxb; Tue, 14 Sep 2021 08:33:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7gAx3SeDeO0dImFWVak/SEmnyX1YXdhDSUvwHZWBeD86ITPW95gvUEYGxM2eCbZTquGbz X-Received: by 2002:ac2:4f92:: with SMTP id z18mr13829771lfs.266.1631633595252; Tue, 14 Sep 2021 08:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631633595; cv=none; d=google.com; s=arc-20160816; b=BLN4CA5tUpSPyql+DWsT0rddOKu3aUhL7QaRzgu1INbBGUfbRyfrNWN0JKVvQiogH7 RkY4uXQ7Lldt1tPBQussR3maeRbGanbH+2+bRh6yjVfNiFFLBd8NMEtLm3WLFwEF3K8W BpNmZU+yP+WHDP2C5ltvvB0MuzAysvh3JytvFrIAnvV3eSWwVKMCCa9wXPZtmYSqnTUX VVU21L2iJm1tI4j1asELa4VvdP+C0dElx3erBdEhctUAULWWmxaEu/3oZ4OF4m33sHTW ZIf130rfcdaeojLJcsOSy0fG5ZgOTW2NEB+jNrXoon5uSuGd3YE06+N4A1yJ2ohZ0O6A S/Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=pj1nEmGc6GPxu9G/oc2nevS20QupY+/UaA95xT94y/8=; b=ro5MYQ8T3DMBpoI9reiTA0rKICCtss4a7i4gupxAqquykac/gnaD+ojVqoWfYuYw8U PiA2Fu1DP+OqmuCH5InfbeLb/sR8Yx4ulyhQLBPpoZHsUMY+b7DV5IGfGawgWm40QSV/ abLU8VRI9U4PdwmRLq3+U58/3/LEHDIkzBbTT3PS51Byeo/EAMxhQzRUuQlDSwh6HFFf XT+hANvdBw8DOtvxsKdx1wI55KeN1MfgAEVLq/ZzY53lZfj+IXMK4fJeB+pcCYVjQVKh TzNr/se5aSEHgD/gZjSRHTDSErNAdgwtnl6pJiqjKz6we5VvYLsY2qlKy6CzlPtr5QhZ 1PXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z14si16305813ljj.243.2021.09.14.08.32.45; Tue, 14 Sep 2021 08:33:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234636AbhINPbd (ORCPT + 99 others); Tue, 14 Sep 2021 11:31:33 -0400 Received: from verein.lst.de ([213.95.11.211]:60835 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233202AbhINPbd (ORCPT ); Tue, 14 Sep 2021 11:31:33 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 56AEB68AFE; Tue, 14 Sep 2021 17:30:12 +0200 (CEST) Date: Tue, 14 Sep 2021 17:30:11 +0200 From: Christoph Hellwig To: Greg Kroah-Hartman Cc: Christoph Hellwig , "Rafael J. Wysocki" , Alexander Viro , Jens Axboe , Tejun Heo , linux-block@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 13/13] xfs: convert xfs_sysfs attrs to use ->seq_show Message-ID: <20210914153011.GA815@lst.de> References: <20210913054121.616001-1-hch@lst.de> <20210913054121.616001-14-hch@lst.de> <20210914073003.GA31077@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 14, 2021 at 05:28:08PM +0200, Greg Kroah-Hartman wrote: > We can "force" it by not allowing buffers to be bigger than that, which > is what the code has always done. I think we want to keep that for now > and not add the new seq_show api. The buffer already is not larger than that. The problem is that sysfs_emit does not actually work for the non-trivial attributes, which generally are the source of bugs.