Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3339435pxx; Mon, 2 Nov 2020 06:28:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyN+exrVf9ZQn5cRBymlIUzus6HOM/dtVtTrqAR3vC20Zn/nakYAYwhUFAMWuYyhTBPGLv9 X-Received: by 2002:a50:96d2:: with SMTP id z18mr17553932eda.367.1604327331066; Mon, 02 Nov 2020 06:28:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604327331; cv=none; d=google.com; s=arc-20160816; b=Hoxbp+Ud2cc0CngV71gSXZsXH0FJcL8dlYSwfmODTmF0dlju0VT+g5sUJEX9Gd6rcX 7Ck6JtPt2mSGJzhNaOUKFeYfVApj7Alrv1gqmjMt7K0KKbGQ13Y/JGykRrZkXP8D0utj Cypy8BSF/teRu82rnWcUQnfba1t2E11LWJCfuu4cpzXmXZ/fzjxnH45biw+OutnHphLy 9cATLY7gwgLz0GGyZH4D/Ar1acfml7y6R2c7T58CAcaj/uK4Q036fyxdev4WQOJdSHsj rsHTkllEBrZocz6YPuH4Q/5xYrLmPEVo9LGVzxZv8ZgBSclQj6p8uUYGk30J0HYqXKCW k3vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=l2zRKLgNsnXTGjSSS56WpLlhmJPfrlhiyUVGzUpqBHE=; b=bX42ImHq5fhwFiJ8VipQO/R393023OwIEBDwoTGeyno9kgL7RqYhN2vjzOBLI2tIZ1 S+FpdLOCW8JsobpqBP/Om+jte6mDdZ/2vlFMfKs/+6pCpW+gX6qyIJASGPOKTqQhxsD1 OnR0PLtb7qe/lMGqG3LFLJ3knlx13XRMNmj7pSmqlbDi4RaVHTki5fjceaNiSqtgxq0Z t5tR/wNsbn2+KoffZaQ9DS9QGhrRkXlGBdAXMpQHtIUv/35o01giV69SRzYdvAfIiuTt P8KBqTfspVZgG+HqyHiKZmGFKTXBHZLwF5iVN4HM7395wNL6Br606jHMZzPM7Tf9Tejq 8b3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fdEAAQVJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t24si10593264edr.506.2020.11.02.06.28.27; Mon, 02 Nov 2020 06:28:51 -0800 (PST) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fdEAAQVJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726110AbgKBO0N (ORCPT + 99 others); Mon, 2 Nov 2020 09:26:13 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:31153 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726104AbgKBO0M (ORCPT ); Mon, 2 Nov 2020 09:26:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604327171; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=l2zRKLgNsnXTGjSSS56WpLlhmJPfrlhiyUVGzUpqBHE=; b=fdEAAQVJoKmcLt0lzRJrptxqXC8yKPyI/UxaQCQYAQ69G0lNT46Xg7p55eIF3JuSAOwWEI dbgrm5VcuiGzJ48pXmPuIfktqLAJNYEBt2Vr/uf+Cnv5bb3PU+Apw7qouJIO56VMnmlBx0 n5J6rvm51eBlVEWygo0toXPyBAW+yuc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-270-L8aQTOltN0aPgeK5VZD5WQ-1; Mon, 02 Nov 2020 09:26:10 -0500 X-MC-Unique: L8aQTOltN0aPgeK5VZD5WQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A83FA18BA283; Mon, 2 Nov 2020 14:26:08 +0000 (UTC) Received: from ovpn-112-12.rdu2.redhat.com (ovpn-112-12.rdu2.redhat.com [10.10.112.12]) by smtp.corp.redhat.com (Postfix) with ESMTP id A5EB05DA6B; Mon, 2 Nov 2020 14:25:57 +0000 (UTC) Message-ID: <77529e99ca9c2d228a67dd8d789d83afdcd1ace3.camel@redhat.com> Subject: Re: WARN_ON(fuse_insert_writeback(root, wpa)) in tree_insert() From: Qian Cai To: Miklos Szeredi Cc: Vivek Goyal , Stefan Hajnoczi , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, virtio-fs-list Date: Mon, 02 Nov 2020 09:25:57 -0500 In-Reply-To: References: <89f0dbf6713ebd44ec519425e3a947e71f7aed55.camel@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2020-10-29 at 16:20 +0100, Miklos Szeredi wrote: > On Thu, Oct 29, 2020 at 4:02 PM Qian Cai wrote: > > On Wed, 2020-10-07 at 16:08 -0400, Qian Cai wrote: > > > Running some fuzzing by a unprivileged user on virtiofs could trigger the > > > warning below. The warning was introduced not long ago by the commit > > > c146024ec44c ("fuse: fix warning in tree_insert() and clean up writepage > > > insertion"). > > > > > > From the logs, the last piece of the fuzzing code is: > > > > > > fgetxattr(fd=426, name=0x7f39a69af000, value=0x7f39a8abf000, size=1) > > > > I can still reproduce it on today's linux-next. Any idea on how to debug it > > further? > > Can you please try the attached patch? It has survived the testing over the weekend. There is a issue that virtiofsd hung, but it looks like a separate issue.