Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2945747imm; Thu, 24 May 2018 19:38:02 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqTu8YWYtbMOJttHCVGPumlE8xThFb8bTHCU7Lhgq8KPb2Skwld7JacbWY47ObuFmljHyFc X-Received: by 2002:a63:788e:: with SMTP id t136-v6mr464235pgc.424.1527215882406; Thu, 24 May 2018 19:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527215882; cv=none; d=google.com; s=arc-20160816; b=KwMNosjBL3MdQh7b0Ur4nVCic2jZX7Ttz4aE3eY9WQz923MDbwd6C/xn2EoFoLQhU/ p0Uyg8a3V92cdjgcsb/pxTqWktIU6CSsANwQl5aRdbRflI/+pWL/cArpPvl0Pl/Oukqx yvI54l76rFKXCHvVqOW1bd1a/+vPBuanSGLz4LhFo1iBS+NEJ3kC4zvb9BlEzpuJu1bP 3dH4xsUymijnEEkF21tSMzYIYJGz+t5u7QNYtypeWhooGxb/+TQSU5umPUVg2/sjEA4A O03q4liX/9sB+U5p1amlrhOD4sAYX4Ql7jiOQoEIB/TjLiES4niRr5dQMuDVxfgu1Lfn j8bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=JZ/4AMb/exOnJbf0tI1/MAZU5mBl+OgV8MBmL0ErmaU=; b=cJvoZoyef3Egh34dpeS/48PG7qNJgvgeam7kj66IhuitAtjvsIlRG7fWQCv0pnEVcE HgxVInkC9GITRJjEzSVs184o0ZVcgKy1PLomOX7Kcv7scbe+6W6InASldyELwGYPr02s n0LkeO/Ef09uKG8qrXQ2b50HEOx7FfgU7mjRrV4xiTJm0zdGyXeEorpM6Y9S8SwJ6IhT iPjB9MWsjpqsMsbiIlxPUEbQfMCnYM2dZ36r0unaBvu1EBoX0JpkFdk7xk5h/7qA9iy4 lLP1loE7VkAhfroEaYDFEfEeJIP3bL6g3n6wNE0OUuAh/MiSuyd+d0W2bDKN5clhbkyo l8qQ== ARC-Authentication-Results: i=1; mx.google.com; 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 e3-v6si22663259pfc.336.2018.05.24.19.37.48; Thu, 24 May 2018 19:38: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; 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 S1034230AbeEXSQm (ORCPT + 99 others); Thu, 24 May 2018 14:16:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:58001 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S970236AbeEXSQh (ORCPT ); Thu, 24 May 2018 14:16:37 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 0E368AF13; Thu, 24 May 2018 18:16:36 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id EE2F9DA909; Thu, 24 May 2018 20:13:52 +0200 (CEST) From: David Sterba To: torvalds@linux-foundation.org Cc: David Sterba , clm@fb.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] Btrfs fix for 4.17-rc6 Date: Thu, 24 May 2018 20:13:50 +0200 Message-Id: X-Mailer: git-send-email 2.16.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, please consider pulling a fix for btrfs. This time it's really a one-liner and prevents leaking an internal error value 1 out of the ftruncate syscall. This has been observed in practice. The steps to reproduce make a common pattern (open/write/fync/ftruncate) but also need the application to not check only for negative values and happens only for compressed inlined files. The conditions are narrow but as this could break userspace I think it's better to merge it now and not wait for the merge window. Thanks. ---------------------------------------------------------------- The following changes since commit 02ee654d3a04563c67bfe658a05384548b9bb105: btrfs: fix crash when trying to resume balance without the resume flag (2018-05-17 14:38:24 +0200) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-4.17-rc6-tag for you to fetch changes up to d50147381aa0c9725d63a677c138c47f55d6d3bc: Btrfs: fix error handling in btrfs_truncate() (2018-05-24 11:56:57 +0200) ---------------------------------------------------------------- Omar Sandoval (1): Btrfs: fix error handling in btrfs_truncate() fs/btrfs/inode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)