24 Oct, 2020

1 commit


02 Sep, 2020

1 commit


07 Aug, 2020

2 commits


05 Aug, 2020

1 commit

  • Pull documentation updates from Jonathan Corbet:
    "It's been a busy cycle for documentation - hopefully the busiest for a
    while to come. Changes include:

    - Some new Chinese translations

    - Progress on the battle against double words words and non-HTTPS
    URLs

    - Some block-mq documentation

    - More RST conversions from Mauro. At this point, that task is
    essentially complete, so we shouldn't see this kind of churn again
    for a while. Unless we decide to switch to asciidoc or
    something...:)

    - Lots of typo fixes, warning fixes, and more"

    * tag 'docs-5.9' of git://git.lwn.net/linux: (195 commits)
    scripts/kernel-doc: optionally treat warnings as errors
    docs: ia64: correct typo
    mailmap: add entry for
    doc/zh_CN: add cpu-load Chinese version
    Documentation/admin-guide: tainted-kernels: fix spelling mistake
    MAINTAINERS: adjust kprobes.rst entry to new location
    devices.txt: document rfkill allocation
    PCI: correct flag name
    docs: filesystems: vfs: correct flag name
    docs: filesystems: vfs: correct sync_mode flag names
    docs: path-lookup: markup fixes for emphasis
    docs: path-lookup: more markup fixes
    docs: path-lookup: fix HTML entity mojibake
    CREDITS: Replace HTTP links with HTTPS ones
    docs: process: Add an example for creating a fixes tag
    doc/zh_CN: add Chinese translation prefer section
    doc/zh_CN: add clearing-warn-once Chinese version
    doc/zh_CN: add admin-guide index
    doc:it_IT: process: coding-style.rst: Correct __maybe_unused compiler label
    futex: MAINTAINERS: Re-add selftests directory
    ...

    Linus Torvalds
     

09 Jul, 2020

1 commit


25 Jun, 2020

1 commit


24 Jun, 2020

1 commit


20 Jun, 2020

1 commit

  • Fix Sphinx malformed table warnings in filesystems/locking.rst:

    lnx-58-rc1/Documentation/filesystems/locking.rst:443: WARNING: Malformed table.
    Text in column margin in table line 8.

    lnx-58-rc1/Documentation/filesystems/locking.rst:620: WARNING: Malformed table.
    Text in column margin in table line 2.

    Fixes: ec23eb54fbc7 ("docs: fs: convert docs without extension to ReST")
    Fixes: c1e8d7c6a7a6 ("mmap locking API: convert mmap_sem comments")
    Signed-off-by: Randy Dunlap
    Acked-by: Michel Lespinasse
    Link: https://lore.kernel.org/r/12c2afd1-2dcf-2ea0-02aa-bc2759729c77@infradead.org
    Signed-off-by: Jonathan Corbet

    Randy Dunlap
     

12 Jun, 2020

2 commits

  • Tiny merge resolutions along the way to 5.8-rc1.

    Change-Id: I24b3cca28ed36f32c92b6374dae5d7f006d3bced
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • Pull nfsd updates from Bruce Fields:
    "Highlights:

    - Keep nfsd clients from unnecessarily breaking their own
    delegations.

    Note this requires a small kthreadd addition. The result is Tejun
    Heo's suggestion (see link), and he was OK with this going through
    my tree.

    - Patch nfsd/clients/ to display filenames, and to fix byte-order
    when displaying stateid's.

    - fix a module loading/unloading bug, from Neil Brown.

    - A big series from Chuck Lever with RPC/RDMA and tracing
    improvements, and lay some groundwork for RPC-over-TLS"

    Link: https://lore.kernel.org/r/1588348912-24781-1-git-send-email-bfields@redhat.com

    * tag 'nfsd-5.8' of git://linux-nfs.org/~bfields/linux: (49 commits)
    sunrpc: use kmemdup_nul() in gssp_stringify()
    nfsd: safer handling of corrupted c_type
    nfsd4: make drc_slab global, not per-net
    SUNRPC: Remove unreachable error condition in rpcb_getport_async()
    nfsd: Fix svc_xprt refcnt leak when setup callback client failed
    sunrpc: clean up properly in gss_mech_unregister()
    sunrpc: svcauth_gss_register_pseudoflavor must reject duplicate registrations.
    sunrpc: check that domain table is empty at module unload.
    NFSD: Fix improperly-formatted Doxygen comments
    NFSD: Squash an annoying compiler warning
    SUNRPC: Clean up request deferral tracepoints
    NFSD: Add tracepoints for monitoring NFSD callbacks
    NFSD: Add tracepoints to the NFSD state management code
    NFSD: Add tracepoints to NFSD's duplicate reply cache
    SUNRPC: svc_show_status() macro should have enum definitions
    SUNRPC: Restructure svc_udp_recvfrom()
    SUNRPC: Refactor svc_recvfrom()
    SUNRPC: Clean up svc_release_skb() functions
    SUNRPC: Refactor recvfrom path dealing with incomplete TCP receives
    SUNRPC: Replace dprintk() call sites in TCP receive path
    ...

    Linus Torvalds
     

10 Jun, 2020

