Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5817953ybv; Wed, 12 Feb 2020 00:34:49 -0800 (PST) X-Google-Smtp-Source: APXvYqxTTJIuZd+whsHJVlyNpWwFse/Cuqi3TRTsstnXnQ5QJ2axKQm8oWJ/QnLBxdBaPr+6QPTD X-Received: by 2002:a9d:65cb:: with SMTP id z11mr7863878oth.348.1581496489453; Wed, 12 Feb 2020 00:34:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581496489; cv=none; d=google.com; s=arc-20160816; b=QwmiHcgReh+VSsD+S8dHXX/6uWcrHl4zydkZFw/6p/mO94gF4HlD4PcKN8IbwCK8WY 7ksoAuNNJE1KTPFmLtI+s2vSJFl+Aoix70hZVVDYsHspNXJX1pOdIddScpKKz+/8FAcE M4A7Q88Z4hqLOjLlbnAUrM+bFz0gySHjFSKsScBEbyAmooano8kFLaxXUYvIDAgdrM8Q 6E9Fg5oUiPfbYE021NclGeDU6v205UsXu8LI8D56VyFplhVJSNZpZqHUi7aAHPctVTCv ltgsrYF5u3gopJCaCi0eMlSha2mC5KbBkH4DK/RAL1cgSFHmzs/z2nV/ZcWg+jXkJrak dNcg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=j/svfKaOLhoaBXf9xolfDPb9BbUNyifdFqflAWmeNnU=; b=oEm/0ljroT2Dxe+eQ7DOXDkQiVO+PLi19Zyq836bR3SjbwxmnuWNyG+4/4MfjRfgek pcQNA7yOmBi69EfK9qfQvIHyZrLByQyG/R3wYXsAE535S4P1O7bhn/qJOoCAOd/z1CUe JRpEb/8aWmmDzBjEqzXDU3+884WEuhpzVwNgsm0AF7XY7akNUVbUkNPM0ZwX5rjV0QmJ hYje17m+72iezPWuqrOrJ7E6fKRZVPASaiVH1VhRnH7Jd27V9C89D3nqLXCI4g8a7qpq 3ROTRbPpcujdFRG8rUJDQScpO9mgwndaCjfkGDbPEsJFM9XsCnmsWhxaJsqQDxcshY6D sWgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=N4szO5XU; 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 g17si3241833otr.261.2020.02.12.00.34.36; Wed, 12 Feb 2020 00:34:49 -0800 (PST) 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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=N4szO5XU; 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 S1728457AbgBLIec (ORCPT + 99 others); Wed, 12 Feb 2020 03:34:32 -0500 Received: from mail-il1-f193.google.com ([209.85.166.193]:46774 "EHLO mail-il1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728370AbgBLIec (ORCPT ); Wed, 12 Feb 2020 03:34:32 -0500 Received: by mail-il1-f193.google.com with SMTP id t17so989702ilm.13 for ; Wed, 12 Feb 2020 00:34:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=j/svfKaOLhoaBXf9xolfDPb9BbUNyifdFqflAWmeNnU=; b=N4szO5XUPRjGCoUDsNAd9a++zJ/nXsIdAJ5sFtmc2IRUF3NJlEdhuHi3PHX00g/LPC d67VX+gCs+1vWyj2SwCGzhnRKyzp4CQrRz2TbO6csDRhf5FR5Tc+/ZUDiyp4uJYAU7YV kedtxWfeVeCJAqm4hNAxWRwmVc1wi8bKYL6Ew= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=j/svfKaOLhoaBXf9xolfDPb9BbUNyifdFqflAWmeNnU=; b=dSl23CAG3NrMhzxLyLxSaKF500iCiWrCUd2Aqp0ccRWSBzjBotsXZedPkJ0AjbXdKS pcDqyXdW1rn604Vd3mrTCSm2VulEqOoRyGqn+jjh3Y9C2gcwa7uWjEKodf4EKielKweh ndW7fSHZ00GtXo21mmLrGx7iLZjiZ35OM1TBqeI54ySgx2G7Crswp4UD1rwWHUUHnW3f b7YY4XcBwcwnjotIXnVDWvH9ucXG6SfyT9qdG2jpSMjoYmKCnyfBJHo/6t8KlQYhoefB F2JnXR5f7pw5IGxHHuu36jRz3QNILO1diNq8bk+FaPL1IrigTeWIuiOnS1J/xceOgjMs X+sA== X-Gm-Message-State: APjAAAUfR7CCYDzdO/R4GnU340GbWabS5bcy7VJVf4cNYhwWfvd3VnbF fGlO1KRXSj15qlf4tHajciiQIBNFSGYBLDdRLpiUhw== X-Received: by 2002:a92:89c2:: with SMTP id w63mr9956076ilk.252.1581496471825; Wed, 12 Feb 2020 00:34:31 -0800 (PST) MIME-Version: 1.0 References: <20200209080918.1562823-1-michael+lkml@stapelberg.ch> In-Reply-To: From: Miklos Szeredi Date: Wed, 12 Feb 2020 09:34:20 +0100 Message-ID: Subject: Re: Still a pretty bad time on 5.4.6 with fuse_request_end. To: Michael Stapelberg Cc: fuse-devel , Greg Kroah-Hartman , Kyle Sanderson , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org 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, Feb 12, 2020 at 8:58 AM Michael Stapelberg wrote: > (gdb) p *req->args > $5 =3D { > nodeid =3D 18446683600620026424, > opcode =3D 2167928246, > in_numargs =3D 65535, > out_numargs =3D 65535, > force =3D false, > noreply =3D false, > nocreds =3D false, > in_pages =3D false, > out_pages =3D false, > out_argvar =3D true, > page_zeroing =3D true, > page_replace =3D false, > in_args =3D {{ > size =3D 978828800, > value =3D 0x2fafce0 > }, { > size =3D 978992728, > value =3D 0xffffffff8138efaa > }, { > size =3D 50002688, > value =3D 0xffffffff8138635f > }}, > out_args =3D {{ > size =3D 570, > value =3D 0xffffc90002fafb10 > }, { > size =3D 6876, > value =3D 0x3000000001adc > }}, > end =3D 0x1000100000001 > } Okay, that looks like rubbish, the request was possibly freed and overwritt= en. > Independently, as a separate test, I have also modified the source like t= his: > > bool async; > bool async_early =3D req->args->end; > > if (test_and_set_bit(FR_FINISHED, &req->flags)) > goto put_request; > > async =3D req->args->end; > > =E2=80=A6and printed the value of async and async_early. async is true, > async_early is false. Can you save and print out the value of req->opcode before the test_and_set_bit()? Thanks, Miklos