01 Mar, 2017

1 commit

  • Pull ceph updates from Ilya Dryomov:
    "This time around we have:

    - support for rbd data-pool feature, which enables rbd images on
    erasure-coded pools (myself). CEPH_PG_MAX_SIZE has been bumped to
    allow erasure-coded profiles with k+m up to 32.

    - a patch for ceph_d_revalidate() performance regression introduced
    in 4.9, along with some cleanups in the area (Jeff Layton)

    - a set of fixes for unsafe ->d_parent accesses in CephFS (Jeff
    Layton)

    - buffered reads are now processed in rsize windows instead of rasize
    windows (Andreas Gerstmayr). The new default for rsize mount option
    is 64M.

    - ack vs commit distinction is gone, greatly simplifying ->fsync()
    and MOSDOpReply handling code (myself)

    ... also a few filesystem bug fixes from Zheng, a CRUSH sync up (CRUSH
    computations are still serialized though) and several minor fixes and
    cleanups all over"

    * tag 'ceph-for-4.11-rc1' of git://github.com/ceph/ceph-client: (52 commits)
    libceph, rbd, ceph: WRITE | ONDISK -> WRITE
    libceph: get rid of ack vs commit
    ceph: remove special ack vs commit behavior
    ceph: tidy some white space in get_nonsnap_parent()
    crush: fix dprintk compilation
    crush: do is_out test only if we do not collide
    ceph: remove req from unsafe list when unregistering it
    rbd: constify device_type structure
    rbd: kill obj_request->object_name and rbd_segment_name_cache
    rbd: store and use obj_request->object_no
    rbd: RBD_V{1,2}_DATA_FORMAT macros
    rbd: factor out __rbd_osd_req_create()
    rbd: set offset and length outside of rbd_obj_request_create()
    rbd: support for data-pool feature
    rbd: introduce rbd_init_layout()
    rbd: use rbd_obj_bytes() more
    rbd: remove now unused rbd_obj_request_wait() and helpers
    rbd: switch rbd_obj_method_sync() to ceph_osdc_call()
    libceph: pass reply buffer length through ceph_osdc_call()
    rbd: do away with obj_request in rbd_obj_read_sync()
    ...

    Linus Torvalds
     

28 Feb, 2017

4 commits

  • Fix typos and add the following to the scripts/spelling.txt:

    an user||a user
    an userspace||a userspace

    I also added "userspace" to the list since it is a common word in Linux.
    I found some instances for "an userfaultfd", but I did not add it to the
    list. I felt it is endless to find words that start with "user" such as
    "userland" etc., so must draw a line somewhere.

    Link: http://lkml.kernel.org/r/1481573103-11329-4-git-send-email-yamada.masahiro@socionext.com
    Signed-off-by: Masahiro Yamada
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Masahiro Yamada
     
  • This is the same as bf72eda5 except that it's a different file. Sync
    documentation with changes made by 730c9eec in 2009.

    Link: http://lkml.kernel.org/r/148577165630.9801.6081791213151121657.stgit@pluto.themaw.net
    Signed-off-by: Tomohiro Kusumi
    Signed-off-by: Ian Kent
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tomohiro Kusumi
     
  • This is the same as d8732841 except that it's a different file. A
    caller has no devid input, and devid is obtained via superblock.

    Link: http://lkml.kernel.org/r/148577165119.9801.16967562019122274820.stgit@pluto.themaw.net
    Signed-off-by: Tomohiro Kusumi
    Signed-off-by: Ian Kent
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tomohiro Kusumi
     
  • Link: http://lkml.kernel.org/r/148577164606.9801.12571810310561599401.stgit@pluto.themaw.net
    Signed-off-by: Tomohiro Kusumi
    Signed-off-by: Ian Kent
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tomohiro Kusumi
     

20 Feb, 2017

1 commit

  • This patch sets the io_pages bdi hint based on the rsize mount option.
    Without this patch large buffered reads (request size > max readahead)
    are processed sequentially in chunks of the readahead size (i.e. read
    requests are sent out up to the readahead size, then the
    do_generic_file_read() function waits until the first page is received).

    With this patch read requests are sent out at once up to the size
    specified in the rsize mount option (default: 64 MB).

    Signed-off-by: Andreas Gerstmayr
    Acked-by: Jeff Layton
    Signed-off-by: Yan, Zheng

    Andreas Gerstmayr
     

