Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5945228ybi; Wed, 12 Jun 2019 11:09:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxVc1rKRxtQL28dNNvD76hgymmDk5mUQgejFYNpwJcmnOR0mSgbCjNjKFhW4nzdfZAPHRas X-Received: by 2002:a17:90a:37e9:: with SMTP id v96mr513800pjb.10.1560362942213; Wed, 12 Jun 2019 11:09:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560362942; cv=none; d=google.com; s=arc-20160816; b=leRI+VIBC2/XGNP/rYxcsX9O4Q4rqKFVALzxIRDOhRF62ExoIY/aBbunYWN9HNMCfE H7PB+SbdsXWn40Gghukzl76XBiPKfrezJcZxAfp+EVyYhTCIsFjHSiZy+X7/Fgm2+WjH cOgBjtqSfTXqdspkg02/zsjNN9rtG/VK/oLbWzOoEkfnWpCdXSr5Ais879B0eltf8RRX UQDwUQqs18eccfeNHLzXEA2+zNgOBqS9ycpP9LLudcqA4pe+C9+Rhi4vhzF8bIWDGV17 yA0zntcxgKnSbsuONwJwszAuqTYaK6w/Zv6OZ6gSgiq+LQ94fQLeuvsekKwDIn0Br3Xh CKFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :date:in-reply-to:references:message-id:cc:to:subject:from :dkim-signature:dkim-signature; bh=Hm2gC+regS6aFJ0Z5S9VnOE8zeLWgmtCRNQHokPDkY8=; b=lXZ4FybFfKvGwxQsEpsF3jxcMGjMUJj1KvBQLJ1qWEs13nnKwzWAR9cPcR352SHNPd SpNaeO0/USXd28o/QiOm8CcIUCp1HKjQ0E2V/9BWjUFdumo0nzBjUzB3zezW3UsoA3Sv BUqPaMeaIiSxBKplKdTECGN7Ywf/Xd+OisJg6ArWzRomAfp2OcqUg9IZW3i76qbJaOVS XW+1RDshbwzpUIMF0G/saZDD9B2dgjqbxw+sszqr9ZS2ljCjL3ejpQ6xiWdA0NfL44PH 8eLUUvd3TfP8Pe25N9sr+fl04sZ1KrRokMlzX1kR1iYiWDbxYFyTQsOlf5eqcCO349yW IKjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nexedi.com header.s=mandrill header.b="qlDkCCC/"; dkim=pass header.i=@mandrillapp.com header.s=mandrill header.b=gyUQ2OA+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 i1si419910pjk.57.2019.06.12.11.08.47; Wed, 12 Jun 2019 11:09:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nexedi.com header.s=mandrill header.b="qlDkCCC/"; dkim=pass header.i=@mandrillapp.com header.s=mandrill header.b=gyUQ2OA+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731106AbfFLRDI (ORCPT + 99 others); Wed, 12 Jun 2019 13:03:08 -0400 Received: from mail177-30.suw61.mandrillapp.com ([198.2.177.30]:35904 "EHLO mail177-30.suw61.mandrillapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731040AbfFLRDI (ORCPT ); Wed, 12 Jun 2019 13:03:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=mandrill; d=nexedi.com; h=From:Subject:To:Cc:Message-Id:References:In-Reply-To:Date:MIME-Version:Content-Type:Content-Transfer-Encoding; i=kirr@nexedi.com; bh=Hm2gC+regS6aFJ0Z5S9VnOE8zeLWgmtCRNQHokPDkY8=; b=qlDkCCC/dPk74baVrVBLmOyLG+QU2eZx1SW9cdMEM2vAaKwb3Uj1ZVjG9dQUHZG7CqHgOKn2opNw zmxoR6WyKbtWnRPy0A3ja3InFo6aPJahQB5TCVqrIi/05h1Z+SbKhFGfSjJMOoHXrKFtPRyDFNDs sGOxzYm5BnXaxI0RabQ= Received: from pmta06.mandrill.prod.suw01.rsglab.com (127.0.0.1) by mail177-30.suw61.mandrillapp.com id h04o4m22rtkd for ; Wed, 12 Jun 2019 17:03:05 +0000 (envelope-from ) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; i=@mandrillapp.com; q=dns/txt; s=mandrill; t=1560358985; h=From : Subject : To : Cc : Message-Id : References : In-Reply-To : Date : MIME-Version : Content-Type : Content-Transfer-Encoding : From : Subject : Date : X-Mandrill-User : List-Unsubscribe; bh=Hm2gC+regS6aFJ0Z5S9VnOE8zeLWgmtCRNQHokPDkY8=; b=gyUQ2OA+FpqROVGuWEuouAFmLCuyTSCFEJiHlRTKoqy65wnR2sJIcjFX6zHmJTmBUjJUBd tCnYKV/guLBZNJGm9WNTM8TzJc3brbd9Ugs71cZMXWAcHd8uowf6wkBR8w/0ePcRTlWG6AVs GdTomTrpwS3dagPdbDPvj+LIn55Rg= From: Kirill Smelkov Subject: Re: [PATCH] fuse: require /dev/fuse reads to have enough buffer capacity (take 2) Received: from [87.98.221.171] by mandrillapp.com id 145d451a13654eaaa66dd24b26a9f854; Wed, 12 Jun 2019 17:03:05 +0000 To: Sander Eikelenboom Cc: Miklos Szeredi , Miklos Szeredi , , linux-kernel , linux-fsdevel Message-Id: <20190612170259.GA27637@deco.navytux.spb.ru> References: <876aefd0-808a-bb4b-0897-191f0a8d9e12@eikelenboom.it> <20190611202738.GA22556@deco.navytux.spb.ru> <20190612112544.GA21465@deco.navytux.spb.ru> <20190612141220.GA25389@deco.navytux.spb.ru> In-Reply-To: X-Report-Abuse: Please forward a copy of this message, including all headers, to abuse@mandrill.com X-Report-Abuse: You can also report abuse here: http://mandrillapp.com/contact/abuse?id=31050260.145d451a13654eaaa66dd24b26a9f854 X-Mandrill-User: md_31050260 Date: Wed, 12 Jun 2019 17:03:05 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 12, 2019 at 06:28:17PM +0200, Sander Eikelenboom wrote: > On 12/06/2019 16:12, Kirill Smelkov wrote: > > On Wed, Jun 12, 2019 at 03:03:49PM +0200, Sander Eikelenboom wrote: > >> On 12/06/2019 13:25, Kirill Smelkov wrote: > >>> On Wed, Jun 12, 2019 at 09:44:49AM +0200, Miklos Szeredi wrote: > >>>> On Tue, Jun 11, 2019 at 10:28 PM Kirill Smelkov wr= ote: > >>>> > >>>>> Miklos, would 4K -> `sizeof(fuse_in_header) + sizeof(fuse_write_in)= ` for > >>>>> header room change be accepted? > >>>> > >>>> Yes, next cycle. For 4.2 I'll just push the revert. > >>> > >>> Thanks Miklos. Please consider queuing the following patch for 5.3. > >>> Sander, could you please confirm that glusterfs is not broken with th= is > >>> version of the check? > >>> > >>> Thanks beforehand, > >>> Kirill > >> > >> > >> Hmm unfortunately it doesn't build, see below. > >> [...] > >> fs/fuse/dev.c:1336:14: error: =E2=80=98fuse_in_header=E2=80=99 undecla= red (first use in this function) > >> sizeof(fuse_in_header) + sizeof(fuse_write_in) + fc->max_write)= ) > > > > Sorry, my bad, it was missing "struct" before fuse_in_header. I > > originally compile-tested the patch with `make -j4`, was distracted ont= o > > other topic and did not see the error after returning due to long tail > > of successful CC lines. Apologize for the inconvenience. Below is a > > fixed patch that was both compile-tested and runtime-tested with my FUS= E > > workloads (non-glusterfs). > > > > Kirill > > > > Just tested and it works for me, thanks ! Thanks for feedback. Kirill