Skip to content
Permalink
Igor-Zhbanov/N…
Switch branches/tags

Commits on Aug 20, 2021

  1. NAX LSM: Add initial support

    Add initial support for NAX (No Anonymous Execution), which is a Linux
    Security Module that extends DAC by making impossible to make anonymous
    and modified pages executable for privileged processes.
    
    Intercepts anonymous executable pages created with mmap() and mprotect()
    system calls.
    
    Log violations (in non-quiet mode) and block the action or kill the
    offending process, depending on the enabled settings.
    
    See Documentation/admin-guide/LSM/NAX.rst.
    
    Signed-off-by: Igor Zhbanov <izh1979@gmail.com>
    izh1979 authored and intel-lab-lkp committed Aug 20, 2021

Commits on Jun 29, 2021

  1. Merge tag 'devprop-5.14-rc1' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/rafael/linux-pm
    
    Pull device properties framework updates from Rafael Wysocki:
     "These unify device properties access in some pieces of code and make
      related changes.
    
      Specifics:
    
       - Handle device properties with software node API in the ACPI IORT
         table parsing code (Heikki Krogerus).
    
       - Unify of_node access in the common device properties code, constify
         the acpi_dma_supported() argument pointer and fix up CONFIG_ACPI=n
         stubs of some functions related to device properties (Andy
         Shevchenko)"
    
    * tag 'devprop-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
      device property: Unify access to of_node
      ACPI: scan: Constify acpi_dma_supported() helper function
      ACPI: property: Constify stubs for CONFIG_ACPI=n case
      ACPI: IORT: Handle device properties with software node API
      device property: Retrieve fwnode from of_node via accessor
    torvalds committed Jun 29, 2021
  2. Merge tag 'pnp-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/rafael/linux-pm
    
    Pull PNP updates from Rafael Wysocki:
     "These get rid of unnecessary local variables and function, reduce code
      duplication and clean up message printing.
    
      Specifics:
    
       - Remove unnecessary local variables from isapnp_proc_attach_device()
         (Anupama K Patil).
    
       - Make the callers of pnp_alloc() use kzalloc() directly and drop the
         former (Heiner Kallweit).
    
       - Make two pieces of code use dev_dbg() instead of dev_printk() with
         the KERN_DEBUG message level (Heiner Kallweit).
    
       - Use DEVICE_ATTR_RO() instead of full DEVICE_ATTR() in some places
         in card.c (Zhen Lei).
    
       - Use list_for_each_entry() instead of list_for_each() in
         insert_device() (Zou Wei)"
    
    * tag 'pnp-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
      PNP: pnpbios: Use list_for_each_entry() instead of list_for_each()
      PNP: use DEVICE_ATTR_RO macro
      PNP: Switch over to dev_dbg()
      PNP: Remove pnp_alloc()
      drivers: pnp: isapnp: proc.c: Remove unnecessary local variables
    torvalds committed Jun 29, 2021
  3. Merge tag 'acpi-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kerne…

    …l/git/rafael/linux-pm
    
    Pull ACPI updates from Rafael Wysocki:
     "These update the ACPICA code in the kernel to the 20210604 upstream
      revision, add preliminary support for the Platform Runtime Mechanism
      (PRM), address issues related to the handling of device dependencies
      in the ACPI device eunmeration code, improve the tracking of ACPI
      power resource states, improve the ACPI support for suspend-to-idle on
      AMD systems, continue the unification of message printing in the ACPI
      code, address assorted issues and clean up the code in a number of
      places.
    
      Specifics:
    
       - Update ACPICA code in the kernel to upstrea revision 20210604
         including the following changes:
    
          - Add defines for the CXL Host Bridge Structureand and add the
            CFMWS structure definition to CEDT (Alison Schofield).
          - iASL: Finish support for the IVRS ACPI table (Bob Moore).
          - iASL: Add support for the SVKL table (Bob Moore).
          - iASL: Add full support for RGRT ACPI table (Bob Moore).
          - iASL: Add support for the BDAT ACPI table (Bob Moore).
          - iASL: add disassembler support for PRMT (Erik Kaneda).
          - Fix memory leak caused by _CID repair function (Erik Kaneda).
          - Add support for PlatformRtMechanism OpRegion (Erik Kaneda).
          - Add PRMT module header to facilitate parsing (Erik Kaneda).
          - Add _PLD panel positions (Fabian Wüthrich).
          - MADT: add Multiprocessor Wakeup Mailbox Structure and the SVKL
            table headers (Kuppuswamy Sathyanarayanan).
          - Use ACPI_FALLTHROUGH (Wei Ming Chen).
    
       - Add preliminary support for the Platform Runtime Mechanism (PRM) to
         allow the AML interpreter to call PRM functions (Erik Kaneda).
    
       - Address some issues related to the handling of device dependencies
         reported by _DEP in the ACPI device enumeration code and clean up
         some related pieces of it (Rafael Wysocki).
    
       - Improve the tracking of states of ACPI power resources (Rafael
         Wysocki).
    
       - Improve ACPI support for suspend-to-idle on AMD systems (Alex
         Deucher, Mario Limonciello, Pratik Vishwakarma).
    
       - Continue the unification and cleanup of message printing in the
         ACPI code (Hanjun Guo, Heiner Kallweit).
    
       - Fix possible buffer overrun issue with the description_show() sysfs
         attribute method (Krzysztof Wilczyński).
    
       - Improve the acpi_mask_gpe kernel command line parameter handling
         and clean up the core ACPI code related to sysfs (Andy Shevchenko,
         Baokun Li, Clayton Casciato).
    
       - Postpone bringing devices in the general ACPI PM domain to D0
         during resume from system-wide suspend until they are really needed
         (Dmitry Torokhov).
    
       - Make the ACPI processor driver fix up C-state latency if not
         ordered (Mario Limonciello).
    
       - Add support for identifying devices depening on the given one that
         are not its direct descendants with the help of _DEP (Daniel
         Scally).
    
       - Extend the checks related to ACPI IRQ overrides on x86 in order to
         avoid false-positives (Hui Wang).
    
       - Add battery DPTF participant for Intel SoCs (Sumeet Pawnikar).
    
       - Rearrange the ACPI fan driver and device power management code to
         use a common list of device IDs (Rafael Wysocki).
    
       - Fix clang CFI violation in the ACPI BGRT table parsing code and
         clean it up (Nathan Chancellor).
    
       - Add GPE-related quirks for some laptops to the EC driver (Chris
         Chiu, Zhang Rui).
    
       - Make the ACPI PPTT table parsing code populate the cache-id value
         if present in the firmware (James Morse).
    
       - Remove redundant clearing of context->ret.pointer from
         acpi_run_osc() (Hans de Goede).
    
       - Add missing acpi_put_table() in acpi_init_fpdt() (Jing Xiangfeng).
    
       - Make ACPI APEI handle ARM Processor Error CPER records like Memory
         Error ones to avoid user space task lockups (Xiaofei Tan).
    
       - Stop warning about disabled ACPI in APEI (Jon Hunter).
    
       - Fix fall-through warning for Clang in the SBSHC driver (Gustavo A.
         R. Silva).
    
       - Add custom DSDT file as Makefile prerequisite (Richard Fitzgerald).
    
       - Initialize local variable to avoid garbage being returned (Colin
         Ian King).
    
       - Simplify assorted pieces of code, address assorted coding style and
         documentation issues and comment typos (Baokun Li, Christophe
         JAILLET, Clayton Casciato, Liu Shixin, Shaokun Zhang, Wei Yongjun,
         Yang Li, Zhen Lei)"
    
    * tag 'acpi-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (97 commits)
      ACPI: PM: postpone bringing devices to D0 unless we need them
      ACPI: tables: Add custom DSDT file as makefile prerequisite
      ACPI: bgrt: Use sysfs_emit
      ACPI: bgrt: Fix CFI violation
      ACPI: EC: trust DSDT GPE for certain HP laptop
      ACPI: scan: Simplify acpi_table_events_fn()
      ACPI: PM: Adjust behavior for field problems on AMD systems
      ACPI: PM: s2idle: Add support for new Microsoft UUID
      ACPI: PM: s2idle: Add support for multiple func mask
      ACPI: PM: s2idle: Refactor common code
      ACPI: PM: s2idle: Use correct revision id
      ACPI: sysfs: Remove tailing return statement in void function
      ACPI: sysfs: Use __ATTR_RO() and __ATTR_RW() macros
      ACPI: sysfs: Sort headers alphabetically
      ACPI: sysfs: Refactor param_get_trace_state() to drop dead code
      ACPI: sysfs: Unify pattern of memory allocations
      ACPI: sysfs: Allow bitmap list to be supplied to acpi_mask_gpe
      ACPI: sysfs: Make sparse happy about address space in use
      ACPI: scan: Fix race related to dropping dependencies
      ACPI: scan: Reorganize acpi_device_add()
      ...
    torvalds committed Jun 29, 2021
  4. Merge tag 'pm-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/rafael/linux-pm
    
    Pull power management updates from Rafael Wysocki:
     "These add hybrid processors support to the intel_pstate driver and
      make it work with more processor models when HWP is disabled, make the
      intel_idle driver use special C6 idle state paremeters when package
      C-states are disabled, add cooling support to the tegra30 devfreq
      driver, rework the TEO (timer events oriented) cpuidle governor,
      extend the OPP (operating performance points) framework to use the
      required-opps DT property in more cases, fix some issues and clean up
      a number of assorted pieces of code.
    
      Specifics:
    
       - Make intel_pstate support hybrid processors using abstract
         performance units in the HWP interface (Rafael Wysocki).
    
       - Add Icelake servers and Cometlake support in no-HWP mode to
         intel_pstate (Giovanni Gherdovich).
    
       - Make cpufreq_online() error path be consistent with the CPU device
         removal path in cpufreq (Rafael Wysocki).
    
       - Clean up 3 cpufreq drivers and the statistics code (Hailong Liu,
         Randy Dunlap, Shaokun Zhang).
    
       - Make intel_idle use special idle state parameters for C6 when
         package C-states are disabled (Chen Yu).
    
       - Rework the TEO (timer events oriented) cpuidle governor to address
         some theoretical shortcomings in it (Rafael Wysocki).
    
       - Drop unneeded semicolon from the TEO governor (Wan Jiabing).
    
       - Modify the runtime PM framework to accept unassigned suspend and
         resume callback pointers (Ulf Hansson).
    
       - Improve pm_runtime_get_sync() documentation (Krzysztof Kozlowski).
    
       - Improve device performance states support in the generic power
         domains (genpd) framework (Ulf Hansson).
    
       - Fix some documentation issues in genpd (Yang Yingliang).
    
       - Make the operating performance points (OPP) framework use the
         required-opps DT property in use cases that are not related to
         genpd (Hsin-Yi Wang).
    
       - Make lazy_link_required_opp_table() use list_del_init instead of
         list_del/INIT_LIST_HEAD (Yang Yingliang).
    
       - Simplify wake IRQs handling in the core system-wide sleep support
         code and clean up some coding style inconsistencies in it (Tian
         Tao, Zhen Lei).
    
       - Add cooling support to the tegra30 devfreq driver and improve its
         DT bindings (Dmitry Osipenko).
    
       - Fix some assorted issues in the devfreq core and drivers (Chanwoo
         Choi, Dong Aisheng, YueHaibing)"
    
    * tag 'pm-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (39 commits)
      PM / devfreq: passive: Fix get_target_freq when not using required-opp
      cpufreq: Make cpufreq_online() call driver->offline() on errors
      opp: Allow required-opps to be used for non genpd use cases
      cpuidle: teo: remove unneeded semicolon in teo_select()
      dt-bindings: devfreq: tegra30-actmon: Add cooling-cells
      dt-bindings: devfreq: tegra30-actmon: Convert to schema
      PM / devfreq: userspace: Use DEVICE_ATTR_RW macro
      PM: runtime: Clarify documentation when callbacks are unassigned
      PM: runtime: Allow unassigned ->runtime_suspend|resume callbacks
      PM: runtime: Improve path in rpm_idle() when no callback
      PM: hibernate: remove leading spaces before tabs
      PM: sleep: remove trailing spaces and tabs
      PM: domains: Drop/restore performance state votes for devices at runtime PM
      PM: domains: Return early if perf state is already set for the device
      PM: domains: Split code in dev_pm_genpd_set_performance_state()
      cpuidle: teo: Use kerneldoc documentation in admin-guide
      cpuidle: teo: Rework most recent idle duration values treatment
      cpuidle: teo: Change the main idle state selection logic
      cpuidle: teo: Cosmetic modification of teo_select()
      cpuidle: teo: Cosmetic modifications of teo_update()
      ...
    torvalds committed Jun 29, 2021
  5. Merge tag 'x86-entry-2021-06-29' of git://git.kernel.org/pub/scm/linu…

    …x/kernel/git/tip/tip
    
    Pull x86 entry code related updates from Thomas Gleixner:
    
     - Consolidate the macros for .byte ... opcode sequences
    
     - Deduplicate register offset defines in include files
    
     - Simplify the ia32,x32 compat handling of the related syscall tables
       to get rid of #ifdeffery.
    
     - Clear all EFLAGS which are not required for syscall handling
    
     - Consolidate the syscall tables and switch the generation over to the
       generic shell script and remove the CFLAGS tweaks which are not
       longer required.
    
     - Use 'int' type for system call numbers to match the generic code.
    
     - Add more selftests for syscalls
    
    * tag 'x86-entry-2021-06-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      x86/syscalls: Don't adjust CFLAGS for syscall tables
      x86/syscalls: Remove -Wno-override-init for syscall tables
      x86/uml/syscalls: Remove array index from syscall initializers
      x86/syscalls: Clear 'offset' and 'prefix' in case they are set in env
      x86/entry: Use int everywhere for system call numbers
      x86/entry: Treat out of range and gap system calls the same
      x86/entry/64: Sign-extend system calls on entry to int
      selftests/x86/syscall: Add tests under ptrace to syscall_numbering_64
      selftests/x86/syscall: Simplify message reporting in syscall_numbering
      selftests/x86/syscall: Update and extend syscall_numbering_64
      x86/syscalls: Switch to generic syscallhdr.sh
      x86/syscalls: Use __NR_syscalls instead of __NR_syscall_max
      x86/unistd: Define X32_NR_syscalls only for 64-bit kernel
      x86/syscalls: Stop filling syscall arrays with *_sys_ni_syscall
      x86/syscalls: Switch to generic syscalltbl.sh
      x86/entry/x32: Rename __x32_compat_sys_* to __x64_compat_sys_*
    torvalds committed Jun 29, 2021
  6. Merge tag 'x86-irq-2021-06-29' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/tip/tip
    
    Pull x86 interrupt related updates from Thomas Gleixner:
    
     - Consolidate the VECTOR defines and the usage sites.
    
     - Cleanup GDT/IDT related code and replace open coded ASM with proper
       native helper functions.
    
    * tag 'x86-irq-2021-06-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      x86/kexec: Set_[gi]dt() -> native_[gi]dt_invalidate() in machine_kexec_*.c
      x86: Add native_[ig]dt_invalidate()
      x86/idt: Remove address argument from idt_invalidate()
      x86/irq: Add and use NR_EXTERNAL_VECTORS and NR_SYSTEM_VECTORS
      x86/irq: Remove unused vectors defines
    torvalds committed Jun 29, 2021
  7. Merge tag 'timers-core-2021-06-29' of git://git.kernel.org/pub/scm/li…

    …nux/kernel/git/tip/tip
    
    Pull timer updates from Thomas Gleixner:
     "Time and clocksource/clockevent related updates:
    
      Core changes:
    
       - Infrastructure to support per CPU "broadcast" devices for per CPU
         clockevent devices which stop in deep idle states. This allows us
         to utilize the more efficient architected timer on certain ARM SoCs
         for normal operation instead of permanentely using the slow to
         access SoC specific clockevent device.
    
       - Print the name of the broadcast/wakeup device in /proc/timer_list
    
       - Make the clocksource watchdog more robust against delays between
         reading the current active clocksource and the watchdog
         clocksource. Such delays can be caused by NMIs, SMIs and vCPU
         preemption.
    
         Handle this by reading the watchdog clocksource twice, i.e. before
         and after reading the current active clocksource. In case that the
         two watchdog reads shows an excessive time delta, the read sequence
         is repeated up to 3 times.
    
       - Improve the debug output and add a test module for the watchdog
         mechanism.
    
       - Reimplementation of the venerable time64_to_tm() function with a
         faster and significantly smaller version. Straight from the source,
         i.e. the author of the related research paper contributed this!
    
      Driver changes:
    
       - No new drivers, not even new device tree bindings!
    
       - Fixes, improvements and cleanups and all over the place"
    
    * tag 'timers-core-2021-06-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (30 commits)
      time/kunit: Add missing MODULE_LICENSE()
      time: Improve performance of time64_to_tm()
      clockevents: Use list_move() instead of list_del()/list_add()
      clocksource: Print deviation in nanoseconds when a clocksource becomes unstable
      clocksource: Provide kernel module to test clocksource watchdog
      clocksource: Reduce clocksource-skew threshold
      clocksource: Limit number of CPUs checked for clock synchronization
      clocksource: Check per-CPU clock synchronization when marked unstable
      clocksource: Retry clock read if long delays detected
      clockevents: Add missing parameter documentation
      clocksource/drivers/timer-ti-dm: Drop unnecessary restore
      clocksource/arm_arch_timer: Improve Allwinner A64 timer workaround
      clocksource/drivers/arm_global_timer: Remove duplicated argument in arm_global_timer
      clocksource/drivers/arm_global_timer: Make symbol 'gt_clk_rate_change_nb' static
      arm: zynq: don't disable CONFIG_ARM_GLOBAL_TIMER due to CONFIG_CPU_FREQ anymore
      clocksource/drivers/arm_global_timer: Implement rate compensation whenever source clock changes
      clocksource/drivers/ingenic: Rename unreasonable array names
      clocksource/drivers/timer-ti-dm: Save and restore timer TIOCP_CFG
      clocksource/drivers/mediatek: Ack and disable interrupts on suspend
      clocksource/drivers/samsung_pwm: Constify source IO memory
      ...
    torvalds committed Jun 29, 2021
  8. Merge tag 'irq-core-2021-06-29' of git://git.kernel.org/pub/scm/linux…

    …/kernel/git/tip/tip
    
    Pull irq updates from Thomas Gleixner:
     "Updates for the interrupt subsystem:
    
      Core changes:
    
       - Cleanup and simplification of common code to invoke the low level
         interrupt flow handlers when this invocation requires irqdomain
         resolution. Add the necessary core infrastructure.
    
       - Provide a proper interface for modular PMU drivers to set the
         interrupt affinity.
    
       - Add a request flag which allows to exclude interrupts from spurious
         interrupt detection. Useful especially for IPI handlers which
         always return IRQ_HANDLED which turns the spurious interrupt
         detection into a pointless waste of CPU cycles.
    
      Driver changes:
    
       - Bulk convert interrupt chip drivers to the new irqdomain low level
         flow handler invocation mechanism.
    
       - Add device tree bindings for the Renesas R-Car M3-W+ SoC
    
       - Enable modular build of the Qualcomm PDC driver
    
       - The usual small fixes and improvements"
    
    * tag 'irq-core-2021-06-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (38 commits)
      dt-bindings: interrupt-controller: arm,gic-v3: Describe GICv3 optional properties
      irqchip: gic-pm: Remove redundant error log of clock bulk
      irqchip/sun4i: Remove unnecessary oom message
      irqchip/irq-imx-gpcv2: Remove unnecessary oom message
      irqchip/imgpdc: Remove unnecessary oom message
      irqchip/gic-v3-its: Remove unnecessary oom message
      irqchip/gic-v2m: Remove unnecessary oom message
      irqchip/exynos-combiner: Remove unnecessary oom message
      irqchip: Bulk conversion to generic_handle_domain_irq()
      genirq: Move non-irqdomain handle_domain_irq() handling into ARM's handle_IRQ()
      genirq: Add generic_handle_domain_irq() helper
      irqchip/nvic: Convert from handle_IRQ() to handle_domain_irq()
      irqdesc: Fix __handle_domain_irq() comment
      genirq: Use irq_resolve_mapping() to implement __handle_domain_irq() and co
      irqdomain: Introduce irq_resolve_mapping()
      irqdomain: Protect the linear revmap with RCU
      irqdomain: Cache irq_data instead of a virq number in the revmap
      irqdomain: Use struct_size() helper when allocating irqdomain
      irqdomain: Make normal and nomap irqdomains exclusive
      powerpc: Move the use of irq_domain_add_nomap() behind a config option
      ...
    torvalds committed Jun 29, 2021
  9. Merge tag 'smp-urgent-2021-06-29' of git://git.kernel.org/pub/scm/lin…

    …ux/kernel/git/tip/tip
    
    Pull CPU hotplug fix from Thomas Gleixner:
     "A fix for the CPU hotplug and cpusets interaction:
    
      cpusets delegate the hotplug work to a workqueue to prevent a lock
      order inversion vs. the CPU hotplug lock. The work is not flushed
      before the hotplug operation returns which creates user visible
      inconsistent state. Prevent this by flushing the work after dropping
      CPU hotplug lock and before releasing the outer mutex which serializes
      the CPU hotplug related sysfs interface operations"
    
    * tag 'smp-urgent-2021-06-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      cpu/hotplug: Cure the cpusets trainwreck
    torvalds committed Jun 29, 2021
  10. Merge tag 'smp-core-2021-06-29' of git://git.kernel.org/pub/scm/linux…

    …/kernel/git/tip/tip
    
    Pull CPU hotplug cleanup from Thomas Gleixner:
     "A simple cleanup for the CPU hotplug code to avoid per_cpu_ptr()
      reevaluation"
    
    * tag 'smp-core-2021-06-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      cpu/hotplug: Simplify access to percpu cpuhp_state
    torvalds committed Jun 29, 2021
  11. Merge tag 'printk-for-5.14' of git://git.kernel.org/pub/scm/linux/ker…

    …nel/git/printk/linux
    
    Pull printk updates from Petr Mladek:
    
     - Add %pt[RT]s modifier to vsprintf(). It overrides ISO 8601 separator
       by using ' ' (space). It produces "YYYY-mm-dd HH:MM:SS" instead of
       "YYYY-mm-ddTHH:MM:SS".
    
     - Correctly parse long row of numbers by sscanf() when using the field
       width. Add extensive sscanf() selftest.
    
     - Generalize re-entrant CPU lock that has already been used to
       serialize dump_stack() output. It is part of the ongoing printk
       rework. It will allow to remove the obsoleted printk_safe buffers and
       introduce atomic consoles.
    
     - Some code clean up and sparse warning fixes.
    
    * tag 'printk-for-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux:
      printk: fix cpu lock ordering
      lib/dump_stack: move cpu lock to printk.c
      printk: Remove trailing semicolon in macros
      random32: Fix implicit truncation warning in prandom_seed_state()
      lib: test_scanf: Remove pointless use of type_min() with unsigned types
      selftests: lib: Add wrapper script for test_scanf
      lib: test_scanf: Add tests for sscanf number conversion
      lib: vsprintf: Fix handling of number field widths in vsscanf
      lib: vsprintf: scanf: Negative number must have field width > 1
      usb: host: xhci-tegra: Switch to use %ptTs
      nilfs2: Switch to use %ptTs
      kdb: Switch to use %ptTs
      lib/vsprintf: Allow to override ISO 8601 date and time separator
    torvalds committed Jun 29, 2021
  12. Merge tag 'hyperv-next-signed-20210629' of git://git.kernel.org/pub/s…

    …cm/linux/kernel/git/hyperv/linux
    
    Pull hyperv updates from Wei Liu:
     "Just a few minor enhancement patches and bug fixes"
    
    * tag 'hyperv-next-signed-20210629' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux:
      PCI: hv: Add check for hyperv_initialized in init_hv_pci_drv()
      Drivers: hv: Move Hyper-V extended capability check to arch neutral code
      drivers: hv: Fix missing error code in vmbus_connect()
      x86/hyperv: fix logical processor creation
      hv_utils: Fix passing zero to 'PTR_ERR' warning
      scsi: storvsc: Use blk_mq_unique_tag() to generate requestIDs
      Drivers: hv: vmbus: Copy packets sent by Hyper-V out of the ring buffer
      hv_balloon: Remove redundant assignment to region_start
    torvalds committed Jun 29, 2021
  13. Merge branches 'pm-domains' and 'pm-devfreq'

    * pm-domains:
      PM: domains: Drop/restore performance state votes for devices at runtime PM
      PM: domains: Return early if perf state is already set for the device
      PM: domains: Split code in dev_pm_genpd_set_performance_state()
      PM: domains: fix some kernel-doc issues
    
    * pm-devfreq:
      PM / devfreq: passive: Fix get_target_freq when not using required-opp
      dt-bindings: devfreq: tegra30-actmon: Add cooling-cells
      dt-bindings: devfreq: tegra30-actmon: Convert to schema
      PM / devfreq: userspace: Use DEVICE_ATTR_RW macro
      PM / devfreq: imx8m-ddrc: Remove DEVFREQ_GOV_SIMPLE_ONDEMAND dependency
      PM / devfreq: tegra30: Support thermal cooling
      PM / devfreq: imx-bus: Remove imx_bus_get_dev_status
      PM / devfreq: Add missing error code in devfreq_add_device()
    rafaeljw committed Jun 29, 2021
  14. Merge branches 'pm-cpufreq' and 'pm-cpuidle'

    * pm-cpufreq:
      cpufreq: Make cpufreq_online() call driver->offline() on errors
      cpufreq: loongson2: Remove unused linux/sched.h headers
      cpufreq: sh: Remove unused linux/sched.h headers
      cpufreq: stats: Clean up local variable in cpufreq_stats_create_table()
      cpufreq: intel_pstate: hybrid: Fix build with CONFIG_ACPI unset
      cpufreq: sc520_freq: add 'fallthrough' to one case
      cpufreq: intel_pstate: Add Cometlake support in no-HWP mode
      cpufreq: intel_pstate: Add Icelake servers support in no-HWP mode
      cpufreq: intel_pstate: hybrid: CPU-specific scaling factor
      cpufreq: intel_pstate: hybrid: Avoid exposing two global attributes
    
    * pm-cpuidle:
      cpuidle: teo: remove unneeded semicolon in teo_select()
      cpuidle: teo: Use kerneldoc documentation in admin-guide
      cpuidle: teo: Rework most recent idle duration values treatment
      cpuidle: teo: Change the main idle state selection logic
      cpuidle: teo: Cosmetic modification of teo_select()
      cpuidle: teo: Cosmetic modifications of teo_update()
      intel_idle: Adjust the SKX C6 parameters if PC6 is disabled
    rafaeljw committed Jun 29, 2021
  15. Merge branches 'pm-core' and 'pm-sleep'

    * pm-core:
      PM: runtime: Clarify documentation when callbacks are unassigned
      PM: runtime: Allow unassigned ->runtime_suspend|resume callbacks
      PM: runtime: Improve path in rpm_idle() when no callback
      PM: runtime: document common mistake with pm_runtime_get_sync()
    
    * pm-sleep:
      PM: hibernate: remove leading spaces before tabs
      PM: sleep: remove trailing spaces and tabs
      PM: hibernate: fix spelling mistakes
      PM: wakeirq: Set IRQF_NO_AUTOEN when requesting the IRQ
    rafaeljw committed Jun 29, 2021
  16. Merge branch 'pm-opp'

    * pm-opp:
      opp: Allow required-opps to be used for non genpd use cases
      opp: use list_del_init instead of list_del/INIT_LIST_HEAD
    rafaeljw committed Jun 29, 2021
  17. Merge branches 'acpi-ec', 'acpi-apei', 'acpi-soc' and 'acpi-misc'

    * acpi-ec:
      ACPI: EC: trust DSDT GPE for certain HP laptop
      ACPI: EC: Make more Asus laptops use ECDT _GPE
    
    * acpi-apei:
      ACPI: APEI: fix synchronous external aborts in user-mode
      ACPI: APEI: Don't warn if ACPI is disabled
    
    * acpi-soc:
      ACPI: LPSS: Use kstrtol() instead of simple_strtol()
    
    * acpi-misc:
      ACPI: NVS: fix doc warnings in nvs.c
      ACPI: NUMA: fix typo in a comment
      ACPI: OSL: Use DEFINE_RES_IO_NAMED() to simplify code
      ACPI: bus: Call kobject_put() in acpi_init() error path
      ACPI: bus: Remove unneeded assignment
      ACPI: configfs: Replace ACPI_INFO() with pr_debug()
      ACPI: ipmi: Remove address space handler in error path
      ACPI: event: Remove redundant initialization of local variable
      ACPI: sbshc: Fix fall-through warning for Clang
    rafaeljw committed Jun 29, 2021
  18. Merge branches 'acpi-dptf' and 'acpi-messages'

    * acpi-dptf:
      ACPI: DPTF: Add battery participant for Intel SoCs
    
    * acpi-messages:
      ACPI: Remove the macro PREFIX "ACPI: "
      ACPI: sleep: Unify the message printing
      ACPI: sbs: Unify the message printing
      ACPI: scan: Unify the log message printing
      ACPI: sbshc: Unify the message printing
      ACPI: sysfs: Cleanup message printing
      ACPI: reboot: Unify the message printing
      ACPI: processor_throttling: Cleanup the printing messages
      ACPI: processor_perflib: Cleanup print messages
      ACPI: processor_thermal: Remove unused PREFIX for printing
      ACPI: pci_root: Unify the message printing
      ACPI: osl: Remove the duplicated PREFIX for message printing
      ACPI: nvs: Unify the message printing
      ACPI: glue: Clean up the printing messages
      ACPI: event: Use pr_*() macros to replace printk()
      ACPI: bus: Use pr_*() macros to replace printk()
      ACPI: blacklist: Unify the message printing
      ACPI: cmos_rtc: Using pr_fmt() and remove PREFIX
    rafaeljw committed Jun 29, 2021
  19. Merge branches 'acpi-prm', 'acpi-sysfs' and 'acpi-x86'

    * acpi-prm:
      ACPI: PRM: make symbol 'prm_module_list' static
      ACPI: Add \_SB._OSC bit for PRM
      ACPI: PRM: implement OperationRegion handler for the PlatformRtMechanism subtype
    
    * acpi-sysfs:
      ACPI: sysfs: Remove tailing return statement in void function
      ACPI: sysfs: Use __ATTR_RO() and __ATTR_RW() macros
      ACPI: sysfs: Sort headers alphabetically
      ACPI: sysfs: Refactor param_get_trace_state() to drop dead code
      ACPI: sysfs: Unify pattern of memory allocations
      ACPI: sysfs: Allow bitmap list to be supplied to acpi_mask_gpe
      ACPI: sysfs: Make sparse happy about address space in use
      ACPI: sysfs: fix doc warnings in device_sysfs.c
      ACPI: sysfs: Drop four redundant return statements
      ACPI: sysfs: Fix a buffer overrun problem with description_show()
    
    * acpi-x86:
      x86/acpi: Switch to pr_xxx log functions
    rafaeljw committed Jun 29, 2021
  20. Merge branches 'acpi-pm', 'acpi-processor' and 'acpi-resources'

    * acpi-pm:
      ACPI: PM: postpone bringing devices to D0 unless we need them
      ACPI: PM: Adjust behavior for field problems on AMD systems
      ACPI: PM: s2idle: Add support for new Microsoft UUID
      ACPI: PM: s2idle: Add support for multiple func mask
      ACPI: PM: s2idle: Refactor common code
      ACPI: PM: s2idle: Use correct revision id
      ACPI: power: Use dev_dbg() to print some messages
      ACPI: sleep: Fix acpi_pm_pre_suspend() kernel-doc
      ACPI: power: Rework turning off unused power resources
      ACPI: power: Save the last known state of each power resource
      ACPI: power: Use u8 as the power resource state data type
      ACPI: PM / fan: Put fan device IDs into separate header file
      ACPI: PM: s2idle: Add missing LPS0 functions for AMD
    
    * acpi-processor:
      ACPI: processor_throttling: Fix several coding style issues
      ACPI: processor_throttling: Remove redundant initialization of 'obj'
      ACPI: processor idle: Fix up C-state latency if not ordered
    
    * acpi-resources:
      ACPI: resources: Add checks for ACPI IRQ override
    rafaeljw committed Jun 29, 2021
  21. Merge branches 'acpi-bus', 'acpi-scan' and 'acpi-tables'

    * acpi-bus:
      ACPI: Remove redundant clearing of context->ret.pointer from acpi_run_osc()
    
    * acpi-scan:
      ACPI: scan: Simplify acpi_table_events_fn()
      ACPI: scan: Fix race related to dropping dependencies
      ACPI: scan: Reorganize acpi_device_add()
      ACPI: scan: Fix device object rescan in acpi_scan_clear_dep()
      ACPI: scan: Make acpi_walk_dep_device_list()
      ACPI: scan: Rearrange acpi_dev_get_first_consumer_dev_cb()
      ACPI: scan: Define acpi_bus_put_acpi_device() as static inline
      ACPI: scan: initialize local variable to avoid garbage being returned
      ACPI: scan: Add function to fetch dependent of ACPI device
      ACPI: scan: Extend acpi_walk_dep_device_list()
      ACPI: scan: Rearrange dep_unmet initialization
    
    * acpi-tables:
      ACPI: tables: Add custom DSDT file as makefile prerequisite
      ACPI: bgrt: Use sysfs_emit
      ACPI: bgrt: Fix CFI violation
      ACPI: tables: FPDT: Add missing acpi_put_table() in acpi_init_fpdt()
      ACPI: tables: PPTT: Populate cache-id if provided by firmware
    rafaeljw committed Jun 29, 2021
  22. Merge branch 'acpica'

    * acpica:
      ACPICA: Add PRMT module header to facilitate parsing
      ACPICA: Update version to 20210604
      ACPICA: Add support for PlatformRtMechanism OperationRegion handler
      ACPICA: iASL: add disassembler support for PRMT
      ACPICA: Add the CFMWS structure definition to the CEDT table
      ACPICA: Add defines for the CXL Host Bridge Structure (CHBS)
      ACPICA: iASL: Add support for the BDAT ACPI table
      ACPICA: Add _PLD panel positions
      ACPICA: Use ACPI_FALLTHROUGH
      ACPICA: iASL Table Compiler: Add full support for RGRT ACPI table
      ACPICA: iASL: Add support for the SVKL table
      ACPICA: iASL: Finish support for the IVRS ACPI table
      ACPICA: Fix memory leak caused by _CID repair function
      ACPICA: Add SVKL table headers
      ACPICA: ACPI 6.4: MADT: add Multiprocessor Wakeup Mailbox Structure
    rafaeljw committed Jun 29, 2021
  23. Merge branch 'opp/linux-next' of git://git.kernel.org/pub/scm/linux/k…

    …ernel/git/vireshk/pm
    
    Pull operating performance points (OPP) framework updates for v5.14
    from Viresh Kumar:
    
    "This pull request:
    
    - allows partial use of required-opps for non-genpd users.
    
    - does a minor cleanup and uses list_del_init()."
    
    * 'opp/linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm:
      opp: Allow required-opps to be used for non genpd use cases
      opp: use list_del_init instead of list_del/INIT_LIST_HEAD
    rafaeljw committed Jun 29, 2021
  24. Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/ebiederm/user-namespace
    
    Pull user namespace rlimit handling update from Eric Biederman:
     "This is the work mainly by Alexey Gladkov to limit rlimits to the
      rlimits of the user that created a user namespace, and to allow users
      to have stricter limits on the resources created within a user
      namespace."
    
    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
      cred: add missing return error code when set_cred_ucounts() failed
      ucounts: Silence warning in dec_rlimit_ucounts
      ucounts: Set ucount_max to the largest positive value the type can hold
      kselftests: Add test to check for rlimit changes in different user namespaces
      Reimplement RLIMIT_MEMLOCK on top of ucounts
      Reimplement RLIMIT_SIGPENDING on top of ucounts
      Reimplement RLIMIT_MSGQUEUE on top of ucounts
      Reimplement RLIMIT_NPROC on top of ucounts
      Use atomic_t for ucounts reference counting
      Add a reference to ucounts for each cred
      Increase size of ucounts to atomic_long_t
    torvalds committed Jun 29, 2021
  25. Merge tag 'array-bounds-fixes-5.14-rc1' of git://git.kernel.org/pub/s…

    …cm/linux/kernel/git/gustavoars/linux
    
    Pull array-bounds fixes from Gustavo Silva:
     "Fix an out-of-bounds warning in the media subsystem.
    
      This is part of the ongoing efforts to globally enable -Warray-bounds"
    
    * tag 'array-bounds-fixes-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux:
      media: siano: Fix out-of-bounds warnings in smscore_load_firmware_family2()
    torvalds committed Jun 29, 2021
  26. Merge tag 'fallthrough-fixes-clang-5.14-rc1' of git://git.kernel.org/…

    …pub/scm/linux/kernel/git/gustavoars/linux
    
    Pull fallthrough fixes from Gustavo Silva:
     "Fix many fall-through warnings when building with Clang 12.0.0 and
      '-Wimplicit-fallthrough' so that we at some point will be able to
      enable that warning by default"
    
    * tag 'fallthrough-fixes-clang-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux: (26 commits)
      rxrpc: Fix fall-through warnings for Clang
      drm/nouveau/clk: Fix fall-through warnings for Clang
      drm/nouveau/therm: Fix fall-through warnings for Clang
      drm/nouveau: Fix fall-through warnings for Clang
      xfs: Fix fall-through warnings for Clang
      xfrm: Fix fall-through warnings for Clang
      tipc: Fix fall-through warnings for Clang
      sctp: Fix fall-through warnings for Clang
      rds: Fix fall-through warnings for Clang
      net/packet: Fix fall-through warnings for Clang
      net: netrom: Fix fall-through warnings for Clang
      ide: Fix fall-through warnings for Clang
      hwmon: (max6621) Fix fall-through warnings for Clang
      hwmon: (corsair-cpro) Fix fall-through warnings for Clang
      firewire: core: Fix fall-through warnings for Clang
      braille_console: Fix fall-through warnings for Clang
      ipv4: Fix fall-through warnings for Clang
      qlcnic: Fix fall-through warnings for Clang
      bnxt_en: Fix fall-through warnings for Clang
      netxen_nic: Fix fall-through warnings for Clang
      ...
    torvalds committed Jun 29, 2021
  27. Merge tag 'pstore-v5.14-rc1' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/kees/linux
    
    Pull pstore updates from Kees Cook:
     "Use normal block device I/O path for pstore/blk. (Christoph Hellwig,
      Kees Cook, Pu Lehui)"
    
    * tag 'pstore-v5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
      pstore/blk: Include zone in pstore_device_info
      pstore/blk: Fix kerndoc and redundancy on blkdev param
      pstore/blk: Use the normal block device I/O path
      pstore/blk: Move verify_size() macro out of function
      pstore/blk: Improve failure reporting
    torvalds committed Jun 29, 2021
  28. Merge tag 'seccomp-v5.14-rc1' of git://git.kernel.org/pub/scm/linux/k…

    …ernel/git/kees/linux
    
    Pull seccomp updates from Kees Cook:
    
     - Add "atomic addfd + send reply" mode to SECCOMP_USER_NOTIF to better
       handle EINTR races visible to seccomp monitors. (Rodrigo Campos,
       Sargun Dhillon)
    
     - Improve seccomp selftests for readability in CI systems. (Kees Cook)
    
    * tag 'seccomp-v5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
      selftests/seccomp: Avoid using "sysctl" for report
      selftests/seccomp: Flush benchmark output
      selftests/seccomp: More closely track fds being assigned
      selftests/seccomp: Add test for atomic addfd+send
      seccomp: Support atomic "addfd + send reply"
    torvalds committed Jun 29, 2021

