1. 23 Feb, 2022 3 commits
  2. 22 Feb, 2022 6 commits
  3. 21 Feb, 2022 5 commits
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v5.17-3' of... · 038101e6
      Linus Torvalds authored
      Merge tag 'platform-drivers-x86-v5.17-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
      
      Pull x86 platform driver fixes from Hans de Goede:
       "Two small fixes and one hardware-id addition"
      
      * tag 'platform-drivers-x86-v5.17-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86:
        platform/x86: int3472: Add terminator to gpiod_lookup_table
        platform/x86: asus-wmi: Fix regression when probing for fan curve control
        platform/x86: thinkpad_acpi: Add dual-fan quirk for T15g (2nd gen)
      038101e6
    • Max Kellermann's avatar
      lib/iov_iter: initialize "flags" in new pipe_buffer · 9d2231c5
      Max Kellermann authored
      The functions copy_page_to_iter_pipe() and push_pipe() can both
      allocate a new pipe_buffer, but the "flags" member initializer is
      missing.
      
      Fixes: 241699cd ("new iov_iter flavour: pipe-backed")
      To: Alexander Viro <viro@zeniv.linux.org.uk>
      To: linux-fsdevel@vger.kernel.org
      To: linux-kernel@vger.kernel.org
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarMax Kellermann <max.kellermann@ionos.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      9d2231c5
    • Daniel Scally's avatar
      platform/x86: int3472: Add terminator to gpiod_lookup_table · ae09639e
      Daniel Scally authored
      Without the terminator, if a con_id is passed to gpio_find() that
      does not exist in the lookup table the function will not stop looping
      correctly, and eventually cause an oops.
      
      Fixes: 19d8d6e3 ("platform/x86: int3472: Pass tps68470_regulator_platform_data to the tps68470-regulator MFD-cell")
      Signed-off-by: default avatarDaniel Scally <djrscally@gmail.com>
      Link: https://lore.kernel.org/r/20220216225304.53911-5-djrscally@gmail.comReviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      ae09639e
    • Roman Gushchin's avatar
      tools/cgroup/slabinfo: update to work with struct slab · 22194473
      Roman Gushchin authored
      After the introduction of the dedicated struct slab to describe slab
      pages by commit d122019b ("mm: Split slab into its own type") and
      the following removal of the corresponding struct page's fields by
      commit 07f910f9 ("mm: Remove slab from struct page") the
      memcg_slabinfo tool broke. An attempt to run it produces a trace like
      this:
      Traceback (most recent call last):
        File "/usr/bin/drgn", line 33, in <module>
          sys.exit(load_entry_point('drgn==0.0.16', 'console_scripts', 'drgn')())
        File "/usr/lib64/python3.9/site-packages/drgn/internal/cli.py", line 133, in main
          runpy.run_path(args.script[0], init_globals=init_globals, run_name="__main__")
        File "/usr/lib64/python3.9/runpy.py", line 268, in run_path
          return _run_module_code(code, init_globals, run_name,
        File "/usr/lib64/python3.9/runpy.py", line 97, in _run_module_code
          _run_code(code, mod_globals, init_globals,
        File "/usr/lib64/python3.9/runpy.py", line 87, in _run_code
          exec(code, run_globals)
        File "memcg_slabinfo.py", line 226, in <module>
          main()
        File "memcg_slabinfo.py", line 199, in main
          cache = page.slab_cache
      AttributeError: 'struct page' has no member 'slab_cache'
      
      The problem can be fixed by explicitly casting struct page * to struct
      slab * for slab pages. The tools works as expected with this fix, e.g.:
      
      cred_jar             776    776    192   21    1 : tunables    0    0    0 : slabdata    547    547      0
      kmalloc-cg-32          6      6     32  128    1 : tunables    0    0    0 : slabdata      9      9      0
      files_cache            3      3    832   39    8 : tunables    0    0    0 : slabdata      8      8      0
      kmalloc-cg-512         1      1    512   32    4 : tunables    0    0    0 : slabdata     10     10      0
      task_struct           10     10   6720    4    8 : tunables    0    0    0 : slabdata     63     63      0
      mm_struct              3      3   1664   19    8 : tunables    0    0    0 : slabdata      9      9      0
      kmalloc-cg-16          1      1     16  256    1 : tunables    0    0    0 : slabdata      8      8      0
      pde_opener             1      1     40  102    1 : tunables    0    0    0 : slabdata      8      8      0
      anon_vma_chain       375    375     64   64    1 : tunables    0    0    0 : slabdata     81     81      0
      radix_tree_node        3      3    584   28    4 : tunables    0    0    0 : slabdata    419    419      0
      dentry                98     98    312   26    2 : tunables    0    0    0 : slabdata   1420   1420      0
      btrfs_inode            3      3   2368   13    8 : tunables    0    0    0 : slabdata    730    730      0
      signal_cache           3      3   1600   20    8 : tunables    0    0    0 : slabdata     17     17      0
      sighand_cache          3      3   2240   14    8 : tunables    0    0    0 : slabdata     20     20      0
      filp                  90     90    512   32    4 : tunables    0    0    0 : slabdata     95     95      0
      anon_vma             214    214    200   20    1 : tunables    0    0    0 : slabdata    162    162      0
      kmalloc-cg-1k          1      1   1024   32    8 : tunables    0    0    0 : slabdata     22     22      0
      pid                   10     10    256   32    2 : tunables    0    0    0 : slabdata     14     14      0
      kmalloc-cg-64          2      2     64   64    1 : tunables    0    0    0 : slabdata      8      8      0
      kmalloc-cg-96          3      3     96   42    1 : tunables    0    0    0 : slabdata      8      8      0
      sock_inode_cache       5      5   1408   23    8 : tunables    0    0    0 : slabdata     29     29      0
      UNIX                   7      7   1920   17    8 : tunables    0    0    0 : slabdata     21     21      0
      inode_cache           36     36   1152   28    8 : tunables    0    0    0 : slabdata    680    680      0
      proc_inode_cache      26     26   1224   26    8 : tunables    0    0    0 : slabdata     64     64      0
      kmalloc-cg-2k          2      2   2048   16    8 : tunables    0    0    0 : slabdata      9      9      0
      
      v2: change naming and count_partial()/count_free()/for_each_slab()
          signatures to work with slabs, suggested by Matthew Wilcox
      
      Fixes: 07f910f9 ("mm: Remove slab from struct page")
      Reported-by: default avatarVasily Averin <vvs@virtuozzo.com>
      Signed-off-by: default avatarRoman Gushchin <guro@fb.com>
      Tested-by: default avatarVasily Averin <vvs@virtuozzo.com>
      Signed-off-by: default avatarVlastimil Babka <vbabka@suse.cz>
      Link: https://lore.kernel.org/linux-patches/Yg2cKKnIboNu7j+p@carbon.DHCP.thefacebook.com/
      22194473
    • Greg Kroah-Hartman's avatar
      slab: remove __alloc_size attribute from __kmalloc_track_caller · 93dd04ab
      Greg Kroah-Hartman authored
      Commit c37495d6 ("slab: add __alloc_size attributes for better
      bounds checking") added __alloc_size attributes to a bunch of kmalloc
      function prototypes.  Unfortunately the change to __kmalloc_track_caller
      seems to cause clang to generate broken code and the first time this is
      called when booting, the box will crash.
      
      While the compiler problems are being reworked and attempted to be
      solved [1], let's just drop the attribute to solve the issue now.  Once
      it is resolved it can be added back.
      
      [1] https://github.com/ClangBuiltLinux/linux/issues/1599
      
      Fixes: c37495d6 ("slab: add __alloc_size attributes for better bounds checking")
      Cc: stable <stable@vger.kernel.org>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Daniel Micay <danielmicay@gmail.com>
      Cc: Nick Desaulniers <ndesaulniers@google.com>
      Cc: Christoph Lameter <cl@linux.com>
      Cc: Pekka Enberg <penberg@kernel.org>
      Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Vlastimil Babka <vbabka@suse.cz>
      Cc: Nathan Chancellor <nathan@kernel.org>
      Cc: linux-mm@kvack.org
      Cc: linux-kernel@vger.kernel.org
      Cc: llvm@lists.linux.dev
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Acked-by: default avatarNick Desaulniers <ndesaulniers@google.com>
      Acked-by: default avatarDavid Rientjes <rientjes@google.com>
      Acked-by: default avatarKees Cook <keescook@chromium.org>
      Signed-off-by: default avatarVlastimil Babka <vbabka@suse.cz>
      Link: https://lore.kernel.org/r/20220218131358.3032912-1-gregkh@linuxfoundation.org
      93dd04ab
  4. 20 Feb, 2022 14 commits
  5. 19 Feb, 2022 5 commits
  6. 18 Feb, 2022 7 commits
    • Dmitry Torokhov's avatar
      Input: psmouse - set up dependency between PS/2 and SMBus companions · 7b1f781f
      Dmitry Torokhov authored
      When we switch from emulated PS/2 to native (RMI4 or Elan) protocols, we
      create SMBus companion devices that are attached to I2C/SMBus controllers.
      However, when suspending and resuming, we also need to make sure that we
      take into account the PS/2 device they are associated with, so that PS/2
      device is suspended after the companion and resumed before it, otherwise
      companions will not work properly. Before I2C devices were marked for
      asynchronous suspend/resume, this ordering happened naturally, but now we
      need to enforce it by establishing device links, with PS/2 devices being
      suppliers and SMBus companions being consumers.
      
      Fixes: 172d9319 ("i2c: enable async suspend/resume on i2c client devices")
      Reported-and-tested-by: default avatarHugh Dickins <hughd@google.com>
      Tested-by: default avatarJarkko Nikula <jarkko.nikula@linux.intel.com>
      Link: https://lore.kernel.org/r/89456fcd-a113-4c82-4b10-a9bcaefac68f@google.com
      Link: https://lore.kernel.org/r/YgwQN8ynO88CPMju@google.comSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      7b1f781f
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-processor' · 82926564
      Rafael J. Wysocki authored
      Merge fix for a recent boot lockup regression on 32-bit ThinkPad T40.
      
      * acpi-processor:
        ACPI: processor: idle: fix lockup regression on 32-bit ThinkPad T40
      82926564
    • Linus Torvalds's avatar
      Merge tag 'mtd/fixes-for-5.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux · 7993e65f
      Linus Torvalds authored
      Pull MTD fixes from Miquel Raynal:
       "MTD changes:
      
         - Qcom:
            - Don't print error message on -EPROBE_DEFER
            - Fix kernel panic on skipped partition
            - Fix missing free for pparts in cleanup
      
         - phram: Prevent divide by zero bug in phram_setup()
      
        Raw NAND controller changes:
      
         - ingenic: Fix missing put_device in ingenic_ecc_get
      
         - qcom: Fix clock sequencing in qcom_nandc_probe()
      
         - omap2: Prevent invalid configuration and build error
      
         - gpmi: Don't leak PM reference in error path
      
         - brcmnand: Fix incorrect sub-page ECC status"
      
      * tag 'mtd/fixes-for-5.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux:
        mtd: rawnand: brcmnand: Fixed incorrect sub-page ECC status
        mtd: rawnand: gpmi: don't leak PM reference in error path
        mtd: phram: Prevent divide by zero bug in phram_setup()
        mtd: rawnand: omap2: Prevent invalid configuration and build error
        mtd: parsers: qcom: Fix missing free for pparts in cleanup
        mtd: parsers: qcom: Fix kernel panic on skipped partition
        mtd: parsers: qcom: Don't print error message on -EPROBE_DEFER
        mtd: rawnand: qcom: Fix clock sequencing in qcom_nandc_probe()
        mtd: rawnand: ingenic: Fix missing put_device in ingenic_ecc_get
      7993e65f
    • Linus Torvalds's avatar
      Merge tag 'block-5.17-2022-02-17' of git://git.kernel.dk/linux-block · b9889768
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - Surprise removal fix (Christoph)
      
       - Ensure that pages are zeroed before submitted for userspace IO
         (Haimin)
      
       - Fix blk-wbt accounting issue with BFQ (Laibin)
      
       - Use bsize for discard granularity in loop (Ming)
      
       - Fix missing zone handling in blk_complete_request() (Pankaj)
      
      * tag 'block-5.17-2022-02-17' of git://git.kernel.dk/linux-block:
        block/wbt: fix negative inflight counter when remove scsi device
        block: fix surprise removal for drivers calling blk_set_queue_dying
        block-map: add __GFP_ZERO flag for alloc_page in function bio_copy_kern
        block: loop:use kstatfs.f_bsize of backing file to set discard granularity
        block: Add handling for zone append command in blk_complete_request
      b9889768
    • Linus Torvalds's avatar
      Merge tag 'sound-5.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 2848551b
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "A collection of small patches, mostly for old and new regressions and
        device-specific fixes.
      
         - Regression fixes regarding ALSA core SG-buffer helpers
      
         - Regression fix for Realtek HD-audio mutex deadlock
      
         - Regression fix for USB-audio PM resume error
      
         - More coverage of ASoC core control API notification fixes
      
         - Old regression fixes for HD-audio probe mask
      
         - Fixes for ASoC Realtek codec work handling
      
         - Other device-specific quirks / fixes"
      
      * tag 'sound-5.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (24 commits)
        ASoC: intel: skylake: Set max DMA segment size
        ASoC: SOF: hda: Set max DMA segment size
        ALSA: hda: Set max DMA segment size
        ALSA: hda/realtek: Fix deadlock by COEF mutex
        ALSA: usb-audio: Don't abort resume upon errors
        ALSA: hda: Fix missing codec probe on Shenker Dock 15
        ALSA: hda: Fix regression on forced probe mask option
        ALSA: hda/realtek: Add quirk for Legion Y9000X 2019
        ALSA: usb-audio: revert to IMPLICIT_FB_FIXED_DEV for M-Audio FastTrack Ultra
        ASoC: wm_adsp: Correct control read size when parsing compressed buffer
        ASoC: qcom: Actually clear DMA interrupt register for HDMI
        ALSA: memalloc: invalidate SG pages before sync
        ALSA: memalloc: Fix dma_need_sync() checks
        MAINTAINERS: update cros_ec_codec maintainers
        ASoC: rt5682: do not block workqueue if card is unbound
        ASoC: rt5668: do not block workqueue if card is unbound
        ASoC: rt5682s: do not block workqueue if card is unbound
        ASoC: tas2770: Insert post reset delay
        ASoC: Revert "ASoC: mediatek: Check for error clk pointer"
        ASoC: amd: acp: Set gpio_spkr_en to None for max speaker amplifer in machine driver
        ...
      2848551b
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 45a98a71
      Linus Torvalds authored
      Pull arm64 fix from Catalin Marinas:
       "Fix wrong branch label in the EL2 GICv3 initialisation code"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: Correct wrong label in macro __init_el2_gicv3
      45a98a71
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.17-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · ea4b3d29
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - Fix boot failure on 603 with DEBUG_PAGEALLOC and KFENCE
      
       - Fix 32-build with newer binutils that rejects 'ptesync' etc
      
      Thanks to Anders Roxell, Christophe Leroy, and Maxime Bizon.
      
      * tag 'powerpc-5.17-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/lib/sstep: fix 'ptesync' build error
        powerpc/603: Fix boot failure with DEBUG_PAGEALLOC and KFENCE
      ea4b3d29