1. 30 Aug, 2021 23 commits
    • Linus Torvalds's avatar
      Merge tag 'x86_cleanups_for_v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 230bda08
      Linus Torvalds authored
      Pull x86 cleanups from Borislav Petkov:
       "The usual round of minor cleanups and fixes"
      
      * tag 'x86_cleanups_for_v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/kaslr: Have process_mem_region() return a boolean
        x86/power: Fix kernel-doc warnings in cpu.c
        x86/mce/inject: Replace deprecated CPU-hotplug functions.
        x86/microcode: Replace deprecated CPU-hotplug functions.
        x86/mtrr: Replace deprecated CPU-hotplug functions.
        x86/mmiotrace: Replace deprecated CPU-hotplug functions.
      230bda08
    • Linus Torvalds's avatar
      Merge tag 'x86_cache_for_v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 42f6e869
      Linus Torvalds authored
      Pull x86 resource control updates from Borislav Petkov:
       "A first round of changes towards splitting the arch-specific bits from
        the filesystem bits of resctrl, the ultimate goal being to support
        ARM's equivalent technology MPAM, with the same fs interface (James
        Morse)"
      
      * tag 'x86_cache_for_v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (25 commits)
        x86/resctrl: Make resctrl_arch_get_config() return its value
        x86/resctrl: Merge the CDP resources
        x86/resctrl: Expand resctrl_arch_update_domains()'s msr_param range
        x86/resctrl: Remove rdt_cdp_peer_get()
        x86/resctrl: Merge the ctrl_val arrays
        x86/resctrl: Calculate the index from the configuration type
        x86/resctrl: Apply offset correction when config is staged
        x86/resctrl: Make ctrlval arrays the same size
        x86/resctrl: Pass configuration type to resctrl_arch_get_config()
        x86/resctrl: Add a helper to read a closid's configuration
        x86/resctrl: Rename update_domains() to resctrl_arch_update_domains()
        x86/resctrl: Allow different CODE/DATA configurations to be staged
        x86/resctrl: Group staged configuration into a separate struct
        x86/resctrl: Move the schemata names into struct resctrl_schema
        x86/resctrl: Add a helper to read/set the CDP configuration
        x86/resctrl: Swizzle rdt_resource and resctrl_schema in pseudo_lock_region
        x86/resctrl: Pass the schema to resctrl filesystem functions
        x86/resctrl: Add resctrl_arch_get_num_closid()
        x86/resctrl: Store the effective num_closid in the schema
        x86/resctrl: Walk the resctrl schema list instead of an arch list
        ...
      42f6e869
    • Linus Torvalds's avatar
      Merge tag 'x86_build_for_v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ced119b6
      Linus Torvalds authored
      Pull x86 build updates from Borislav Petkov:
      
       - Remove cc-option checks which are old and already supported by the
         minimal compiler version the kernel uses and thus avoid the need to
         invoke the compiler unnecessarily.
      
       - Cleanups
      
      * tag 'x86_build_for_v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/build: Move the install rule to arch/x86/Makefile
        x86/build: Remove the left-over bzlilo target
        x86/tools/relocs: Mark die() with the printf function attr format
        x86/build: Remove stale cc-option checks
      ced119b6
    • Linus Torvalds's avatar
      Merge tag 'ras_core_for_v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 8f645b42
      Linus Torvalds authored
      Pull RAS update from Borislav Petkov:
       "A single RAS change for 5.15:
      
         - Do not start processing MCEs logged early because the decoding
           chain is not up yet - delay that processing until everything is
           ready"
      
      * tag 'ras_core_for_v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/mce: Defer processing of early errors
      8f645b42
    • Linus Torvalds's avatar
      Merge tag 'edac_updates_for_v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras · 05b5fdb2
      Linus Torvalds authored
      Pull EDAC updates from Borislav Petkov:
       "The usual EDAC stuff which managed to trickle in for 5.15:
      
         - Add new HBM2 (High Bandwidth Memory Gen 2) type and add support for
           it to the Intel SKx drivers
      
         - Print additional useful per-channel error information on i10nm,
           like on SKL
      
         - Don't load the AMD EDAC decoder in virtual images
      
         - The usual round of fixes and cleanups"
      
      * tag 'edac_updates_for_v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras:
        EDAC/i10nm: Retrieve and print retry_rd_err_log registers
        EDAC/i10nm: Fix NVDIMM detection
        EDAC/skx_common: Set the memory type correctly for HBM memory
        EDAC/altera: Skip defining unused structures for specific configs
        EDAC/mce_amd: Do not load edac_mce_amd module on guests
        EDAC/mc: Add new HBM2 memory type
        EDAC/amd64: Use DEVICE_ATTR helper macros
      05b5fdb2
    • Linus Torvalds's avatar
      Merge tag 's390-5.15-1' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · c7a5238e
      Linus Torvalds authored
      Pull s390 updates from Heiko Carstens:
      
       - Improve ftrace code patching so that stop_machine is not required
         anymore. This requires a small common code patch acked by Steven
         Rostedt:
      
           https://lore.kernel.org/linux-s390/20210730220741.4da6fdf6@oasis.local.home/
      
       - Enable KCSAN for s390. This comes with a small common code change to
         fix a compile warning. Acked by Marco Elver:
      
           https://lore.kernel.org/r/20210729142811.1309391-1-hca@linux.ibm.com
      
       - Add KFENCE support for s390. This also comes with a minimal x86 patch
         from Marco Elver who said also this can be carried via the s390 tree:
      
           https://lore.kernel.org/linux-s390/YQJdarx6XSUQ1tFZ@elver.google.com/
      
       - More changes to prepare the decompressor for relocation.
      
       - Enable DAT also for CPU restart path.
      
       - Final set of register asm removal patches; leaving only three
         locations where needed and sane.
      
       - Add NNPA, Vector-Packed-Decimal-Enhancement Facility 2, PCI MIO
         support to hwcaps flags.
      
       - Cleanup hwcaps implementation.
      
       - Add new instructions to in-kernel disassembler.
      
       - Various QDIO cleanups.
      
       - Add SCLP debug feature.
      
       - Various other cleanups and improvements all over the place.
      
      * tag 's390-5.15-1' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: (105 commits)
        s390: remove SCHED_CORE from defconfigs
        s390/smp: do not use nodat_stack for secondary CPU start
        s390/smp: enable DAT before CPU restart callback is called
        s390: update defconfigs
        s390/ap: fix state machine hang after failure to enable irq
        KVM: s390: generate kvm hypercall functions
        s390/sclp: add tracing of SCLP interactions
        s390/debug: add early tracing support
        s390/debug: fix debug area life cycle
        s390/debug: keep debug data on resize
        s390/diag: make restart_part2 a local label
        s390/mm,pageattr: fix walk_pte_level() early exit
        s390: fix typo in linker script
        s390: remove do_signal() prototype and do_notify_resume() function
        s390/crypto: fix all kernel-doc warnings in vfio_ap_ops.c
        s390/pci: improve DMA translation init and exit
        s390/pci: simplify CLP List PCI handling
        s390/pci: handle FH state mismatch only on disable
        s390/pci: fix misleading rc in clp_set_pci_fn()
        s390/boot: factor out offset_vmlinux_info() function
        ...
      c7a5238e
    • Linus Torvalds's avatar
      Merge tag 'm68k-for-v5.15-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k · adc5ea22
      Linus Torvalds authored
      Pull m68k updates from Geert Uytterhoeven:
      
       - miscellaneous fixes
      
       - defconfig updates
      
      * tag 'm68k-for-v5.15-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k:
        m68k: Fix asm register constraints for atomic ops
        m68k: Fix invalid RMW_INSNS on CPUs that lack CAS
        m68k: defconfig: Update defconfigs for v5.14-rc1
        m68k: emu: Fix invalid free in nfeth_cleanup()
      adc5ea22
    • Linus Torvalds's avatar
      Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · 44a7d444
      Linus Torvalds authored
      Pull crypto updates from Herbert Xu:
       "Algorithms:
      
         - Add AES-NI/AVX/x86_64 implementation of SM4.
      
        Drivers:
      
         - Add Arm SMCCC TRNG based driver"
      
      [ And obviously a lot of random fixes and updates  - Linus]
      
      * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: (84 commits)
        crypto: sha512 - remove imaginary and mystifying clearing of variables
        crypto: aesni - xts_crypt() return if walk.nbytes is 0
        padata: Remove repeated verbose license text
        crypto: ccp - Add support for new CCP/PSP device ID
        crypto: x86/sm4 - add AES-NI/AVX2/x86_64 implementation
        crypto: x86/sm4 - export reusable AESNI/AVX functions
        crypto: rmd320 - remove rmd320 in Makefile
        crypto: skcipher - in_irq() cleanup
        crypto: hisilicon - check _PS0 and _PR0 method
        crypto: hisilicon - change parameter passing of debugfs function
        crypto: hisilicon - support runtime PM for accelerator device
        crypto: hisilicon - add runtime PM ops
        crypto: hisilicon - using 'debugfs_create_file' instead of 'debugfs_create_regset32'
        crypto: tcrypt - add GCM/CCM mode test for SM4 algorithm
        crypto: testmgr - Add GCM/CCM mode test of SM4 algorithm
        crypto: tcrypt - Fix missing return value check
        crypto: hisilicon/sec - modify the hardware endian configuration
        crypto: hisilicon/sec - fix the abnormal exiting process
        crypto: qat - store vf.compatible flag
        crypto: qat - do not export adf_iov_putmsg()
        ...
      44a7d444
    • Linus Torvalds's avatar
      Merge branch 'core-rcu.2021.08.28a' of... · 4ca42564
      Linus Torvalds authored
      Merge branch 'core-rcu.2021.08.28a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu
      
      Pull RCU updates from Paul McKenney:
       "RCU changes for this cycle were:
      
         - Documentation updates
      
         - Miscellaneous fixes
      
         - Offloaded-callbacks updates
      
         - Updates to the nolibc library
      
         - Tasks-RCU updates
      
         - In-kernel torture-test updates
      
         - Torture-test scripting, perhaps most notably the pinning of
           torture-test guest OSes so as to force differences in memory
           latency. For example, in a two-socket system, a four-CPU guest OS
           will have one pair of its CPUs pinned to threads in a single core
           on one socket and the other pair pinned to threads in a single core
           on the other socket. This approach proved able to force race
           conditions that earlier testing missed. Some of these race
           conditions are still being tracked down"
      
      * 'core-rcu.2021.08.28a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu: (61 commits)
        torture: Replace deprecated CPU-hotplug functions.
        rcu: Replace deprecated CPU-hotplug functions
        rcu: Print human-readable message for schedule() in RCU reader
        rcu: Explain why rcu_all_qs() is a stub in preemptible TREE RCU
        rcu: Use per_cpu_ptr to get the pointer of per_cpu variable
        rcu: Remove useless "ret" update in rcu_gp_fqs_loop()
        rcu: Mark accesses in tree_stall.h
        rcu: Make rcu_gp_init() and rcu_gp_fqs_loop noinline to conserve stack
        rcu: Mark lockless ->qsmask read in rcu_check_boost_fail()
        srcutiny: Mark read-side data races
        rcu: Start timing stall repetitions after warning complete
        rcu: Do not disable GP stall detection in rcu_cpu_stall_reset()
        rcu/tree: Handle VM stoppage in stall detection
        rculist: Unify documentation about missing list_empty_rcu()
        rcu: Mark accesses to ->rcu_read_lock_nesting
        rcu: Weaken ->dynticks accesses and updates
        rcu: Remove special bit at the bottom of the ->dynticks counter
        rcu: Fix stall-warning deadlock due to non-release of rcu_node ->lock
        rcu: Fix to include first blocked task in stall warning
        torture: Make kvm-test-1-run-qemu.sh check for reboot loops
        ...
      4ca42564
    • Linus Torvalds's avatar
      Merge tag 'locks-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux · 6f01c935
      Linus Torvalds authored
      Pull file locking updates from Jeff Layton:
       "This starts with a couple of fixes for potential deadlocks in the
        fowner/fasync handling.
      
        The next patch removes the old mandatory locking code from the kernel
        altogether.
      
        The last patch cleans up rw_verify_area a bit more after the mandatory
        locking removal"
      
      * tag 'locks-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux:
        fs: clean up after mandatory file locking support removal
        fs: remove mandatory file locking support
        fcntl: fix potential deadlock for &fasync_struct.fa_lock
        fcntl: fix potential deadlocks for &fown_struct.lock
      6f01c935
    • Linus Torvalds's avatar
      Merge tag 'tpmdd-next-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd · 451819aa
      Linus Torvalds authored
      Pull tpm driver updates from Jarkko Sakkinen:
       "The highlights are:
      
         - Support for signing LKM's with ECDSA keys
      
         - An integer overflow bug fix in pkey"
      
      * tag 'tpmdd-next-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd:
        crypto: public_key: fix overflow during implicit conversion
        tpm: ibmvtpm: Avoid error message when process gets signal while waiting
        certs: Add support for using elliptic curve keys for signing modules
        certs: Trigger creation of RSA module signing key if it's not an RSA key
        char: tpm: cr50_i2c: convert to new probe interface
        char: tpm: Kconfig: remove bad i2c cr50 select
      451819aa
    • Linus Torvalds's avatar
      Merge tag 'for-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply · 4520dcbe
      Linus Torvalds authored
      Pull power supply and reset updates from Sebastian Reichel:
       "Battery/charger related:
         - cros-peripheral-charger: new driver
         - mt6360-charger: new driver
         - simple-battery: support reading chemistry info
         - max17042-battery: add max77849 support
         - sbs-battery: add time_to_empty_now support
         - smb347-charger: prepare USB OTG support
         - rn5t618: add voltage_now support
         - axp288: cleanup & optimizations
         - max17042_battery: cleanups
         - ab8500: cleanups
         - misc minor cleanups and DT binding fixes
      
        reset related:
         - tps65086-restart: new driver
         - linkstation-poweroff: support NETGEAR ReadyNAS Duo v2"
      
      * tag 'for-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply: (51 commits)
        power: supply: core: Fix parsing of battery chemistry/technology
        power: supply: max17042_battery: log SOC threshold using debug log level
        power: supply: max17042_battery: more robust chip type checks
        power: supply: max17042_battery: fix typo in MAx17042_TOFF
        power: supply: max17042_battery: clean up MAX17055_V_empty
        power: supply: smb347-charger: Implement USB VBUS regulator
        power: supply: smb347-charger: Add missing pin control activation
        power: supply: smb347-charger: Utilize generic regmap caching
        power: supply: smb347-charger: Make smb347_set_writable() IRQ-safe
        dt-bindings: power: supply: smb347-charger: Document USB VBUS regulator
        power: reset: Add TPS65086 restart driver
        dt-bindings: power: supply: max17042: describe interrupt
        power: supply: max17042: remove duplicated STATUS bit defines
        power: supply: max17042: handle fails of reading status register
        power: supply: core: Parse battery chemistry/technology
        dt-bindings: power: Extend battery bindings with chemistry
        power: reset: linkstation-poweroff: add new device
        power: reset: linkstation-poweroff: prepare for new devices
        power: supply: bq24735: reorganize ChargeOption command macros
        power: supply: rn5t618: Add voltage_now property
        ...
      4520dcbe
    • Linus Torvalds's avatar
      Merge tag 'spi-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi · 0da9bc6d
      Linus Torvalds authored
      Pull spi updates from Mark Brown:
       "A quiet release for SPI, some fixes and a couple of new drivers plus
        one small refactoring:
      
         - Move the chip select timing configuration from the controller to
           the device to allow a bit more flexibility
      
         - New drivers for Rockchip SFC and Spreadtrum ADI"
      
      * tag 'spi-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi: (47 commits)
        spi: spi-zynq-qspi: use wait_for_completion_timeout to make zynq_qspi_exec_mem_op not interruptible
        spi: add sprd ADI for sc9863 and ums512
        spi: Convert sprd ADI bindings to yaml
        spi: sprd: Add ADI r3 support
        spi: sprd: Fix the wrong WDG_LOAD_VAL
        spi: davinci: invoke chipselect callback
        spi: sprd: fill offset only to RD_CMD register for reading from slave device
        spi: sprd: Make sure offset not equal to slave address size
        spi: sprd: Pass offset instead of physical address to adi_read/_write()
        spi: rockchip-sfc: Fix assigned but never used return error codes
        spi: rockchip-sfc: Remove redundant IO operations
        spi: stm32: fix excluded_middle.cocci warnings
        spi: coldfire-qspi: Use clk_disable_unprepare in the remove function
        spi: tegra20-slink: remove spi_master_put() in tegra_slink_remove()
        spi: rockchip-sfc: add rockchip serial flash controller
        spi: rockchip-sfc: Bindings for Rockchip serial flash controller
        spi: orion: Prevent incorrect chip select behaviour
        spi: mxic: add missing braces
        spi: spi-pic32: Fix issue with uninitialized dma_slave_config
        spi: spi-fsl-dspi: Fix issue with uninitialized dma_slave_config
        ...
      0da9bc6d
    • Linus Torvalds's avatar
      Merge tag 'regulator-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator · d46e0d33
      Linus Torvalds authored
      Pull regulator updates from Mark Brown:
       "A very quiet releases, some fixes and cleanups but not really that
        many of them. There were a couple of new driver specific pieces:
      
         - Support for controlling the over/under voltage protection on
           BD718xx devices
      
         - New drivers for Richtek RTQ2134, and RTQ6752"
      
      * tag 'regulator-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: (37 commits)
        regulator: vctrl: Avoid lockdep warning in enable/disable ops
        regulator: vctrl: Use locked regulator_get_voltage in probe path
        regulator: Documentation fix for regulator error notification helper
        regulator: Minor regulator documentation fixes.
        regulator: sy7636a: Use the regmap directly
        regulator: sy7636a: Store the epd-pwr-good GPIO locally
        regulator: sy7636a: Use the parent driver data
        regulator: sy7636a: Remove the poll_enable_time
        regulator: sy8827n: Enable REGCACHE_FLAT
        regulator: sy8824x: Enable REGCACHE_FLAT
        regulator: rtq2134: Fix coding style
        regulator: hi6421v600: rename voltage range arrays
        regulator: hi6421v600: use lowercase for ldo
        regulator: fixed: use dev_err_probe for register
        regulator: rtq2134: Add support for Richtek RTQ2134 SubPMIC
        regulator: rtq2134: Add binding document for Richtek RTQ2134 SubPMIC
        regulator: Fix a couple of spelling mistakes in Kconfig
        regulator: rtq6752: fix reg reset behavior
        regulator: da9063: Add support for full-current mode.
        regulator: rt6245: make a const array func_base static, makes object smaller
        ...
      d46e0d33
    • Linus Torvalds's avatar
      Merge tag 'regmap-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap · 4aed6ee5
      Linus Torvalds authored
      Pull regmap updates from Mark Brown:
       "A few small fixes for regmaps this time, plus support for allowing
        drivers to select raw spinlocks for the locks in order to allow usage
        in interrutpt controllers"
      
      * tag 'regmap-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
        regmap: teach regmap to use raw spinlocks if requested in the config
        regmap: allow const array for {devm_,}regmap_field_bulk_alloc reg_fields
        regmap: Prefer unsigned int to bare use of unsigned
        regmap: fix the offset of register error log
      4aed6ee5
    • Linus Torvalds's avatar
      Merge tag 'hole_punch_for_v5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · aa99f3c2
      Linus Torvalds authored
      Pull fs hole punching vs cache filling race fixes from Jan Kara:
       "Fix races leading to possible data corruption or stale data exposure
        in multiple filesystems when hole punching races with operations such
        as readahead.
      
        This is the series I was sending for the last merge window but with
        your objection fixed - now filemap_fault() has been modified to take
        invalidate_lock only when we need to create new page in the page cache
        and / or bring it uptodate"
      
      * tag 'hole_punch_for_v5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        filesystems/locking: fix Malformed table warning
        cifs: Fix race between hole punch and page fault
        ceph: Fix race between hole punch and page fault
        fuse: Convert to using invalidate_lock
        f2fs: Convert to using invalidate_lock
        zonefs: Convert to using invalidate_lock
        xfs: Convert double locking of MMAPLOCK to use VFS helpers
        xfs: Convert to use invalidate_lock
        xfs: Refactor xfs_isilocked()
        ext2: Convert to using invalidate_lock
        ext4: Convert to use mapping->invalidate_lock
        mm: Add functions to lock invalidate_lock for two mappings
        mm: Protect operations adding pages to page cache with invalidate_lock
        documentation: Sync file_operations members with reality
        mm: Fix comments mentioning i_mutex
      aa99f3c2
    • Linus Torvalds's avatar
      Merge tag 'fs_for_v5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · a1ca8e71
      Linus Torvalds authored
      Pull UDF and isofs updates from Jan Kara:
       "Several smaller fixes and cleanups in UDF and isofs"
      
      * tag 'fs_for_v5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        udf_get_extendedattr() had no boundary checks.
        isofs: joliet: Fix iocharset=utf8 mount option
        udf: Fix iocharset=utf8 mount option
        udf: Get rid of 0-length arrays in struct fileIdentDesc
        udf: Get rid of 0-length arrays
        udf: Remove unused declaration
        udf: Check LVID earlier
      a1ca8e71
    • Linus Torvalds's avatar
      Merge tag 'fiemap_for_v5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · 63b0c403
      Linus Torvalds authored
      Pull FIEMAP cleanups from Jan Kara:
       "FIEMAP cleanups from Christoph transitioning all remaining filesystems
        supporting FIEMAP (ext2, hpfs) to iomap API and removing the old
        helper"
      
      * tag 'fiemap_for_v5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        fs: remove generic_block_fiemap
        hpfs: use iomap_fiemap to implement ->fiemap
        ext2: use iomap_fiemap to implement ->fiemap
        ext2: make ext2_iomap_ops available unconditionally
      63b0c403
    • Linus Torvalds's avatar
      Merge tag 'fsnotify_for_v5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · 35134319
      Linus Torvalds authored
      Pull fsnotify updates from Jan Kara:
       "fsnotify speedups when notification actually isn't used and support
        for identifying processes which caused fanotify events through pidfd
        instead of normal pid"
      
      * tag 'fsnotify_for_v5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        fsnotify: optimize the case of no marks of any type
        fsnotify: count all objects with attached connectors
        fsnotify: count s_fsnotify_inode_refs for attached connectors
        fsnotify: replace igrab() with ihold() on attach connector
        fanotify: add pidfd support to the fanotify API
        fanotify: introduce a generic info record copying helper
        fanotify: minor cosmetic adjustments to fid labels
        kernel/pid.c: implement additional checks upon pidfd_create() parameters
        kernel/pid.c: remove static qualifier from pidfd_create()
      35134319
    • Linus Torvalds's avatar
      vt_kdsetmode: extend console locking · 2287a51b
      Linus Torvalds authored
      As per the long-suffering comment.
      Reported-by: default avatarMinh Yuan <yuanmingbuaa@gmail.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Jiri Slaby <jirislaby@kernel.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      2287a51b
    • nick black's avatar
      console: consume APC, DM, DCS · 3a2b2eb5
      nick black authored
      The Linux console's VT102 implementation already consumes OSC
      ("Operating System Command") sequences, probably because that's how
      palette changes are transmitted.
      
      In addition to OSC, there are three other major clases of ANSI control
      strings: APC ("Application Program Command"), PM ("Privacy Message"),
      and DCS ("Device Control String").  They are handled similarly to OSC in
      terms of termination.
      
      Source: vt100.net
      
      Add three new enumerated states, one for each of these types.  All three
      are handled the same way right now--they simply consume input until
      terminated.  I hope to expand upon this firmament in the future.  Add
      new predicate ansi_control_string(), returning true for any of these
      states.  Replace explicit checks against ESosc with calls to this
      function.  Transition to these states appropriately from the escape
      initiation (ESesc) state.
      
      This was motivated by the following Notcurses bugs:
      
       https://github.com/dankamongmen/notcurses/issues/2050
       https://github.com/dankamongmen/notcurses/issues/1828
       https://github.com/dankamongmen/notcurses/issues/2069
      
      where standard VT sequences are not consumed by the Linux console.  It's
      not necessary that the Linux console *support* these sequences, but it
      ought *consume* these well-specified classes of sequences.
      
      Tested by sending a variety of escape sequences to the console, and
      verifying that they still worked, or were now properly consumed.
      Verified that the escapes were properly terminated at a generic level.
      Verified that the Notcurses tools continued to show expected output on
      the Linux console, except now without escape bleedthrough.
      
      Link: https://lore.kernel.org/lkml/YSydL0q8iaUfkphg@schwarzgerat.orthanc/Signed-off-by: default avatarnick black <dankamongmen@gmail.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Jiri Slaby <jirislaby@kernel.org>
      Cc: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      3a2b2eb5
    • Linus Torvalds's avatar
      string: improve default out-of-line memcmp() implementation · 291d47cc
      Linus Torvalds authored
      This just does the "if the architecture does efficient unaligned
      handling, start the memcmp using 'unsigned long' accesses", since
      Nikolay Borisov found a load that cares.
      
      This is basically the minimal patch, and limited to architectures that
      are known to not have slow unaligned handling.  We've had the stupid
      byte-at-a-time version forever, and nobody has ever even noticed before,
      so let's keep the fix minimal.
      
      A potential further improvement would be to align one of the sources in
      order to at least minimize unaligned cases, but the only real case of
      bigger memcmp() users seems to be the FIDEDUPERANGE ioctl().  As David
      Sterba says, the dedupe ioctl is typically called on ranges spanning
      many pages so the common case will all be page-aligned anyway.
      
      All the relevant architectures select HAVE_EFFICIENT_UNALIGNED_ACCESS,
      so I'm not going to worry about the combination of a very rare use-case
      and a rare architecture until somebody actually hits it.  Particularly
      since Nikolay also tested the more complex patch with extra alignment
      handling code, and it only added overhead.
      
      Link: https://lore.kernel.org/lkml/20210721135926.602840-1-nborisov@suse.com/Reported-by: default avatarNikolay Borisov <nborisov@suse.com>
      Cc: David Sterba <dsterba@suse.cz>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      291d47cc
    • Heiko Carstens's avatar
      s390: remove SCHED_CORE from defconfigs · 92793224
      Heiko Carstens authored
      This causes too many problems. Enable it again when everything has
      been sorted out.
      Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
      92793224
  2. 29 Aug, 2021 8 commits
  3. 28 Aug, 2021 3 commits
  4. 27 Aug, 2021 6 commits