18 Feb, 2017

1 commit

  • Change module filename from af-rxrpc.ko to rxrpc.ko so as to be consistent
    with the other protocol drivers.

    Also adjust the documentation to reflect this.

    Further, there is no longer a standalone rxkad module, as it has been
    merged into the rxrpc core, so get rid of references to that.

    Reported-by: Marc Dionne
    Signed-off-by: David Howells
    Signed-off-by: David S. Miller

    David Howells
     

25 Jan, 2017

1 commit

  • Commit bc3e53f682d9 ("mm: distinguish between mlocked and pinned pages")
    added VmPin in /proc//status. Report that in
    Documentation/filesystems/proc.txt

    Also move Umask after Name to keep correct order.

    Link: http://lkml.kernel.org/r/20170114201219.30387-1-fabf@skynet.be
    Signed-off-by: Fabian Frederick
    Cc: Christoph Lameter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Fabian Frederick
     

18 Dec, 2016

2 commits

  • …/linux/kernel/git/mszeredi/vfs

    Pull partial readlink cleanups from Miklos Szeredi.

    This is the uncontroversial part of the readlink cleanup patch-set that
    simplifies the default readlink handling.

    Miklos and Al are still discussing the rest of the series.

    * git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs:
    vfs: make generic_readlink() static
    vfs: remove ".readlink = generic_readlink" assignments
    vfs: default to generic_readlink()
    vfs: replace calling i_op->readlink with vfs_readlink()
    proc/self: use generic_readlink
    ecryptfs: use vfs_get_link()
    bad_inode: add missing i_op initializers

    Linus Torvalds
     
  • Pull more vfs updates from Al Viro:
    "In this pile:

    - autofs-namespace series
    - dedupe stuff
    - more struct path constification"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (40 commits)
    ocfs2: implement the VFS clone_range, copy_range, and dedupe_range features
    ocfs2: charge quota for reflinked blocks
    ocfs2: fix bad pointer cast
    ocfs2: always unlock when completing dio writes
    ocfs2: don't eat io errors during _dio_end_io_write
    ocfs2: budget for extent tree splits when adding refcount flag
    ocfs2: prohibit refcounted swapfiles
    ocfs2: add newlines to some error messages
    ocfs2: convert inode refcount test to a helper
    simple_write_end(): don't zero in short copy into uptodate
    exofs: don't mess with simple_write_{begin,end}
    9p: saner ->write_end() on failing copy into non-uptodate page
    fix gfs2_stuffed_write_end() on short copies
    fix ceph_write_end()
    nfs_write_end(): fix handling of short copies
    vfs: refactor clone/dedupe_file_range common functions
    fs: try to clone files first in vfs_copy_file_range
    vfs: misc struct path constification
    namespace.c: constify struct path passed to a bunch of primitives
    quota: constify struct path in quota_on
    ...

    Linus Torvalds
     

17 Dec, 2016

2 commits

  • Pull overlayfs updates from Miklos Szeredi:
    "This update contains:

    - try to clone on copy-up

    - allow renaming a directory

    - split source into managable chunks

    - misc cleanups and fixes

    It does not contain the read-only fd data inconsistency fix, which Al
    didn't like. I'll leave that to the next year..."

    * 'overlayfs-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs: (36 commits)
    ovl: fix reStructuredText syntax errors in documentation
    ovl: fix return value of ovl_fill_super
    ovl: clean up kstat usage
    ovl: fold ovl_copy_up_truncate() into ovl_copy_up()
    ovl: create directories inside merged parent opaque
    ovl: opaque cleanup
    ovl: show redirect_dir mount option
    ovl: allow setting max size of redirect
    ovl: allow redirect_dir to default to "on"
    ovl: check for emptiness of redirect dir
    ovl: redirect on rename-dir
    ovl: lookup redirects
    ovl: consolidate lookup for underlying layers
    ovl: fix nested overlayfs mount
    ovl: check namelen
    ovl: split super.c
    ovl: use d_is_dir()
    ovl: simplify lookup
    ovl: check lower existence of rename target
    ovl: rename: simplify handling of lower/merged directory
    ...

    Linus Torvalds
     
  • Pull vfs updates from Al Viro:

    - more ->d_init() stuff (work.dcache)

    - pathname resolution cleanups (work.namei)

    - a few missing iov_iter primitives - copy_from_iter_full() and
    friends. Either copy the full requested amount, advance the iterator
    and return true, or fail, return false and do _not_ advance the
    iterator. Quite a few open-coded callers converted (and became more
    readable and harder to fuck up that way) (work.iov_iter)

    - several assorted patches, the big one being logfs removal

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
    logfs: remove from tree
    vfs: fix put_compat_statfs64() does not handle errors
    namei: fold should_follow_link() with the step into not-followed link
    namei: pass both WALK_GET and WALK_MORE to should_follow_link()
    namei: invert WALK_PUT logics
    namei: shift interpretation of LOOKUP_FOLLOW inside should_follow_link()
    namei: saner calling conventions for mountpoint_last()
    namei.c: get rid of user_path_parent()
    switch getfrag callbacks to ..._full() primitives
    make skb_add_data,{_nocache}() and skb_copy_to_page_nocache() advance only on success
    [iov_iter] new primitives - copy_from_iter_full() and friends
    don't open-code file_inode()
    ceph: switch to use of ->d_init()
    ceph: unify dentry_operations instances
    lustre: switch to use of ->d_init()

    Linus Torvalds
     

