Skip to content
  1. Oct 16, 2023
    • 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
  2. Oct 15, 2023
  3. Oct 14, 2023
  4. 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
    • Dave Airlie's avatar
      Merge tag 'drm-misc-fixes-2023-10-12' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes · dcad98b1
      Dave Airlie authored
      
      
      Short summary of fixes pull:
      
       * 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
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Thomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/20231012111638.GA25037@linux-uq9g
      dcad98b1
    • Linus Torvalds's avatar
      Merge tag 'cgroup-for-6.6-rc5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup · 20f4757f
      Linus Torvalds authored
      Pull cgroup fixes from Tejun Heo:
      
       - In cgroup1, the `tasks` file could have duplicate pids which can
         trigger a warning in seq_file. Fix it by removing duplicate items
         after sorting
      
       - Comment update
      
      * tag 'cgroup-for-6.6-rc5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
        cgroup: Fix incorrect css_set_rwsem reference in comment
        cgroup: Remove duplicates in cgroup v1 tasks file
      20f4757f
    • Linus Torvalds's avatar
      Merge tag 'wq-for-6.6-rc5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq · e5e11703
      Linus Torvalds authored
      Pull workqueue fixes from Tejun Heo:
      
       - Fix access-after-free in pwq allocation error path
      
       - Implicitly ordered unbound workqueues should lose the implicit
         ordering if an attribute change which isn't compatible with ordered
         operation is requested. However, attribute changes requested through
         the sysfs interface weren't doing that leaving no way to override the
         implicit ordering through the sysfs interface. Fix it.
      
       - Other doc and misc updates
      
      * tag 'wq-for-6.6-rc5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
        workqueue: fix -Wformat-truncation in create_worker
        workqueue: Override implicit ordered attribute in workqueue_apply_unbound_cpumask()
        workqueue: Use the kmem_cache_free() instead of kfree() to release pwq
        workqueue: doc: Fix function and sysfs path errors
        workqueue: Fix UAF report by KASAN in pwq_release_workfn()
      e5e11703
    • Dmitry Torokhov's avatar
      Revert "Input: psmouse - add delay when deactivating for SMBus mode" · b3572639
      Dmitry Torokhov authored
      
      
      This reverts commit 92e24e0e.
      
      While the patch itself is correct, it uncovered an issue with fallback
      to PS/2 mode, where we were leaving psmouse->fast_reconnect handler set
      to psmouse_smbus_reconnect(), which caused crashes.
      
      While discussing various approaches to fix the issue it was noted that
      this patch ass undesired delay in the "fast" resume path of PS/2 device,
      and it would be better to actually use "reset_delay" option defined in
      struct rmi_device_platform_data and have RMI code handle it for SMBus
      transport as well. So this patch is being reverted to deal with crashes
      and a better solution will be merged shortly.
      
      Reported-by: default avatarThorsten Leemhuis <linux@leemhuis.info>
      Closes: https://lore.kernel.org/all/ca0109fa-c64b-43c1-a651-75b294d750a1@leemhuis.info/
      
      
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      b3572639
    • Linus Torvalds's avatar
      Merge tag 'net-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · e8c127b0
      Linus Torvalds authored
      Pull networking fixes from Paolo Abeni:
       "Including fixes from CAN and BPF.
      
        We have a regression in TC currently under investigation, otherwise
        the things that stand off most are probably the TCP and AF_PACKET
        fixes, with both issues coming from 6.5.
      
        Previous releases - regressions:
      
         - af_packet: fix fortified memcpy() without flex array.
      
         - tcp: fix crashes trying to free half-baked MTU probes
      
         - xdp: fix zero-size allocation warning in xskq_create()
      
         - can: sja1000: always restart the tx queue after an overrun
      
         - eth: mlx5e: again mutually exclude RX-FCS and RX-port-timestamp
      
         - eth: nfp: avoid rmmod nfp crash issues
      
         - eth: octeontx2-pf: fix page pool frag allocation warning
      
        Previous releases - always broken:
      
         - mctp: perform route lookups under a RCU read-side lock
      
         - bpf: s390: fix clobbering the caller's backchain in the trampoline
      
         - phy: lynx-28g: cancel the CDR check work item on the remove path
      
         - dsa: qca8k: fix qca8k driver for Turris 1.x
      
         - eth: ravb: fix use-after-free issue in ravb_tx_timeout_work()
      
         - eth: ixgbe: fix crash with empty VF macvlan list"
      
      * tag 'net-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (54 commits)
        rswitch: Fix imbalance phy_power_off() calling
        rswitch: Fix renesas_eth_sw_remove() implementation
        octeontx2-pf: Fix page pool frag allocation warning
        nfc: nci: assert requested protocol is valid
        af_packet: Fix fortified memcpy() without flex array.
        net: tcp: fix crashes trying to free half-baked MTU probes
        net/smc: Fix pos miscalculation in statistics
        nfp: flower: avoid rmmod nfp crash issues
        net: usb: dm9601: fix uninitialized variable use in dm9601_mdio_read
        ethtool: Fix mod state of verbose no_mask bitset
        net: nfc: fix races in nfc_llcp_sock_get() and nfc_llcp_sock_get_sn()
        mctp: perform route lookups under a RCU read-side lock
        net: skbuff: fix kernel-doc typos
        s390/bpf: Fix unwinding past the trampoline
        s390/bpf: Fix clobbering the caller's backchain in the trampoline
        net/mlx5e: Again mutually exclude RX-FCS and RX-port-timestamp
        net/smc: Fix dependency of SMC on ISM
        ixgbe: fix crash with empty VF macvlan list
        net/mlx5e: macsec: use update_pn flag instead of PN comparation
        net: phy: mscc: macsec: reject PN update requests
        ...
      e8c127b0