24 May, 2016

28 commits

  • remove_arg_zero() does free_arg_page() for no reason. This was needed
    before and only if CONFIG_MMU=y: see commit 4fc75ff4816c ("exec: fix
    remove_arg_zero"), install_arg_page() was called for every page != NULL
    in bprm->page[] array. Today install_arg_page() has already gone and
    free_arg_page() is nop after another commit b6a2fea39318 ("mm: variable
    length argument support").

    CONFIG_MMU=n does free_arg_pages() in free_bprm() and thus it doesn't
    need remove_arg_zero()->free_arg_page() too; apart from get_arg_page()
    it never checks if the page in bprm->page[] was allocated or not, so the
    "extra" non-freed page is fine. OTOH, this free_arg_page() can add the
    minor pessimization, the caller is going to do copy_strings_kernel()
    right after remove_arg_zero() which will likely need to re-allocate the
    same page again.

    And as Hujunjie pointed out, the "offset == PAGE_SIZE" check is wrong
    because we are going to increment bprm->p once again before return, so
    CONFIG_MMU=n "leaks" the page anyway if '0' is the final byte in this
    page.

    NOTE: remove_arg_zero() assumes that argv[0] is null-terminated but this
    is not necessarily true. copy_strings() does "len = strnlen_user(...)",
    then copy_from_user(len) but another thread or debuger can overwrite the
    trailing '0' in between. Afaics nothing really bad can happen because
    we must always have the null-terminated bprm->filename copied by the 1st
    copy_strings_kernel(), but perhaps we should change this code to check
    "bprm->p < bprm->exec" anyway, and/or change copy_strings() to ensure
    that the last byte in string is always zero.

    Link: http://lkml.kernel.org/r/20160517155335.GA31435@redhat.com
    Signed-off-by: Oleg Nesterov
    Reported by: hujunjie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Oleg Nesterov
     
  • This fixes block comments with proper formatting to eliminate the
    following checkpatch.pl warnings:

    "WARNING: Block comments use * on subsequent lines"
    "WARNING: Block comments use a trailing */ on a separate line"

    Link: http://lkml.kernel.org/r/1462886671-3521-8-git-send-email-konishi.ryusuke@lab.ntt.co.jp
    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ryusuke Konishi
     
  • This fixes checkpatch.pl warning "WARNING: Single statement macros
    should not use a do {} while (0) loop".

    Link: http://lkml.kernel.org/r/1462886671-3521-7-git-send-email-konishi.ryusuke@lab.ntt.co.jp
    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ryusuke Konishi
     
  • This fixes the checkpatch.pl warning that suggests else is not
    generally useful after a break or return.

    Link: http://lkml.kernel.org/r/1462886671-3521-6-git-send-email-konishi.ryusuke@lab.ntt.co.jp
    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ryusuke Konishi
     
  • This fixes checkpatch.pl warning "WARNING: Prefer 'unsigned int' to
    bare use of 'unsigned'".

    Link: http://lkml.kernel.org/r/1462886671-3521-5-git-send-email-konishi.ryusuke@lab.ntt.co.jp
    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ryusuke Konishi
     
  • This fixes checkpatch.pl warning "WARNING: suspect code indent for
    conditional statements".

    Link: http://lkml.kernel.org/r/1462886671-3521-4-git-send-email-konishi.ryusuke@lab.ntt.co.jp
    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ryusuke Konishi
     
  • This fixes the checkpatch.pl warning "WARNING: space prohibited before
    semicolon" at nilfs_store_magic_and_option().

    Link: http://lkml.kernel.org/r/1462886671-3521-3-git-send-email-konishi.ryusuke@lab.ntt.co.jp
    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ryusuke Konishi
     
  • This updates call sites of nilfs_warning() and nilfs_error() so that they
    don't add a duplicate newline. These output functions are already
    designed to add a trailing newline to the message.

    Link: http://lkml.kernel.org/r/1462886671-3521-2-git-send-email-konishi.ryusuke@lab.ntt.co.jp
    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ryusuke Konishi
     
  • Remove trailing semicolons from macros, as suggested by checkpatch.pl.

    Link: http://lkml.kernel.org/r/1461935747-10380-12-git-send-email-konishi.ryusuke@lab.ntt.co.jp
    [konishi.ryusuke@lab.ntt.co.jp: fix style issues]
    Link: http://lkml.kernel.org/r/20160509.231703.1481729973362188932.konishi.ryusuke@lab.ntt.co.jp
    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ryusuke Konishi
     
  • Clean up checkpatch.pl warnings "WARNING: Missing a blank line after
    declarations" from nilfs2.

    Link: http://lkml.kernel.org/r/1461935747-10380-11-git-send-email-konishi.ryusuke@lab.ntt.co.jp
    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ryusuke Konishi
     
  • This fixes the following checkpatch.pl warning:

    WARNING: __packed is preferred over __attribute__((packed))
    #23: FILE: export.h:23:
    +} __attribute__ ((packed));

    Link: http://lkml.kernel.org/r/1461935747-10380-10-git-send-email-konishi.ryusuke@lab.ntt.co.jp
    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ryusuke Konishi
     
  • Refactor nilfs_clear_inode() and nilfs_i_callback() so that cleanup
    code or resource deallocation related to metadata file will be moved
    out to mdt.c.

    Link: http://lkml.kernel.org/r/1461935747-10380-9-git-send-email-konishi.ryusuke@lab.ntt.co.jp
    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ryusuke Konishi
     
  • nilfs_mdt_mark_block_dirty() can be replaced with primary functions
    like nilfs_mdt_get_block() and mark_buffer_dirty(), and it's used only
    by nilfs_ioctl_mark_blocks_dirty().

    This gets rid of the function to simplify the interface of metadata
    file.

    Link: http://lkml.kernel.org/r/1461935747-10380-8-git-send-email-konishi.ryusuke@lab.ntt.co.jp
    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ryusuke Konishi
     
  • E-mail addresses of osrg.net domain are no longer available. This
    removes them from authorship notices and prevents reporters from being
    confused.

    Link: http://lkml.kernel.org/r/1461935747-10380-5-git-send-email-konishi.ryusuke@lab.ntt.co.jp
    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ryusuke Konishi
     
  • This removes the extra paragraph which mentions FSF address in GPL
    notices from source code of nilfs2 and avoids the checkpatch.pl error
    related to it.

    Link: http://lkml.kernel.org/r/1461935747-10380-4-git-send-email-konishi.ryusuke@lab.ntt.co.jp
    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ryusuke Konishi
     
  • Fix checkpatch.pl error "ERROR: space prohibited before that ','
    (ctx:WxW)" at nilfs_sufile_set_suinfo().

    This also fixes checkpatch.pl warning "WARNING: Prefer 'unsigned int' to
    bare use of 'unsigned'" at nilfs_sufile_set_suinfo() and
    nilfs_sufile_get_suinfo().

    Link: http://lkml.kernel.org/r/1461935747-10380-3-git-send-email-konishi.ryusuke@lab.ntt.co.jp
    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ryusuke Konishi
     
  • Fix the following checkpatch.pl error and warnings:

    ERROR: code indent should use tabs where possible
    #1317: FILE: super.c:1317:
    + ^I^Is_new = true;$

    WARNING: please, no space before tabs
    #1317: FILE: super.c:1317:
    + ^I^Is_new = true;$

    WARNING: please, no spaces at the start of a line
    #1317: FILE: super.c:1317:
    + ^I^Is_new = true;$

    Link: http://lkml.kernel.org/r/1461935747-10380-2-git-send-email-konishi.ryusuke@lab.ntt.co.jp
    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ryusuke Konishi
     
  • The nilfs_sc_operations structures are never modified, so declare them
    as const.

    Done with the help of Coccinelle.

    Signed-off-by: Julia Lawall
    Signed-off-by: Ryusuke Konishi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Julia Lawall
     
  • bh is reinitialized by sb_bread() so no need to init it
    with NULL in the beginning of befs_bread()

    Link: http://lkml.kernel.org/r/88481760b43226fac16adb1f1e68897e47d8235c.1462841692.git.salah.triki@acm.org
    Signed-off-by: Salah Triki
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Salah Triki
     
  • bh is reinitialized by sb_bread() so no need to init it
    with NULL in the beginning of befs_bread_iaddr()

    Link: http://lkml.kernel.org/r/586d2639d729345b9c07aac10ba713d8ceb8745a.1462841692.git.salah.triki@acm.org
    Signed-off-by: Salah Triki
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Salah Triki
     
  • befs_ino is reinitialized by BEFS_I() so no need to init it
    with NULL in the beginning of befs_iget()

    Link: http://lkml.kernel.org/r/a5c02445e436629c4d4ba1b65d91501878942f58.1462842887.git.salah.triki@acm.org
    Signed-off-by: Salah Triki
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Salah Triki
     
  • raw_inode is reinitialized to bh->b_data so no need to init it
    with NULL in the beginning of befs_iget()

    Link: http://lkml.kernel.org/r/0a66baaaacb6b7e5fcea5b31b57b649261152281.1462842887.git.salah.triki@acm.org
    Signed-off-by: Salah Triki
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Salah Triki
     
  • bh is reinitialized by befs_bread() so no need to init it
    with NULL in the beginning of befs_iget()

    Link: http://lkml.kernel.org/r/38d62b1469bc3b316ba6b81fd8e26fc66fdd713b.1462842886.git.salah.triki@acm.org
    Signed-off-by: Salah Triki
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Salah Triki
     
  • inode is reinitialized by befs_iget() so no need to init it
    with NULL in the beginning of befs_lookup()

    Link: http://lkml.kernel.org/r/03d7e46890aef94078130bed97c4f8f8ae9ea2b2.1462842886.git.salah.triki@acm.org
    Signed-off-by: Salah Triki
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Salah Triki
     
  • iaddr_array is unconditionally initialized to NULL in
    befs_find_brun_dblindirect().

    Link: http://lkml.kernel.org/r/940def273e30ef37957fba9da6981a10fb3c9741.1462649034.git.salah.triki@acm.org
    Signed-off-by: Salah Triki
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Salah Triki
     
  • bh is reinitialized by befs_read_datastream() so no need to init it
    with NULL in the beginning of befs_read_lsymlink().

    Link: http://lkml.kernel.org/r/e22f279bceb8d026af048952e02ba98925b21c92.1462649034.git.salah.triki@acm.org
    Signed-off-by: Salah Triki
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Salah Triki
     
  • bh is reinitialized by befs_bread_iaddr() so no need to init it
    with NULL in the beginning of befs_read_datastream().

    Link: http://lkml.kernel.org/r/81e1f70187db34d195c8e42b1ff78be6a71c0060.1462649034.git.salah.triki@acm.org
    Signed-off-by: Salah Triki
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Salah Triki
     
  • CONFIG_MIPS32_N32=y but CONFIG_BINFMT_ELF disabled results in the
    following linker errors:

    arch/mips/built-in.o: In function `elf_core_dump':
    binfmt_elfn32.c:(.text+0x23dbc): undefined reference to `elf_core_extra_phdrs'
    binfmt_elfn32.c:(.text+0x246e4): undefined reference to `elf_core_extra_data_size'
    binfmt_elfn32.c:(.text+0x248d0): undefined reference to `elf_core_write_extra_phdrs'
    binfmt_elfn32.c:(.text+0x24ac4): undefined reference to `elf_core_write_extra_data'

    CONFIG_MIPS32_O32=y but CONFIG_BINFMT_ELF disabled results in the following
    linker errors:

    arch/mips/built-in.o: In function `elf_core_dump':
    binfmt_elfo32.c:(.text+0x28a04): undefined reference to `elf_core_extra_phdrs'
    binfmt_elfo32.c:(.text+0x29330): undefined reference to `elf_core_extra_data_size'
    binfmt_elfo32.c:(.text+0x2951c): undefined reference to `elf_core_write_extra_phdrs'
    binfmt_elfo32.c:(.text+0x29710): undefined reference to `elf_core_write_extra_data'

    This is because binfmt_elfn32 and binfmt_elfo32 are using symbols from
    elfcore but for these configurations elfcore will not be built.

    Fixed by making elfcore selectable by a separate config symbol which
    unlike the current mechanism can also be used from other directories
    than kernel/, then having each flavor of ELF that relies on elfcore.o,
    select it in Kconfig, including CONFIG_MIPS32_N32 and CONFIG_MIPS32_O32
    which fixes this issue.

    Link: http://lkml.kernel.org/r/20160520141705.GA1913@linux-mips.org
    Signed-off-by: Ralf Baechle
    Reviewed-by: James Hogan
    Cc: "Maciej W. Rozycki"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ralf Baechle
     

22 May, 2016

2 commits

  • Pull f2fs updates from Jaegeuk Kim:
    "In this round, as Ted pointed out, fscrypto allows one more key prefix
    given by filesystem to resolve backward compatibility issues. Other
    than that, we've fixed several error handling cases by introducing
    a fault injection facility. We've also achieved performance
    improvement in some workloads as well as a bunch of bug fixes.

    Summary:

    Enhancements:
    - fs-specific prefix for fscrypto
    - fault injection facility
    - expose validity bitmaps for user to be aware of fragmentation
    - fallocate/rm/preallocation speed up
    - use percpu counters

    Bug fixes:
    - some inline_dentry/inline_data bugs
    - error handling for atomic/volatile/orphan inodes
    - recover broken superblock"

    * tag 'for-f2fs-4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs: (73 commits)
    f2fs: fix to update dirty page count correctly
    f2fs: flush pending bios right away when error occurs
    f2fs: avoid ENOSPC fault in the recovery process
    f2fs: make exit_f2fs_fs more clear
    f2fs: use percpu_counter for total_valid_inode_count
    f2fs: use percpu_counter for alloc_valid_block_count
    f2fs: use percpu_counter for # of dirty pages in inode
    f2fs: use percpu_counter for page counters
    f2fs: use bio count instead of F2FS_WRITEBACK page count
    f2fs: manipulate dirty file inodes when DATA_FLUSH is set
    f2fs: add fault injection to sysfs
    f2fs: no need inc dirty pages under inode lock
    f2fs: fix incorrect error path handling in f2fs_move_rehashed_dirents
    f2fs: fix i_current_depth during inline dentry conversion
    f2fs: correct return value type of f2fs_fill_super
    f2fs: fix deadlock when flush inline data
    f2fs: avoid f2fs_bug_on during recovery
    f2fs: show # of orphan inodes
    f2fs: support in batch fzero in dnode page
    f2fs: support in batch multi blocks preallocation
    ...

    Linus Torvalds
     
  • Pull btrfs updates from Chris Mason:
    "This has our merge window series of cleanups and fixes. These target
    a wide range of issues, but do include some important fixes for
    qgroups, O_DIRECT, and fsync handling. Jeff Mahoney moved around a
    few definitions to make them easier for userland to consume.

    Also whiteout support is included now that issues with overlayfs have
    been cleared up.

    I have one more fix pending for page faults during btrfs_copy_from_user,
    but I wanted to get this bulk out the door first"

    * 'for-linus-4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs: (90 commits)
    btrfs: fix memory leak during RAID 5/6 device replacement
    Btrfs: add semaphore to synchronize direct IO writes with fsync
    Btrfs: fix race between block group relocation and nocow writes
    Btrfs: fix race between fsync and direct IO writes for prealloc extents
    Btrfs: fix number of transaction units for renames with whiteout
    Btrfs: pin logs earlier when doing a rename exchange operation
    Btrfs: unpin logs if rename exchange operation fails
    Btrfs: fix inode leak on failure to setup whiteout inode in rename
    btrfs: add support for RENAME_EXCHANGE and RENAME_WHITEOUT
    Btrfs: pin log earlier when renaming
    Btrfs: unpin log if rename operation fails
    Btrfs: don't do unnecessary delalloc flushes when relocating
    Btrfs: don't wait for unrelated IO to finish before relocation
    Btrfs: fix empty symlink after creating symlink and fsync parent dir
    Btrfs: fix for incorrect directory entries after fsync log replay
    btrfs: build fixup for qgroup_account_snapshot
    btrfs: qgroup: Fix qgroup accounting when creating snapshot
    Btrfs: fix fspath error deallocation
    btrfs: make find_workspace warn if there are no workspaces
    btrfs: make find_workspace always succeed
    ...

    Linus Torvalds
     

21 May, 2016

10 commits

  • Merge more updates from Andrew Morton:

    - the rest of MM

    - KASAN updates

    - procfs updates

    - exit, fork updates

    - printk updates

    - lib/ updates

    - radix-tree testsuite updates

    - checkpatch updates

    - kprobes updates

    - a few other misc bits

    * emailed patches from Andrew Morton : (162 commits)
    samples/kprobes: print out the symbol name for the hooks
    samples/kprobes: add a new module parameter
    kprobes: add the "tls" argument for j_do_fork
    init/main.c: simplify initcall_blacklisted()
    fs/efs/super.c: fix return value
    checkpatch: improve --git shortcut
    checkpatch: reduce number of `git log` calls with --git
    checkpatch: add support to check already applied git commits
    checkpatch: add --list-types to show message types to show or ignore
    checkpatch: advertise the --fix and --fix-inplace options more
    checkpatch: whine about ACCESS_ONCE
    checkpatch: add test for keywords not starting on tabstops
    checkpatch: improve CONSTANT_COMPARISON test for structure members
    checkpatch: add PREFER_IS_ENABLED test
    lib/GCD.c: use binary GCD algorithm instead of Euclidean
    radix-tree: free up the bottom bit of exceptional entries for reuse
    dax: move RADIX_DAX_ definitions to dax.c
    radix-tree: make radix_tree_descend() more useful
    radix-tree: introduce radix_tree_replace_clear_tags()
    radix-tree: tidy up __radix_tree_create()
    ...

    Linus Torvalds
     
  • Pull driver core updates from Greg KH:
    "Here's the "big" driver core update for 4.7-rc1.

    Mostly just debugfs changes, the long-known and messy races with
    removing debugfs files should be fixed thanks to the great work of
    Nicolai Stange. We also have some isa updates in here (the x86
    maintainers told me to take it through this tree), a new warning when
    we run out of dynamic char major numbers, and a few other assorted
    changes, details in the shortlog.

    All have been in linux-next for some time with no reported issues"

    * tag 'driver-core-4.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (32 commits)
    Revert "base: dd: don't remove driver_data in -EPROBE_DEFER case"
    gpio: ws16c48: Utilize the ISA bus driver
    gpio: 104-idio-16: Utilize the ISA bus driver
    gpio: 104-idi-48: Utilize the ISA bus driver
    gpio: 104-dio-48e: Utilize the ISA bus driver
    watchdog: ebc-c384_wdt: Utilize the ISA bus driver
    iio: stx104: Utilize the module_isa_driver and max_num_isa_dev macros
    iio: stx104: Add X86 dependency to STX104 Kconfig option
    Documentation: Add ISA bus driver documentation
    isa: Implement the max_num_isa_dev macro
    isa: Implement the module_isa_driver macro
    pnp: pnpbios: Add explicit X86_32 dependency to PNPBIOS
    isa: Decouple X86_32 dependency from the ISA Kconfig option
    driver-core: use 'dev' argument in dev_dbg_ratelimited stub
    base: dd: don't remove driver_data in -EPROBE_DEFER case
    kernfs: Move faulting copy_user operations outside of the mutex
    devcoredump: add scatterlist support
    debugfs: unproxify files created through debugfs_create_u32_array()
    debugfs: unproxify files created through debugfs_create_blob()
    debugfs: unproxify files created through debugfs_create_bool()
    ...

    Linus Torvalds
     
  • Pull networking fixes and more updates from David Miller:

    1) Tunneling fixes from Tom Herbert and Alexander Duyck.

    2) AF_UNIX updates some struct sock bit fields with the socket lock,
    whereas setsockopt() sets overlapping ones with locking. Seperate
    out the synchronized vs. the AF_UNIX unsynchronized ones to avoid
    corruption. From Andrey Ryabinin.

    3) Mount BPF filesystem with mount_nodev rather than mount_ns, from
    Eric Biederman.

    4) A couple kmemdup conversions, from Muhammad Falak R Wani.

    5) BPF verifier fixes from Alexei Starovoitov.

    6) Don't let tunneled UDP packets get stuck in socket queues, if
    something goes wrong during the encapsulation just drop the packet
    rather than signalling an error up the call stack. From Hannes
    Frederic Sowa.

    7) SKB ref after free in batman-adv, from Florian Westphal.

    8) TCP iSCSI, ocfs2, rds, and tipc have to disable BH in it's TCP
    callbacks since the TCP stack runs pre-emptibly now. From Eric
    Dumazet.

    9) Fix crash in fixed_phy_add, from Rabin Vincent.

    10) Fix length checks in xen-netback, from Paul Durrant.

    11) Fix mixup in KEY vs KEYID macsec attributes, from Sabrina Dubroca.

    12) RDS connection spamming bug fixes from Sowmini Varadhan

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (152 commits)
    net: suppress warnings on dev_alloc_skb
    uapi glibc compat: fix compilation when !__USE_MISC in glibc
    udp: prevent skbs lingering in tunnel socket queues
    bpf: teach verifier to recognize imm += ptr pattern
    bpf: support decreasing order in direct packet access
    net: usb: ch9200: use kmemdup
    ps3_gelic: use kmemdup
    net:liquidio: use kmemdup
    bpf: Use mount_nodev not mount_ns to mount the bpf filesystem
    net: cdc_ncm: update datagram size after changing mtu
    tuntap: correctly wake up process during uninit
    intel: Add support for IPv6 IP-in-IP offload
    ip6_gre: Do not allow segmentation offloads GRE_CSUM is enabled with FOU/GUE
    RDS: TCP: Avoid rds connection churn from rogue SYNs
    RDS: TCP: rds_tcp_accept_worker() must exit gracefully when terminating rds-tcp
    net: sock: move ->sk_shutdown out of bitfields.
    ipv6: Don't reset inner headers in ip6_tnl_xmit
    ip4ip6: Support for GSO/GRO
    ip6ip6: Support for GSO/GRO
    ipv6: Set features for IPv6 tunnels
    ...

    Linus Torvalds
     
  • Pull cifs fixes from Steve French:
    "Two small cifs fixes, including one spnego upcall cifs security fix
    for stable"

    * 'for-next' of git://git.samba.org/sfrench/cifs-2.6:
    CIFS: Remove some obsolete comments
    cifs: Create dedicated keyring for spnego operations

    Linus Torvalds
     
  • When sb_bread() fails, the return value should be -EIO, fix it.

    Link: http://lkml.kernel.org/r/1463464943-4142-1-git-send-email-os@iscas.ac.cn
    Signed-off-by: Heloise
    Cc: Johannes Weiner
    Cc: Firo Yang
    Cc: Vladimir Davydov
    Cc: Al Viro
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Heloise
     
  • These don't belong in radix-tree.h any more than PAGECACHE_TAG_* do.
    Let's try to maintain the idea that radix-tree simply implements an
    abstract data type.

    Signed-off-by: NeilBrown
    Reviewed-by: Ross Zwisler
    Reviewed-by: Jan Kara
    Signed-off-by: Matthew Wilcox
    Cc: Konstantin Khlebnikov
    Cc: Kirill Shutemov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    NeilBrown
     
  • Instead of opencoding let's use generic UUID library functions here.

    Signed-off-by: Andy Shevchenko
    Reviewed-by: Matt Fleming
    Cc: Dmitry Kasatkin
    Cc: Mimi Zohar
    Cc: Rasmus Villemoes
    Cc: Arnd Bergmann
    Cc: "Theodore Ts'o"
    Cc: Al Viro
    Cc: Jens Axboe
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andy Shevchenko
     
  • Let's gather the UUID related functions under one hood.

    Signed-off-by: Andy Shevchenko
    Reviewed-by: Matt Fleming
    Cc: Dmitry Kasatkin
    Cc: Mimi Zohar
    Cc: Rasmus Villemoes
    Cc: Arnd Bergmann
    Cc: "Theodore Ts'o"
    Cc: Al Viro
    Cc: Jens Axboe
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andy Shevchenko
     
  • The PR_DUMPABLE flag causes the pid related paths of the proc file
    system to be owned by ROOT.

    The implementation of pthread_set/getname_np however needs access to
    /proc//task//comm. If PR_DUMPABLE is false this
    implementation is locked out.

    This patch installs a special permission function for the file "comm"
    that grants read and write access to all threads of the same group
    regardless of the ownership of the inode. For all other threads the
    function falls back to the generic inode permission check.

    [akpm@linux-foundation.org: fix spello in comment]
    Signed-off-by: Janis Danisevskis
    Acked-by: Kees Cook
    Cc: Al Viro
    Cc: Cyrill Gorcunov
    Cc: Alexey Dobriyan
    Cc: Colin Ian King
    Cc: David Rientjes
    Cc: Minfei Huang
    Cc: John Stultz
    Cc: Calvin Owens
    Cc: Jann Horn
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Janis Danisevskis
     
  • It's not possible to read the process umask without also modifying it,
    which is what umask(2) does. A library cannot read umask safely,
    especially if the main program might be multithreaded.

    Add a new status line ("Umask") in /proc//status. It contains the
    file mode creation mask (umask) in octal. It is only shown for tasks
    which have task->fs.

    This patch is adapted from one originally written by Pierre Carrier.

    The use case is that we have endless trouble with people setting weird
    umask() values (usually on the grounds of "security"), and then
    everything breaking. I'm on the hook to fix these. We'd like to add
    debugging to our program so we can dump out the umask in debug reports.

    Previous versions of the patch used a syscall so you could only read
    your own umask. That's all I need. However there was quite a lot of
    push-back from those, so this new version exports it in /proc.

    See:
    https://lkml.org/lkml/2016/4/13/704 [umask2]
    https://lkml.org/lkml/2016/4/13/487 [getumask]

    Signed-off-by: Richard W.M. Jones
    Acked-by: Konstantin Khlebnikov
    Acked-by: Jerome Marchand
    Acked-by: Kees Cook
    Cc: "Theodore Ts'o"
    Cc: Michal Hocko
    Cc: Pierre Carrier
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard W.M. Jones