16 Dec, 2016

4 commits

  • - Fix broken long line block quote
    - Fix missing newline before bullets list
    - Use correct numbered list syntax

    Signed-off-by: Amir Goldstein
    Signed-off-by: Miklos Szeredi

    Amir Goldstein
     
  • Current code returns EXDEV when a directory would need to be copied up to
    move. We could copy up the directory tree in this case, but there's
    another, simpler solution: point to old lower directory from moved upper
    directory.

    This is achieved with a "trusted.overlay.redirect" xattr storing the path
    relative to the root of the overlay. After such attribute has been set,
    the directory can be moved without further actions required.

    This is a backward incompatible feature, old kernels won't be able to
    correctly mount an overlay containing redirected directories.

    Signed-off-by: Miklos Szeredi

    Miklos Szeredi
     
  • The quirk for file locks and leases no longer applies.

    Add missing info about renaming directory residing on lower layer.

    Signed-off-by: Miklos Szeredi

    Miklos Szeredi
     
  • Pull PCI updates from Bjorn Helgaas:
    "PCI changes:

    - add support for PCI on ARM64 boxes with ACPI. We already had this
    for theoretical spec-compliant hardware; now we're adding quirks
    for the actual hardware (Cavium, HiSilicon, Qualcomm, X-Gene)

    - add runtime PM support for hotplug ports

    - enable runtime suspend for Intel UHCI that uses platform-specific
    wakeup signaling

    - add yet another host bridge registration interface. We hope this is
    extensible enough to subsume the others

    - expose device revision in sysfs for DRM

    - to avoid device conflicts, make sure any VF BAR updates are done
    before enabling the VF

    - avoid unnecessary link retrains for ASPM

    - allow INTx masking on Mellanox devices that support it

    - allow access to non-standard VPD for Chelsio devices

    - update Broadcom iProc support for PAXB v2, PAXC v2, inbound DMA,
    etc

    - update Rockchip support for max-link-speed

    - add NVIDIA Tegra210 support

    - add Layerscape LS1046a support

    - update R-Car compatibility strings

    - add Qualcomm MSM8996 support

    - remove some uninformative bootup messages"

    * tag 'pci-v4.10-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (115 commits)
    PCI: Enable access to non-standard VPD for Chelsio devices (cxgb3)
    PCI: Expand "VPD access disabled" quirk message
    PCI: pciehp: Remove loading message
    PCI: hotplug: Remove hotplug core message
    PCI: Remove service driver load/unload messages
    PCI/AER: Log AER IRQ when claiming Root Port
    PCI/AER: Log errors with PCI device, not PCIe service device
    PCI/AER: Remove unused version macros
    PCI/PME: Log PME IRQ when claiming Root Port
    PCI/PME: Drop unused support for PMEs from Root Complex Event Collectors
    PCI: Move config space size macros to pci_regs.h
    x86/platform/intel-mid: Constify mid_pci_platform_pm
    PCI/ASPM: Don't retrain link if ASPM not possible
    PCI: iproc: Skip check for legacy IRQ on PAXC buses
    PCI: pciehp: Leave power indicator on when enabling already-enabled slot
    PCI: pciehp: Prioritize data-link event over presence detect
    PCI: rcar: Add gen3 fallback compatibility string for pcie-rcar
    PCI: rcar: Use gen2 fallback compatibility last
    PCI: rcar-gen2: Use gen2 fallback compatibility last
    PCI: rockchip: Move the deassert of pm/aclk/pclk after phy_init()
    ..

    Linus Torvalds
     