1 commit

  • Convert comments that reference mmap_sem to reference mmap_lock instead.

    [akpm@linux-foundation.org: fix up linux-next leftovers]
    [akpm@linux-foundation.org: s/lockaphore/lock/, per Vlastimil]
    [akpm@linux-foundation.org: more linux-next fixups, per Michel]

    Signed-off-by: Michel Lespinasse
    Signed-off-by: Andrew Morton
    Reviewed-by: Vlastimil Babka
    Reviewed-by: Daniel Jordan
    Cc: Davidlohr Bueso
    Cc: David Rientjes
    Cc: Hugh Dickins
    Cc: Jason Gunthorpe
    Cc: Jerome Glisse
    Cc: John Hubbard
    Cc: Laurent Dufour
    Cc: Liam Howlett
    Cc: Matthew Wilcox
    Cc: Peter Zijlstra
    Cc: Ying Han
    Link: http://lkml.kernel.org/r/20200520052908.204642-13-walken@google.com
    Signed-off-by: Linus Torvalds

    Michel Lespinasse
     

03 Jun, 2020

1 commit

  • This replaces ->readpages with a saner interface:
    - Return void instead of an ignored error code.
    - Page cache is already populated with locked pages when ->readahead
    is called.
    - New arguments can be passed to the implementation without changing
    all the filesystems that use a common helper function like
    mpage_readahead().

    Signed-off-by: Matthew Wilcox (Oracle)
    Signed-off-by: Andrew Morton
    Reviewed-by: John Hubbard
    Reviewed-by: Christoph Hellwig
    Reviewed-by: William Kucharski
    Cc: Chao Yu
    Cc: Cong Wang
    Cc: Darrick J. Wong
    Cc: Dave Chinner
    Cc: Eric Biggers
    Cc: Gao Xiang
    Cc: Jaegeuk Kim
    Cc: Joseph Qi
    Cc: Junxiao Bi
    Cc: Michal Hocko
    Cc: Zi Yan
    Cc: Johannes Thumshirn
    Cc: Miklos Szeredi
    Link: http://lkml.kernel.org/r/20200414150233.24495-12-willy@infradead.org
    Signed-off-by: Linus Torvalds

    Matthew Wilcox (Oracle)
     

09 May, 2020

1 commit

  • We currently revoke read delegations on any write open or any operation
    that modifies file data or metadata (including rename, link, and
    unlink). But if the delegation in question is the only read delegation
    and is held by the client performing the operation, that's not really
    necessary.

    It's not always possible to prevent this in the NFSv4.0 case, because
    there's not always a way to determine which client an NFSv4.0 delegation
    came from. (In theory we could try to guess this from the transport
    layer, e.g., by assuming all traffic on a given TCP connection comes
    from the same client. But that's not really correct.)

    In the NFSv4.1 case the session layer always tells us the client.

    This patch should remove such self-conflicts in all cases where we can
    reliably determine the client from the compound.

    To do that we need to track "who" is performing a given (possibly
    lease-breaking) file operation. We're doing that by storing the
    information in the svc_rqst and using kthread_data() to map the current
    task back to a svc_rqst.

    Signed-off-by: J. Bruce Fields

    J. Bruce Fields
     

09 Dec, 2019

1 commit


08 Nov, 2019

1 commit


06 Nov, 2019

1 commit

  • Add a flag option to get xattr method that could have a bit flag of
    XATTR_NOSECURITY passed to it. XATTR_NOSECURITY is generally then
    set in the __vfs_getxattr path when called by security
    infrastructure.

    This handles the case of a union filesystem driver that is being
    requested by the security layer to report back the xattr data.

    For the use case where access is to be blocked by the security layer.

    The path then could be security(dentry) ->
    __vfs_getxattr(dentry...XATTR_NOSECURITY) ->
    handler->get(dentry...XATTR_NOSECURITY) ->
    __vfs_getxattr(lower_dentry...XATTR_NOSECURITY) ->
    lower_handler->get(lower_dentry...XATTR_NOSECURITY)
    which would report back through the chain data and success as
    expected, the logging security layer at the top would have the
    data to determine the access permissions and report back the target
    context that was blocked.

    Without the get handler flag, the path on a union filesystem would be
    the errant security(dentry) -> __vfs_getxattr(dentry) ->
    handler->get(dentry) -> vfs_getxattr(lower_dentry) -> nested ->
    security(lower_dentry, log off) -> lower_handler->get(lower_dentry)
    which would report back through the chain no data, and -EACCES.

    For selinux for both cases, this would translate to a correctly
    determined blocked access. In the first case with this change a correct avc
    log would be reported, in the second legacy case an incorrect avc log
    would be reported against an uninitialized u:object_r:unlabeled:s0
    context making the logs cosmetically useless for audit2allow.

    This patch series is inert and is the wide-spread addition of the
    flags option for xattr functions, and a replacement of __vfs_getxattr
    with __vfs_getxattr(...XATTR_NOSECURITY).

    Signed-off-by: Mark Salyzyn
    Reviewed-by: Jan Kara
    Acked-by: Jan Kara
    Acked-by: Jeff Layton
    Acked-by: David Sterba
    Acked-by: Darrick J. Wong
    Acked-by: Mike Marshall
    Cc: Stephen Smalley
    Cc: linux-kernel@vger.kernel.org
    Cc: kernel-team@android.com
    Cc: linux-security-module@vger.kernel.org

    (cherry picked from (rejected from archive because of too many recipients))
    Signed-off-by: Mark Salyzyn
    Bug: 133515582
    Bug: 136124883
    Bug: 129319403
    Change-Id: Iabbb8771939d5f66667a26bb23ddf4c562c349a1

    Mark Salyzyn
     

01 Aug, 2019

1 commit

  • There are 3 remaining files without an extension inside the fs docs
    dir.

    Manually convert them to ReST.

    In the case of the nfs/exporting.rst file, as the nfs docs
    aren't ported yet, I opted to convert and add a :orphan: there,
    with should be removed when it gets added into a nfs-specific
    part of the fs documentation.

    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Jonathan Corbet

    Mauro Carvalho Chehab