1. 11 Jun, 2020 25 commits
  2. 10 Jun, 2020 15 commits
    • Linus Torvalds's avatar
      Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 4dbb29fe
      Linus Torvalds authored
      Pull vfs fixes from Al Viro:
       "A couple of trivial patches that fell through the cracks last cycle"
      
      * 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        fs: fix indentation in deactivate_super()
        vfs: Remove duplicated d_mountpoint check in __is_local_mountpoint
      4dbb29fe
    • Linus Torvalds's avatar
      Merge branch 'work.sysctl' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 1c383726
      Linus Torvalds authored
      Pull sysctl fixes from Al Viro:
       "Fixups to regressions in sysctl series"
      
      * 'work.sysctl' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        sysctl: reject gigantic reads/write to sysctl files
        cdrom: fix an incorrect __user annotation on cdrom_sysctl_info
        trace: fix an incorrect __user annotation on stack_trace_sysctl
        random: fix an incorrect __user annotation on proc_do_entropy
        net/sysctl: remove leftover __user annotations on neigh_proc_dointvec*
        net/sysctl: use cpumask_parse in flow_limit_cpu_sysctl
      1c383726
    • Linus Torvalds's avatar
      Merge branch 'uaccess.i915' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 3a8557e1
      Linus Torvalds authored
      Pull i915 uaccess updates from Al Viro:
       "Low-hanging fruit in i915; there are several trickier followups, but
        that'll wait for the next cycle"
      
      * 'uaccess.i915' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        i915:get_engines(): get rid of pointless access_ok()
        i915: alloc_oa_regs(): get rid of pointless access_ok()
        i915 compat ioctl(): just use drm_ioctl_kernel()
        i915: switch copy_perf_config_registers_or_number() to unsafe_put_user()
        i915: switch query_{topology,engine}_info() to copy_to_user()
      3a8557e1
    • Linus Torvalds's avatar
      Merge branch 'uaccess.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 4382a79b
      Linus Torvalds authored
      Pull misc uaccess updates from Al Viro:
       "Assorted uaccess patches for this cycle - the stuff that didn't fit
        into thematic series"
      
      * 'uaccess.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        bpf: make bpf_check_uarg_tail_zero() use check_zeroed_user()
        x86: kvm_hv_set_msr(): use __put_user() instead of 32bit __clear_user()
        user_regset_copyout_zero(): use clear_user()
        TEST_ACCESS_OK _never_ had been checked anywhere
        x86: switch cp_stat64() to unsafe_put_user()
        binfmt_flat: don't use __put_user()
        binfmt_elf_fdpic: don't use __... uaccess primitives
        binfmt_elf: don't bother with __{put,copy_to}_user()
        pselect6() and friends: take handling the combined 6th/7th args into helper
      4382a79b
    • Linus Torvalds's avatar
      Merge branch 'proc-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace · 79ca035d
      Linus Torvalds authored
      Pull proc fix from Eric Biederman:
       "Syzbot found a NULL pointer dereference if kzalloc of s_fs_info fails"
      
      * 'proc-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
        proc: s_fs_info may be NULL when proc_kill_sb is called
      79ca035d
    • Linus Torvalds's avatar
      Merge branch 'rwonce/rework' of git://git.kernel.org/pub/scm/linux/kernel/git/will/linux · 4152d146
      Linus Torvalds authored
      Pull READ/WRITE_ONCE rework from Will Deacon:
       "This the READ_ONCE rework I've been working on for a while, which
        bumps the minimum GCC version and improves code-gen on arm64 when
        stack protector is enabled"
      
      [ Side note: I'm _really_ tempted to raise the minimum gcc version to
        4.9, so that we can just say that we require _Generic() support.
      
        That would allow us to more cleanly handle a lot of the cases where we
        depend on very complex macros with 'sizeof' or __builtin_choose_expr()
        with __builtin_types_compatible_p() etc.
      
        This branch has a workaround for sparse not handling _Generic(),
        either, but that was already fixed in the sparse development branch,
        so it's really just gcc-4.9 that we'd require.   - Linus ]
      
      * 'rwonce/rework' of git://git.kernel.org/pub/scm/linux/kernel/git/will/linux:
        compiler_types.h: Use unoptimized __unqual_scalar_typeof for sparse
        compiler_types.h: Optimize __unqual_scalar_typeof compilation time
        compiler.h: Enforce that READ_ONCE_NOCHECK() access size is sizeof(long)
        compiler-types.h: Include naked type in __pick_integer_type() match
        READ_ONCE: Fix comment describing 2x32-bit atomicity
        gcov: Remove old GCC 3.4 support
        arm64: barrier: Use '__unqual_scalar_typeof' for acquire/release macros
        locking/barriers: Use '__unqual_scalar_typeof' for load-acquire macros
        READ_ONCE: Drop pointer qualifiers when reading from scalar types
        READ_ONCE: Enforce atomicity for {READ,WRITE}_ONCE() memory accesses
        READ_ONCE: Simplify implementations of {READ,WRITE}_ONCE()
        arm64: csum: Disable KASAN for do_csum()
        fault_inject: Don't rely on "return value" from WRITE_ONCE()
        net: tls: Avoid assigning 'const' pointer to non-const pointer
        netfilter: Avoid assigning 'const' pointer to non-const pointer
        compiler/gcc: Raise minimum GCC version for kernel builds to 4.8
      4152d146
    • Andrew Morton's avatar
      arch/powerpc/mm/pgtable.c: another missed conversion · 78c24f7b
      Andrew Morton authored
      Fixes: e05c7b1f ("mm: pgtable: add shortcuts for accessing kernel PMD and PTE")
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Reported-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: Mike Rapoport <rppt@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      78c24f7b
    • Linus Torvalds's avatar
      Merge tag 'docs-5.8-2' of git://git.lwn.net/linux · 6d62c5b2
      Linus Torvalds authored
      Pull more documentation updates from Jonathan Corbet:
       "A handful of late-arriving docs fixes, along with a patch changing a
        lot of HTTP links to HTTPS that had to be yanked and redone before the
        first pull"
      
      * tag 'docs-5.8-2' of git://git.lwn.net/linux:
        docs/memory-barriers.txt/kokr: smp_mb__{before,after}_atomic(): update Documentation
        Documentation: devres: add missing entry for devm_platform_get_and_ioremap_resource()
        Replace HTTP links with HTTPS ones: documentation
        docs: it_IT: address invalid reference warnings
        doc: zh_CN: use doc reference to resolve undefined label warning
        docs: Update the location of the LF NDA program
        docs: dev-tools: coccinelle: underlines
      6d62c5b2
    • Linus Torvalds's avatar
      Merge tag 'acpi-5.8-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 6672966d
      Linus Torvalds authored
      Pull more ACPI updates from Rafael Wysocki:
       "Update the ACPICA code in the kernel to upstream revision 20200528
        with the following changes:
      
         - Remove some dead code from the acpidump utility (Bob Moore)
      
         - Add new OperationRegion subtype keyword PlatformRtMechanism to the
           compiler (Erik Kaneda)"
      
      * tag 'acpi-5.8-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPICA: Update version to 20200528
        ACPICA: iASL: add new OperationRegion subtype keyword PlatformRtMechanism
        ACPICA: acpidump: Removed dead code from oslinuxtbl.c
      6672966d
    • Linus Torvalds's avatar
      Merge tag 'pm-5.8-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 0c67f6b2
      Linus Torvalds authored
      Pull more power management updates from Rafael Wysocki:
       "These are operating performance points (OPP) framework updates mostly,
        including support for interconnect bandwidth in the OPP core, plus a
        few cpufreq changes, including boost support in the CPPC cpufreq
        driver, an ACPI device power management fix and a hibernation code
        cleanup.
      
        Specifics:
      
         - Add support for interconnect bandwidth to the OPP core (Georgi
           Djakov, Saravana Kannan, Sibi Sankar, Viresh Kumar).
      
         - Add support for regulator enable/disable to the OPP core (Kamil
           Konieczny).
      
         - Add boost support to the CPPC cpufreq driver (Xiongfeng Wang).
      
         - Make the tegra186 cpufreq driver set the
           CPUFREQ_NEED_INITIAL_FREQ_CHECK flag (Mian Yousaf Kaukab).
      
         - Prevent the ACPI power management from using power resources with
           devices where the list of power resources for power state D0 (full
           power) is missing (Rafael Wysocki).
      
         - Annotate a hibernation-related function with __init (Christophe
           JAILLET)"
      
      * tag 'pm-5.8-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: PM: Avoid using power resources if there are none for D0
        cpufreq: CPPC: add SW BOOST support
        cpufreq: change '.set_boost' to act on one policy
        PM: hibernate: Add __init annotation to swsusp_header_init()
        opp: Don't parse icc paths unnecessarily
        opp: Remove bandwidth votes when target_freq is zero
        opp: core: add regulators enable and disable
        opp: Reorder the code for !target_freq case
        opp: Expose bandwidth information via debugfs
        cpufreq: dt: Add support for interconnect bandwidth scaling
        opp: Update the bandwidth on OPP frequency changes
        opp: Add sanity checks in _read_opp_key()
        opp: Add support for parsing interconnect bandwidth
        cpufreq: tegra186: add CPUFREQ_NEED_INITIAL_FREQ_CHECK flag
        OPP: Add helpers for reading the binding properties
        dt-bindings: opp: Introduce opp-peak-kBps and opp-avg-kBps bindings
      0c67f6b2
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 49f13b09
      Linus Torvalds authored
      Pull input updates from Dmitry Torokhov:
      
       - a new driver for the Azoteq IQS269A capacitive touch controller
      
       - a new driver for the Cypress CY8CTMA140 touchscreen
      
       - updates to Elan and ft5x06 touchscreen drivers
      
       - assorted driver fixes
      
       - msm-vibrator has been removed as we have a more generic solution
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (28 commits)
        Input: adi - work around module name confict
        Input: iqs269a - add missing I2C dependency
        Input: elants - refactor elants_i2c_execute_command()
        Input: elants - override touchscreen info with DT properties
        Input: elants - remove unused axes
        Input: add support for Azoteq IQS269A
        dt-bindings: input: Add bindings for Azoteq IQS269A
        Input: imx_sc_key - use devm_add_action_or_reset() to handle all cleanups
        Input: remove msm-vibrator driver
        dt-bindings: Input: remove msm-vibrator
        Input: elants_i2c - provide an attribute to show calibration count
        Input: introduce input_mt_report_slot_inactive()
        dt-bindings: input: touchscreen: elants_i2c: convert to YAML
        Input: add driver for the Cypress CY8CTMA140 touchscreen
        dt-bindings: touchscreen: Add CY8CTMA140 bindings
        Input: edt-ft5x06 - prefer asynchronous probe
        Input: edt-ft5x06 - improve power management operations
        Input: edt-ft5x06 - move parameter restore into helper
        Input: edt-ft5x06 - fix get_default register write access
        Input: atkbd - receive and use physcode->keycode mapping from FW
        ...
      49f13b09
    • Linus Torvalds's avatar
      Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost · 09102704
      Linus Torvalds authored
      Pull virtio updates from Michael Tsirkin:
      
       - virtio-mem: paravirtualized memory hotplug
      
       - support doorbell mapping for vdpa
      
       - config interrupt support in ifc
      
       - fixes all over the place
      
      * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost: (40 commits)
        vhost/test: fix up after API change
        virtio_mem: convert device block size into 64bit
        virtio-mem: drop unnecessary initialization
        ifcvf: implement config interrupt in IFCVF
        vhost: replace -1 with VHOST_FILE_UNBIND in ioctls
        vhost_vdpa: Support config interrupt in vdpa
        ifcvf: ignore continuous setting same status value
        virtio-mem: Don't rely on implicit compiler padding for requests
        virtio-mem: Try to unplug the complete online memory block first
        virtio-mem: Use -ETXTBSY as error code if the device is busy
        virtio-mem: Unplug subblocks right-to-left
        virtio-mem: Drop manual check for already present memory
        virtio-mem: Add parent resource for all added "System RAM"
        virtio-mem: Better retry handling
        virtio-mem: Offline and remove completely unplugged memory blocks
        mm/memory_hotplug: Introduce offline_and_remove_memory()
        virtio-mem: Allow to offline partially unplugged memory blocks
        mm: Allow to offline unmovable PageOffline() pages via MEM_GOING_OFFLINE
        virtio-mem: Paravirtualized memory hotunplug part 2
        virtio-mem: Paravirtualized memory hotunplug part 1
        ...
      09102704
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml · 84fc461d
      Linus Torvalds authored
      Pull UML updates from Richard Weinberger:
      
       - Use fdatasync() in ubd
      
       - Add a generic "fd" vector transport
      
       - Minor cleanups and fixes
      
      * tag 'for-linus-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml:
        um: virtio: Replace zero-length array with flexible-array
        um: Use fdatasync() when mapping the UBD FSYNC command
        um: Do not evaluate compiler's library path when cleaning
        um: Neaten vu_err macro definition
        um: Add a generic "fd" vector transport
        um: Add include: memset() and memcpy() are in <string.h>
      84fc461d
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs · 0e083da7
      Linus Torvalds authored
      Pull UBI update from Richard Weinberger:
       "This contains a single change for UBI:
      
         - Select fastmap anchor PEBs considering wear level rules"
      
      * tag 'for-linus-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs:
        ubi: Select fastmap anchor PEBs considering wear level rules
      0e083da7
    • Linus Torvalds's avatar
      Merge tag 'mtd/for-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux · 6f51ab94
      Linus Torvalds authored
      Pull MTD updates from Richard Weinberger:
       "MTD core changes:
         - partition parser: Support MTD names containing one or more colons.
         - mtdblock: clear cache_state to avoid writing to bad blocks
           repeatedly.
      
        Raw NAND core changes:
         - Stop using nand_release(), patched all drivers.
         - Give more information about the ECC weakness when not matching the
           chip's requirement.
         - MAINTAINERS updates.
         - Support emulated SLC mode on MLC NANDs.
         - Support "constrained" controllers, adapt the core and ONFI/JEDEC
           table parsing and Micron's code.
         - Take check_only into account.
         - Add an invalid ECC mode to discriminate with valid ones.
         - Return an enum from of_get_nand_ecc_algo().
         - Drop OOB_FIRST placement scheme.
         - Introduce nand_extract_bits().
         - Ensure a consistent bitflips numbering.
         - BCH lib:
            - Allow easy bit swapping.
            - Rework a little bit the exported function names.
         - Fix nand_gpio_waitrdy().
         - Propage CS selection to sub operations.
         - Add a NAND_NO_BBM_QUIRK flag.
         - Give the possibility to verify a read operation is supported.
         - Add a helper to check supported operations.
         - Avoid indirect access to ->data_buf().
         - Rename the use_bufpoi variables.
         - Fix comments about the use of bufpoi.
         - Rename a NAND chip option.
         - Reorder the nand_chip->options flags.
         - Translate obscure bitfields into readable macros.
         - Timings:
            - Fix default values.
            - Add mode information to the timings structure.
      
        Raw NAND controller driver changes:
         - Fixed many error paths.
         - Arasan
            - New driver
         - Au1550nd:
            - Various cleanups
            - Migration to ->exec_op()
         - brcmnand:
            - Misc cleanup.
            - Support v2.1-v2.2 controllers.
            - Remove unused including <linux/version.h>.
            - Correctly verify erased pages.
            - Fix Hamming OOB layout.
         - Cadence
            - Make cadence_nand_attach_chip static.
         - Cafe:
            - Set the NAND_NO_BBM_QUIRK flag
         - cmx270:
            - Remove this controller driver.
         - cs553x:
            - Misc cleanup
            - Migration to ->exec_op()
         - Davinci:
            - Misc cleanup.
            - Migration to ->exec_op()
         - Denali:
            - Add more delays before latching incoming data
         - Diskonchip:
            - Misc cleanup
            - Migration to ->exec_op()
         - Fsmc:
            - Change to non-atomic bit operations.
         - GPMI:
            - Use nand_extract_bits()
            - Fix runtime PM imbalance.
         - Ingenic:
            - Migration to exec_op()
            - Fix the RB gpio active-high property on qi, lb60
            - Make qi_lb60_ooblayout_ops static.
         - Marvell:
            - Misc cleanup and small fixes
         - Nandsim:
            - Fix the error paths, driver wide.
         - Omap_elm:
            - Fix runtime PM imbalance.
         - STM32_FMC2:
            - Misc cleanups (error cases, comments, timeout valus, cosmetic
              changes).
      
        SPI NOR core changes:
         - Add, update support and fix few flashes.
         - Prepare BFPT parsing for JESD216 rev D.
         - Kernel doc fixes.
      
        CFI changes:
         - Support the absence of protection registers for Intel CFI flashes.
         - Replace zero-length array with flexible-arrays"
      
      * tag 'mtd/for-5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux: (208 commits)
        mtd: clear cache_state to avoid writing to bad blocks repeatedly
        mtd: parser: cmdline: Support MTD names containing one or more colons
        mtd: physmap_of_gemini: remove defined but not used symbol 'syscon_match'
        mtd: rawnand: Add an invalid ECC mode to discriminate with valid ones
        mtd: rawnand: Return an enum from of_get_nand_ecc_algo()
        mtd: rawnand: Drop OOB_FIRST placement scheme
        mtd: rawnand: Avoid a typedef
        mtd: Fix typo in mtd_ooblayout_set_databytes() description
        mtd: rawnand: Stop using nand_release()
        mtd: rawnand: nandsim: Reorganize ns_cleanup_module()
        mtd: rawnand: nandsim: Rename a label in ns_init_module()
        mtd: rawnand: nandsim: Manage lists on error in ns_init_module()
        mtd: rawnand: nandsim: Fix the label pointing on nand_cleanup()
        mtd: rawnand: nandsim: Free erase_block_wear on error
        mtd: rawnand: nandsim: Use an additional label when freeing the nandsim object
        mtd: rawnand: nandsim: Stop using nand_release()
        mtd: rawnand: nandsim: Free the partition names in ns_free()
        mtd: rawnand: nandsim: Free the allocated device on error in ns_init()
        mtd: rawnand: nandsim: Free partition names on error in ns_init()
        mtd: rawnand: nandsim: Fix the two ns_alloc_device() error paths
        ...
      6f51ab94