Skip to content
  1. Oct 18, 2023
    • Greg Kroah-Hartman's avatar
      Merge tag 'thunderbolt-for-v6.6-rc7' of... · 8b695369
      Greg Kroah-Hartman authored
      Merge tag 'thunderbolt-for-v6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt into usb-linus
      
      Mika writes:
      
      thunderbolt: Fix for v6.6-rc7
      
      This includes a single commit that fixes a memory leak when DisplayPort
      bandwidth allocation request is being handled by the driver.
      
      This has been in linux-next with no reported issues.
      
      * tag 'thunderbolt-for-v6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt:
        thunderbolt: Call tb_switch_put() once DisplayPort bandwidth request is finished
      8b695369
  2. Oct 16, 2023
    • Linus Torvalds's avatar
      Linux 6.6-rc6 · 58720809
      Linus Torvalds authored
      v6.6-rc6
      58720809
    • Linus Torvalds's avatar
      Revert "x86/smp: Put CPUs into INIT on shutdown if possible" · fbe1bf1e
      Linus Torvalds authored
      This reverts commit 45e34c8a, and the
      two subsequent fixes to it:
      
        3f874c9b ("x86/smp: Don't send INIT to non-present and non-booted CPUs")
        b1472a60
      
       ("x86/smp: Don't send INIT to boot CPU")
      
      because it seems to result in hung machines at shutdown.  Particularly
      some Dell machines, but Thomas says
      
       "The rest seems to be Lenovo and Sony with Alderlake/Raptorlake CPUs -
        at least that's what I could figure out from the various bug reports.
      
        I don't know which CPUs the DELL machines have, so I can't say it's a
        pattern.
      
        I agree with the revert for now"
      
      Ashok Raj chimes in:
      
       "There was a report (probably this same one), and it turns out it was a
        bug in the BIOS SMI handler.
      
        The client BIOS's were waiting for the lowest APICID to be the SMI
        rendevous master. If this is MeteorLake, the BSP wasn't the one with
        the lowest APIC and it triped here.
      
        The BIOS change is also being pushed to others for assimilation :)
      
        Server BIOS's had this correctly for a while now"
      
      and it does look likely to be some bad interaction between SMI and the
      non-BSP cores having put into INIT (and thus unresponsive until reset).
      
      Link: https://bbs.archlinux.org/viewtopic.php?pid=2124429
      Link: https://www.reddit.com/r/openSUSE/comments/16qq99b/tumbleweed_shutdown_did_not_finish_completely/
      Link: https://forum.artixlinux.org/index.php/topic,5997.0.html
      Link: https://bugzilla.redhat.com/show_bug.cgi?id=2241279
      Acked-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: Ashok Raj <ashok.raj@intel.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      fbe1bf1e
    • Xuan Zhuo's avatar
      virtio_net: fix the missing of the dma cpu sync · 5720c43d
      Xuan Zhuo authored
      Commit 295525e2 ("virtio_net: merge dma operations when filling
      mergeable buffers") unmaps the buffer with DMA_ATTR_SKIP_CPU_SYNC when
      the dma->ref is zero. We do that with DMA_ATTR_SKIP_CPU_SYNC, because we
      do not want to do the sync for the entire page_frag. But that misses the
      sync for the current area.
      
      This patch does cpu sync regardless of whether the ref is zero or not.
      
      Fixes: 295525e2
      
       ("virtio_net: merge dma operations when filling mergeable buffers")
      Reported-by: default avatarMichael Roth <michael.roth@amd.com>
      Closes: http://lore.kernel.org/all/20230926130451.axgodaa6tvwqs3ut@amd.com
      Signed-off-by: default avatarXuan Zhuo <xuanzhuo@linux.alibaba.com>
      Acked-by: default avatarJason Wang <jasowang@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      5720c43d
    • Linus Torvalds's avatar
      Merge tag 'usb-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 11d3f726
      Linus Torvalds authored
      Pull USB / Thunderbolt fixes from Greg KH:
       "Here are some USB and Thunderbolt driver fixes for 6.6-rc6 to resolve
        a number of small reported issues. Included in here are:
      
         - thunderbolt driver fixes
      
         - xhci driver fixes
      
         - cdns3 driver fixes
      
         - musb driver fixes
      
         - a number of typec driver fixes
      
         - a few other small driver fixes
      
        All of these have been in linux-next with no reported issues"
      
      * tag 'usb-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (22 commits)
        usb: typec: ucsi: Use GET_CAPABILITY attributes data to set power supply scope
        usb: typec: ucsi: Fix missing link removal
        usb: typec: altmodes/displayport: Signal hpd low when exiting mode
        xhci: Preserve RsvdP bits in ERSTBA register correctly
        xhci: Clear EHB bit only at end of interrupt handler
        xhci: track port suspend state correctly in unsuccessful resume cases
        usb: xhci: xhci-ring: Use sysdev for mapping bounce buffer
        usb: typec: ucsi: Clear EVENT_PENDING bit if ucsi_send_command fails
        usb: misc: onboard_hub: add support for Microchip USB2412 USB 2.0 hub
        usb: gadget: udc-xilinx: replace memcpy with memcpy_toio
        usb: cdns3: Modify the return value of cdns_set_active () to void when CONFIG_PM_SLEEP is disabled
        usb: dwc3: Soft reset phy on probe for host
        usb: hub: Guard against accesses to uninitialized BOS descriptors
        usb: typec: qcom: Update the logic of regulator enable and disable
        usb: gadget: ncm: Handle decoding of multiple NTB's in unwrap call
        usb: musb: Get the musb_qh poniter after musb_giveback
        usb: musb: Modify the "HWVers" register address
        usb: cdnsp: Fixes issue with dequeuing not queued requests
        thunderbolt: Restart XDomain discovery handshake after failure
        thunderbolt: Correct TMU mode initialization from hardware
        ...
      11d3f726
    • Linus Torvalds's avatar
      Merge tag 'tty-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 41226a36
      Linus Torvalds authored
      Pull tty/serial driver fixes from Greg KH:
       "Here are some small tty/serial driver fixes for 6.6-rc6 that resolve
        some reported issues. Included in here are:
      
         - serial core pm runtime fix for issue reported by many
      
         - 8250_omap driver fix
      
         - rs485 spinlock fix for reported problem
      
         - ams-delta bugfix for previous tty api changes in -rc1 that missed
           this driver that never seems to get built in any test systems
      
        All of these have been in linux-next for over a week with no reported
        problems"
      
      * tag 'tty-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        ASoC: ti: ams-delta: Fix cx81801_receive() argument types
        serial: core: Fix checks for tx runtime PM state
        serial: 8250_omap: Fix errors with no_console_suspend
        serial: Reduce spinlocked portion of uart_rs485_config()
      41226a36
    • Linus Torvalds's avatar
      Merge tag 'char-misc-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · a477e3a7
      Linus Torvalds authored
      Pull char/misc driver fixes from Greg KH:
       "Here is a small set of char/misc and other smaller driver subsystem
        fixes for 6.6-rc6. Included in here are:
      
         - lots of iio driver fixes
      
         - binder memory leak fix
      
         - mcb driver fixes
      
         - counter driver fixes
      
         - firmware loader documentation fix
      
         - documentation update for embargoed hardware issues
      
        All of these have been in linux-next for over a week with no reported
        issues"
      
      * tag 'char-misc-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (22 commits)
        iio: pressure: ms5611: ms5611_prom_is_valid false negative bug
        dt-bindings: iio: adc: adi,ad7292: Fix additionalProperties on channel nodes
        iio: adc: ad7192: Correct reference voltage
        iio: light: vcnl4000: Don't power on/off chip in config
        iio: addac: Kconfig: update ad74413r selections
        iio: pressure: dps310: Adjust Timeout Settings
        iio: imu: bno055: Fix missing Kconfig dependencies
        iio: adc: imx8qxp: Fix address for command buffer registers
        iio: cros_ec: fix an use-after-free in cros_ec_sensors_push_data()
        iio: irsd200: fix -Warray-bounds bug in irsd200_trigger_handler
        dt-bindings: iio: rohm,bu27010: add missing vdd-supply to example
        binder: fix memory leaks of spam and pending work
        firmware_loader: Update contact emails for ABI docs
        Documentation: embargoed-hardware-issues.rst: Clarify prenotifaction
        mcb: remove is_added flag from mcb_device struct
        coresight: tmc-etr: Disable warnings for allocation failures
        coresight: Fix run time warnings while reusing ETR buffer
        iio: admv1013: add mixer_vgate corner cases
        iio: pressure: bmp280: Fix NULL pointer exception
        iio: dac: ad3552r: Correct device IDs
        ...
      a477e3a7
  3. Oct 15, 2023
    • Linus Torvalds's avatar
      Merge tag 'ovl-fixes-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/overlayfs/vfs · 19fd4a91
      Linus Torvalds authored
      Pull overlayfs fixes from Amir Goldstein:
      
       - Various fixes for regressions due to conversion to new mount
         api in v6.5
      
       - Disable a new mount option syntax (append lowerdir) that was
         added in v6.5 because we plan to add a different lowerdir
         append syntax in v6.7
      
      * tag 'ovl-fixes-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/overlayfs/vfs:
        ovl: temporarily disable appending lowedirs
        ovl: fix regression in showing lowerdir mount option
        ovl: fix regression in parsing of mount options with escaped comma
        fs: factor out vfs_parse_monolithic_sep() helper
      19fd4a91
    • Linus Torvalds's avatar
      Merge tag 'powerpc-6.6-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · f8bf101b
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - Fix softlockup/crash when using hcall tracing
      
       - Fix pte_access_permitted() for PAGE_NONE on 8xx
      
       - Fix inverted pte_young() test in __ptep_test_and_clear_young()
         on 64-bit BookE
      
       - Fix unhandled math emulation exception on 85xx
      
       - Fix kernel crash on syscall return on 476
      
      Thanks to Athira Rajeev, Christophe Leroy, Eddie James, and Naveen N
      Rao.
      
      * tag 'powerpc-6.6-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/47x: Fix 47x syscall return crash
        powerpc/85xx: Fix math emulation exception
        powerpc/64e: Fix wrong test in __ptep_test_and_clear_young()
        powerpc/8xx: Fix pte_access_permitted() for PAGE_NONE
        powerpc/pseries: Remove unused r0 in the hcall tracing code
        powerpc/pseries: Fix STK_PARAM access in the hcall tracing code
      f8bf101b
    • Linus Torvalds's avatar
      Merge tag 'smp-urgent-2023-10-15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ddf20855
      Linus Torvalds authored
      Pull CPU hotplug fix from Ingo Molnar:
       "Fix a Longsoon build warning by harmonizing the
        arch_[un]register_cpu() prototypes between architectures"
      
      * tag 'smp-urgent-2023-10-15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        cpu-hotplug: Provide prototypes for arch CPU registration
      ddf20855
    • Linus Torvalds's avatar
      Merge tag '6.6-rc5-ksmbd-server-fixes' of git://git.samba.org/ksmbd · 9a3dad63
      Linus Torvalds authored
      Pull smb server fixes from Steve French:
      
       - Fix for possible double free in RPC read
      
       - Add additional check to clarify smb2_open path and quiet Coverity
      
       - Fix incorrect error rsp in a compounding path
      
       - Fix to properly fail open of file with pending delete on close
      
      * tag '6.6-rc5-ksmbd-server-fixes' of git://git.samba.org/ksmbd:
        ksmbd: fix potential double free on smb2_read_pipe() error path
        ksmbd: fix Null pointer dereferences in ksmbd_update_fstate()
        ksmbd: fix wrong error response status by using set_smb2_rsp_status()
        ksmbd: not allow to open file if delelete on close bit is set
      9a3dad63
    • Linus Torvalds's avatar
      Merge tag '6.6-rc5-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · bf2069d1
      Linus Torvalds authored
      Pull smb client fixes from Steve French:
      
       - fix caching race with open_cached_dir and laundromat cleanup of
         cached dirs (addresses a problem spotted with xfstest run with
         directory leases enabled)
      
       - reduce excessive resource usage of laundromat threads
      
      * tag '6.6-rc5-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        smb: client: prevent new fids from being removed by laundromat
        smb: client: make laundromat a delayed worker
      bf2069d1
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2023-10-15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · dc9b2e68
      Linus Torvalds authored
      Pull x86 fixes from Ingo Molnar:
       "Fix a false-positive KASAN warning, fix an AMD erratum on Zen4 CPUs,
        and fix kernel-doc build warnings"
      
      * tag 'x86-urgent-2023-10-15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/alternatives: Disable KASAN in apply_alternatives()
        x86/cpu: Fix AMD erratum #1485 on Zen4-based CPUs
        x86/resctrl: Fix kernel-doc warnings
      dc9b2e68
    • Linus Torvalds's avatar
      Merge tag 'sched-urgent-2023-10-14' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 42578c7b
      Linus Torvalds authored
      Pull scheduler fixes from Ingo Molnar:
       "Two EEVDF fixes"
      
      * tag 'sched-urgent-2023-10-14' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/eevdf: Fix pick_eevdf()
        sched/eevdf: Fix min_deadline heap integrity
      42578c7b
    • Linus Torvalds's avatar
      Merge tag 'perf-urgent-2023-10-14' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 23931d93
      Linus Torvalds authored
      Pull x86 perf event fix from Ingo Molnar:
       "Fix an LBR sampling bug"
      
      * tag 'perf-urgent-2023-10-14' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/x86/lbr: Filter vsyscall addresses
      23931d93
    • Amir Goldstein's avatar
      ovl: temporarily disable appending lowedirs · beae836e
      Amir Goldstein authored
      
      
      Kernel v6.5 converted overlayfs to new mount api.
      As an added bonus, it also added a feature to allow appending lowerdirs
      using lowerdir=:/lower2,lowerdir=::/data3 syntax.
      
      This new syntax has raised some concerns regarding escaping of colons.
      We decided to try and disable this syntax, which hasn't been in the wild
      for so long and introduce it again in 6.7 using explicit mount options
      lowerdir+=/lower2,datadir+=/data3.
      
      Suggested-by: default avatarMiklos Szeredi <miklos@szeredi.hu>
      Link: https://lore.kernel.org/r/CAJfpegsr3A4YgF2YBevWa6n3=AcP7hNndG6EPMu3ncvV-AM71A@mail.gmail.com/
      Fixes: b36a5780
      
       ("ovl: modify layer parameter parsing")
      Signed-off-by: default avatarAmir Goldstein <amir73il@gmail.com>
      beae836e
    • Linus Torvalds's avatar
      Merge tag 'xfs-6.6-fixes-5' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · 70f8c6f8
      Linus Torvalds authored
      Pull xfs fixes from Chandan Babu:
      
       - Fix calculation of offset of AG's last block and its length
      
       - Update incore AG block count when shrinking an AG
      
       - Process free extents to busy list in FIFO order
      
       - Make XFS report its i_version as the STATX_CHANGE_COOKIE
      
      * tag 'xfs-6.6-fixes-5' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        xfs: reinstate the old i_version counter as STATX_CHANGE_COOKIE
        xfs: Remove duplicate include
        xfs: correct calculation for agend and blockcount
        xfs: process free extents to busy list in FIFO order
        xfs: adjust the incore perag block_count when shrinking
      70f8c6f8
  4. Oct 14, 2023
    • Amir Goldstein's avatar
      ovl: fix regression in showing lowerdir mount option · 32db5107
      Amir Goldstein authored
      Before commit b36a5780 ("ovl: modify layer parameter parsing"),
      spaces and commas in lowerdir mount option value used to be escaped using
      seq_show_option().
      
      In current upstream, when lowerdir value has a space, it is not escaped
      in /proc/mounts, e.g.:
      
        none /mnt overlay rw,relatime,lowerdir=l l,upperdir=u,workdir=w 0 0
      
      which results in broken output of the mount utility:
      
        none on /mnt type overlay (rw,relatime,lowerdir=l)
      
      Store the original lowerdir mount options before unescaping and show
      them using the same escaping used for seq_show_option() in addition to
      escaping the colon separator character.
      
      Fixes: b36a5780
      
       ("ovl: modify layer parameter parsing")
      Signed-off-by: default avatarAmir Goldstein <amir73il@gmail.com>
      32db5107
    • Linus Torvalds's avatar
      Merge tag 'input-for-v6.6-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 727fb837
      Linus Torvalds authored
      Pull input fixes from Dmitry Torokhov:
      
       - a reworked way for handling reset delay on SMBus-connected Synaptics
         touchpads (the original one, while being correct, uncovered an old
         bug in fallback to PS/2 code that was fixed separately; the new one
         however avoids having delay in serio port "fast" resume, and instead
         has the wait in the RMI4 code)
      
       - a fix for potential crashes when devices with Elan controllers (and
         Synaptics) fall back to PS/2 code. Can't be hit without the original
         patch above, but still good to have it fixed
      
       - a couple new device IDs in xpad Xbox driver
      
       - another quirk for Goodix driver to deal with stuff vendors put in
         ACPI tables
      
       - a fix for use-after-free on disconnect for powermate driver
      
       - a quirk to not initialize PS/2 mouse port on Fujitsu Lifebook E5411
         laptop as it makes keyboard not usable and the device uses
         hid-over-i2c touchpad anyways
      
      * tag 'input-for-v6.6-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: powermate - fix use-after-free in powermate_config_complete
        Input: xpad - add PXN V900 support
        Input: synaptics-rmi4 - handle reset delay when using SMBus trsnsport
        Input: psmouse - fix fast_reconnect function for PS/2 mode
        Revert "Input: psmouse - add delay when deactivating for SMBus mode"
        Input: goodix - ensure int GPIO is in input for gpio_count == 1 && gpio_int_idx == 0 case
        Input: i8042 - add Fujitsu Lifebook E5411 to i8042 quirk table
        Input: xpad - add HyperX Clutch Gladiate Support
      727fb837
    • Javier Carrasco's avatar
      Input: powermate - fix use-after-free in powermate_config_complete · 5c15c60e
      Javier Carrasco authored
      
      
      syzbot has found a use-after-free bug [1] in the powermate driver. This
      happens when the device is disconnected, which leads to a memory free from
      the powermate_device struct.  When an asynchronous control message
      completes after the kfree and its callback is invoked, the lock does not
      exist anymore and hence the bug.
      
      Use usb_kill_urb() on pm->config to cancel any in-progress requests upon
      device disconnection.
      
      [1] https://syzkaller.appspot.com/bug?extid=0434ac83f907a1dbdd1e
      
      Signed-off-by: default avatarJavier Carrasco <javier.carrasco.cruz@gmail.com>
      Reported-by: default avatar <syzbot+0434ac83f907a1dbdd1e@syzkaller.appspotmail.com>
      Link: https://lore.kernel.org/r/20230916-topic-powermate_use_after_free-v3-1-64412b81a7a2@gmail.com
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      5c15c60e
    • Matthias Berndt's avatar
      Input: xpad - add PXN V900 support · a65cd7ef
      Matthias Berndt authored
      
      
      Add VID and PID to the xpad_device table to allow driver to use the PXN
      V900 steering wheel, which is XTYPE_XBOX360 compatible in xinput mode.
      
      Signed-off-by: default avatarMatthias Berndt <matthias_berndt@gmx.de>
      Link: https://lore.kernel.org/r/4932699.31r3eYUQgx@fedora
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      a65cd7ef
    • Dmitry Torokhov's avatar
      Input: synaptics-rmi4 - handle reset delay when using SMBus trsnsport · 5030b2fe
      Dmitry Torokhov authored
      Touch controllers need some time after receiving reset command for the
      firmware to finish re-initializing and be ready to respond to commands
      from the host. The driver already had handling for the post-reset delay
      for I2C and SPI transports, this change adds the handling to
      SMBus-connected devices.
      
      SMBus devices are peculiar because they implement legacy PS/2
      compatibility mode, so reset is actually issued by psmouse driver on the
      associated serio port, after which the control is passed to the RMI4
      driver with SMBus companion device.
      
      Note that originally the delay was added to psmouse driver in
      92e24e0e
      
       ("Input: psmouse - add delay when deactivating for SMBus
      mode"), but that resulted in an unwanted delay in "fast" reconnect
      handler for the serio port, so it was decided to revert the patch and
      have the delay being handled in the RMI4 driver, similar to the other
      transports.
      
      Tested-by: default avatarJeffery Miller <jefferymiller@google.com>
      Link: https://lore.kernel.org/r/ZR1yUFJ8a9Zt606N@penguin
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      5030b2fe
    • Jeffery Miller's avatar
      Input: psmouse - fix fast_reconnect function for PS/2 mode · e2cb5cc8
      Jeffery Miller authored
      When the SMBus connection is attempted psmouse_smbus_init() sets
      the fast_reconnect pointer to psmouse_smbus_reconnecti(). If SMBus
      initialization fails, elantech_setup_ps2() and synaptics_init_ps2() will
      fallback to PS/2 mode, replacing the psmouse private data. This can cause
      issues on resume, since psmouse_smbus_reconnect() expects to find an
      instance of struct psmouse_smbus_dev in psmouse->private.
      
      The issue was uncovered when in 92e24e0e
      
       ("Input: psmouse - add
      delay when deactivating for SMBus mode") psmouse_smbus_reconnect()
      started attempting to use more of the data structure. The commit was
      since reverted, not because it was at fault, but because there was found
      a better way of doing what it was attempting to do.
      
      Fix the problem by resetting the fast_reconnect pointer in psmouse
      structure in elantech_setup_ps2() and synaptics_init_ps2() when the PS/2
      mode is used.
      
      Reported-by: default avatarThorsten Leemhuis <linux@leemhuis.info>
      Tested-by: default avatarThorsten Leemhuis <linux@leemhuis.info>
      Signed-off-by: default avatarJeffery Miller <jefferymiller@google.com>
      Fixes: bf232e46
      
       ("Input: psmouse-smbus - allow to control psmouse_deactivate")
      Link: https://lore.kernel.org/r/20231005002249.554877-1-jefferymiller@google.com
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      e2cb5cc8
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 8cb1f10d
      Linus Torvalds authored
      Pull SCSI fix from James Bottomley:
       "A single tiny fix in the ufs driver core correcting the reversed logic
        in an error message"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: ufs: core: Correct clear TM error log
      8cb1f10d
    • Linus Torvalds's avatar
      Merge tag 'ceph-for-6.6-rc6' of https://github.com/ceph/ceph-client · a1ef447d
      Linus Torvalds authored
      Pull ceph fixes from Ilya Dryomov:
       "Fixes for an overreaching WARN_ON, two error paths and a switch to
        kernel_connect() which recently grown protection against someone using
        BPF to rewrite the address.
      
        All but one marked for stable"
      
      * tag 'ceph-for-6.6-rc6' of https://github.com/ceph/ceph-client:
        ceph: fix type promotion bug on 32bit systems
        libceph: use kernel_connect()
        ceph: remove unnecessary IS_ERR() check in ceph_fname_to_usr()
        ceph: fix incorrect revoked caps assert in ceph_fill_file_size()
      a1ef447d
    • Linus Torvalds's avatar
      Merge tag 'acpi-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · ad7f1bae
      Linus Torvalds authored
      Pull ACPI fixes from Rafael Wysocki:
       "Add an ACPI EC GPE detection quirk for HP Pavilion Gaming 15-dk1xxx
        and ACPI IRQ override quirks for TongFang GM6BGEQ, GM6BG5Q and
        GM6BG0Q, and for ASUS ExpertBook B1402CBA (Hans de Goede).
      
      * tag 'acpi-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: resource: Add TongFang GM6BGEQ, GM6BG5Q and GM6BG0Q to irq1_edge_low_force_override[]
        ACPI: EC: Add quirk for the HP Pavilion Gaming 15-dk1xxx
        ACPI: resource: Skip IRQ override on ASUS ExpertBook B1402CBA
      ad7f1bae
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · b82fbd8f
      Linus Torvalds authored
      Pull RISC-V fixes from Palmer Dabbelt:
      
       - A handful of build fixes
      
       - A fix to avoid mixing up user/kernel-mode breakpoints, which can
         manifest as a hang when mixing k/uprobes with other breakpoint
         sources
      
       - A fix to avoid double-allocting crash kernel memory
      
       - A fix for tracefs syscall name mangling, which was causing syscalls
         not to show up in tracefs
      
       - A fix to the perf driver to enable the hw events when selected, which
         can trigger a BUG on some userspace access patterns
      
      * tag 'riscv-for-linus-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        drivers: perf: Fix panic in riscv SBI mmap support
        riscv: Fix ftrace syscall handling which are now prefixed with __riscv_
        RISC-V: Fix wrong use of CONFIG_HAVE_SOFTIRQ_ON_OWN_STACK
        riscv: kdump: fix crashkernel reserving problem on RISC-V
        riscv: Remove duplicate objcopy flag
        riscv: signal: fix sigaltstack frame size checking
        riscv: errata: andes: Makefile: Fix randconfig build issue
        riscv: Only consider swbp/ss handlers for correct privileged mode
        riscv: kselftests: Fix mm build by removing testcases subdirectory
      b82fbd8f
    • Linus Torvalds's avatar
      Merge tag 'soundwire-6.6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire · 17325a21
      Linus Torvalds authored
      Pull soundwire fix from Vinod Koul:
       "A single fix for making sdw bus irq conditionally built"
      
      * tag 'soundwire-6.6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire:
        soundwire: bus: Make IRQ handling conditionally built
      17325a21
  5. Oct 13, 2023
    • Linus Torvalds's avatar
      Merge tag 'dmaengine-fix-6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine · 3439b2a8
      Linus Torvalds authored
      Pull dmaengine fixes from Vinod Koul:
       "Driver fixes for:
      
         - stm32 dma residue calculation and chaining
      
         - stm32 mdma for setting inflight bytes, residue calculation and
           resume abort
      
         - channel request, channel enable and dma error in fsl_edma
      
         - runtime pm imbalance in ste_dma40 driver
      
         - deadlock fix in mediatek driver"
      
      * tag 'dmaengine-fix-6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine:
        dmaengine: fsl-edma: fix all channels requested when call fsl_edma3_xlate()
        dmaengine: stm32-dma: fix residue in case of MDMA chaining
        dmaengine: stm32-dma: fix stm32_dma_prep_slave_sg in case of MDMA chaining
        dmaengine: stm32-mdma: set in_flight_bytes in case CRQA flag is set
        dmaengine: stm32-mdma: use Link Address Register to compute residue
        dmaengine: stm32-mdma: abort resume if no ongoing transfer
        dmaengine: ste_dma40: Fix PM disable depth imbalance in d40_probe
        dmaengine: mediatek: Fix deadlock caused by synchronize_irq()
        dmaengine: idxd: use spin_lock_irqsave before wait_event_lock_irq
        dmaengine: fsl-edma: fix edma4 channel enable failure on second attempt
        dt-bindings: dmaengine: zynqmp_dma: add xlnx,bus-width required property
        dmaengine: fsl-dma: fix DMA error when enabling sg if 'DONE' bit is set
      3439b2a8
    • Linus Torvalds's avatar
      Merge tag 'media/v6.6-5' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media · 7c367d8e
      Linus Torvalds authored
      Pull media fixes from Mauro Carvalho Chehab:
      
       - a core fix: Don't report V4L2_SUBDEV_CAP_STREAMS when API is disabled
      
       - ipu-bridge: Add a missing acpi_dev_put()
      
       - ov8858: fix driver for probe to work after 6.6-rc1
      
       - xilinx-vipp: fix async notifier logic
      
      * tag 'media/v6.6-5' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
        media: i2c: ov8858: Don't set fwnode in the driver
        media: ipu-bridge: Add missing acpi_dev_put() in ipu_bridge_get_ivsc_acpi_dev()
        media: xilinx-vipp: Look for entities also in waiting_list
        media: subdev: Don't report V4L2_SUBDEV_CAP_STREAMS when the streams API is disabled
      7c367d8e
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-ec' and 'acpi-resource' · 9bc2fb9a
      Rafael J. Wysocki authored
      Merge ACPI EC driver and ACPI resources handlig changes for 6.6-rc6:
      
       - Add EC GPE fixup quirk for HP Pavilion Gaming 15-dk1xxx (Hans de
         Goede).
      
       - Add ACPI IRQ override quirks for TongFang GM6BGEQ, GM6BG5Q and
         GM6BG0Q, and for ASUS ExpertBook B1402CBA (ans de Goede).
      
      * acpi-ec:
        ACPI: EC: Add quirk for the HP Pavilion Gaming 15-dk1xxx
      
      * acpi-resource:
        ACPI: resource: Add TongFang GM6BGEQ, GM6BG5Q and GM6BG0Q to irq1_edge_low_force_override[]
        ACPI: resource: Skip IRQ override on ASUS ExpertBook B1402CBA
      9bc2fb9a
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2023-10-13' of git://anongit.freedesktop.org/drm/drm · 10a6e5fe
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Weekly fixes, the core is msm and amdgpu with some scattered fixes
        across vmwgfx, panel and the core stuff.
      
        atomic-helper:
         - Relax checks for unregistered connectors
      
        dma-buf:
         - Work around race condition when retrieving fence timestamp
      
        gem:
         - Avoid OOB access in BO memory range
      
        panel:
         - boe-tv101wun-ml6: Fix flickering
      
        simpledrm:
         - Fix error output
      
        vwmgfx:
         - Fix size calculation in texture-state code
         - Ref GEM BOs in surfaces
      
        msm:
         - PHY/link training reset fix
         - msm8998 - correct highest bank bit
         - skip video mode if timing engine disabled
         - check irq_of_parse_and_map return code
         - add new lines to some prints
         - fail atomic check for max mdp clk test
      
        amdgpu:
         - Seamless boot fix
         - Fix TTM BO resource check
         - SI fix for doorbell handling"
      
      * tag 'drm-fixes-2023-10-13' of git://anongit.freedesktop.org/drm/drm:
        drm/tiny: correctly print `struct resource *` on error
        drm: Do not overrun array in drm_gem_get_pages()
        drm/atomic-helper: relax unregistered connector check
        drm/panel: boe-tv101wum-nl6: Completely pull GPW to VGL before TP term
        drm/amdgpu: fix SI failure due to doorbells allocation
        drm/amdgpu: add missing NULL check
        drm/amd/display: Don't set dpms_off for seamless boot
        drm/vmwgfx: Keep a gem reference to user bos in surfaces
        drm/vmwgfx: fix typo of sizeof argument
        drm/msm/dpu: fail dpu_plane_atomic_check() based on mdp clk limits
        dma-buf: add dma_fence_timestamp helper
        drm/msm/dp: Add newlines to debug printks
        drm/msm/dpu: change _dpu_plane_calc_bw() to use u64 to avoid overflow
        drm/msm/dsi: fix irq_of_parse_and_map() error checking
        drm/msm/dsi: skip the wait for video mode done if not applicable
        drm/msm/mdss: fix highest-bank-bit for msm8998
        drm/msm/dp: do not reinitialize phy unless retry during link training
      10a6e5fe
    • Namjae Jeon's avatar
      ksmbd: fix potential double free on smb2_read_pipe() error path · 1903e6d0
      Namjae Jeon authored
      Fix new smatch warnings:
      fs/smb/server/smb2pdu.c:6131 smb2_read_pipe() error: double free of 'rpc_resp'
      
      Fixes: e2b76ab8
      
       ("ksmbd: add support for read compound")
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Reported-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
      Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      1903e6d0
    • Namjae Jeon's avatar
      ksmbd: fix Null pointer dereferences in ksmbd_update_fstate() · 41484904
      Namjae Jeon authored
      Coverity Scan report the following one. This report is a false alarm.
      Because fp is never NULL when rc is zero. This patch add null check for fp
      in ksmbd_update_fstate to make alarm silence.
      
      *** CID 1568583b:  Null pointer dereferences  (FORWARD_NULL)
      /fs/smb/server/smb2pdu.c: 3408 in smb2_open()
      3402                    path_put(&path);
      3403                    path_put(&parent_path);
      3404            }
      3405            ksmbd_revert_fsids(work);
      3406     err_out1:
      3407            if (!rc) {
      >>>     CID 1568583b:  Null pointer dereferences  (FORWARD_NULL)
      >>>     Passing null pointer "fp" to "ksmbd_update_fstate", which dereferences it.
      3408                    ksmbd_update_fstate(&work->sess->file_table, fp, FP_INITED);
      3409                    rc = ksmbd_iov_pin_rsp(work, (void *)rsp, iov_len);
      3410            }
      3411            if (rc) {
      3412                    if (rc == -EINVAL)
      3413                            rsp->hdr.Status = STATUS_INVALID_PARAMETER;
      
      Fixes: e2b76ab8
      
       ("ksmbd: add support for read compound")
      Reported-by: default avatarCoverity Scan <scan-admin@coverity.com>
      Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      41484904
    • Namjae Jeon's avatar
      ksmbd: fix wrong error response status by using set_smb2_rsp_status() · be0f89d4
      Namjae Jeon authored
      set_smb2_rsp_status() after __process_request() sets the wrong error
      status. This patch resets all iov vectors and sets the error status
      on clean one.
      
      Fixes: e2b76ab8
      
       ("ksmbd: add support for read compound")
      Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      be0f89d4
    • Namjae Jeon's avatar
      ksmbd: not allow to open file if delelete on close bit is set · f4332835
      Namjae Jeon authored
      
      
      Cthon test fail with the following error.
      
      check for proper open/unlink operation
      nfsjunk files before unlink:
        -rwxr-xr-x 1 root root 0  9월 25 11:03 ./nfs2y8Jm9
      ./nfs2y8Jm9 open; unlink ret = 0
      nfsjunk files after unlink:
        -rwxr-xr-x 1 root root 0  9월 25 11:03 ./nfs2y8Jm9
      data compare ok
      nfsjunk files after close:
        ls: cannot access './nfs2y8Jm9': No such file or directory
      special tests failed
      
      Cthon expect to second unlink failure when file is already unlinked.
      ksmbd can not allow to open file if flags of ksmbd inode is set with
      S_DEL_ON_CLS flags.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      f4332835
    • Dave Airlie's avatar
      Merge tag 'amd-drm-fixes-6.6-2023-10-11' of... · 30873697
      Dave Airlie authored
      
      Merge tag 'amd-drm-fixes-6.6-2023-10-11' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
      
      amd-drm-fixes-6.6-2023-10-11:
      
      amdgpu:
      - Seemless boot fix
      - Fix TTM BO resource check
      - SI fix for doorbell handling
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Alex Deucher <alexander.deucher@amd.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20231012025637.7783-1-alexander.deucher@amd.com
      30873697
    • Dave Airlie's avatar
      Merge tag 'drm-msm-fixes-2023-10-07' of https://gitlab.freedesktop.org/drm/msm into drm-fixes · 7731cb65
      Dave Airlie authored
      
      
      Fixes for v6.6-rc5
      
      - fix to not reset the PHY everytime we start link training but only
        do it if link training fails. Without this, the PLL unlocked
        interrupt fires causing "Unexpected DP AUX IRQ 0x01000000 when
        not busy" spam in the logs since last 2-3 cycles
      - correct the highest bank bit to match downstream device tree for
        msm8998
      - skip the video mode wait if the timing engine is not enabled. This
        was introduced after pre_enable flag for DSI video mode panels
        where we would end up waiting for the video mode done interrupt
        even before enabling timing engine causing error spam and long
        bootup times.
      - check the correct return code of irq_of_parse_and_map() in DSI code
      - avoid overflow issues in the dpu bandwidth calculation . This was
        exposed for high resolution displays and a critical fix to avoid
        atomic_check failure
      - minor fix to add new lines in DP print messages.
      - Fix to fail atomic_check() if the resolution exceeds max mdp clk.
        This leads to underflow otherwise if we try to allow that frame.
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Rob Clark <robdclark@gmail.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/CAF6AEGv-HNxQ=VBtZ8geGzYJum9jtManEdbvhcjo_WWF_J9Ziw@mail.gmail.com
      7731cb65
    • Linus Torvalds's avatar
      Merge tag 'for-v6.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply · ce583d5f
      Linus Torvalds authored
      Pull power supply fixes from Sebastian Reichel:
      
       - qcom_battmgr: endianness fixes
      
      * tag 'for-v6.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply:
        power: supply: qcom_battmgr: fix enable request endianness
        power: supply: qcom_battmgr: fix battery_id type
      ce583d5f
    • Linus Torvalds's avatar
      Merge tag 'block-6.6-2023-10-12' of git://git.kernel.dk/linux · 4ee22162
      Linus Torvalds authored
      Pull block fix from Jens Axboe:
       "Just a single fix for a longstanding regression with using fallocate
        on a block device"
      
      * tag 'block-6.6-2023-10-12' of git://git.kernel.dk/linux:
        block: Don't invalidate pagecache for invalid falloc modes
      4ee22162