Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1908145imm; Sun, 8 Jul 2018 14:12:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdU2thbWMkzOJ7uckUJlQNBSJ3wtBFQEcSq853BksKoBUdVzA9aX2/xGFM215EP+9w7zpeM X-Received: by 2002:a17:902:a508:: with SMTP id s8-v6mr18281840plq.223.1531084355744; Sun, 08 Jul 2018 14:12:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531084355; cv=none; d=google.com; s=arc-20160816; b=0NlKqID2G+k9uFdzHZeP3EavtR6HiqofgD98EgnpWeTwh1rKvN82liI11P5he+EWx7 cexON4g8vnQBLxU3fWdPiKRbPjcWjnnmnsA8aAB8505ZJMVryzE32ZLl2xYnavpgr9cw uLDpHs/3yhF47LlNlj8LGsWmaTHBlW+tddGjU+wcrFSbCT/V5OcNdzrcPzCNKbmoMlZT J/5iASsiihcg7j7cJrq/4530QTPP3kiRLIzTlXNsF+5CIEhcWS+AUABmBQpYF74T7TJc AB4QTW9hALGjnWe+WhAKnogJ6yswJQcIrm+dxBOR7fmXiWTZ0Zrq2IoX8rOBAHWe9Jgn 36Ng== 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 :dkim-signature:arc-authentication-results; bh=F1HxcWVqaSjbuP+zXThSIlCffhKigykTlbf2ywMqFS8=; b=I7StjxEBACdpOslm/xNcf0UPHoOFZVsCbYWMVUFNrRZpNgAYIsc6Wp4g4hljkNk1Ni IqJSEmqsAyZ/nWtwBJ47OR9U4g4nk1g9EUS+GEpv8wcjjOp8OLwadEkfBPMyARQutDE5 eOd4Nn/wlEBnZt5pGI2m2+zE7C3kNVrm7dYiM3dLmROUgdh/9HNkJ/qx11HfXlX2Vw27 5WqwE+YJK+3Fw7BqVnqO4XJQf77AstPd9y6bugC2T7hSlcUMVqaUCmJ2YEvKbUmxrHo4 PV/G80NvFudvkXP4vZuGC4iwEOocxLxttGBwPIEeXVIF+pP5fOg3ONH04Xd4wjPsC5Rd QOCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iyy49HJo; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cd5-v6si13448106plb.174.2018.07.08.14.12.21; Sun, 08 Jul 2018 14:12:35 -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=@gmail.com header.s=20161025 header.b=iyy49HJo; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933073AbeGHVFe (ORCPT + 99 others); Sun, 8 Jul 2018 17:05:34 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:46159 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933074AbeGHVFc (ORCPT ); Sun, 8 Jul 2018 17:05:32 -0400 Received: by mail-pf0-f175.google.com with SMTP id l123-v6so12138256pfl.13; Sun, 08 Jul 2018 14:05:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=F1HxcWVqaSjbuP+zXThSIlCffhKigykTlbf2ywMqFS8=; b=iyy49HJoPZpoqiJBhDI2SLPfCaWFEBzSSB0DAgUNAItodEIDzgp47pPu7lGihM+oce BFy+vWS48D5SW1GJ1leiyVBA8PX4OWjvPeJLG2NCOAw3gd3U3+pyaoAT8WbvSOtqgc4O 0JvhY9RNRvs587+qU83CBnqiqapmgnHilFV4DSqkycu7OhVl970cO4ARGZTDO7VvCG+R XDgH178NHbDSJtky0KH3u5w0E7eDIX/VPo1Ppdiq+flFeAIXLZAgP9BZ4/8dqHy9AXWC AKcrf1TVPAYSdVaK2rmDvvZqi2j1LdgZhAEPIgDUMxNA348WTmvCr+fcL0feKk+paJAJ PKZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=F1HxcWVqaSjbuP+zXThSIlCffhKigykTlbf2ywMqFS8=; b=Evf5EVjHfbVjESNF40Tiu0nasA62OKP4dRlirhwDw8Sb6307niuJuTZ9oc3ePJmtvB TsJUqr3jhukvThd0fp/Ki0U0ZfMk9HbJj5h1YEB6ZBaFQBeyHSLQBxKbLBSOCB+svRhW OvWNiKxB+75pyRptQnB99C6FXP0FYLp8d2Z2s14sfws+yxDv45zJiKgLJJ4kZIlZNneA V3iVNPC8GMC+GeV4oOzuqjRwH+jjqJwUoKaJvUvghsBPhNfc/A5SKrTB9dXp7LWwEZxS FXp7rYKroy2ekMp+cyuEA92LvMaSy/inKtF36pF0k1qRdoxKqrleibP2mhUmnmaa6Hpn yBhg== X-Gm-Message-State: APt69E3j247rShg8Rq+yiqTRDZQ7FtZnM7JfPxKfXKruBd18FxGXr8Eg vQz8htxoea8RhRNx/NfMBKY= X-Received: by 2002:a65:5683:: with SMTP id v3-v6mr16122054pgs.176.1531083931572; Sun, 08 Jul 2018 14:05:31 -0700 (PDT) Received: from sol.localdomain (c-67-185-97-198.hsd1.wa.comcast.net. [67.185.97.198]) by smtp.gmail.com with ESMTPSA id x68-v6sm23355681pfb.138.2018.07.08.14.05.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Jul 2018 14:05:30 -0700 (PDT) From: Eric Biggers To: David Howells , Alexander Viro , linux-fsdevel@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Eric Biggers Subject: [PATCH vfs/for-next 00/18] fs_context fixes Date: Sun, 8 Jul 2018 14:01:36 -0700 Message-Id: <20180708210154.10423-1-ebiggers3@gmail.com> X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David and Al, here are some fixes for the fs_context patches. Feel free to fold these into the original patches if you want. Patches 13-18 are cleanups only. Eric Biggers (18): sysfs: check return value of kernfs_get_tree() fs_context: fix shrinker leak in sget_fc() fs_context: fix detecting full log buffer fs_context: fix fs_context leak in simple_pin_fs() fs_context: fix mount option blacklist fs_context: fix memory leak with 's' (source) command fs_context: fix double free of legacy_fs_context data fsmount: pass up error code from dentry_open() fsmount: fix handling FSMOUNT_CLOEXEC fsmount: fix bypassing SB_MANDLOCK permission check fspick: fix path leak fspick: add missing permission check fsmount: removed unused variable 'inode' fsopen,fspick: factor out log allocation fsopen,fspick: rename fsopen_create_fd() to fscontext_create_fd() fs_context: de-obfuscate control flow in fscontext_read() fs_context: de-obfuscate command validation fs_context: fix fscontext_write() comment fs/fs_context.c | 47 ++++++++++++++++++-------------- fs/fsopen.c | 71 +++++++++++++++++++++++++----------------------- fs/libfs.c | 4 ++- fs/namespace.c | 20 ++++++++------ fs/super.c | 2 +- fs/sysfs/mount.c | 3 ++ 6 files changed, 81 insertions(+), 66 deletions(-) -- 2.18.0