Skip to content
  1. Sep 14, 2021
    • Juergen Gross's avatar
      xen/balloon: use a kernel thread instead a workqueue · 8480ed9c
      Juergen Gross authored
      
      
      Today the Xen ballooning is done via delayed work in a workqueue. This
      might result in workqueue hangups being reported in case of large
      amounts of memory are being ballooned in one go (here 16GB):
      
      BUG: workqueue lockup - pool cpus=6 node=0 flags=0x0 nice=0 stuck for 64s!
      Showing busy workqueues and worker pools:
      workqueue events: flags=0x0
        pwq 12: cpus=6 node=0 flags=0x0 nice=0 active=2/256 refcnt=3
          in-flight: 229:balloon_process
          pending: cache_reap
      workqueue events_freezable_power_: flags=0x84
        pwq 12: cpus=6 node=0 flags=0x0 nice=0 active=1/256 refcnt=2
          pending: disk_events_workfn
      workqueue mm_percpu_wq: flags=0x8
        pwq 12: cpus=6 node=0 flags=0x0 nice=0 active=1/256 refcnt=2
          pending: vmstat_update
      pool 12: cpus=6 node=0 flags=0x0 nice=0 hung=64s workers=3 idle: 2222 43
      
      This can easily be avoided by using a dedicated kernel thread for doing
      the ballooning work.
      
      Reported-by: default avatarJan Beulich <jbeulich@suse.com>
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      Reviewed-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
      Link: https://lore.kernel.org/r/20210827123206.15429-1-jgross@suse.com
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      8480ed9c
  2. Sep 01, 2021
  3. Aug 30, 2021
  4. Aug 29, 2021
    • Adam Ford's avatar
      clk: renesas: rcar-usb2-clock-sel: Fix kernel NULL pointer dereference · 1669a941
      Adam Ford authored
      
      
      The probe was manually passing NULL instead of dev to devm_clk_hw_register.
      This caused a Unable to handle kernel NULL pointer dereference error.
      Fix this by passing 'dev'.
      
      Signed-off-by: default avatarAdam Ford <aford173@gmail.com>
      Fixes: a20a40a8
      
       ("clk: renesas: rcar-usb2-clock-sel: Fix error handling in .probe()")
      Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
      1669a941
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 3f5ad13c
      Linus Torvalds authored
      Pull SCSI fix from James Bottomley:
       "A single fix for a race introduced by a fix that went into 5.14-rc5"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: core: Fix hang of freezing queue between blocking and running device
      3f5ad13c
    • Linus Torvalds's avatar
      Merge tag 'usb-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 447e238f
      Linus Torvalds authored
      Pull USB fixes from Greg KH:
       "Here are a few tiny USB fixes for reported issues with some USB
        drivers.
      
        These fixes include:
      
         - gadget driver fixes for regressions
      
         - tcpm driver fix
      
         - dwc3 driver fixes
      
         - xhci renesas firmware loading fix, again.
      
         - usb serial option driver device id addition
      
         - usb serial ch341 revert for regression
      
        All all of these have been in linux-next with no reported problems"
      
      * tag 'usb-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
        usb: gadget: u_audio: fix race condition on endpoint stop
        usb: gadget: f_uac2: fixup feedback endpoint stop
        usb: typec: tcpm: Raise vdm_sm_running flag only when VDM SM is running
        usb: renesas-xhci: Prefer firmware loading on unknown ROM state
        usb: dwc3: gadget: Stop EP0 transfers during pullup disable
        usb: dwc3: gadget: Fix dwc3_calc_trbs_left()
        Revert "USB: serial: ch341: fix character loss at high transfer rates"
        USB: serial: option: add new VID/PID to support Fibocom FG150
      447e238f
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.14-7' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 9f73eacd
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - Fix scv implicit soft-mask table for relocated (eg. kdump) kernels
      
       - Re-enable ARCH_ENABLE_SPLIT_PMD_PTLOCK, which was disabled due to a
         typo
      
      Thanks to Lukas Bulwahn, Nicholas Piggin, and Daniel Axtens.
      
      * tag 'powerpc-5.14-7' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/64s: Fix scv implicit soft-mask table for relocated kernels
        powerpc: Re-enable ARCH_ENABLE_SPLIT_PMD_PTLOCK
      9f73eacd
  5. Aug 28, 2021
    • Linus Torvalds's avatar
      Merge tag 'block-5.14-2021-08-27' of git://git.kernel.dk/linux-block · 64b4fc45
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - Revert the mq-deadline priority handling, it's causing serious
         performance regressions. While experimental patches exists to fix
         this up, it's too late to do so now. Revert it and re-do it properly
         for 5.15 instead.
      
       - Fix a NULL vs IS_ERR() regression in this release (Dan)
      
       - Fix a mq-deadline accounting regression in this release (Bart)
      
       - Mark cryptoloop as deprecated. It's broken and dm-crypt fully
         supports it, and it's actively intefering with loop. Plan on removal
         for 5.16 (Christoph)
      
      * tag 'block-5.14-2021-08-27' of git://git.kernel.dk/linux-block:
        cryptoloop: add a deprecation warning
        pd: fix a NULL vs IS_ERR() check
        Revert "block/mq-deadline: Prioritize high-priority requests"
        mq-deadline: Fix request accounting
      64b4fc45
    • Linus Torvalds's avatar
      Merge tag 'soc-fixes-5.14-4' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · 6f18b82b
      Linus Torvalds authored
      Pull ARM SoC fixes from Arnd Bergmann:
       "Just two trivial fixes from the reset driver tree, nothing else came
        up since the last soc fixes"
      
      * tag 'soc-fixes-5.14-4' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc:
        reset: reset-zynqmp: Fixed the argument data type
        reset: RESET_MCHP_SPARX5 should depend on ARCH_SPARX5
      6f18b82b
    • Linus Torvalds's avatar
      Merge tag 'acpi-5.14-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 8f9d0349
      Linus Torvalds authored
      Pull ACPI fix from Rafael Wysocki:
       "Fix a regression introduced during this cycle that has been partially
        addressed by an earlier commit (Andy Shevchenko)"
      
      * tag 'acpi-5.14-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        media: ipu3-cio2: Drop reference on error path in cio2_bridge_connect_sensor()
      8f9d0349
    • Linus Torvalds's avatar
      Merge tag 'pm-5.14-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · c0006dc6
      Linus Torvalds authored
      Pull power management fixes from Rafael Wysocki:
       "These fix two issues introduced during this cycle, one of which is a
        regression and the other one affects new code.
      
        Specifics:
      
         - Prevent the operating performance points (OPP) code from crashing
           when some entries in the table of required OPPs are set to error
           pointer values (Marijn Suijten)
      
         - Prevent the generic power domains (genpd) framework from
           incorrectly overriding the performance state of a device set by its
           driver while it is runtime-suspended or when runtime PM of it is
           disabled (Dmitry Osipenko)"
      
      * tag 'pm-5.14-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        PM: domains: Improve runtime PM performance state handling
        opp: core: Check for pending links before reading required_opp pointers
      c0006dc6
    • David Hildenbrand's avatar
      virtio-mem: fix sleeping in RCU read side section in virtio_mem_online_page_cb() · 425bec00
      David Hildenbrand authored
      
      
      virtio_mem_set_fake_offline() might sleep now, and we call it under
      rcu_read_lock(). To fix it, simply move the rcu_read_unlock() further
      up, as we're done with the device.
      
      Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Fixes: 6cc26d77
      
      : "virtio-mem: use page_offline_(start|end) when setting PageOffline()
      Cc: "Michael S. Tsirkin" <mst@redhat.com>
      Cc: Jason Wang <jasowang@redhat.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: virtualization@lists.linux-foundation.org
      Signed-off-by: default avatarDavid Hildenbrand <david@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      425bec00
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-opp' · 7ee5fd12
      Rafael J. Wysocki authored
      * pm-opp:
        opp: core: Check for pending links before reading required_opp pointers
      7ee5fd12
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-5.14-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · 5a61b7a2
      Linus Torvalds authored
      Pull RISC-V fixes from Palmer Dabbelt:
      
       - device tree updates for the Microsemi Polarfire development kit that
         fix some mismatches between the u-boot and Linux enternet entries
      
       - ensure that the F register state is correctly reflected in core dumps
      
      * tag 'riscv-for-linus-5.14-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        riscv: dts: microchip: Add ethernet0 to the aliases node
        riscv: dts: microchip: Use 'local-mac-address' for emac1
        riscv: Ensure the value of FP registers in the core dump file is up to date
      5a61b7a2
    • Linus Torvalds's avatar
      Merge tag 'mmc-v5.14-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · 1a6436f3
      Linus Torvalds authored
      Pull MMC host fix from Ulf Hansson:
      
       - sdhci-iproc: Fix clock error for ACPI rpi's
      
      * tag 'mmc-v5.14-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
        Revert "mmc: sdhci-iproc: Set SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN on BCM2711"
      1a6436f3
    • Christoph Hellwig's avatar
      cryptoloop: add a deprecation warning · 222013f9
      Christoph Hellwig authored
      
      
      Support for cryptoloop has been officially marked broken and deprecated
      in favor of dm-crypt (which supports the same broken algorithms if
      needed) in Linux 2.6.4 (released in March 2004), and support for it has
      been entirely removed from losetup in util-linux 2.23 (released in April
      2013).  Add a warning and a deprecation schedule.
      
      Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
      Link: https://lore.kernel.org/r/20210827163250.255325-1-hch@lst.de
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      222013f9
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm · 94606b89
      Linus Torvalds authored
      Pull ARM fix from Russell King:
       "Resolve a Keystone 2 kernel mapping regression"
      
      * tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm:
        ARM: 9104/2: Fix Keystone 2 kernel mapping regression
      94606b89
  6. Aug 27, 2021
    • Ulf Hansson's avatar
      Revert "mmc: sdhci-iproc: Set SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN on BCM2711" · 885814a9
      Ulf Hansson authored
      This reverts commit 419dd626
      
      .
      
      It turned out that the change from the reverted commit breaks the ACPI
      based rpi's because it causes the 100Mhz max clock to be overridden to the
      return from sdhci_iproc_get_max_clock(), which is 0 because there isn't a
      OF/DT based clock device.
      
      Reported-by: default avatarJeremy Linton <jeremy.linton@arm.com>
      Fixes: 419dd626
      
       ("mmc: sdhci-iproc: Set SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN on BCM2711")
      Acked-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
      Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
      885814a9
    • Jerome Brunet's avatar
      usb: gadget: u_audio: fix race condition on endpoint stop · 068fdad2
      Jerome Brunet authored
      If the endpoint completion callback is call right after the ep_enabled flag
      is cleared and before usb_ep_dequeue() is call, we could do a double free
      on the request and the associated buffer.
      
      Fix this by clearing ep_enabled after all the endpoint requests have been
      dequeued.
      
      Fixes: 7de8681b
      
       ("usb: gadget: u_audio: Free requests only after callback")
      Cc: stable <stable@vger.kernel.org>
      Reported-by: default avatarThinh Nguyen <Thinh.Nguyen@synopsys.com>
      Signed-off-by: default avatarJerome Brunet <jbrunet@baylibre.com>
      Link: https://lore.kernel.org/r/20210827092927.366482-1-jbrunet@baylibre.com
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      068fdad2
    • Jerome Brunet's avatar
      usb: gadget: f_uac2: fixup feedback endpoint stop · 75432ba5
      Jerome Brunet authored
      When the uac2 function is stopped, there seems to be an issue reported on
      some platforms (Intel Merrifield at least)
      
      BUG: kernel NULL pointer dereference, address: 0000000000000008
      ...
      RIP: 0010:dwc3_gadget_del_and_unmap_request+0x19/0xe0
      ...
      Call Trace:
       dwc3_remove_requests.constprop.0+0x12f/0x170
       __dwc3_gadget_ep_disable+0x7a/0x160
       dwc3_gadget_ep_disable+0x3d/0xd0
       usb_ep_disable+0x1c/0x70
       u_audio_stop_capture+0x79/0x120 [u_audio]
       afunc_set_alt+0x73/0x80 [usb_f_uac2]
       composite_setup+0x224/0x1b90 [libcomposite]
      
      The issue happens only when the gadget is using the sync type "async", not
      "adaptive". This indicates that problem is coming from the feedback
      endpoint, which is only used with async synchronization mode.
      
      The problem is that request is freed regardless of usb_ep_dequeue(), which
      ends up badly if the request is not actually dequeued yet.
      
      Update the feedback endpoint free function to release the endpoint the same
      way it is done for the data endpoint, which takes care of the problem.
      
      Fixes: 24f779da
      
       ("usb: gadget: f_uac2/u_audio: add feedback endpoint support")
      Reported-by: default avatarFerry Toth <ftoth@exalondelft.nl>
      Tested-by: default avatarFerry Toth <ftoth@exalondelft.nl>
      Acked-by: default avatarFelipe Balbi <balbi@kernel.org>
      Signed-off-by: default avatarJerome Brunet <jbrunet@baylibre.com>
      Link: https://lore.kernel.org/r/20210827075853.266912-1-jbrunet@baylibre.com
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      75432ba5
    • Dan Carpenter's avatar
      pd: fix a NULL vs IS_ERR() check · 3375dca0
      Dan Carpenter authored
      blk_mq_alloc_disk() returns error pointers, it doesn't return NULL
      so correct the check.
      
      Fixes: 262d431f
      
       ("pd: use blk_mq_alloc_disk and blk_cleanup_disk")
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Link: https://lore.kernel.org/r/20210827100023.GB9449@kili
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      3375dca0
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2021-08-27' of git://anongit.freedesktop.org/drm/drm · 77dd1143
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Last set of fixes for 5.14, nothing major a couple of i915, couple of
        imx and a few amdgpu. All pretty small.
      
        i915:
         - Fix syncmap memory leak
         - Drop redundant display port debug print
      
        amdgpu:
         - Fix for pinning display buffers multiple times
         - Fix delayed work handling for GFXOFF
         - Fix build when CONFIG_SUSPEND is not set
      
        imx:
         - fix planar offset calculations
         - fix accidental partial revert"
      
      * tag 'drm-fixes-2021-08-27' of git://anongit.freedesktop.org/drm/drm:
        drm/i915/dp: Drop redundant debug print
        drm/i915: Fix syncmap memory leak
        drm/amdgpu: Fix build with missing pm_suspend_target_state module export
        drm/amdgpu: Cancel delayed work when GFXOFF is disabled
        drm/amdgpu: use the preferred pin domain after the check
        drm/imx: ipuv3-plane: fix accidental partial revert of 8 pixel alignment fix
        gpu: ipu-v3: Fix i.MX IPU-v3 offset calculations for (semi)planar U/V formats
      77dd1143
    • Dave Airlie's avatar
      Merge tag 'imx-drm-fixes-2021-08-18' of git://git.pengutronix.de/pza/linux into drm-fixes · 9fe4f5a2
      Dave Airlie authored
      drm/imx: imx-drm alignment and plane offset fixes
      
      Fix an accidental partial revert of commit 94dfec48
      
       ("drm/imx: Add 8
      pixel alignment fix") and plane offset calculations for capture of
      non-aligned resolutions.
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Philipp Zabel <p.zabel@pengutronix.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/85a41af99beb2c9e7d6020435a135bf9f205a5ff.camel@pengutronix.de
      9fe4f5a2
    • Dave Airlie's avatar
      Merge tag 'amd-drm-fixes-5.14-2021-08-25' of... · 589744db
      Dave Airlie authored
      
      Merge tag 'amd-drm-fixes-5.14-2021-08-25' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
      
      amd-drm-fixes-5.14-2021-08-25:
      
      amdgpu:
      - Fix for pinning display buffers multiple times
      - Fix delayed work handling for GFXOFF
      - Fix build when CONFIG_SUSPEND is not set
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Alex Deucher <alexander.deucher@amd.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210826032658.4068-1-alexander.deucher@amd.com
      589744db