1. Dec 19, 2022
    • Linus Torvalds's avatar
      Merge tag 'loongarch-6.2' of... · 2f26e424
      Linus Torvalds authored
      Merge tag 'loongarch-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
      
      Pull LoongArch updates from Huacai Chen:
      
       - Switch to relative exception tables
      
       - Add unaligned access support
      
       - Add alternative runtime patching mechanism
      
       - Add FDT booting support from efi system table
      
       - Add suspend/hibernation (ACPI S3/S4) support
      
       - Add basic STACKPROTECTOR support
      
       - Add ftrace (function tracer) support
      
       - Update the default config file
      
      * tag 'loongarch-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson: (24 commits)
        LoongArch: Update Loongson-3 default config file
        LoongArch: modules/ftrace: Initialize PLT at load time
        LoongArch/ftrace: Add HAVE_FUNCTION_GRAPH_RET_ADDR_PTR support
        LoongArch/ftrace: Add HAVE_DYNAMIC_FTRACE_WITH_ARGS support
        LoongArch/ftrace: Add HAVE_DYNAMIC_FTRACE_WITH_REGS support
        LoongArch/ftrace: Add dynamic function graph tracer support
        LoongArch/ftrace: Add dynamic function tracer support
        LoongArch/ftrace: Add recordmcount support
        LoongArch/ftrace: Add basic support
        LoongArch: module: Use got/plt section indices for relocations
        LoongArch: Add basic STACKPROTECTOR support
        LoongArch: Add hibernation (ACPI S4) support
        LoongArch: Add suspend (ACPI S3) support
        LoongArch: Add processing ISA Node in DeviceTree
        LoongArch: Add FDT booting support from efi system table
        LoongArch: Use alternative to optimize libraries
        LoongArch: Add alternative runtime patching mechanism
        LoongArch: Add unaligned access support
        LoongArch: BPF: Add BPF exception tables
        LoongArch: Remove the .fixup section usage
        ...
      2f26e424
    • Linus Torvalds's avatar
      Merge tag 'csky-for-linus-6.2-rc1' of https://github.com/c-sky/csky-linux · 96bab5b9
      Linus Torvalds authored
      Pull arch/csky updates from Guo Ren:
      
       - Revert rseq support - it wasn't ready
      
       - Add current_stack_pointer support
      
       - Typo fixup
      
      * tag 'csky-for-linus-6.2-rc1' of https://github.com/c-sky/csky-linux:
        Revert "csky: Add support for restartable sequence"
        Revert "csky: Fixup CONFIG_DEBUG_RSEQ"
        csky: Kconfig: Fix spelling mistake "Meory" -> "Memory"
        csky: add arch support current_stack_pointer
      96bab5b9
    • Linus Torvalds's avatar
      Merge tag 'powerpc-6.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 5f6e430f
      Linus Torvalds authored
      Pull powerpc updates from Michael Ellerman:
      
       - Add powerpc qspinlock implementation optimised for large system
         scalability and paravirt. See the merge message for more details
      
       - Enable objtool to be built on powerpc to generate mcount locations
      
       - Use a temporary mm for code patching with the Radix MMU, so the
         writable mapping is restricted to the patching CPU
      
       - Add an option to build the 64-bit big-endian kernel with the ELFv2
         ABI
      
       - Sanitise user registers on interrupt entry on 64-bit Book3S
      
       - Many other small features and fixes
      
      Thanks to Aboorva Devarajan, Angel Iglesias, Benjamin Gray, Bjorn
      Helgaas, Bo Liu, Chen Lifu, Christoph Hellwig, Christophe JAILLET,
      Christophe Leroy, Christopher M. Riedl, Colin Ian King, Deming Wang,
      Disha Goel, Dmitry Torokhov, Finn Thain, Geert Uytterhoeven, Gustavo A.
      R. Silva, Haowen Bai, Joel Stanley, Jordan Niethe, Julia Lawall, Kajol
      Jain, Laurent Dufour, Li zeming, Miaoqian Lin, Michael Jeanson, Nathan
      Lynch, Naveen N. Rao, Nayna Jain, Nicholas Miehlbradt, Nicholas Piggin,
      Pali Rohár, Randy Dunlap, Rohan McLure, Russell Currey, Sathvika
      Vasireddy, Shaomin Deng, Stephen Kitt, Stephen Rothwell, Thomas
      Weißschuh, Tiezhu Yang, Uwe Kleine-König, Xie Shaowen, Xiu Jianfeng,
      XueBing Chen, Yang Yingliang, Zhang Jiaming, ruanjinjie, Jessica Yu,
      and Wolfram Sang.
      
      * tag 'powerpc-6.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: (181 commits)
        powerpc/code-patching: Fix oops with DEBUG_VM enabled
        powerpc/qspinlock: Fix 32-bit build
        powerpc/prom: Fix 32-bit build
        powerpc/rtas: mandate RTAS syscall filtering
        powerpc/rtas: define pr_fmt and convert printk call sites
        powerpc/rtas: clean up includes
        powerpc/rtas: clean up rtas_error_log_max initialization
        powerpc/pseries/eeh: use correct API for error log size
        powerpc/rtas: avoid scheduling in rtas_os_term()
        powerpc/rtas: avoid device tree lookups in rtas_os_term()
        powerpc/rtasd: use correct OF API for event scan rate
        powerpc/rtas: document rtas_call()
        powerpc/pseries: unregister VPA when hot unplugging a CPU
        powerpc/pseries: reset the RCU watchdogs after a LPM
        powerpc: Take in account addition CPU node when building kexec FDT
        powerpc: export the CPU node count
        powerpc/cpuidle: Set CPUIDLE_FLAG_POLLING for snooze state
        powerpc/dts/fsl: Fix pca954x i2c-mux node names
        cxl: Remove unnecessary cxl_pci_window_alignment()
        selftests/powerpc: Fix resource leaks
        ...
      5f6e430f
    • Linus Torvalds's avatar
      Merge tag 'mm-nonmm-stable-2022-12-17-20-32' of... · a6e3e6f1
      Linus Torvalds authored
      Merge tag 'mm-nonmm-stable-2022-12-17-20-32' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
      
      Pull fault-injection updates from Andrew Morton:
       "Some fault-injection improvements from Wei Yongjun which enable
        stacktrace filtering on x86_64"
      
      * tag 'mm-nonmm-stable-2022-12-17-20-32' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm:
        fault-injection: make stacktrace filter works as expected
        fault-injection: make some stack filter attrs more readable
        fault-injection: skip stacktrace filtering by default
        fault-injection: allow stacktrace filter for x86-64
      a6e3e6f1
    • Linus Torvalds's avatar
      Merge tag 'mm-stable-2022-12-17-2' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm · 1ea9d333
      Linus Torvalds authored
      Pull more mm updates from Andrew Morton:
      
       - A few late-breaking minor fixups
      
       - Two minor feature patches which were awkwardly dependent on mm-nonmm.
         I need to set up a new branch to handle such things.
      
      * tag 'mm-stable-2022-12-17-2' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm:
        MAINTAINERS: zram: zsmalloc: Add an additional co-maintainer
        mm/kmemleak: use %pK to display kernel pointers in backtrace
        mm: use stack_depot for recording kmemleak's backtrace
        maple_tree: update copyright dates for test code
        maple_tree: fix mas_find_rev() comment
        mm/gup_test: free memory allocated via kvcalloc() using kvfree()
      1ea9d333
  2. Dec 18, 2022
    • Linus Torvalds's avatar
      Merge tag 'x86_mm_for_6.2_v2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 4f292c4d
      Linus Torvalds authored
      Pull x86 mm updates from Dave Hansen:
       "New Feature:
      
         - Randomize the per-cpu entry areas
      
        Cleanups:
      
         - Have CR3_ADDR_MASK use PHYSICAL_PAGE_MASK instead of open coding it
      
         - Move to "native" set_memory_rox() helper
      
         - Clean up pmd_get_atomic() and i386-PAE
      
         - Remove some unused page table size macros"
      
      * tag 'x86_mm_for_6.2_v2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (35 commits)
        x86/mm: Ensure forced page table splitting
        x86/kasan: Populate shadow for shared chunk of the CPU entry area
        x86/kasan: Add helpers to align shadow addresses up and down
        x86/kasan: Rename local CPU_ENTRY_AREA variables to shorten names
        x86/mm: Populate KASAN shadow for entire per-CPU range of CPU entry area
        x86/mm: Recompute physical address for every page of per-CPU CEA mapping
        x86/mm: Rename __change_page_attr_set_clr(.checkalias)
        x86/mm: Inhibit _PAGE_NX changes from cpa_process_alias()
        x...
      4f292c4d
    • Linus Torvalds's avatar
      Merge tag 'msi-fixes-6.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms · 03d84bd6
      Linus Torvalds authored
      Pull MSI fixes from Marc Zyngier:
       "Thomas tasked me with sending out a few urgent fixes after the giant
        MSI rework that landed in 6.2, as both s390 and powerpc ended-up
        suffering from it (they do not use the full core code infrastructure,
        leading to these previously undetected issues):
      
         - Return MSI_XA_DOMAIN_SIZE as the maximum MSI index when the
           architecture does not make use of irq domains instead of returning
           0, which is pretty limiting.
      
         - Check for the presence of an irq domain when validating the MSI
           iterator, as s390/powerpc won't have one.
      
         - Fix powerpc's MSI backends which fail to clear the descriptor's IRQ
           field on teardown, leading to a splat and leaked descriptors"
      
      * tag 'msi-fixes-6.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms:
        powerpc/msi: Fix deassociation of MSI descriptors
        genirq/msi: Return MSI_XA_DOMAIN_SIZE as the maximum MSI index when no domain is present
        genirq/msi: Check for the presence of an irq domain when validating msi_ctrl
      03d84bd6
  3. Dec 17, 2022
    • Linus Torvalds's avatar
      Merge tag 'hsi-for-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-hsi · f9ff5644
      Linus Torvalds authored
      Pull HSI updates from Sebastian Reichel:
      
       - misc small fixes
      
      * tag 'hsi-for-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-hsi:
        HSI: omap_ssi_core: Fix error handling in ssi_init()
        headers: Remove some left-over license text in include/uapi/linux/hsi/
        HSI: omap_ssi_core: fix possible memory leak in ssi_probe()
        HSI: omap_ssi_core: fix unbalanced pm_runtime_disable()
        HSI: ssi_protocol: Fix return type of ssip_pn_xmit()
      f9ff5644
    • Linus Torvalds's avatar
      Merge tag 'for-v6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply · b220f311
      Linus Torvalds authored
      Pull power supply and reset updates from Sebastian Reichel:
      
       - bq25890: add charge voltage/current support
      
       - bd99954: convert to linear range
      
       - convert all i2c drivers to use probe_new
      
       - misc fixes and cleanups
      
      * tag 'for-v6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply: (51 commits)
        power: supply: fix null pointer dereferencing in power_supply_get_battery_info
        power: supply: bq25890: Fix usb-notifier probe and remove races
        power: supply: bq25890: Ensure pump_express_work is cancelled on remove
        power: supply: Fix refcount leak in rk817_charger_probe
        power: supply: bq25890: Only use pdata->regulator_init_data for vbus
        power: supply: ab8500: Fix error handling in ab8500_charger_init()
        power: supply: cw2015: Fix potential null-ptr-deref in cw_bat_probe()
        power: supply: z2_battery: Fix possible memleak in z2_batt_probe()
        power: supply: z2_battery: Convert to i2c's .probe_new()
        power: supply: ucs1002: Convert to i2c's .probe_new()
        power: supply: smb347: Convert to i2c's .probe_new()
        power: supply: sbs-manager: Convert to i2c's .probe_new()
        power: supply: sbs: Convert to i2c's .probe_new()
        power: supply: rt9455: Convert to i2c's .probe_new()
        power: supply: rt5033_battery: Convert to i2c's .probe_new()
        power: supply: max17042_battery: Convert to i2c's .probe_new()
        power: supply: max17040: Convert to i2c's .probe_new()
        power: supply: max14656: Convert to i2c's .probe_new()
        power: supply: ltc4162-l: Convert to i2c's .probe_new()
        power: supply: ltc2941: Convert to i2c's .probe_new()
        ...
      b220f311
    • Linus Torvalds's avatar
      Merge tag 'linux-watchdog-6.2-rc1' of git://www.linux-watchdog.org/linux-watchdog · b611996e
      Linus Torvalds authored
      Pull watchdog updates from Wim Van Sebroeck:
      
       - Add Advantech EC watchdog driver
      
       - Add support for MT6795 Helio X10 watchdog and toprgu
      
       - Add support for MT8188 watchdog device
      
       - Remove #ifdef guards for PM related functions
      
       - Other fixes and improvements
      
      * tag 'linux-watchdog-6.2-rc1' of git://www.linux-watchdog.org/linux-watchdog:
        watchdog: aspeed: Enable pre-timeout interrupt
        watchdog: iTCO_wdt: Set NO_REBOOT if the watchdog is not already running
        watchdog: rn5t618: add support for read out bootstatus
        watchdog: kempld: Remove #ifdef guards for PM related functions
        watchdog: omap: Remove #ifdef guards for PM related functions
        watchdog: twl4030: Remove #ifdef guards for PM related functions
        watchdog: at91rm9200: Remove #ifdef guards for PM related functions
        watchdog: Add Advantech EC watchdog driver
        dt-bindings: watchdog: mediatek,mtk-wdt: Add compatible for MT8173
        dt-bindings: watchdog: mediatek,mtk-wdt: Add compatible for MT6795
        dt-bindings: watchdog: mediatek: Convert mtk-wdt to json-schema
        watchdog: mediatek: mt8188: add wdt support
        dt-bindings: reset: mt8188: add toprgu reset-controller header file
        dt-bindings: watchdog: Add compatible for MediaTek MT8188
        watchdog: mtk_wdt: Add support for MT6795 Helio X10 watchdog and toprgu
      b611996e
    • Linus Torvalds's avatar
      Merge tag 'leds-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds · 75caf594
      Linus Torvalds authored
      Pull LED updates from Pavel Machek:
       "Lee Jones offered his help with maintaining LEDs, thanks a lot.
      
        Plus, there are some bugfixes as a bonus"
      
      * tag 'leds-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds:
        leds: MAINTAINERS: include dt-bindings headers
        leds: qcom,pm8058-led: Convert to DT schema
        leds: use sysfs_emit() to instead of scnprintf()
        leds: is31fl319x: Fix setting current limit for is31fl319{0,1,3}
        MAINTAINERS: Add additional co-maintainer to LEDs
        leds: lp5523: fix out-of-bounds bug in lp5523_selftest()
        dt-bindings: leds: Add 'cpuX' to 'linux,default-trigger'
        led: qcom-lpg: Fix sleeping in atomic
        leds: max8997: Don't error if there is no pdata
        leds: lp55xx: remove variable j
        leds-pca955x: Remove the unused function pca95xx_num_led_regs()
      75caf594
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma · ed56954c
      Linus Torvalds authored
      Pull rdma fixes from Jason Gunthorpe:
       "Fix two build warnings on 32 bit platforms
      
        It seems the linux-next CI and 0-day bot are not testing enough 32 bit
        configurations, as soon as you merged the rdma pull request there were
        two instant reports of warnings on these sytems that I would have
        thought should have been covered by time in linux-next
      
        Anyhow, here are the fixes so people don't hit problems with -Werror"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma:
        RDMA/siw: Fix pointer cast warning
        RDMA/rxe: Fix compile warnings on 32-bit
      ed56954c
    • Linus Torvalds's avatar
      Merge tag 'gfs2-v6.1-rc7-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2 · 6830d503
      Linus Torvalds authored
      Pull gfs2 updtaes from Andreas Gruenbacher:
      
       - Revert a change to delete_work_func() that has gone wrong in commit
         c412a97c ("gfs2: Use TRY lock in gfs2_inode_lookup for UNLINKED
         inodes").
      
       - Avoid dequeuing GL_ASYNC glock holders twice by first checking if the
         holder is still queued.
      
       - gfs2: Always check the inode size of inline inodes when reading in
         inodes to prevent corrupt filesystem images from causing weid errors.
      
       - Properly handle a race between gfs2_create_inode() and
         gfs2_inode_lookup() that causes insert_inode_locked4() to return
         -EBUSY.
      
       - Fix and clean up the interaction between gfs2_create_inode() and
         gfs2_evict_inode() by completely handling the inode deallocation and
         destruction in gfs2_evict_inode().
      
       - Remove support for glock holder auto-demotion as we have no current
         plans of using this feature again.
      
       - And a few more minor cleanups and clarifications.
      
      * tag 'gfs2-v6.1-rc7-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2:
        gfs2: Remove support for glock holder auto-demotion (2)
        gfs2: Remove support for glock holder auto-demotion
        gfs2: Minor gfs2_try_evict cleanup
        gfs2: Partially revert gfs2_inode_lookup change
        gfs2: Add gfs2_inode_lookup comment
        gfs2: Uninline and improve glock_{set,clear}_object
        gfs2: Simply dequeue iopen glock in gfs2_evict_inode
        gfs2: Clean up after gfs2_create_inode rework
        gfs2: Avoid dequeuing GL_ASYNC glock holders twice
        gfs2: Make gfs2_glock_hold return its glock argument
        gfs2: Always check inode size of inline inodes
        gfs2: Cosmetic gfs2_dinode_{in,out} cleanup
        gfs2: Handle -EBUSY result of insert_inode_locked4
        gfs2: Fix and clean up create / evict interaction
        gfs2: Clean up initialization of "ip" in gfs2_create_inode
        gfs2: Get rid of ghs[] in gfs2_create_inode
        gfs2: Add extra error check in alloc_dinode
      6830d503
    • Marc Zyngier's avatar
      powerpc/msi: Fix deassociation of MSI descriptors · 4545c6a3
      Marc Zyngier authored
      Since 2f2940d1
      
       ("genirq/msi: Remove filter from
      msi_free_descs_free_range()"), the core MSI code relies on the
      msi_desc->irq field to have been cleared before the descriptor
      can be freed, as it indicates that there is no association with
      a device anymore.
      
      The irq domain code provides this guarantee, and so does s390,
      which is one of the two architectures not using irq domains for
      MSIs.
      
      Powerpc, however, is missing this particular requirements,
      leading in a splat and leaked MSI descriptors.
      
      Adding the now required irq reset to the handful of powerpc backends
      that implement MSIs fixes that particular problem.
      
      Reported-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
      Link: https://lore.kernel.org/r/70dab88e-6119-0c12-7c6a-61bcbe239f66@roeck-us.net
      4545c6a3
    • Arnd Bergmann's avatar
      RDMA/siw: Fix pointer cast warning · 5244ca88
      Arnd Bergmann authored
      The previous build fix left a remaining issue in configurations with
      64-bit dma_addr_t on 32-bit architectures:
      
      drivers/infiniband/sw/siw/siw_qp_tx.c: In function 'siw_get_pblpage':
      drivers/infiniband/sw/siw/siw_qp_tx.c:32:37: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
         32 |                 return virt_to_page((void *)paddr);
            |                                     ^
      
      Use the same double cast here that the driver uses elsewhere to convert
      between dma_addr_t and void*.
      
      Fixes: 0d1b756a ("RDMA/siw: Pass a pointer to virt_to_page()")
      Link: https://lore.kernel.org/r/20221215170347.2612403-1-arnd@kernel.org
      
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarBernard Metzler <bmt@zurich.ibm.com>
      Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
      5244ca88
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 77856d91
      Linus Torvalds authored
      Pull arm64 fixes from Will Deacon:
      
       - Fix Kconfig dependencies to re-allow the enabling of function graph
         tracer and shadow call stacks at the same time.
      
       - Revert the workaround for CPU erratum #2645198 since the CONFIG_
         guards were incorrect and the code has therefore not seen any real
         exposure in -next.
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        Revert "arm64: errata: Workaround possible Cortex-A715 [ESR|FAR]_ELx corruption"
        ftrace: Allow WITH_ARGS flavour of graph tracer with shadow call stack
      77856d91
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-for-v6.2-1-2022-12-16' of... · aa4800e3
      Linus Torvalds authored
      Merge tag 'perf-tools-for-v6.2-1-2022-12-16' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux
      
      Pull perf tools updates from Arnaldo Carvalho de Melo:
       "Libraries:
      
         - Drop the old copy of libtraceevent in tools/lib/traceevent/ now
           that all major distros ship it from its external repository.
      
           This is now just another feature detection, emitting a warning when
           the libtraceevent-dev[el] package isn't installed, disabling the
           build of perf features and tools that strictly require parsing
           things from tracefs while keeping the core functionality present
           and working with a subset of the events, the most used ones like
           CPU cycles, hardware cache and also vendor events, etc.
      
           This was tested with lots of containers for Fedora, Debian,
           OpenSUSE, Alpine Linux, Ubuntu, with cross builds, etc.
      
        Build:
      
         - Update to C standard to gnu11, like was done for the kernel.
      
         - Install the tools/lib/ libraries locally instead of having headers
           searched directl...
      aa4800e3
    • Linus Torvalds's avatar
      Fix mismerge due to devnode now taking a 'const *' device · dcde56bb
      Linus Torvalds authored
      This was a mismerge of a semantic conflict in my merge of the driver
      core updates, where commit ff62b8e6 ("driver core: make struct
      class.devnode() take a const *") changed the devnode function pointer
      type.  In the meantime, the drm tree I merged earlier had introduced a
      new use of that in commit 8bf48897
      
       ("drivers/accel: define kconfig
      and register a new major").
      
      And of course this happens when I'm traveling with my laptop, and thus
      didn't do a full allmodconfig build between every pull and before
      pushing my work out.
      
      So I only noticed later as I was doing my full build.
      
      Brown-paper-bag-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Fixes: 71a7507a Merge tag 'driver-core-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
      
      
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      dcde56bb
  4. Dec 16, 2022
    • Thomas Gleixner's avatar
      genirq/msi: Return MSI_XA_DOMAIN_SIZE as the maximum MSI index when no domain is present · e982ad82
      Thomas Gleixner authored
      
      
      On architectures such as s390 that do not use irq domains for MSI,
      returning 0 as the maximum MSI index is a bit counter-productive,
      as it indicates that no MSI can be allocated. Bad idea.
      
      Instead, return the maximum we're willing to support in the MSI
      backing store (MSI_XA_DOMAIN_SIZE), and let the arch code do its
      usual thing.
      
      Thanks to Matthew Rosato for fixing the fix.
      
      Reported-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      [maz: commit message]
      Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
      Link: https://lore.kernel.org/r/87fsdgzpqs.ffs@tglx
      e982ad82
    • Marc Zyngier's avatar
      genirq/msi: Check for the presence of an irq domain when validating msi_ctrl · db3568fd
      Marc Zyngier authored
      
      
      For architectures such as s390 and powerpc that do not use
      irq domains for MSIs, dev->msi.domain is always NULL, so
      the per-device, per-bus MSI domain is also guaranteed to
      be NULL.
      
      So checking one without checking the other is bound to result
      in a splat, followed by a memory leak as we don't free the MSI
      descriptors.
      
      Add the missing check.
      
      Reported-by: default avatarMatthew Rosato <mjrosato@linux.ibm.com>
      Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
      Link: https://lore.kernel.org/r/e570e70d-19bc-101b-0481-ff9a3cab3504@linux.ibm.com
      db3568fd
    • Alexander Gordeev's avatar
      libperf: Fix install_pkgconfig target · 4ff17c44
      Alexander Gordeev authored
      Commit 47e02b94
      
       ("tools lib perf: Add dependency test to install_headers")
      misses the notion of $(DESTDIR_SQ) for install_pkgconfig target, which leads to
      error:
      
        install: cannot create regular file '/usr/lib64/pkgconfig/libperf.pc': Permission denied
        make: *** [Makefile:210: install_pkgconfig] Error 1
      
      Signed-off-by: default avatarAlexander Gordeev <agordeev@linux.ibm.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Josh Poimboeuf <jpoimboe@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Masahiro Yamada <masahiroy@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Nathan Chancellor <nathan@kernel.org>
      Cc: Nick Desaulniers <ndesaulniers@google.com>
      Cc: Nicolas Schier <nicolas@fjasle.eu>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Stephane Eranian <eranian@google.com>
      Cc: Tom Rix <trix@redhat.com>
      Cc: bpf@vger.kernel.org
      Cc: llvm@lists.linux.dev
      Link: http://lore.kernel...
      4ff17c44
    • Michael Ellerman's avatar
      powerpc/code-patching: Fix oops with DEBUG_VM enabled · 980411a4
      Michael Ellerman authored
      Nathan reported that the new per-cpu mm patching oopses if DEBUG_VM is
      enabled:
      
        ------------[ cut here ]------------
        kernel BUG at arch/powerpc/mm/pgtable.c:333!
        Oops: Exception in kernel mode, sig: 5 [#1]
        LE PAGE_SIZE=64K MMU=Radix SMP NR_CPUS=2048 NUMA PowerNV
        Modules linked in:
        CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.1.0-rc2+ #1
        Hardware name: IBM PowerNV (emulated by qemu) POWER9 0x4e1200 opal:v7.0 PowerNV
        ...
        NIP assert_pte_locked+0x180/0x1a0
        LR  assert_pte_locked+0x170/0x1a0
        Call Trace:
          0x60000000 (unreliable)
          patch_instruction+0x618/0x6d0
          arch_prepare_kprobe+0xfc/0x2d0
          register_kprobe+0x520/0x7c0
          arch_init_kprobes+0x28/0x3c
          init_kprobes+0x108/0x184
          do_one_initcall+0x60/0x2e0
          kernel_init_freeable+0x1f0/0x3e0
          kernel_init+0x34/0x1d0
          ret_from_kernel_thread+0x5c/0x64
      
      It's caused by the assert_spin_locked() failing in assert_pte_locked().
      The assert fails because the PTE was unlocked in text_area_cpu_up_mm(),
      and never relocked.
      
      The PTE page shouldn't be freed, the patching_mm is only used for
      patching on this CPU, only that single PTE is ever mapped, and it's only
      unmapped at CPU offline.
      
      In fact assert_pte_locked() has a special case to ignore init_mm
      entirely, and the patching_mm is more-or-less like init_mm, so possibly
      the check could be skipped for patching_mm too.
      
      But for now be conservative, and use the proper PTE accessors at
      patching time, so that the PTE lock is held while the PTE is used. That
      also avoids the warning in assert_pte_locked().
      
      With that it's no longer necessary to save the PTE in
      cpu_patching_context for the mm_patch_enabled() case.
      
      Fixes: c28c15b6
      
       ("powerpc/code-patching: Use temporary mm for Radix MMU")
      Reported-by: default avatarNathan Chancellor <nathan@kernel.org>
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      Link: https://lore.kernel.org/r/20221216125913.990972-1-mpe@ellerman.id.au
      980411a4
    • Arnaldo Carvalho de Melo's avatar
      Merge remote-tracking branch 'torvalds/master' into perf/core · 1a931707
      Arnaldo Carvalho de Melo authored
      To resolve a trivial merge conflict with c302378b
      
       ("libbpf:
      Hashmap interface update to allow both long and void* keys/values"),
      where a function present upstream was removed in the perf tools
      development tree.
      
      Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      1a931707
    • Linus Torvalds's avatar
      Merge tag 'driver-core-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core · 71a7507a
      Linus Torvalds authored
      Pull driver core updates from Greg KH:
       "Here is the set of driver core and kernfs changes for 6.2-rc1.
      
        The "big" change in here is the addition of a new macro,
        container_of_const() that will preserve the "const-ness" of a pointer
        passed into it.
      
        The "problem" of the current container_of() macro is that if you pass
        in a "const *", out of it can comes a non-const pointer unless you
        specifically ask for it. For many usages, we want to preserve the
        "const" attribute by using the same call. For a specific example, this
        series changes the kobj_to_dev() macro to use it, allowing it to be
        used no matter what the const value is. This prevents every subsystem
        from having to declare 2 different individual macros (i.e.
        kobj_const_to_dev() and kobj_to_dev()) and having the compiler enforce
        the const value at build time, which having 2 macros would not do
        either.
      
        The driver for all of this...
      71a7507a
    • Linus Torvalds's avatar
      Merge tag 'char-misc-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · ba54ff1f
      Linus Torvalds authored
      Pull char/misc driver updates from Greg KH:
       "Here is the large set of char/misc and other driver subsystem changes
        for 6.2-rc1. Nothing earth-shattering in here at all, just a lot of
        new driver development and minor fixes.
      
        Highlights include:
      
         - fastrpc driver updates
      
         - iio new drivers and updates
      
         - habanalabs driver updates for new hardware and features
      
         - slimbus driver updates
      
         - speakup module parameters added to aid in boot time configuration
      
         - i2c probe_new conversions for lots of different drivers
      
         - other small driver fixes and additions
      
        One semi-interesting change in here is the increase of the number of
        misc dynamic minors available to 1048448 to handle new huge-cpu
        systems.
      
        All of these have been in linux-next for a while with no reported
        problems"
      
      * tag 'char-misc-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (521 commits)
        ...
      ba54ff1f
    • Linus Torvalds's avatar
      Merge tag 'tty-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · dd6f9b17
      Linus Torvalds authored
      Pull tty/serial driver updates from Greg KH:
       "Here is the "big" set of tty/serial driver changes for 6.2-rc1.
      
        As in previous kernel releases, nothing big here at all, just some
        small incremental serial/tty layer cleanups and some individual driver
        additions and fixes. Highlights are:
      
         - serial helper macros from Jiri Slaby to reduce the amount of
           duplicated code in serial drivers
      
         - api cleanups and consolidations from Ilpo Järvinen in lots of
           serial drivers
      
         - the usual set of n_gsm fixes from Daniel Starke as that code gets
           exercised more
      
         - TIOCSTI is finally able to be disabled if requested (security
           hardening feature from Kees Cook)
      
         - fsl_lpuart driver fixes and features added
      
         - other small serial driver additions and fixes
      
        All of these have been in linux-next for a while with no reported
        problems"
      
      * tag 'tty-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (97 commits)
        serial: atmel: don't stop the transmitter when doing PIO
        serial: atmel: cleanup atmel_start+stop_tx()
        tty: serial: fsl_lpuart: switch to new dmaengine_terminate_* API
        serial: sunsab: Fix error handling in sunsab_init()
        serial: altera_uart: fix locking in polling mode
        serial: pch: Fix PCI device refcount leak in pch_request_dma()
        tty: serial: fsl_lpuart: Use pm_ptr() to avoid need to make pm __maybe_unused
        tty: serial: fsl_lpuart: Add runtime pm support
        tty: serial: fsl_lpuart: enable wakeup source for lpuart
        serdev: Replace poll loop by readx_poll_timeout() macro
        tty: synclink_gt: unwind actions in error path of net device open
        serial: stm32: move dma_request_chan() before clk_prepare_enable()
        dt-bindings: serial: xlnx,opb-uartlite: Drop 'contains' from 'xlnx,use-parity'
        serial: pl011: Do not clear RX FIFO & RX interrupt in unthrottle.
        serial: amba-pl011: avoid SBSA UART accessing DMACR register
        tty: serial: altera_jtaguart: remove struct altera_jtaguart
        tty: serial: altera_jtaguart: use uart_port::read_status_mask
        tty: serial: altera_jtaguart: remove unused altera_jtaguart::sigs
        tty: serial: altera_jtaguart: remove flag from altera_jtaguart_rx_chars()
        n_tty: Rename tail to old_tail in n_tty_read()
        ...
      dd6f9b17
    • Linus Torvalds's avatar
      Merge tag 'staging-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · b83a7080
      Linus Torvalds authored
      Pull staging driver updates from Greg KH:
       "Here is the large set of staging driver changes for 6.2-rc1.
      
        Another round of cleanups for staging drivers with no big additions.
        Overall more lines were removed than added, always a nice sign, with
        nothing happening in here other than general coding style cleanups and
        minor fixes in the drivers. Full, boring, details are in the shortlog.
      
        All of these have been in linux-next for a while with no reported
        problems"
      
      * tag 'staging-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (253 commits)
        vme: Use root_device_register() not underlined version
        staging: rtl8192e: Fix spelling mistake "ContryIE" -> "CountryIE"
        vme: Fix error not catched in fake_init()
        staging: vme_user: remove multiple blank lines
        staging: r8188eu: use subtype helper in rtw_check_bcn_info
        staging: r8188eu: use subtype helpers in collect_bss_info
        staging: r8188eu: remove unused da parameter
        staging: r8188eu: merge two probereq_p2p functions
        staging: r8188eu: simplify err handling for unknown station
        staging: r8188eu: handle the non-ap case first
        staging: r8188eu: move bBusyTraffic update
        staging: r8188eu: read reason code from ieee80211_mgmt
        staging: r8188eu: use ieee80211_mgmt to parse addresses
        staging: r8188eu: remove a variable
        staging: r8188eu: simplify error handling for missing station
        staging: r8188eu: stop beacon processing if kmalloc fails
        staging: r8188eu: exit if beacon is not from our bss
        staging: r8188eu: simplify update_sta_support_rate params
        staging: r8188eu: use ie buffer in update_beacon_info
        staging: r8188eu: pass only ies to process_p2p_ps_ie
        ...
      b83a7080
    • Linus Torvalds's avatar
      Merge tag 'usb-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 58bcac11
      Linus Torvalds authored
      Pull USB and Thunderbolt driver updates from Greg KH:
       "Here is the large set of USB and Thunderbolt driver changes for
        6.2-rc1. Overall, thanks to the removal of a driver, more lines were
        removed than added, a nice change. Highlights include:
      
         - removal of the sisusbvga driver that was not used by anyone anymore
      
         - minor thunderbolt driver changes and tweaks
      
         - chipidea driver updates
      
         - usual set of typec driver features and hardware support added
      
         - musb minor driver fixes
      
         - fotg210 driver fixes, bringing that hardware back from the "dead"
      
         - minor dwc3 driver updates
      
         - addition, and then removal, of a list.h helper function for many
           USB and other subsystem drivers, that ended up breaking the build.
           That will come back for 6.3-rc1, it missed this merge window.
      
         - usual xhci updates and enhancements
      
         - usb-serial driver updates and support for new devices
      
         - other minor USB driver updates
      
        All of these have been in linux-next for a while with no reported
        problems"
      
      * tag 'usb-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (153 commits)
        usb: gadget: uvc: Rename bmInterfaceFlags -> bmInterlaceFlags
        usb: dwc2: power on/off phy for peripheral mode in dual-role mode
        usb: dwc2: disable lpm feature on Rockchip SoCs
        dt-bindings: usb: mtk-xhci: add support for mt7986
        usb: dwc3: core: defer probe on ulpi_read_id timeout
        usb: ulpi: defer ulpi_register on ulpi_read_id timeout
        usb: misc: onboard_usb_hub: add Genesys Logic GL850G hub support
        dt-bindings: usb: Add binding for Genesys Logic GL850G hub controller
        dt-bindings: vendor-prefixes: add Genesys Logic
        usb: fotg210-udc: fix potential memory leak in fotg210_udc_probe()
        usb: typec: tipd: Set mode of operation for USB Type-C connector
        usb: gadget: udc: drop obsolete dependencies on COMPILE_TEST
        usb: musb: remove extra check in musb_gadget_vbus_draw
        usb: gadget: uvc: Prevent buffer overflow in setup handler
        usb: dwc3: qcom: Fix memory leak in dwc3_qcom_interconnect_init
        usb: typec: wusb3801: fix fwnode refcount leak in wusb3801_probe()
        usb: storage: Add check for kcalloc
        USB: sisusbvga: use module_usb_driver()
        USB: sisusbvga: rename sisusb.c to sisusbvga.c
        USB: sisusbvga: remove console support
        ...
      58bcac11
    • Linus Torvalds's avatar
      Merge tag 'exfat-for-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat · 84e57d29
      Linus Torvalds authored
      Pull exfat update from Namjae Jeon:
      
       - simplify and remove some redundant directory entry code
      
       - optimize the size of exfat_entry_set_cache and its allocation policy
      
       - improve the performance for creating files and directories
      
      * tag 'exfat-for-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat:
        exfat: reuse exfat_find_location() to simplify exfat_get_dentry_set()
        exfat: fix overflow in sector and cluster conversion
        exfat: remove i_size_write() from __exfat_truncate()
        exfat: remove argument 'size' from exfat_truncate()
        exfat: remove unnecessary arguments from exfat_find_dir_entry()
        exfat: remove unneeded codes from __exfat_rename()
        exfat: remove call ilog2() from exfat_readdir()
        exfat: replace magic numbers with Macros
        exfat: rename exfat_free_dentry_set() to exfat_put_dentry_set()
        exfat: move exfat_entry_set_cache from heap to stack
        exfat: support dynamic allo...
      84e57d29
    • Linus Torvalds's avatar
      Merge tag 'for-6.2/writeback-2022-12-12' of git://git.kernel.dk/linux · 23dc9c75
      Linus Torvalds authored
      Pull writeback updates from Jens Axboe:
      
       - Sanity check adding freed inodes to lists (Jan)
      
       - Removal of an old unused define (Miaohe)
      
      * tag 'for-6.2/writeback-2022-12-12' of git://git.kernel.dk/linux:
        writeback: remove obsolete macro EXPIRE_DIRTY_ATIME
        writeback: Add asserts for adding freed inode to lists
      23dc9c75
    • Linus Torvalds's avatar
      Merge tag 'trace-v6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace · fe36bb87
      Linus Torvalds authored
      Pull tracing updates from Steven Rostedt:
      
       - Add options to the osnoise tracer:
            - 'panic_on_stop' option that panics the kernel if osnoise is
              greater than some user defined threshold.
            - 'preempt' option, to test noise while preemption is disabled
            - 'irq' option, to test noise when interrupts are disabled
      
       - Add .percent and .graph suffix to histograms to give different
         outputs
      
       - Add nohitcount to disable showing hitcount in histogram output
      
       - Add new __cpumask() to trace event fields to annotate that a unsigned
         long array is a cpumask to user space and should be treated as one.
      
       - Add trace_trigger kernel command line parameter to enable trace event
         triggers at boot up. Useful to trace stack traces, disable tracing
         and take snapshots.
      
       - Fix x86/kmmio mmio tracer to work with the updates to lockdep
      
       - Unify the panic and die notifiers
      
       - Add back ftrace_expect reference...
      fe36bb87
    • Wei Yongjun's avatar
      fault-injection: make stacktrace filter works as expected · f9eeef59
      Wei Yongjun authored
      stacktrace filter is checked after others, such as fail-nth, interval and
      probability.  This make it doesn't work well as expected.
      
      Fix to running stacktrace filter before other filters.  It will speed up
      fault inject testing for driver modules.
      
      Link: https://lkml.kernel.org/r/20220817080332.1052710-5-weiyongjun1@huawei.com
      
      
      Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
      Cc: Akinobu Mita <akinobu.mita@gmail.com>
      Cc: Dan Williams <dan.j.williams@intel.com>
      Cc: Isabella Basso <isabbasso@riseup.net>
      Cc: Josh Poimboeuf <jpoimboe@kernel.org>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Miguel Ojeda <ojeda@kernel.org>
      Cc: Nathan Chancellor <nathan@kernel.org>
      Cc: Nick Desaulniers <ndesaulniers@google.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
      Cc: Vlastimil Babka <vbabka@suse.cz>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      f9eeef59
    • Wei Yongjun's avatar
      fault-injection: make some stack filter attrs more readable · 01999074
      Wei Yongjun authored
      Attributes of stack filter are show as unsigned decimal, such as
      'require-start', 'require-end'.  This patch change to show them as
      unsigned hexadecimal for more readable.
      
      Before:
        $ echo 0xffffffffc0257000 > /sys/kernel/debug/failslab/require-start
        $ cat /sys/kernel/debug/failslab/require-start
        18446744072638263296
      
      After:
        $ echo 0xffffffffc0257000 > /sys/kernel/debug/failslab/require-start
        $ cat /sys/kernel/debug/failslab/require-start
        0xffffffffc0257000
      
      [wangyufen@huawei.com: use debugfs_create_xul() instead of debugfs_create_xl()]
        Link: https://lkml.kernel.org/r/1664331299-4976-1-git-send-email-wangyufen@huawei.com
      Link: https://lkml.kernel.org/r/20220817080332.1052710-4-weiyongjun1@huawei.com
      
      
      Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
      Signed-off-by: default avatarWang Yufen <wangyufen@huawei.com>
      Reviewed-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
      Cc: Dan Williams <dan.j.williams@intel.com>
      Cc: Isabella Basso <isabbasso@riseup.net>
      Cc: Josh Poimboeuf <jpoimboe@kernel.org>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Miguel Ojeda <ojeda@kernel.org>
      Cc: Nathan Chancellor <nathan@kernel.org>
      Cc: Nick Desaulniers <ndesaulniers@google.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
      Cc: Vlastimil Babka <vbabka@suse.cz>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      01999074
    • Wei Yongjun's avatar
      fault-injection: skip stacktrace filtering by default · 4acb9e51
      Wei Yongjun authored
      If FAULT_INJECTION_STACKTRACE_FILTER is enabled, the depth is default to
      32.  This means fail_stacktrace() will iter each entry's stacktrace, even
      if filter is not configured.
      
      This patch changes to quick return from fail_stacktrace() if stacktrace
      filter is not set.
      
      Link: https://lkml.kernel.org/r/20220817080332.1052710-3-weiyongjun1@huawei.com
      
      
      Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
      Cc: Akinobu Mita <akinobu.mita@gmail.com>
      Cc: Dan Williams <dan.j.williams@intel.com>
      Cc: Isabella Basso <isabbasso@riseup.net>
      Cc: Josh Poimboeuf <jpoimboe@kernel.org>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Miguel Ojeda <ojeda@kernel.org>
      Cc: Nathan Chancellor <nathan@kernel.org>
      Cc: Nick Desaulniers <ndesaulniers@google.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
      Cc: Vlastimil Babka <vbabka@suse.cz>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      4acb9e51
    • Wei Yongjun's avatar
      fault-injection: allow stacktrace filter for x86-64 · a7ebbbb1
      Wei Yongjun authored
      This patchset allow fault injection to run on x86_64 and makes stacktrace
      filter work as expected.  With this, we can test a device driver module
      with fault injection more easily.
      
      
      This patch (of 4):
      
      FAULT_INJECTION_STACKTRACE_FILTER option was apparently disallowed on
      x86_64 because of problems with the stack unwinder:
      
          commit 6d690dca
          Author: Akinobu Mita <akinobu.mita@gmail.com>
          Date:   Sat May 12 10:36:53 2007 -0700
      
              fault injection: disable stacktrace filter for x86-64
      
      However, there is no problems whatsoever with this today. Let's allow
      it again.
      
      Link: https://lkml.kernel.org/r/20220817080332.1052710-1-weiyongjun1@huawei.com
      Link: https://lkml.kernel.org/r/20220817080332.1052710-2-weiyongjun1@huawei.com
      
      
      Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
      Cc: Akinobu Mita <akinobu.mita@gmail.com>
      Cc: Nathan Chancellor <nathan@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Nick Desaulniers <ndesaulniers@google.com>
      Cc: Josh Poimboeuf <jpoimboe@kernel.org>
      Cc: Dan Williams <dan.j.williams@intel.com>
      Cc: Miguel Ojeda <ojeda@kernel.org>
      Cc: Isabella Basso <isabbasso@riseup.net>
      Cc: Vlastimil Babka <vbabka@suse.cz>
      Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      a7ebbbb1
    • Minchan Kim's avatar
      MAINTAINERS: zram: zsmalloc: Add an additional co-maintainer · 8b777594
      Minchan Kim authored
      Move Sergey to co-maintainer for zram/zsmalloc since he has helped to
      contribute/review those areas actively for eight years, which is quite
      helpful.  Since Nitin has been inactive for several years, it's time to
      move his name into CREDITS.
      
      Link: https://lkml.kernel.org/r/20221213170731.796121-1-minchan@kernel.org
      
      
      Signed-off-by: default avatarMinchan Kim <minchan@kernel.org>
      Reviewed-by: default avatarSergey Senozhatsky <senozhatsky@chromium.org>
      Cc: Nitin Gupta <ngupta@vflare.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      8b777594
    • Clément Léger's avatar
      mm/kmemleak: use %pK to display kernel pointers in backtrace · 3a6f33d8
      Clément Léger authored
      Currently, %p is used to display kernel pointers in backtrace which result
      in a hashed value that is not usable to correlate the address for debug. 
      Use %pK which will respect the kptr_restrict configuration value and thus
      allow to extract meaningful information from the backtrace.
      
      Link: https://lkml.kernel.org/r/20221108094322.73492-1-clement.leger@bootlin.com
      
      
      Signed-off-by: default avatarClément Léger <clement.leger@bootlin.com>
      Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      3a6f33d8
    • Zhaoyang Huang's avatar
      mm: use stack_depot for recording kmemleak's backtrace · 56a61617
      Zhaoyang Huang authored
      Using stack_depot to record kmemleak's backtrace which has been
      implemented on slub for reducing redundant information.
      
      [akpm@linux-foundation.org: fix build - remove now-unused __save_stack_trace()]
      [zhaoyang.huang@unisoc.com: v3]
        Link: https://lkml.kernel.org/r/1667101354-4669-1-git-send-email-zhaoyang.huang@unisoc.com
      [akpm@linux-foundation.org: fix v3 layout oddities]
      [akpm@linux-foundation.org: coding-style cleanups]
      Link: https://lkml.kernel.org/r/1666864224-27541-1-git-send-email-zhaoyang.huang@unisoc.com
      
      
      Signed-off-by: default avatarZhaoyang Huang <zhaoyang.huang@unisoc.com>
      Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      Cc: ke.wang <ke.wang@unisoc.com>
      Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
      Cc: Vlastimil Babka <vbabka@suse.cz>
      Cc: Zhaoyang Huang <huangzhaoyang@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      56a61617
    • Liam Howlett's avatar
      maple_tree: update copyright dates for test code · 9102b78b
      Liam Howlett authored
      Add the span to the year of the development.
      
      Link: https://lkml.kernel.org/r/20221025173709.2718725-1-Liam.Howlett@oracle.com
      
      
      Signed-off-by: default avatarLiam R. Howlett <Liam.Howlett@oracle.com>
      Cc: Matthew Wilcox <willy@infradead.org>
      Cc: Joe Perches <joe@perches.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      9102b78b
    • Liam Howlett's avatar
      maple_tree: fix mas_find_rev() comment · d98c86b9
      Liam Howlett authored
      mas_find_rev() uses mas_prev_entry(), not mas_next_entry(), correct comment.
      
      Link: https://lkml.kernel.org/r/20221025173756.2719616-1-Liam.Howlett@oracle.com
      
      
      Signed-off-by: default avatarLiam R. Howlett <Liam.Howlett@oracle.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      d98c86b9