15 Dec, 2016

5 commits

  • Pull xfs updates from Dave Chinner:
    "There is quite a varied bunch of stuff in this update, and some of it
    you will have already merged through the ext4 tree which imported the
    dax-4.10-iomap-pmd topic branch from the XFS tree.

    There is also a new direct IO implementation that uses the iomap
    infrastructure. It's much simpler, faster, and has lower IO latency
    than the existing direct IO infrastructure.

    Summary:
    - DAX PMD faults via iomap infrastructure
    - Direct-io support in iomap infrastructure
    - removal of now-redundant XFS inode iolock, replaced with VFS
    i_rwsem
    - synchronisation with fixes and changes in userspace libxfs code
    - extent tree lookup helpers
    - lots of little corruption detection improvements to verifiers
    - optimised CRC calculations
    - faster buffer cache lookups
    - deprecation of barrier/nobarrier mount options - we always use
    REQ_FUA/REQ_FLUSH where appropriate for data integrity now
    - cleanups to speculative preallocation
    - miscellaneous minor bug fixes and cleanups"

    * tag 'xfs-for-linus-4.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dgc/linux-xfs: (63 commits)
    xfs: nuke unused tracepoint definitions
    xfs: use GPF_NOFS when allocating btree cursors
    xfs: use xfs_vn_setattr_size to check on new size
    xfs: deprecate barrier/nobarrier mount option
    xfs: Always flush caches when integrity is required
    xfs: ignore leaf attr ichdr.count in verifier during log replay
    xfs: use rhashtable to track buffer cache
    xfs: optimise CRC updates
    xfs: make xfs btree stats less huge
    xfs: don't cap maximum dedupe request length
    xfs: don't allow di_size with high bit set
    xfs: error out if trying to add attrs and anextents > 0
    xfs: don't crash if reading a directory results in an unexpected hole
    xfs: complain if we don't get nextents bmap records
    xfs: check for bogus values in btree block headers
    xfs: forbid AG btrees with level == 0
    xfs: several xattr functions can be void
    xfs: handle cow fork in xfs_bmap_trace_exlist
    xfs: pass state not whichfork to trace_xfs_extlist
    xfs: Move AGI buffer type setting to xfs_read_agi
    ...

    Linus Torvalds
     
  • Logfs was introduced to the kernel in 2009, and hasn't seen any non
    drive-by changes since 2012, while having lots of unsolved issues
    including the complete lack of error handling, with more and more
    issues popping up without any fixes.

    The logfs.org domain has been bouncing from a mail, and the maintainer
    on the non-logfs.org domain hasn't repsonded to past queries either.

    Signed-off-by: Christoph Hellwig
    Signed-off-by: Al Viro

    Christoph Hellwig
     
  • Currently we have two different structures for passing fault information
    around - struct vm_fault and struct fault_env. DAX will need more
    information in struct vm_fault to handle its faults so the content of
    that structure would become event closer to fault_env. Furthermore it
    would need to generate struct fault_env to be able to call some of the
    generic functions. So at this point I don't think there's much use in
    keeping these two structures separate. Just embed into struct vm_fault
    all that is needed to use it for both purposes.

    Link: http://lkml.kernel.org/r/1479460644-25076-2-git-send-email-jack@suse.cz
    Signed-off-by: Jan Kara
    Acked-by: Kirill A. Shutemov
    Cc: Ross Zwisler
    Cc: Dan Williams
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jan Kara
     
  • Pull configfs update from Christoph Hellwig:
    "Just one simple change from Andrzej to drop the pointless return value
    from the ->drop_link method"

    * tag 'configfs-for-4.10' of git://git.infradead.org/users/hch/configfs:
    fs: configfs: don't return anything from drop_link

    Linus Torvalds
     
  • Pull ext4 updates from Ted Ts'o:
    "This merge request includes the dax-4.0-iomap-pmd branch which is
    needed for both ext4 and xfs dax changes to use iomap for DAX. It also
    includes the fscrypt branch which is needed for ubifs encryption work
    as well as ext4 encryption and fscrypt cleanups.

    Lots of cleanups and bug fixes, especially making sure ext4 is robust
    against maliciously corrupted file systems --- especially maliciously
    corrupted xattr blocks and a maliciously corrupted superblock. Also
    fix ext4 support for 64k block sizes so it works well on ppcle. Fixed
    mbcache so we don't miss some common xattr blocks that can be merged"

    * tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4: (86 commits)
    dax: Fix sleep in atomic contex in grab_mapping_entry()
    fscrypt: Rename FS_WRITE_PATH_FL to FS_CTX_HAS_BOUNCE_BUFFER_FL
    fscrypt: Delay bounce page pool allocation until needed
    fscrypt: Cleanup page locking requirements for fscrypt_{decrypt,encrypt}_page()
    fscrypt: Cleanup fscrypt_{decrypt,encrypt}_page()
    fscrypt: Never allocate fscrypt_ctx on in-place encryption
    fscrypt: Use correct index in decrypt path.
    fscrypt: move the policy flags and encryption mode definitions to uapi header
    fscrypt: move non-public structures and constants to fscrypt_private.h
    fscrypt: unexport fscrypt_initialize()
    fscrypt: rename get_crypt_info() to fscrypt_get_crypt_info()
    fscrypto: move ioctl processing more fully into common code
    fscrypto: remove unneeded Kconfig dependencies
    MAINTAINERS: fscrypto: recommend linux-fsdevel for fscrypto patches
    ext4: do not perform data journaling when data is encrypted
    ext4: return -ENOMEM instead of success
    ext4: reject inodes with negative size
    ext4: remove another test in ext4_alloc_file_blocks()
    Documentation: fix description of ext4's block_validity mount option
    ext4: fix checks for data=ordered and journal_async_commit options
    ...

    Linus Torvalds
     