Commits on Jun 28, 2021

  1. Merge tag 'docs-5.14' of git://git.lwn.net/linux

    Pull documentation updates from Jonathan Corbet:
     "This was a reasonably active cycle for documentation; this includes:
    
       - Some kernel-doc cleanups. That script is still regex onslaught from
         hell, but it has gotten a little better.
    
       - Improvements to the checkpatch docs, which are also used by the
         tool itself.
    
       - A major update to the pathname lookup documentation.
    
       - Elimination of :doc: markup, since our automarkup magic can create
         references from filenames without all the extra noise.
    
       - The flurry of Chinese translation activity continues.
    
      Plus, of course, the usual collection of updates, typo fixes, and
      warning fixes"
    
    * tag 'docs-5.14' of git://git.lwn.net/linux: (115 commits)
      docs: path-lookup: use bare function() rather than literals
      docs: path-lookup: update symlink description
      docs: path-lookup: update get_link() ->follow_link description
      docs: path-lookup: update WALK_GET, WALK_PUT desc
      docs: path-lookup: no get_link()
      docs: path-lookup: update i_op->put_link and cookie description
      docs: path-lookup: i_op->follow_link replaced with i_op->get_link
      docs: path-lookup: Add macro name to symlink limit description
      docs: path-lookup: remove filename_mountpoint
      docs: path-lookup: update do_last() part
      docs: path-lookup: update path_mountpoint() part
      docs: path-lookup: update path_to_nameidata() part
      docs: path-lookup: update follow_managed() part
      docs: Makefile: Use CONFIG_SHELL not SHELL
      docs: Take a little noise out of the build process
      docs: x86: avoid using ReST :doc:`foo` markup
      docs: virt: kvm: s390-pv-boot.rst: avoid using ReST :doc:`foo` markup
      docs: userspace-api: landlock.rst: avoid using ReST :doc:`foo` markup
      docs: trace: ftrace.rst: avoid using ReST :doc:`foo` markup
      docs: trace: coresight: coresight.rst: avoid using ReST :doc:`foo` markup
      ...
    torvalds committed Jun 28, 2021
  2. Merge tag 'for-5.14-tag' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/kdave/linux
    
    Pull btrfs updates from David Sterba:
     "A normal mix of improvements, core changes and features that user have
      been missing or complaining about.
    
      User visible changes:
    
       - new sysfs exports:
          - add sysfs knob to limit scrub IO bandwidth per device
          - device stats are also available in
               /sys/fs/btrfs/FSID/devinfo/DEVID/error_stats
    
       - support cancellable resize and device delete ioctls
    
       - change how the empty value is interpreted when setting a property,
         so far we have only 'btrfs.compression' and we need to distinguish
         a reset to defaults and setting "do not compress", in general the
         empty value will always mean 'reset to defaults' for any other
         property, for compression it's either 'no' or 'none' to forbid
         compression
    
      Performance improvements:
    
       - no need for full sync when truncation does not touch extents,
         reported run time change is -12%
    
       - avoid unnecessary logging of xattrs during fast fsyncs (+17%
         throughput, -17% runtime on xattr stress workload)
    
      Core:
    
       - preemptive flushing improvements and fixes
          - adjust clamping logic on multi-threaded workloads to avoid
            flushing too soon
          - take into account global block reserve, may help on almost full
            filesystems
          - continue flushing when there are enough pending delalloc and
            ordered bytes
    
       - simplify logic around conditional transaction commit, a workaround
         used in the past for throttling that's been superseded by ticket
         reservations that manage the throttling in a better way
    
       - subpage blocksize preparation:
          - submit read time repair only for each corrupted sector
          - scrub repair now works with sectors and not pages
          - free space cache (v1) works with sectors and not pages
          - more fine grained bio tracking for extents
          - subpage support in page callbacks, extent callbacks, end io
            callbacks
    
       - simplify transaction abort logic and always abort and don't check
         various potentially unreliable stats tracked by the transaction
    
       - exclusive operations can do more checks when started and allow eg.
         cancellation of the same running operation
    
       - ensure relocation never runs while we have send operations running,
         e.g. when zoned background auto reclaim starts
    
      Fixes:
    
       - zoned: more sanity checks of write pointer
    
       - improve error handling in delayed inodes
    
       - send:
          - fix invalid path for unlink operations after parent
            orphanization
          - fix crash when memory allocations trigger reclaim
    
       - skip compression of we have only one page (can't make things
         better)
    
       - empty value of a property newly means reset to default
    
      Other:
    
       - lots of cleanups, comment updates, yearly typo fixing
    
       - disable build on platforms having page size 256K"
    
    * tag 'for-5.14-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux: (101 commits)
      btrfs: remove unused btrfs_fs_info::total_pinned
      btrfs: rip out btrfs_space_info::total_bytes_pinned
      btrfs: rip the first_ticket_bytes logic from fail_all_tickets
      btrfs: remove FLUSH_DELAYED_REFS from data ENOSPC flushing
      btrfs: rip out may_commit_transaction
      btrfs: send: fix crash when memory allocations trigger reclaim
      btrfs: ensure relocation never runs while we have send operations running
      btrfs: shorten integrity checker extent data mount option
      btrfs: switch mount option bits to enums and use wider type
      btrfs: props: change how empty value is interpreted
      btrfs: compression: don't try to compress if we don't have enough pages
      btrfs: fix unbalanced unlock in qgroup_account_snapshot()
      btrfs: sysfs: export dev stats in devinfo directory
      btrfs: fix typos in comments
      btrfs: remove a stale comment for btrfs_decompress_bio()
      btrfs: send: use list_move_tail instead of list_del/list_add_tail
      btrfs: disable build on platforms having page size 256K
      btrfs: send: fix invalid path for unlink operations after parent orphanization
      btrfs: inline wait_current_trans_commit_start in its caller
      btrfs: sink wait_for_unblock parameter to async commit
      ...
    torvalds committed Jun 28, 2021
  3. Merge tag 'erofs-for-5.14-rc1' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/xiang/erofs
    
    Pull erofs updates from Gao Xiang:
     "No noticable change available for this cycle. Just a bugfix related to
      sb chksum feature, two minor cleanups and Chao's email address update:
    
       - fix wrong error code overwritten due to sb checksum feature
    
       - two minor cleanups
    
       - update Chao's email address"
    
    * tag 'erofs-for-5.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs:
      MAINTAINERS: erofs: update my email address
      erofs: clean up file headers & footers
      erofs: remove the occupied parameter from z_erofs_pagevec_enqueue()
      erofs: fix error return code in erofs_read_superblock()
    torvalds committed Jun 28, 2021
Older