From patchwork Fri Apr 12 06:23:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Righi X-Patchwork-Id: 1084429 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44gSXR5M07z9s9h; Fri, 12 Apr 2019 16:24:07 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1hEpbR-0006yo-7s; Fri, 12 Apr 2019 06:23:57 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1hEpbO-0006yg-Dr for kernel-team@lists.ubuntu.com; Fri, 12 Apr 2019 06:23:54 +0000 Received: from mail-wr1-f70.google.com ([209.85.221.70]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1hEpbO-0005wU-3D for kernel-team@lists.ubuntu.com; Fri, 12 Apr 2019 06:23:54 +0000 Received: by mail-wr1-f70.google.com with SMTP id k17so5946084wrq.7 for ; Thu, 11 Apr 2019 23:23:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=D8WLU3WeoYxc7qLqC/qTVFOfYlHFqXpElN0CTrK7H0A=; b=Li1pXiLHCWbODWf/qe1KVlCmtqpJqftzHHGQZwlDD++1uYocprwch8+jJ6uGDXt8jZ oMTPOgz29IU6FS64/9lk4yUQJzAsmA8pzyYRY4bfn6ItE6uRlAvQNlM/6Qbpa8TOw/z0 Ndnhmh4BA5S9rqu+EgmPXsn/IOjQ019Wa8pCrEeOX6oOpBf+GERCxnaJhJcjrukKqJym YyIPXXgJfWyud+l/vD/hRHhmqXRW8esrYykOB0McXkg7lYiQSVP8Dzm+5heqyM3j5rgB OCpOEsV9NZWaoLQ3+psWpUN18MwLbcqRnilFxMWuiO9Xmeoku5pkQVmElKlNWShAd9PX Q2+Q== X-Gm-Message-State: APjAAAWSc/6Y6pe7mZunZ1/iOG9oJwAsOLYBIgl+RLkx0l3L+aQ9sEWE OPyxoV1kGOn6T/TVzM0EtycyBaKlawxtZyMd9A4TVk6wcGPP6/JfULAjuttK3ZcVpdHnt7QYV+J EzwgwR6ACJQd5zPeA+3zKXMA0fCSxmKML+nBmQuyfcg== X-Received: by 2002:a1c:a803:: with SMTP id r3mr8858563wme.78.1555050233650; Thu, 11 Apr 2019 23:23:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPVvVSUedx5p/+2UwCWo2vbTsrxsdf7lgACtrV6hZgK9HIcFSoMbcZmLSMzOMJoyf8NdxieA== X-Received: by 2002:a1c:a803:: with SMTP id r3mr8858550wme.78.1555050233413; Thu, 11 Apr 2019 23:23:53 -0700 (PDT) Received: from localhost (host141-127-dynamic.17-87-r.retail.telecomitalia.it. [87.17.127.141]) by smtp.gmail.com with ESMTPSA id u10sm5630861wml.32.2019.04.11.23.23.52 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Apr 2019 23:23:52 -0700 (PDT) Date: Fri, 12 Apr 2019 08:23:51 +0200 From: Andrea Righi To: kernel-team@lists.ubuntu.com Subject: [SRU] [PULL] [Bionic] fuse: set of stable fixes Message-ID: <20190412062351.GA20331@xps-13> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1823972 This is a set of fixes marked for stable that are not included in the Bionic kernel. All changes are fairly trivial, all clean cherry picks, except for three patches that require minimal adjustment to be applied. Other kernels (Cosmic and above) have all these fixes applied already. Compile-tested all supported architectures. One of the fix ("fuse: fix initial parallel dirops") has been tested reproducing the bug on amd64. The following changes since commit 5f1ee1100f874b50e5f53d8e772a447acdffe1af: openvswitch: fix flow actions reallocation (2019-04-08 17:22:37 +0200) are available in the Git repository at: git://git.launchpad.net/~arighi/+git/bionic-linux fuse-fixes for you to fetch changes up to 9bce5508628cba897c9e165e9bfd4baf2395720d: fuse: decrement NR_WRITEBACK_TEMP on the right page (2019-04-11 21:03:13 +0200) ---------------------------------------------------------------- Andrey Ryabinin (1): fuse: Don't access pipe->buffers without pipe_lock() Chad Austin (1): fuse: continue to send FUSE_RELEASEDIR when FUSE_OPEN returns ENOSYS Jann Horn (1): fuse: call pipe_buf_release() under pipe lock Kirill Tkhai (2): fuse: Fix use-after-free in fuse_dev_do_read() fuse: Fix use-after-free in fuse_dev_do_write() Lukas Czerner (1): fuse: fix use-after-free in fuse_direct_IO() Miklos Szeredi (11): fuse: fix double request_end() fuse: fix unlocked access to processing queue fuse: umount should wait for all requests fuse: Fix oops at process_init_reply() fuse: fix initial parallel dirops fuse: set FR_SENT while locked fuse: fix blocked_waitq wakeup fuse: fix leaked notify reply fuse: fix possibly missed wake-up after abort fuse: handle zero sized retrieve correctly fuse: decrement NR_WRITEBACK_TEMP on the right page fs/fuse/dev.c | 78 +++++++++++++++++++++++++++++++++++++++++++++----------- fs/fuse/dir.c | 12 +++++---- fs/fuse/file.c | 27 +++++++++++--------- fs/fuse/fuse_i.h | 7 ++--- fs/fuse/inode.c | 37 +++++++++++++++------------ 5 files changed, 110 insertions(+), 51 deletions(-)