13 Dec, 2016

2 commits

  • Pull documentation update from Jonathan Corbet:
    "These are the documentation changes for 4.10.

    It's another busy cycle for the docs tree, as the sphinx conversion
    continues. Highlights include:

    - Further work on PDF output, which remains a bit of a pain but
    should be more solid now.

    - Five more DocBook template files converted to Sphinx. Only 27 to
    go... Lots of plain-text files have also been converted and
    integrated.

    - Images in binary formats have been replaced with more
    source-friendly versions.

    - Various bits of organizational work, including the renaming of
    various files discussed at the kernel summit.

    - New documentation for the device_link mechanism.

    ... and, of course, lots of typo fixes and small updates"

    * tag 'docs-4.10' of git://git.lwn.net/linux: (193 commits)
    dma-buf: Extract dma-buf.rst
    Update Documentation/00-INDEX
    docs: 00-INDEX: document directories/files with no docs
    docs: 00-INDEX: remove non-existing entries
    docs: 00-INDEX: add missing entries for documentation files/dirs
    docs: 00-INDEX: consolidate process/ and admin-guide/ description
    scripts: add a script to check if Documentation/00-INDEX is sane
    Docs: change sh -> awk in REPORTING-BUGS
    Documentation/core-api/device_link: Add initial documentation
    core-api: remove an unexpected unident
    ppc/idle: Add documentation for powersave=off
    Doc: Correct typo, "Introdution" => "Introduction"
    Documentation/atomic_ops.txt: convert to ReST markup
    Documentation/local_ops.txt: convert to ReST markup
    Documentation/assoc_array.txt: convert to ReST markup
    docs-rst: parse-headers.pl: cleanup the documentation
    docs-rst: fix media cleandocs target
    docs-rst: media/Makefile: reorganize the rules
    docs-rst: media: build SVG from graphviz files
    docs-rst: replace bayer.png by a SVG image
    ...

    Linus Torvalds
     
  • Similar to being able to examine if a process has been correctly
    confined with seccomp, the state of no_new_privs is equally interesting,
    so this adds it to /proc/$pid/status.

    Link: http://lkml.kernel.org/r/20161103214041.GA58566@beast
    Signed-off-by: Kees Cook
    Reviewed-by: Jann Horn
    Cc: Jonathan Corbet
    Cc: Vlastimil Babka
    Cc: Michal Hocko
    Cc: Konstantin Khlebnikov
    Cc: Hugh Dickins
    Cc: Naoya Horiguchi
    Cc: Rodrigo Freire
    Cc: John Stultz
    Cc: Ross Zwisler
    Cc: Robert Ho
    Cc: Jerome Marchand
    Cc: Andy Lutomirski
    Cc: Johannes Weiner
    Cc: Alexey Dobriyan
    Cc: "Richard W.M. Jones"
    Cc: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kees Cook
     

09 Dec, 2016

2 commits


04 Dec, 2016

1 commit


03 Dec, 2016

1 commit

  • For the autofs module to be able to reliably check if a dentry is a
    mountpoint in a multiple namespace environment the ->d_manage() dentry
    operation will need to take a path argument instead of a dentry.

    Link: http://lkml.kernel.org/r/20161011053352.27645.83962.stgit@pluto.themaw.net
    Signed-off-by: Ian Kent
    Cc: Al Viro
    Cc: Eric W. Biederman
    Cc: Omar Sandoval
    Signed-off-by: Andrew Morton
    Signed-off-by: Al Viro

    Ian Kent
     

01 Dec, 2016

1 commit

  • Documentation/filesystems/configfs/configfs.txt says:

    "When unlink(2) is called on the symbolic link, the source item is
    notified via the ->drop_link() method. Like the ->drop_item() method,
    this is a void function and cannot return failure."

    The ->drop_item() is indeed a void function, the ->drop_link() is
    actually not. This, together with the fact that the value of ->drop_link()
    is silently ignored suggests, that it is the ->drop_link() return
    type that should be corrected and changed to void.

    This patch changes drop_link() signature and all its users.

    Signed-off-by: Andrzej Pietrasiewicz
    [hch: reverted reformatting of some code]
    Signed-off-by: Christoph Hellwig

    Andrzej Pietrasiewicz
     

22 Nov, 2016

1 commit

  • Currently the revision isn't available via sysfs/libudev thus if one wants
    to know the value one needs to read through the config file, which can be
    quite time-consuming because it wakes/powers up the device.

    There are at least two userspace components which could make use the new
    file: libpciaccess and libdrm. The former wakes up _every_ PCI device,
    which can be observed via glxinfo when using Mesa 10.0+ drivers. The
    latter, in association with Mesa 13.0, can lead to 2-3 second delays while
    starting firefox, thunderbird or chromium.

    Link: https://bugs.freedesktop.org/show_bug.cgi?id=98502
    Tested-by: Mauro Santos
    Signed-off-by: Emil Velikov
    Signed-off-by: Bjorn Helgaas
    Reviewed-by: Alex Deucher
    Reviewed-by: Daniel Vetter

    Emil Velikov
     

21 Nov, 2016

1 commit


20 Nov, 2016

1 commit

  • The iowait is not reliable by reading from /proc/stat, so this
    method to get iowait is not suggested. And we mark it in the
    document.

    Signed-off-by: Cao Jin
    Signed-off-by: Chao Fan
    Signed-off-by: Jonathan Corbet

    Chao Fan
     

19 Nov, 2016

1 commit


31 Oct, 2016

1 commit


24 Oct, 2016

1 commit


20 Oct, 2016

1 commit

  • This reverts more of:

    b76437579d13 ("procfs: mark thread stack correctly in proc//maps")

    ... which was partially reverted by:

    65376df58217 ("proc: revert /proc//maps [stack:TID] annotation")

    Originally, /proc/PID/task/TID/maps was the same as /proc/TID/maps.

    In current kernels, /proc/PID/maps (or /proc/TID/maps even for
    threads) shows "[stack]" for VMAs in the mm's stack address range.

    In contrast, /proc/PID/task/TID/maps uses KSTK_ESP to guess the
    target thread's stack's VMA. This is racy, probably returns garbage
    and, on arches with CONFIG_TASK_INFO_IN_THREAD=y, is also crash-prone:
    KSTK_ESP is not safe to use on tasks that aren't known to be running
    ordinary process-context kernel code.

    This patch removes the difference and just shows "[stack]" for VMAs
    in the mm's stack range. This is IMO much more sensible -- the
    actual "stack" address really is treated specially by the VM code,
    and the current thread stack isn't even well-defined for programs
    that frequently switch stacks on their own.

    Reported-by: Jann Horn
    Signed-off-by: Andy Lutomirski
    Acked-by: Thomas Gleixner
    Cc: Al Viro
    Cc: Andrew Morton
    Cc: Borislav Petkov
    Cc: Brian Gerst
    Cc: Johannes Weiner
    Cc: Kees Cook
    Cc: Linus Torvalds
    Cc: Linux API
    Cc: Peter Zijlstra
    Cc: Tycho Andersen
    Link: http://lkml.kernel.org/r/3e678474ec14e0a0ec34c611016753eea2e1b8ba.1475257877.git.luto@kernel.org
    Signed-off-by: Ingo Molnar

    Andy Lutomirski
     

15 Oct, 2016

1 commit

  • …/kernel/git/shuah/linux-kselftest

    Pull kselftest updates from Shuah Khan:
    "This update consists of:

    - Fixes and improvements to existing tests

    - Moving code from Documentation to selftests, samples, and tools:

    * Moves dnotify_test, prctl, ptp, vDSO, ia64, watchdog, and
    networking tests from Documentation to selftests.

    * Moves mic/mpssd, misc-devices/mei, timers, watchdog, auxdisplay,
    and blackfin examples from Documentation to samples.

    * Moves accounting, laptops/dslm, and pcmcia/crc32hash tools from
    Documentation to tools.

    * Deletes BUILD_DOCSRC and its dependencies"

    * tag 'linux-kselftest-4.9-rc1-update' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: (21 commits)
    selftests/futex: Check ANSI terminal color support
    Doc: update 00-INDEX files to reflect the runnable code move
    samples: move blackfin gptimers-example from Documentation
    tools: move pcmcia crc32hash tool from Documentation
    tools: move laptops dslm tool from Documentation
    tools: move accounting tool from Documentation
    samples: move auxdisplay example code from Documentation
    samples: move watchdog example code from Documentation
    samples: move timers example code from Documentation
    samples: move misc-devices/mei example code from Documentation
    samples: move mic/mpssd example code from Documentation
    selftests: Move networking/timestamping from Documentation
    selftests: move watchdog tests from Documentation/watchdog
    selftests: move ia64 tests from Documentation/ia64
    selftests: move vDSO tests from Documentation/vDSO
    selftests: move ptp tests from Documentation/ptp
    selftests: move prctl tests from Documentation/prctl
    selftests: move dnotify_test from Documentation/filesystems
    selftests/timers: Add missing error code assignment before test
    selftests/zram: replace ZRAM_LZ4_COMPRESS
    ...

    Linus Torvalds
     

12 Oct, 2016

3 commits

  • Sync with changes made by commit 730c9eeca980 ("autofs4: improve
    parameter usage") which introduced an union for various ioctl commands
    instead of having statically named arg1,2.

    This commit simply replaces arg1,2 with the corresponding fields without
    changing semantics.

    Link: http://lkml.kernel.org/r/20160812024831.12352.24667.stgit@pluto.themaw.net
    Signed-off-by: Tomohiro Kusumi
    Signed-off-by: Ian Kent
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tomohiro Kusumi
     
  • The explanation on how ioctl handles devid seems incorrect. Userspace who
    calls this ioctl has no input regarding devid, and ioctl implementation
    retrieves devid via superblock.

    Link: http://lkml.kernel.org/r/20160812024825.12352.13486.stgit@pluto.themaw.net
    Signed-off-by: Tomohiro Kusumi
    Signed-off-by: Ian Kent
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tomohiro Kusumi
     
  • plus minor whitespace fixes.

    Link: http://lkml.kernel.org/r/20160812024734.12352.17122.stgit@pluto.themaw.net
    Signed-off-by: Tomohiro Kusumi
    Signed-off-by: Ian Kent
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tomohiro Kusumi
     

11 Oct, 2016

1 commit

  • Pull more vfs updates from Al Viro:
    ">rename2() work from Miklos + current_time() from Deepa"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
    fs: Replace current_fs_time() with current_time()
    fs: Replace CURRENT_TIME_SEC with current_time() for inode timestamps
    fs: Replace CURRENT_TIME with current_time() for inode timestamps
    fs: proc: Delete inode time initializations in proc_alloc_inode()
    vfs: Add current_time() api
    vfs: add note about i_op->rename changes to porting
    fs: rename "rename2" i_op to "rename"
    vfs: remove unused i_op->rename
    fs: make remaining filesystems use .rename2
    libfs: support RENAME_NOREPLACE in simple_rename()
    fs: support RENAME_NOREPLACE for local filesystems
    ncpfs: fix unused variable warning

    Linus Torvalds