History log of /openbmc/linux/fs/smb/ (Results 51 – 75 of 641)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
fec1f9e906-May-2025 Sean Heelan <seanheelan@gmail.com>

ksmbd: Fix UAF in __close_file_table_ids

commit 36991c1ccde2d5a521577c448ffe07fcccfe104d upstream.

A use-after-free is possible if one thread destroys the file
via __ksmbd_close_fd while another th

ksmbd: Fix UAF in __close_file_table_ids

commit 36991c1ccde2d5a521577c448ffe07fcccfe104d upstream.

A use-after-free is possible if one thread destroys the file
via __ksmbd_close_fd while another thread holds a reference to
it. The existing checks on fp->refcount are not sufficient to
prevent this.

The fix takes ft->lock around the section which removes the
file from the file table. This prevents two threads acquiring the
same file pointer via __close_file_table_ids, as well as the other
functions which retrieve a file from the IDR and which already use
this same lock.

Cc: stable@vger.kernel.org
Signed-off-by: Sean Heelan <seanheelan@gmail.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

show more ...

04c8a38c01-May-2025 Norbert Szetei <norbert@doyensec.com>

ksmbd: prevent out-of-bounds stream writes by validating *pos

commit 0ca6df4f40cf4c32487944aaf48319cb6c25accc upstream.

ksmbd_vfs_stream_write() did not validate whether the write offset
(*pos) was

ksmbd: prevent out-of-bounds stream writes by validating *pos

commit 0ca6df4f40cf4c32487944aaf48319cb6c25accc upstream.

ksmbd_vfs_stream_write() did not validate whether the write offset
(*pos) was within the bounds of the existing stream data length (v_len).
If *pos was greater than or equal to v_len, this could lead to an
out-of-bounds memory write.

This patch adds a check to ensure *pos is less than v_len before
proceeding. If the condition fails, -EINVAL is returned.

Cc: stable@vger.kernel.org
Signed-off-by: Norbert Szetei <norbert@doyensec.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

show more ...

6ee5516729-Apr-2025 Namjae Jeon <linkinjeon@kernel.org>

ksmbd: prevent rename with empty string

commit 53e3e5babc0963a92d856a5ec0ce92c59f54bc12 upstream.

Client can send empty newname string to ksmbd server.
It will cause a kernel oops from d_alloc.
Thi

ksmbd: prevent rename with empty string

commit 53e3e5babc0963a92d856a5ec0ce92c59f54bc12 upstream.

Client can send empty newname string to ksmbd server.
It will cause a kernel oops from d_alloc.
This patch return the error when attempting to rename
a file or directory with an empty new name string.

Cc: stable@vger.kernel.org
Reported-by: Norbert Szetei <norbert@doyensec.com>
Tested-by: Norbert Szetei <norbert@doyensec.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

show more ...


/openbmc/linux/Makefile
/openbmc/linux/arch/arm/boot/dts/nxp/imx/imx6ul-imx6ull-opos6ul.dtsi
/openbmc/linux/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi
/openbmc/linux/arch/arm64/boot/dts/st/stm32mp251.dtsi
/openbmc/linux/arch/powerpc/boot/wrapper
/openbmc/linux/arch/powerpc/mm/book3s64/radix_pgtable.c
/openbmc/linux/arch/riscv/include/asm/patch.h
/openbmc/linux/arch/riscv/kernel/patch.c
/openbmc/linux/arch/riscv/kernel/probes/kprobes.c
/openbmc/linux/arch/riscv/net/bpf_jit_comp64.c
/openbmc/linux/arch/x86/include/asm/kvm-x86-ops.h
/openbmc/linux/arch/x86/include/asm/kvm_host.h
/openbmc/linux/arch/x86/kvm/svm/svm.c
/openbmc/linux/arch/x86/kvm/vmx/vmx.c
/openbmc/linux/arch/x86/kvm/x86.c
/openbmc/linux/drivers/base/module.c
/openbmc/linux/drivers/bluetooth/btusb.c
/openbmc/linux/drivers/cpufreq/cpufreq.c
/openbmc/linux/drivers/cpufreq/cpufreq_ondemand.c
/openbmc/linux/drivers/cpufreq/freq_table.c
/openbmc/linux/drivers/firmware/arm_ffa/driver.c
/openbmc/linux/drivers/firmware/arm_scmi/bus.c
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
/openbmc/linux/drivers/gpu/drm/i915/pxp/intel_pxp_gsccs.h
/openbmc/linux/drivers/gpu/drm/meson/meson_vclk.c
/openbmc/linux/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
/openbmc/linux/drivers/iommu/iommu.c
/openbmc/linux/drivers/md/dm-table.c
/openbmc/linux/drivers/net/can/m_can/m_can.c
/openbmc/linux/drivers/net/can/spi/mcp251xfd/mcp251xfd-core.c
/openbmc/linux/drivers/net/dsa/ocelot/felix_vsc9959.c
/openbmc/linux/drivers/net/ethernet/amd/pds_core/auxbus.c
/openbmc/linux/drivers/net/ethernet/amd/pds_core/core.h
/openbmc/linux/drivers/net/ethernet/amd/pds_core/dev.c
/openbmc/linux/drivers/net/ethernet/amd/pds_core/devlink.c
/openbmc/linux/drivers/net/ethernet/amd/pds_core/main.c
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/bnxt_coredump.c
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
/openbmc/linux/drivers/net/ethernet/dlink/dl2k.c
/openbmc/linux/drivers/net/ethernet/dlink/dl2k.h
/openbmc/linux/drivers/net/ethernet/freescale/fec_main.c
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h
/openbmc/linux/drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c
/openbmc/linux/drivers/net/ethernet/intel/igc/igc_ptp.c
/openbmc/linux/drivers/net/ethernet/marvell/octeon_ep/octep_main.c
/openbmc/linux/drivers/net/ethernet/mediatek/mtk_eth_soc.c
/openbmc/linux/drivers/net/ethernet/mediatek/mtk_star_emac.c
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/rdma.c
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/rdma.h
/openbmc/linux/drivers/net/ethernet/microchip/lan743x_main.c
/openbmc/linux/drivers/net/ethernet/microchip/lan743x_main.h
/openbmc/linux/drivers/net/ethernet/mscc/ocelot.c
/openbmc/linux/drivers/net/ethernet/mscc/ocelot_vcap.c
/openbmc/linux/drivers/net/ethernet/vertexcom/mse102x.c
/openbmc/linux/drivers/net/mdio/mdio-mux-meson-gxl.c
/openbmc/linux/drivers/net/vxlan/vxlan_vnifilter.c
/openbmc/linux/drivers/net/wireless/purelifi/plfxlc/mac.c
/openbmc/linux/drivers/nvme/host/pci.c
/openbmc/linux/drivers/nvme/host/tcp.c
/openbmc/linux/drivers/pci/controller/dwc/pci-imx6.c
/openbmc/linux/drivers/usb/host/xhci-debugfs.c
/openbmc/linux/drivers/usb/host/xhci-hub.c
/openbmc/linux/drivers/usb/host/xhci-mem.c
/openbmc/linux/drivers/usb/host/xhci-ring.c
/openbmc/linux/drivers/usb/host/xhci.c
/openbmc/linux/drivers/usb/host/xhci.h
server/smb2pdu.c
/openbmc/linux/include/linux/bpf.h
/openbmc/linux/include/linux/bpf_verifier.h
/openbmc/linux/include/linux/cpufreq.h
/openbmc/linux/include/linux/filter.h
/openbmc/linux/include/linux/module.h
/openbmc/linux/include/linux/pds/pds_core_if.h
/openbmc/linux/include/linux/skbuff.h
/openbmc/linux/include/net/inet_frag.h
/openbmc/linux/include/soc/mscc/ocelot_vcap.h
/openbmc/linux/include/sound/ump_convert.h
/openbmc/linux/kernel/bpf/core.c
/openbmc/linux/kernel/bpf/verifier.c
/openbmc/linux/kernel/params.c
/openbmc/linux/kernel/trace/trace.c
/openbmc/linux/net/bluetooth/l2cap_core.c
/openbmc/linux/net/bridge/netfilter/nf_conntrack_bridge.c
/openbmc/linux/net/core/dev.c
/openbmc/linux/net/core/filter.c
/openbmc/linux/net/ieee802154/6lowpan/reassembly.c
/openbmc/linux/net/ipv4/inet_fragment.c
/openbmc/linux/net/ipv4/ip_fragment.c
/openbmc/linux/net/ipv4/ip_output.c
/openbmc/linux/net/ipv4/tcp_output.c
/openbmc/linux/net/ipv4/udp_offload.c
/openbmc/linux/net/ipv6/ip6_output.c
/openbmc/linux/net/ipv6/netfilter.c
/openbmc/linux/net/ipv6/netfilter/nf_conntrack_reasm.c
/openbmc/linux/net/ipv6/reassembly.c
/openbmc/linux/net/ipv6/tcp_ipv6.c
/openbmc/linux/net/sched/act_bpf.c
/openbmc/linux/net/sched/cls_bpf.c
/openbmc/linux/net/sched/sch_drr.c
/openbmc/linux/net/sched/sch_ets.c
/openbmc/linux/net/sched/sch_hfsc.c
/openbmc/linux/net/sched/sch_htb.c
/openbmc/linux/net/sched/sch_qfq.c
/openbmc/linux/net/wireless/scan.c
/openbmc/linux/sound/soc/codecs/ak4613.c
/openbmc/linux/sound/soc/soc-core.c
/openbmc/linux/sound/soc/soc-pcm.c
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/changes_pkt_data.c
/openbmc/linux/tools/testing/selftests/bpf/progs/changes_pkt_data.c
/openbmc/linux/tools/testing/selftests/bpf/progs/changes_pkt_data_freplace.c
/openbmc/linux/tools/testing/selftests/bpf/progs/verifier_sock.c
e769486429-Apr-2025 Jethro Donaldson <devel@jro.nz>

smb: client: fix zero length for mkdir POSIX create context

commit 74c72419ec8da5cbc9c49410d3c44bb954538bdd upstream.

SMB create requests issued via smb311_posix_mkdir() have an incorrect
length of

smb: client: fix zero length for mkdir POSIX create context

commit 74c72419ec8da5cbc9c49410d3c44bb954538bdd upstream.

SMB create requests issued via smb311_posix_mkdir() have an incorrect
length of zero bytes for the POSIX create context data. ksmbd server
rejects such requests and logs "cli req too short" causing mkdir to fail
with "invalid argument" on the client side. It also causes subsequent
rmmod to crash in cifs_destroy_request_bufs()

Inspection of packets sent by cifs.ko using wireshark show valid data for
the SMB2_POSIX_CREATE_CONTEXT is appended with the correct offset, but
with an incorrect length of zero bytes. Fails with ksmbd+cifs.ko only as
Windows server/client does not use POSIX extensions.

Fix smb311_posix_mkdir() to set req->CreateContextsLength as part of
appending the POSIX creation context to the request.

Signed-off-by: Jethro Donaldson <devel@jro.nz>
Acked-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Reviewed-by: Namjae Jeon <linkinjeon@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

show more ...

b447463519-Apr-2025 Sean Heelan <seanheelan@gmail.com>

ksmbd: fix use-after-free in kerberos authentication

commit e86e9134e1d1c90a960dd57f59ce574d27b9a124 upstream.

Setting sess->user = NULL was introduced to fix the dangling pointer
created by ksmbd_

ksmbd: fix use-after-free in kerberos authentication

commit e86e9134e1d1c90a960dd57f59ce574d27b9a124 upstream.

Setting sess->user = NULL was introduced to fix the dangling pointer
created by ksmbd_free_user. However, it is possible another thread could
be operating on the session and make use of sess->user after it has been
passed to ksmbd_free_user but before sess->user is set to NULL.

Cc: stable@vger.kernel.org
Signed-off-by: Sean Heelan <seanheelan@gmail.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

show more ...


/openbmc/linux/Makefile
/openbmc/linux/arch/arm64/kernel/proton-pack.c
/openbmc/linux/arch/mips/include/asm/mips-cm.h
/openbmc/linux/arch/parisc/math-emu/driver.c
/openbmc/linux/arch/riscv/include/asm/alternative-macros.h
/openbmc/linux/arch/x86/events/intel/core.c
/openbmc/linux/arch/x86/include/asm/intel-family.h
/openbmc/linux/arch/x86/kernel/i8253.c
/openbmc/linux/arch/x86/platform/pvh/head.S
/openbmc/linux/drivers/base/base.h
/openbmc/linux/drivers/base/bus.c
/openbmc/linux/drivers/base/core.c
/openbmc/linux/drivers/base/dd.c
/openbmc/linux/drivers/block/loop.c
/openbmc/linux/drivers/comedi/drivers/jr3_pci.c
/openbmc/linux/drivers/edac/altera_edac.c
/openbmc/linux/drivers/edac/altera_edac.h
/openbmc/linux/drivers/gpu/drm/drm_file.c
/openbmc/linux/drivers/gpu/drm/nouveau/nouveau_fence.c
/openbmc/linux/drivers/i2c/busses/i2c-imx-lpi2c.c
/openbmc/linux/drivers/iommu/amd/init.c
/openbmc/linux/drivers/iommu/intel/iommu.c
/openbmc/linux/drivers/irqchip/irq-qcom-mpm.c
/openbmc/linux/drivers/md/dm-bufio.c
/openbmc/linux/drivers/md/dm-integrity.c
/openbmc/linux/drivers/md/dm-table.c
/openbmc/linux/drivers/md/raid1.c
/openbmc/linux/drivers/mmc/host/renesas_sdhi_core.c
/openbmc/linux/drivers/net/dsa/mv88e6xxx/chip.c
/openbmc/linux/drivers/net/ethernet/amd/xgbe/xgbe-desc.c
/openbmc/linux/drivers/net/ethernet/amd/xgbe/xgbe-dev.c
/openbmc/linux/drivers/net/ethernet/amd/xgbe/xgbe-drv.c
/openbmc/linux/drivers/net/ethernet/amd/xgbe/xgbe.h
/openbmc/linux/drivers/net/usb/rndis_host.c
/openbmc/linux/drivers/net/vmxnet3/vmxnet3_xdp.c
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c
/openbmc/linux/drivers/nvme/host/core.c
/openbmc/linux/drivers/platform/x86/amd/pmc/pmc.c
/openbmc/linux/drivers/platform/x86/intel/uncore-frequency/uncore-frequency.c
/openbmc/linux/drivers/scsi/hisi_sas/hisi_sas_main.c
/openbmc/linux/drivers/scsi/pm8001/pm8001_sas.c
/openbmc/linux/drivers/spi/spi-imx.c
/openbmc/linux/drivers/spi/spi-tegra114.c
/openbmc/linux/drivers/spi/spi-tegra210-quad.c
/openbmc/linux/drivers/ufs/host/ufs-exynos.c
/openbmc/linux/fs/btrfs/inode.c
/openbmc/linux/fs/ext4/block_validity.c
/openbmc/linux/fs/ext4/inode.c
/openbmc/linux/fs/iomap/buffered-io.c
server/auth.c
server/smb2pdu.c
/openbmc/linux/kernel/trace/trace_output.c
/openbmc/linux/lib/test_ubsan.c
/openbmc/linux/mm/memblock.c
/openbmc/linux/scripts/Makefile.lib
/openbmc/linux/sound/usb/endpoint.c
/openbmc/linux/sound/usb/format.c
/openbmc/linux/tools/objtool/check.c
ea92c93826-Dec-2024 Pali Rohár <pali@kernel.org>

cifs: Fix querying of WSL CHR and BLK reparse points over SMB1

[ Upstream commit ef86ab131d9127dfbfa8f06e12441d05fdfb090b ]

When reparse point in SMB1 query_path_info() callback was detected then
q

cifs: Fix querying of WSL CHR and BLK reparse points over SMB1

[ Upstream commit ef86ab131d9127dfbfa8f06e12441d05fdfb090b ]

When reparse point in SMB1 query_path_info() callback was detected then
query also for EA $LXDEV. In this EA are stored device major and minor
numbers used by WSL CHR and BLK reparse points. Without major and minor
numbers, stat() syscall does not work for char and block devices.

Similar code is already in SMB2+ query_path_info() callback function.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>

show more ...

e5208da706-Oct-2024 Pali Rohár <pali@kernel.org>

cifs: Fix encoding of SMB1 Session Setup Kerberos Request in non-UNICODE mode

[ Upstream commit 16cb6b0509b65ac89187e9402e0b7a9ddf1765ef ]

Like in UNICODE mode, SMB1 Session Setup Kerberos Request

cifs: Fix encoding of SMB1 Session Setup Kerberos Request in non-UNICODE mode

[ Upstream commit 16cb6b0509b65ac89187e9402e0b7a9ddf1765ef ]

Like in UNICODE mode, SMB1 Session Setup Kerberos Request contains oslm and
domain strings.

Extract common code into ascii_oslm_strings() and ascii_domain_string()
functions (similar to unicode variants) and use these functions in
non-UNICODE code path in sess_auth_kerberos().

Decision if non-UNICODE or UNICODE mode is used is based on the
SMBFLG2_UNICODE flag in Flags2 packed field, and not based on the
capabilities of server. Fix this check too.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>

show more ...


/openbmc/linux/Documentation/scheduler/sched-capacity.rst
/openbmc/linux/MAINTAINERS
/openbmc/linux/Makefile
/openbmc/linux/arch/arm64/boot/dts/nvidia/tegra234-p3768-0000.dtsi
/openbmc/linux/arch/arm64/include/asm/tlbflush.h
/openbmc/linux/arch/loongarch/Kconfig
/openbmc/linux/arch/loongarch/include/asm/ptrace.h
/openbmc/linux/arch/loongarch/kernel/acpi.c
/openbmc/linux/arch/loongarch/kernel/traps.c
/openbmc/linux/arch/loongarch/mm/hugetlbpage.c
/openbmc/linux/arch/loongarch/mm/init.c
/openbmc/linux/arch/mips/dec/prom/init.c
/openbmc/linux/arch/mips/include/asm/ds1287.h
/openbmc/linux/arch/mips/include/asm/mips-cm.h
/openbmc/linux/arch/mips/kernel/cevt-ds1287.c
/openbmc/linux/arch/mips/kernel/mips-cm.c
/openbmc/linux/arch/parisc/kernel/pdt.c
/openbmc/linux/arch/powerpc/kernel/rtas.c
/openbmc/linux/arch/s390/kvm/intercept.c
/openbmc/linux/arch/s390/kvm/interrupt.c
/openbmc/linux/arch/s390/kvm/kvm-s390.c
/openbmc/linux/arch/s390/kvm/trace-s390.h
/openbmc/linux/arch/x86/Kconfig
/openbmc/linux/arch/x86/boot/compressed/mem.c
/openbmc/linux/arch/x86/boot/compressed/sev.c
/openbmc/linux/arch/x86/boot/compressed/sev.h
/openbmc/linux/arch/x86/coco/tdx/tdx.c
/openbmc/linux/arch/x86/entry/entry.S
/openbmc/linux/arch/x86/events/core.c
/openbmc/linux/arch/x86/events/intel/ds.c
/openbmc/linux/arch/x86/events/intel/uncore_snbep.c
/openbmc/linux/arch/x86/include/asm/asm.h
/openbmc/linux/arch/x86/include/asm/extable_fixup_types.h
/openbmc/linux/arch/x86/include/asm/tdx.h
/openbmc/linux/arch/x86/include/asm/xen/hypervisor.h
/openbmc/linux/arch/x86/kernel/cpu/amd.c
/openbmc/linux/arch/x86/kernel/cpu/bugs.c
/openbmc/linux/arch/x86/kernel/cpu/intel.c
/openbmc/linux/arch/x86/kernel/cpu/mce/severity.c
/openbmc/linux/arch/x86/kernel/cpu/microcode/amd.c
/openbmc/linux/arch/x86/kernel/process.c
/openbmc/linux/arch/x86/kvm/svm/avic.c
/openbmc/linux/arch/x86/kvm/vmx/posted_intr.c
/openbmc/linux/arch/x86/kvm/x86.c
/openbmc/linux/arch/x86/mm/extable.c
/openbmc/linux/arch/x86/mm/tlb.c
/openbmc/linux/arch/x86/platform/pvh/enlighten.c
/openbmc/linux/arch/x86/xen/enlighten_pvh.c
/openbmc/linux/certs/Makefile
/openbmc/linux/certs/extract-cert.c
/openbmc/linux/crypto/crypto_null.c
/openbmc/linux/drivers/acpi/ec.c
/openbmc/linux/drivers/acpi/pptt.c
/openbmc/linux/drivers/ata/libata-scsi.c
/openbmc/linux/drivers/auxdisplay/hd44780.c
/openbmc/linux/drivers/char/misc.c
/openbmc/linux/drivers/char/virtio_console.c
/openbmc/linux/drivers/clk/clk.c
/openbmc/linux/drivers/clk/renesas/r9a07g043-cpg.c
/openbmc/linux/drivers/clk/renesas/r9a07g044-cpg.c
/openbmc/linux/drivers/clk/renesas/rzg2l-cpg.c
/openbmc/linux/drivers/clk/renesas/rzg2l-cpg.h
/openbmc/linux/drivers/cpufreq/apple-soc-cpufreq.c
/openbmc/linux/drivers/cpufreq/cppc_cpufreq.c
/openbmc/linux/drivers/cpufreq/cpufreq.c
/openbmc/linux/drivers/cpufreq/scmi-cpufreq.c
/openbmc/linux/drivers/cpufreq/scpi-cpufreq.c
/openbmc/linux/drivers/crypto/atmel-sha204a.c
/openbmc/linux/drivers/crypto/ccp/sp-pci.c
/openbmc/linux/drivers/cxl/core/regs.c
/openbmc/linux/drivers/dma-buf/udmabuf.c
/openbmc/linux/drivers/dma/dmatest.c
/openbmc/linux/drivers/firmware/efi/libstub/efistub.h
/openbmc/linux/drivers/gpio/gpiolib-of.c
/openbmc/linux/drivers/gpu/drm/Kconfig
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_thermal.c
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_thermal.c
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_thermal.c
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
/openbmc/linux/drivers/gpu/drm/i915/gvt/opregion.c
/openbmc/linux/drivers/gpu/drm/msm/adreno/a6xx_gmu.c
/openbmc/linux/drivers/gpu/drm/nouveau/nouveau_bo.c
/openbmc/linux/drivers/gpu/drm/nouveau/nouveau_gem.c
/openbmc/linux/drivers/gpu/drm/sti/Makefile
/openbmc/linux/drivers/gpu/drm/tiny/repaper.c
/openbmc/linux/drivers/iio/adc/ad7768-1.c
/openbmc/linux/drivers/infiniband/core/cma.c
/openbmc/linux/drivers/infiniband/hw/qib/qib_fs.c
/openbmc/linux/drivers/iommu/amd/iommu.c
/openbmc/linux/drivers/irqchip/irq-gic-v2m.c
/openbmc/linux/drivers/mailbox/pcc.c
/openbmc/linux/drivers/mcb/mcb-parse.c
/openbmc/linux/drivers/md/md.c
/openbmc/linux/drivers/media/test-drivers/vimc/vimc-streamer.c
/openbmc/linux/drivers/media/v4l2-core/v4l2-subdev.c
/openbmc/linux/drivers/misc/lkdtm/perms.c
/openbmc/linux/drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.c
/openbmc/linux/drivers/misc/mei/hw-me-regs.h
/openbmc/linux/drivers/misc/mei/pci-me.c
/openbmc/linux/drivers/misc/pci_endpoint_test.c
/openbmc/linux/drivers/mmc/host/sdhci-msm.c
/openbmc/linux/drivers/net/dsa/mt7530.c
/openbmc/linux/drivers/net/dsa/mv88e6xxx/chip.c
/openbmc/linux/drivers/net/ethernet/amd/pds_core/adminq.c
/openbmc/linux/drivers/net/ethernet/amd/pds_core/auxbus.c
/openbmc/linux/drivers/net/ethernet/amd/pds_core/core.c
/openbmc/linux/drivers/net/ethernet/amd/pds_core/core.h
/openbmc/linux/drivers/net/ethernet/amd/pds_core/devlink.c
/openbmc/linux/drivers/net/ethernet/mediatek/mtk_eth_soc.c
/openbmc/linux/drivers/net/ethernet/mediatek/mtk_eth_soc.h
/openbmc/linux/drivers/net/phy/microchip.c
/openbmc/linux/drivers/net/phy/phy_led_triggers.c
/openbmc/linux/drivers/net/wireless/realtek/rtw89/core.c
/openbmc/linux/drivers/net/wireless/realtek/rtw89/core.h
/openbmc/linux/drivers/net/wireless/realtek/rtw89/pci.c
/openbmc/linux/drivers/net/xen-netfront.c
/openbmc/linux/drivers/ntb/hw/amd/ntb_hw_amd.c
/openbmc/linux/drivers/ntb/hw/idt/ntb_hw_idt.c
/openbmc/linux/drivers/nvme/host/core.c
/openbmc/linux/drivers/nvme/host/multipath.c
/openbmc/linux/drivers/nvme/host/rdma.c
/openbmc/linux/drivers/nvme/target/fc.c
/openbmc/linux/drivers/of/resolver.c
/openbmc/linux/drivers/pci/probe.c
/openbmc/linux/drivers/pinctrl/renesas/pinctrl-rza2.c
/openbmc/linux/drivers/regulator/rk808-regulator.c
/openbmc/linux/drivers/rtc/rtc-pcf85063.c
/openbmc/linux/drivers/s390/char/sclp_con.c
/openbmc/linux/drivers/s390/char/sclp_tty.c
/openbmc/linux/drivers/scsi/megaraid/megaraid_sas_base.c
/openbmc/linux/drivers/scsi/megaraid/megaraid_sas_fusion.c
/openbmc/linux/drivers/scsi/scsi.c
/openbmc/linux/drivers/scsi/scsi_lib.c
/openbmc/linux/drivers/soc/qcom/ice.c
/openbmc/linux/drivers/thunderbolt/tb.c
/openbmc/linux/drivers/tty/serial/msm_serial.c
/openbmc/linux/drivers/tty/serial/sifive.c
/openbmc/linux/drivers/ufs/core/ufs-mcq.c
/openbmc/linux/drivers/ufs/host/ufs-exynos.c
/openbmc/linux/drivers/ufs/host/ufs-qcom.c
/openbmc/linux/drivers/usb/cdns3/cdns3-gadget.c
/openbmc/linux/drivers/usb/chipidea/ci_hdrc_imx.c
/openbmc/linux/drivers/usb/class/cdc-wdm.c
/openbmc/linux/drivers/usb/core/quirks.c
/openbmc/linux/drivers/usb/dwc3/dwc3-pci.c
/openbmc/linux/drivers/usb/dwc3/dwc3-xilinx.c
/openbmc/linux/drivers/usb/dwc3/gadget.c
/openbmc/linux/drivers/usb/gadget/udc/aspeed-vhub/dev.c
/openbmc/linux/drivers/usb/host/max3421-hcd.c
/openbmc/linux/drivers/usb/host/ohci-pci.c
/openbmc/linux/drivers/usb/host/xhci-mvebu.c
/openbmc/linux/drivers/usb/host/xhci-mvebu.h
/openbmc/linux/drivers/usb/host/xhci-plat.c
/openbmc/linux/drivers/usb/host/xhci-ring.c
/openbmc/linux/drivers/usb/serial/ftdi_sio.c
/openbmc/linux/drivers/usb/serial/ftdi_sio_ids.h
/openbmc/linux/drivers/usb/serial/option.c
/openbmc/linux/drivers/usb/serial/usb-serial-simple.c
/openbmc/linux/drivers/usb/storage/unusual_uas.h
/openbmc/linux/drivers/usb/typec/ucsi/ucsi_ccg.c
/openbmc/linux/drivers/xen/Kconfig
/openbmc/linux/fs/btrfs/file.c
/openbmc/linux/fs/btrfs/inode.c
/openbmc/linux/fs/ceph/inode.c
/openbmc/linux/fs/fuse/virtio_fs.c
/openbmc/linux/fs/namespace.c
/openbmc/linux/fs/ntfs3/file.c
client/sess.c
/openbmc/linux/fs/splice.c
/openbmc/linux/include/linux/energy_model.h
/openbmc/linux/include/media/v4l2-subdev.h
/openbmc/linux/include/net/xdp.h
/openbmc/linux/include/soc/qcom/ice.h
/openbmc/linux/include/trace/stages/stage3_trace_output.h
/openbmc/linux/include/trace/stages/stage7_class_define.h
/openbmc/linux/include/uapi/linux/landlock.h
/openbmc/linux/init/Kconfig
/openbmc/linux/io_uring/io_uring.c
/openbmc/linux/io_uring/net.c
/openbmc/linux/io_uring/refs.h
/openbmc/linux/kernel/bpf/bpf_cgrp_storage.c
/openbmc/linux/kernel/bpf/verifier.c
/openbmc/linux/kernel/dma/contiguous.c
/openbmc/linux/kernel/events/core.c
/openbmc/linux/kernel/module/Kconfig
/openbmc/linux/kernel/panic.c
/openbmc/linux/kernel/sched/core.c
/openbmc/linux/kernel/sched/cpudeadline.c
/openbmc/linux/kernel/sched/cpufreq_schedutil.c
/openbmc/linux/kernel/sched/deadline.c
/openbmc/linux/kernel/sched/fair.c
/openbmc/linux/kernel/sched/rt.c
/openbmc/linux/kernel/sched/sched.h
/openbmc/linux/kernel/sched/topology.c
/openbmc/linux/kernel/trace/bpf_trace.c
/openbmc/linux/kernel/trace/trace_events.c
/openbmc/linux/kernel/trace/trace_events_filter.c
/openbmc/linux/lib/string.c
/openbmc/linux/net/9p/client.c
/openbmc/linux/net/core/lwtunnel.c
/openbmc/linux/net/core/selftests.c
/openbmc/linux/net/mptcp/sockopt.c
/openbmc/linux/net/sched/sch_hfsc.c
/openbmc/linux/net/tipc/monitor.c
/openbmc/linux/samples/trace_events/trace-events-sample.h
/openbmc/linux/scripts/sign-file.c
/openbmc/linux/scripts/ssl-common.h
/openbmc/linux/security/landlock/errata.h
/openbmc/linux/security/landlock/setup.c
/openbmc/linux/security/landlock/setup.h
/openbmc/linux/security/landlock/syscalls.c
/openbmc/linux/sound/pci/hda/patch_realtek.c
/openbmc/linux/sound/soc/codecs/wcd934x.c
/openbmc/linux/sound/soc/qcom/apq8016_sbc.c
/openbmc/linux/sound/soc/qcom/apq8096.c
/openbmc/linux/sound/soc/qcom/common.c
/openbmc/linux/sound/soc/qcom/lpass-apq8016.c
/openbmc/linux/sound/soc/qcom/lpass-cpu.c
/openbmc/linux/sound/soc/qcom/lpass-hdmi.c
/openbmc/linux/sound/soc/qcom/lpass-ipq806x.c
/openbmc/linux/sound/soc/qcom/lpass-platform.c
/openbmc/linux/sound/soc/qcom/lpass-sc7180.c
/openbmc/linux/sound/soc/qcom/lpass-sc7280.c
/openbmc/linux/sound/soc/qcom/lpass.h
/openbmc/linux/sound/soc/qcom/qdsp6/q6afe.c
/openbmc/linux/sound/soc/qcom/qdsp6/q6apm-dai.c
/openbmc/linux/sound/soc/qcom/qdsp6/q6asm.h
/openbmc/linux/sound/soc/qcom/qdsp6/topology.c
/openbmc/linux/sound/soc/qcom/sc7180.c
/openbmc/linux/sound/soc/qcom/sc8280xp.c
/openbmc/linux/sound/soc/qcom/sdm845.c
/openbmc/linux/sound/soc/qcom/sdw.c
/openbmc/linux/sound/soc/qcom/sm8250.c
/openbmc/linux/sound/soc/qcom/storm.c
/openbmc/linux/sound/virtio/virtio_pcm.c
/openbmc/linux/tools/bpf/bpftool/prog.c
/openbmc/linux/tools/objtool/check.c
/openbmc/linux/tools/testing/selftests/landlock/base_test.c
/openbmc/linux/tools/testing/selftests/mincore/mincore_selftest.c
/openbmc/linux/tools/testing/selftests/net/mptcp/diag.sh
/openbmc/linux/tools/testing/selftests/net/mptcp/mptcp_connect.sh
/openbmc/linux/tools/testing/selftests/net/mptcp/mptcp_join.sh
/openbmc/linux/tools/testing/selftests/net/mptcp/mptcp_lib.sh
/openbmc/linux/tools/testing/selftests/net/mptcp/simult_flows.sh
/openbmc/linux/tools/testing/selftests/ublk/test_stripe_04.sh
d5421baa12-Apr-2025 Chunjie Zhu <chunjie.zhu@cloud.com>

smb3 client: fix open hardlink on deferred close file error

commit 262b73ef442e68e53220b9d6fc5a0d08b557fa42 upstream.

The following Python script results in unexpected behaviour when run on
a CIFS

smb3 client: fix open hardlink on deferred close file error

commit 262b73ef442e68e53220b9d6fc5a0d08b557fa42 upstream.

The following Python script results in unexpected behaviour when run on
a CIFS filesystem against a Windows Server:

# Create file
fd = os.open('test', os.O_WRONLY|os.O_CREAT)
os.write(fd, b'foo')
os.close(fd)

# Open and close the file to leave a pending deferred close
fd = os.open('test', os.O_RDONLY|os.O_DIRECT)
os.close(fd)

# Try to open the file via a hard link
os.link('test', 'new')
newfd = os.open('new', os.O_RDONLY|os.O_DIRECT)

The final open returns EINVAL due to the server returning
STATUS_INVALID_PARAMETER. The root cause of this is that the client
caches lease keys per inode, but the spec requires them to be related to
the filename which causes problems when hard links are involved:

From MS-SMB2 section 3.3.5.9.11:

"The server MUST attempt to locate a Lease by performing a lookup in the
LeaseTable.LeaseList using the LeaseKey in the
SMB2_CREATE_REQUEST_LEASE_V2 as the lookup key. If a lease is found,
Lease.FileDeleteOnClose is FALSE, and Lease.Filename does not match the
file name for the incoming request, the request MUST be failed with
STATUS_INVALID_PARAMETER"

On client side, we first check the context of file open, if it hits above
conditions, we first close all opening files which are belong to the same
inode, then we do open the hard link file.

Cc: stable@vger.kernel.org
Signed-off-by: Chunjie Zhu <chunjie.zhu@cloud.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

show more ...

8dbf060402-Apr-2025 Kuniyuki Iwashima <kuniyu@amazon.com>

Revert "smb: client: fix TCP timers deadlock after rmmod"

commit 95d2b9f693ff2a1180a23d7d59acc0c4e72f4c41 upstream.

This reverts commit e9f2517a3e18a54a3943c098d2226b245d488801.

Commit e9f2517a3e1

Revert "smb: client: fix TCP timers deadlock after rmmod"

commit 95d2b9f693ff2a1180a23d7d59acc0c4e72f4c41 upstream.

This reverts commit e9f2517a3e18a54a3943c098d2226b245d488801.

Commit e9f2517a3e18 ("smb: client: fix TCP timers deadlock after
rmmod") is intended to fix a null-ptr-deref in LOCKDEP, which is
mentioned as CVE-2024-54680, but is actually did not fix anything;
The issue can be reproduced on top of it. [0]

Also, it reverted the change by commit ef7134c7fc48 ("smb: client:
Fix use-after-free of network namespace.") and introduced a real
issue by reviving the kernel TCP socket.

When a reconnect happens for a CIFS connection, the socket state
transitions to FIN_WAIT_1. Then, inet_csk_clear_xmit_timers_sync()
in tcp_close() stops all timers for the socket.

If an incoming FIN packet is lost, the socket will stay at FIN_WAIT_1
forever, and such sockets could be leaked up to net.ipv4.tcp_max_orphans.

Usually, FIN can be retransmitted by the peer, but if the peer aborts
the connection, the issue comes into reality.

I warned about this privately by pointing out the exact report [1],
but the bogus fix was finally merged.

So, we should not stop the timers to finally kill the connection on
our side in that case, meaning we must not use a kernel socket for
TCP whose sk->sk_net_refcnt is 0.

The kernel socket does not have a reference to its netns to make it
possible to tear down netns without cleaning up every resource in it.

For example, tunnel devices use a UDP socket internally, but we can
destroy netns without removing such devices and let it complete
during exit. Otherwise, netns would be leaked when the last application
died.

However, this is problematic for TCP sockets because TCP has timers to
close the connection gracefully even after the socket is close()d. The
lifetime of the socket and its netns is different from the lifetime of
the underlying connection.

If the socket user does not maintain the netns lifetime, the timer could
be fired after the socket is close()d and its netns is freed up, resulting
in use-after-free.

Actually, we have seen so many similar issues and converted such sockets
to have a reference to netns.

That's why I converted the CIFS client socket to have a reference to
netns (sk->sk_net_refcnt == 1), which is somehow mentioned as out-of-scope
of CIFS and technically wrong in e9f2517a3e18, but **is in-scope and right
fix**.

Regarding the LOCKDEP issue, we can prevent the module unload by
bumping the module refcount when switching the LOCKDDEP key in
sock_lock_init_class_and_name(). [2]

For a while, let's revert the bogus fix.

Note that now we can use sk_net_refcnt_upgrade() for the socket
conversion, but I'll do so later separately to make backport easy.

Link: https://lore.kernel.org/all/20250402020807.28583-1-kuniyu@amazon.com/ #[0]
Link: https://lore.kernel.org/netdev/c08bd5378da647a2a4c16698125d180a@huawei.com/ #[1]
Link: https://lore.kernel.org/lkml/20250402005841.19846-1-kuniyu@amazon.com/ #[2]
Fixes: e9f2517a3e18 ("smb: client: fix TCP timers deadlock after rmmod")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

show more ...

fd8973b602-Apr-2025 Kuniyuki Iwashima <kuniyu@amazon.com>

Revert "smb: client: Fix netns refcount imbalance causing leaks and use-after-free"

commit c707193a17128fae2802d10cbad7239cc57f0c95 upstream.

This reverts commit 4e7f1644f2ac6d01dc584f6301c3b1d5aac

Revert "smb: client: Fix netns refcount imbalance causing leaks and use-after-free"

commit c707193a17128fae2802d10cbad7239cc57f0c95 upstream.

This reverts commit 4e7f1644f2ac6d01dc584f6301c3b1d5aac4eaef.

The commit e9f2517a3e18 ("smb: client: fix TCP timers deadlock after
rmmod") is not only a bogus fix for LOCKDEP null-ptr-deref but also
introduces a real issue, TCP sockets leak, which will be explained in
detail in the next revert.

Also, CNA assigned CVE-2024-54680 to it but is rejecting it. [0]

Thus, we are reverting the commit and its follow-up commit 4e7f1644f2ac
("smb: client: Fix netns refcount imbalance causing leaks and
use-after-free").

Link: https://lore.kernel.org/all/2025040248-tummy-smilingly-4240@gregkh/ #[0]
Fixes: 4e7f1644f2ac ("smb: client: Fix netns refcount imbalance causing leaks and use-after-free")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

show more ...

b7ce8db414-Apr-2025 Namjae Jeon <linkinjeon@kernel.org>

ksmbd: fix the warning from __kernel_write_iter

commit b37f2f332b40ad1c27f18682a495850f2f04db0a upstream.

[ 2110.972290] ------------[ cut here ]------------
[ 2110.972301] WARNING: CPU: 3 PID: 735

ksmbd: fix the warning from __kernel_write_iter

commit b37f2f332b40ad1c27f18682a495850f2f04db0a upstream.

[ 2110.972290] ------------[ cut here ]------------
[ 2110.972301] WARNING: CPU: 3 PID: 735 at fs/read_write.c:599 __kernel_write_iter+0x21b/0x280

This patch doesn't allow writing to directory.

Cc: stable@vger.kernel.org
Reported-by: Norbert Szetei <norbert@doyensec.com>
Tested-by: Norbert Szetei <norbert@doyensec.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

show more ...

160935d809-Apr-2025 Denis Arefev <arefev@swemel.ru>

ksmbd: Prevent integer overflow in calculation of deadtime

commit a93ff742820f75bf8bb3fcf21d9f25ca6eb3d4c6 upstream.

The user can set any value for 'deadtime'. This affects the arithmetic
expressio

ksmbd: Prevent integer overflow in calculation of deadtime

commit a93ff742820f75bf8bb3fcf21d9f25ca6eb3d4c6 upstream.

The user can set any value for 'deadtime'. This affects the arithmetic
expression 'req->deadtime * SMB_ECHO_INTERVAL', which is subject to
overflow. The added check makes the server behavior more predictable.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 0626e6641f6b ("cifsd: add server handler for central processing and tranport layers")
Cc: stable@vger.kernel.org
Signed-off-by: Denis Arefev <arefev@swemel.ru>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

show more ...

296cb54514-Apr-2025 Namjae Jeon <linkinjeon@kernel.org>

ksmbd: fix use-after-free in smb_break_all_levII_oplock()

commit 18b4fac5ef17f77fed9417d22210ceafd6525fc7 upstream.

There is a room in smb_break_all_levII_oplock that can cause racy issues
when unl

ksmbd: fix use-after-free in smb_break_all_levII_oplock()

commit 18b4fac5ef17f77fed9417d22210ceafd6525fc7 upstream.

There is a room in smb_break_all_levII_oplock that can cause racy issues
when unlocking in the middle of the loop. This patch use read lock
to protect whole loop.

Cc: stable@vger.kernel.org
Reported-by: Norbert Szetei <norbert@doyensec.com>
Tested-by: Norbert Szetei <norbert@doyensec.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

show more ...

1db2451d07-Apr-2025 Sean Heelan <seanheelan@gmail.com>

ksmbd: Fix dangling pointer in krb_authenticate

commit 1e440d5b25b7efccb3defe542a73c51005799a5f upstream.

krb_authenticate frees sess->user and does not set the pointer
to NULL. It calls ksmbd_krb5

ksmbd: Fix dangling pointer in krb_authenticate

commit 1e440d5b25b7efccb3defe542a73c51005799a5f upstream.

krb_authenticate frees sess->user and does not set the pointer
to NULL. It calls ksmbd_krb5_authenticate to reinitialise
sess->user but that function may return without doing so. If
that happens then smb2_sess_setup, which calls krb_authenticate,
will be accessing free'd memory when it later uses sess->user.

Cc: stable@vger.kernel.org
Signed-off-by: Sean Heelan <seanheelan@gmail.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

show more ...


/openbmc/linux/Documentation/devicetree/bindings/arm/qcom,coresight-tpda.yaml
/openbmc/linux/Documentation/devicetree/bindings/arm/qcom,coresight-tpdm.yaml
/openbmc/linux/Documentation/netlink/specs/rt_link.yaml
/openbmc/linux/arch/arm64/kernel/proton-pack.c
/openbmc/linux/arch/riscv/include/asm/kgdb.h
/openbmc/linux/arch/riscv/kernel/kgdb.c
/openbmc/linux/arch/riscv/kernel/setup.c
/openbmc/linux/arch/x86/include/asm/irqflags.h
/openbmc/linux/arch/x86/include/asm/paravirt.h
/openbmc/linux/arch/x86/include/asm/paravirt_types.h
/openbmc/linux/arch/x86/kernel/e820.c
/openbmc/linux/arch/x86/kernel/paravirt.c
/openbmc/linux/arch/x86/kvm/cpuid.c
/openbmc/linux/arch/x86/kvm/x86.c
/openbmc/linux/block/blk-sysfs.c
/openbmc/linux/drivers/acpi/platform_profile.c
/openbmc/linux/drivers/ata/libata-sata.c
/openbmc/linux/drivers/block/loop.c
/openbmc/linux/drivers/bluetooth/btrtl.c
/openbmc/linux/drivers/bluetooth/hci_ldisc.c
/openbmc/linux/drivers/bluetooth/hci_uart.h
/openbmc/linux/drivers/bluetooth/hci_vhci.c
/openbmc/linux/drivers/clk/qcom/clk-branch.c
/openbmc/linux/drivers/clk/qcom/gdsc.c
/openbmc/linux/drivers/crypto/caam/qi.c
/openbmc/linux/drivers/crypto/ccp/sp-pci.c
/openbmc/linux/drivers/gpio/gpio-tegra186.c
/openbmc/linux/drivers/gpio/gpio-zynq.c
/openbmc/linux/drivers/hsi/clients/ssi_protocol.c
/openbmc/linux/drivers/i2c/busses/i2c-cros-ec-tunnel.c
/openbmc/linux/drivers/i2c/i2c-atr.c
/openbmc/linux/drivers/infiniband/core/umem_odp.c
/openbmc/linux/drivers/infiniband/hw/hns/hns_roce_main.c
/openbmc/linux/drivers/infiniband/hw/usnic/usnic_ib_main.c
/openbmc/linux/drivers/iommu/iommufd/device.c
/openbmc/linux/drivers/md/dm-ebs-target.c
/openbmc/linux/drivers/md/dm-integrity.c
/openbmc/linux/drivers/md/dm-verity-target.c
/openbmc/linux/drivers/md/md-bitmap.c
/openbmc/linux/drivers/md/raid10.c
/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
/openbmc/linux/drivers/net/dsa/b53/b53_common.c
/openbmc/linux/drivers/net/dsa/mv88e6xxx/chip.c
/openbmc/linux/drivers/net/dsa/mv88e6xxx/devlink.c
/openbmc/linux/drivers/net/ethernet/amd/pds_core/debugfs.c
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c
/openbmc/linux/drivers/net/ethernet/google/gve/gve_ethtool.c
/openbmc/linux/drivers/net/ethernet/intel/igc/igc.h
/openbmc/linux/drivers/net/ethernet/intel/igc/igc_defines.h
/openbmc/linux/drivers/net/ethernet/intel/igc/igc_main.c
/openbmc/linux/drivers/net/ethernet/intel/igc/igc_ptp.c
/openbmc/linux/drivers/net/ethernet/mediatek/mtk_eth_soc.c
/openbmc/linux/drivers/net/ethernet/ti/am65-cpsw-nuss.c
/openbmc/linux/drivers/net/ethernet/ti/am65-cpsw-nuss.h
/openbmc/linux/drivers/net/ethernet/ti/icssg/icss_iep.c
/openbmc/linux/drivers/net/ethernet/wangxun/ngbe/ngbe_main.c
/openbmc/linux/drivers/net/wireless/atmel/at76c50x-usb.c
/openbmc/linux/drivers/net/wireless/ti/wl1251/tx.c
/openbmc/linux/drivers/ntb/ntb_transport.c
/openbmc/linux/drivers/of/irq.c
/openbmc/linux/drivers/pci/controller/pcie-brcmstb.c
/openbmc/linux/drivers/pci/pci.c
/openbmc/linux/drivers/pci/probe.c
/openbmc/linux/drivers/phy/freescale/phy-fsl-imx8m-pcie.c
/openbmc/linux/drivers/pinctrl/qcom/pinctrl-msm.c
/openbmc/linux/drivers/platform/x86/asus-laptop.c
/openbmc/linux/drivers/ptp/ptp_ocp.c
/openbmc/linux/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c
/openbmc/linux/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
/openbmc/linux/drivers/scsi/scsi_transport_iscsi.c
/openbmc/linux/fs/Kconfig
/openbmc/linux/fs/btrfs/super.c
/openbmc/linux/fs/hfs/bnode.c
/openbmc/linux/fs/hfsplus/bnode.c
/openbmc/linux/fs/isofs/export.c
/openbmc/linux/fs/nfs/Kconfig
/openbmc/linux/fs/nfs/internal.h
/openbmc/linux/fs/nfs/nfs4session.h
/openbmc/linux/fs/nfsd/Kconfig
/openbmc/linux/fs/nfsd/nfs4state.c
/openbmc/linux/fs/nfsd/nfsfh.h
/openbmc/linux/fs/overlayfs/overlayfs.h
/openbmc/linux/fs/overlayfs/super.c
server/smb2pdu.c
/openbmc/linux/include/linux/backing-dev.h
/openbmc/linux/include/linux/nfs.h
/openbmc/linux/kernel/sched/cpufreq_schedutil.c
/openbmc/linux/kernel/trace/ftrace.c
/openbmc/linux/mm/filemap.c
/openbmc/linux/mm/gup.c
/openbmc/linux/mm/memory.c
/openbmc/linux/net/bluetooth/hci_event.c
/openbmc/linux/net/bluetooth/l2cap_core.c
/openbmc/linux/net/bridge/br_vlan.c
/openbmc/linux/net/dsa/dsa.c
/openbmc/linux/net/dsa/tag_8021q.c
/openbmc/linux/net/mac80211/iface.c
/openbmc/linux/net/mctp/af_mctp.c
/openbmc/linux/net/openvswitch/flow_netlink.c
/openbmc/linux/sound/soc/codecs/cs42l43-jack.c
/openbmc/linux/sound/soc/codecs/lpass-wsa-macro.c
/openbmc/linux/sound/soc/dwc/dwc-i2s.c
/openbmc/linux/sound/soc/intel/avs/pcm.c
/openbmc/linux/sound/soc/qcom/lpass.h
/openbmc/linux/tools/testing/kunit/qemu_configs/sh.py
/openbmc/linux/tools/testing/radix-tree/linux.c
/openbmc/linux/tools/testing/selftests/net/mptcp/mptcp_connect.c
5569a2c505-Apr-2025 Pali Rohár <pali@kernel.org>

cifs: Ensure that all non-client-specific reparse points are processed by the server

commit 6f8a394aa952257575910d57cf0a63627fa949a2 upstream.

Fix regression in mounts to e.g. onedrive shares.

Gen

cifs: Ensure that all non-client-specific reparse points are processed by the server

commit 6f8a394aa952257575910d57cf0a63627fa949a2 upstream.

Fix regression in mounts to e.g. onedrive shares.

Generally, reparse points are processed by the SMB server during the
SMB OPEN request, but there are few reparse points which do not have
OPEN-like meaning for the SMB server and has to be processed by the SMB
client. Those are symlinks and special files (fifo, socket, block, char).

For Linux SMB client, it is required to process also name surrogate reparse
points as they represent another entity on the SMB server system. Linux
client will mark them as separate mount points. Examples of name surrogate
reparse points are NTFS junction points (e.g. created by the "mklink" tool
on Windows servers).

So after processing the name surrogate reparse points, clear the
-EOPNOTSUPP error code returned from the parse_reparse_point() to let SMB
server to process reparse points.

And remove printing misleading error message "unhandled reparse tag:" as
reparse points are handled by SMB server and hence unhandled fact is normal
operation.

Fixes: cad3fc0a4c8c ("cifs: Throw -EOPNOTSUPP error on unsupported reparse point type from parse_reparse_point()")
Fixes: b587fd128660 ("cifs: Treat unhandled directory name surrogate reparse points as mount directory nodes")
Cc: stable@vger.kernel.org
Reported-by: Junwen Sun <sunjw8888@gmail.com>
Tested-by: Junwen Sun <sunjw8888@gmail.com>
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

show more ...

b350dab631-Mar-2025 Roman Smirnov <r.smirnov@omp.ru>

cifs: fix integer overflow in match_server()

commit 2510859475d7f46ed7940db0853f3342bf1b65ee upstream.

The echo_interval is not limited in any way during mounting,
which makes it possible to write

cifs: fix integer overflow in match_server()

commit 2510859475d7f46ed7940db0853f3342bf1b65ee upstream.

The echo_interval is not limited in any way during mounting,
which makes it possible to write a large number to it. This can
cause an overflow when multiplying ctx->echo_interval by HZ in
match_server().

Add constraints for echo_interval to smb3_fs_context_parse_param().

Found by Linux Verification Center (linuxtesting.org) with Svace.

Fixes: adfeb3e00e8e1 ("cifs: Make echo interval tunable")
Cc: stable@vger.kernel.org
Signed-off-by: Roman Smirnov <r.smirnov@omp.ru>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

show more ...

864ba5c619-Mar-2025 Alexandra Diupina <adiupina@astralinux.ru>

cifs: avoid NULL pointer dereference in dbg call

commit b4885bd5935bb26f0a414ad55679a372e53f9b9b upstream.

cifs_server_dbg() implies server to be non-NULL so
move call under condition to avoid NULL

cifs: avoid NULL pointer dereference in dbg call

commit b4885bd5935bb26f0a414ad55679a372e53f9b9b upstream.

cifs_server_dbg() implies server to be non-NULL so
move call under condition to avoid NULL pointer dereference.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: e79b0332ae06 ("cifs: ignore cached share root handle closing errors")
Cc: stable@vger.kernel.org
Signed-off-by: Alexandra Diupina <adiupina@astralinux.ru>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

show more ...

b00b040a06-Apr-2025 Steve French <stfrench@microsoft.com>

smb311 client: fix missing tcon check when mounting with linux/posix extensions

commit b365b9d404b7376c60c91cd079218bfef11b7822 upstream.

When mounting the same share twice, once with the "linux" m

smb311 client: fix missing tcon check when mounting with linux/posix extensions

commit b365b9d404b7376c60c91cd079218bfef11b7822 upstream.

When mounting the same share twice, once with the "linux" mount parameter
(or equivalently "posix") and then once without (or e.g. with "nolinux"),
we were incorrectly reusing the same tree connection for both mounts.
This meant that the first mount of the share on the client, would
cause subsequent mounts of that same share on the same client to
ignore that mount parm ("linux" vs. "nolinux") and incorrectly reuse
the same tcon.

Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

show more ...


/openbmc/linux/Documentation/devicetree/bindings/media/i2c/st,st-mipid02.yaml
/openbmc/linux/Makefile
/openbmc/linux/arch/arm64/include/asm/cputype.h
/openbmc/linux/arch/arm64/include/asm/spectre.h
/openbmc/linux/arch/arm64/kernel/compat_alignment.c
/openbmc/linux/arch/arm64/kernel/proton-pack.c
/openbmc/linux/arch/arm64/kvm/arm.c
/openbmc/linux/arch/x86/kernel/cpu/amd.c
/openbmc/linux/arch/x86/kernel/signal_32.c
/openbmc/linux/arch/x86/mm/pat/set_memory.c
/openbmc/linux/drivers/ata/ahci.c
/openbmc/linux/drivers/ata/libata-eh.c
/openbmc/linux/drivers/ata/pata_pxa.c
/openbmc/linux/drivers/ata/sata_sx4.c
/openbmc/linux/drivers/base/devres.c
/openbmc/linux/drivers/bluetooth/btqca.c
/openbmc/linux/drivers/bluetooth/hci_ldisc.c
/openbmc/linux/drivers/bus/mhi/host/main.c
/openbmc/linux/drivers/char/tpm/tpm-chip.c
/openbmc/linux/drivers/char/tpm/tpm-interface.c
/openbmc/linux/drivers/char/tpm/tpm_tis_core.c
/openbmc/linux/drivers/char/tpm/tpm_tis_core.h
/openbmc/linux/drivers/clocksource/timer-stm32-lp.c
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/kfd_device.c
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/kfd_process.c
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dc.h
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hubp.c
/openbmc/linux/drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c
/openbmc/linux/drivers/gpu/drm/drm_atomic_helper.c
/openbmc/linux/drivers/gpu/drm/drm_panel.c
/openbmc/linux/drivers/gpu/drm/drm_panel_orientation_quirks.c
/openbmc/linux/drivers/gpu/drm/i915/gt/intel_engine_cs.c
/openbmc/linux/drivers/gpu/drm/i915/gt/intel_mocs.c
/openbmc/linux/drivers/gpu/drm/i915/gt/intel_rc6.c
/openbmc/linux/drivers/gpu/drm/i915/gt/uc/intel_huc.c
/openbmc/linux/drivers/gpu/drm/i915/gt/uc/intel_huc.h
/openbmc/linux/drivers/gpu/drm/i915/gt/uc/intel_uc.c
/openbmc/linux/drivers/gpu/drm/i915/i915_debugfs.c
/openbmc/linux/drivers/gpu/drm/i915/selftests/i915_selftest.c
/openbmc/linux/drivers/gpu/drm/mediatek/mtk_dpi.c
/openbmc/linux/drivers/gpu/drm/tests/drm_client_modeset_test.c
/openbmc/linux/drivers/gpu/drm/tests/drm_cmdline_parser_test.c
/openbmc/linux/drivers/gpu/drm/tests/drm_kunit_helpers.c
/openbmc/linux/drivers/gpu/drm/tests/drm_modes_test.c
/openbmc/linux/drivers/gpu/drm/tests/drm_probe_helper_test.c
/openbmc/linux/drivers/hid/Kconfig
/openbmc/linux/drivers/hid/Makefile
/openbmc/linux/drivers/hid/hid-ids.h
/openbmc/linux/drivers/hid/hid-universal-pidff.c
/openbmc/linux/drivers/hid/usbhid/hid-pidff.c
/openbmc/linux/drivers/iommu/mtk_iommu.c
/openbmc/linux/drivers/media/common/siano/smsdvb-main.c
/openbmc/linux/drivers/media/i2c/adv748x/adv748x.h
/openbmc/linux/drivers/media/i2c/ccs/ccs-core.c
/openbmc/linux/drivers/media/i2c/imx219.c
/openbmc/linux/drivers/media/i2c/ov7251.c
/openbmc/linux/drivers/media/platform/mediatek/vcodec/common/mtk_vcodec_fw_scp.c
/openbmc/linux/drivers/media/platform/mediatek/vcodec/encoder/venc/venc_h264_if.c
/openbmc/linux/drivers/media/platform/qcom/venus/hfi_parser.c
/openbmc/linux/drivers/media/platform/qcom/venus/hfi_venus.c
/openbmc/linux/drivers/media/platform/st/stm32/dma2d/dma2d.c
/openbmc/linux/drivers/media/rc/streamzap.c
/openbmc/linux/drivers/media/test-drivers/vim2m.c
/openbmc/linux/drivers/media/test-drivers/visl/visl-core.c
/openbmc/linux/drivers/media/usb/uvc/uvc_driver.c
/openbmc/linux/drivers/media/v4l2-core/v4l2-dv-timings.c
/openbmc/linux/drivers/mmc/host/dw_mmc.c
/openbmc/linux/drivers/mmc/host/dw_mmc.h
/openbmc/linux/drivers/mtd/mtdpstore.c
/openbmc/linux/drivers/mtd/nand/raw/brcmnand/brcmnand.c
/openbmc/linux/drivers/net/dsa/mv88e6xxx/chip.c
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/qos.c
/openbmc/linux/drivers/net/ethernet/wangxun/libwx/wx_lib.c
/openbmc/linux/drivers/net/phy/sfp.c
/openbmc/linux/drivers/net/ppp/ppp_synctty.c
/openbmc/linux/drivers/net/usb/asix_devices.c
/openbmc/linux/drivers/net/usb/cdc_ether.c
/openbmc/linux/drivers/net/usb/r8152.c
/openbmc/linux/drivers/net/usb/r8153_ecm.c
/openbmc/linux/drivers/net/wireless/ath/ath12k/dp_mon.c
/openbmc/linux/drivers/net/wireless/ath/ath12k/dp_rx.c
/openbmc/linux/drivers/net/wireless/mediatek/mt76/eeprom.c
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt76x2/usb.c
/openbmc/linux/drivers/nvme/target/fcloop.c
/openbmc/linux/drivers/pci/controller/vmd.c
/openbmc/linux/drivers/perf/arm_pmu.c
/openbmc/linux/drivers/pwm/pwm-fsl-ftm.c
/openbmc/linux/drivers/pwm/pwm-mediatek.c
/openbmc/linux/drivers/pwm/pwm-rcar.c
/openbmc/linux/drivers/scsi/st.c
/openbmc/linux/drivers/soc/samsung/exynos-chipid.c
/openbmc/linux/drivers/spi/spi-cadence-quadspi.c
/openbmc/linux/drivers/target/target_core_spc.c
/openbmc/linux/drivers/vdpa/mlx5/core/mr.c
/openbmc/linux/drivers/video/fbdev/omap2/omapfb/dss/dispc.c
/openbmc/linux/drivers/xen/xenfs/xensyms.c
/openbmc/linux/fs/exec.c
/openbmc/linux/fs/ext4/dir.c
/openbmc/linux/fs/ext4/inode.c
/openbmc/linux/fs/ext4/namei.c
/openbmc/linux/fs/ext4/super.c
/openbmc/linux/fs/ext4/xattr.c
/openbmc/linux/fs/f2fs/checkpoint.c
/openbmc/linux/fs/f2fs/f2fs.h
/openbmc/linux/fs/f2fs/inode.c
/openbmc/linux/fs/f2fs/node.c
/openbmc/linux/fs/f2fs/super.c
/openbmc/linux/fs/file.c
/openbmc/linux/fs/jfs/jfs_dmap.c
/openbmc/linux/fs/jfs/jfs_dtree.c
/openbmc/linux/fs/jfs/jfs_imap.c
/openbmc/linux/fs/jfs/xattr.c
/openbmc/linux/fs/namespace.c
/openbmc/linux/fs/nfsd/nfs4state.c
client/connect.c
/openbmc/linux/fs/udf/inode.c
/openbmc/linux/include/drm/drm_kunit_helpers.h
/openbmc/linux/include/linux/hid.h
/openbmc/linux/include/linux/rtnetlink.h
/openbmc/linux/include/linux/tpm.h
/openbmc/linux/include/uapi/linux/kfd_ioctl.h
/openbmc/linux/include/xen/interface/xen-mca.h
/openbmc/linux/io_uring/kbuf.c
/openbmc/linux/kernel/trace/trace_events.c
/openbmc/linux/kernel/trace/trace_events_synth.c
/openbmc/linux/kernel/trace/trace_functions_graph.c
/openbmc/linux/kernel/trace/trace_irqsoff.c
/openbmc/linux/kernel/trace/trace_osnoise.c
/openbmc/linux/kernel/trace/trace_probe.c
/openbmc/linux/kernel/trace/trace_sched_wakeup.c
/openbmc/linux/lib/zstd/common/portability_macros.h
/openbmc/linux/net/8021q/vlan_dev.c
/openbmc/linux/net/core/filter.c
/openbmc/linux/net/core/page_pool.c
/openbmc/linux/net/ethtool/netlink.c
/openbmc/linux/net/ipv6/route.c
/openbmc/linux/net/mac80211/mesh_hwmp.c
/openbmc/linux/net/mptcp/sockopt.c
/openbmc/linux/net/netfilter/nft_set_pipapo_avx2.c
/openbmc/linux/net/sched/cls_api.c
/openbmc/linux/net/sched/sch_codel.c
/openbmc/linux/net/sched/sch_fq_codel.c
/openbmc/linux/net/sched/sch_sfq.c
/openbmc/linux/net/tipc/link.c
/openbmc/linux/net/tls/tls_main.c
/openbmc/linux/sound/pci/hda/hda_intel.c
/openbmc/linux/sound/soc/amd/yc/acp6x-mach.c
/openbmc/linux/sound/soc/fsl/fsl_audmix.c
/openbmc/linux/sound/soc/qcom/qdsp6/q6apm-dai.c
/openbmc/linux/sound/soc/qcom/qdsp6/q6apm.c
/openbmc/linux/sound/soc/qcom/qdsp6/q6apm.h
/openbmc/linux/sound/soc/qcom/qdsp6/q6asm-dai.c
/openbmc/linux/sound/soc/sof/topology.c
/openbmc/linux/sound/usb/midi.c
/openbmc/linux/tools/objtool/check.c
/openbmc/linux/tools/power/cpupower/bench/parse.c
/openbmc/linux/tools/testing/ktest/ktest.pl
/openbmc/linux/tools/testing/selftests/futex/functional/futex_wait_wouldblock.c
0e36a3e029-Mar-2025 Norbert Szetei <norbert@doyensec.com>

ksmbd: validate zero num_subauth before sub_auth is accessed

commit bf21e29d78cd2c2371023953d9c82dfef82ebb36 upstream.

Access psid->sub_auth[psid->num_subauth - 1] without checking
if num_subauth i

ksmbd: validate zero num_subauth before sub_auth is accessed

commit bf21e29d78cd2c2371023953d9c82dfef82ebb36 upstream.

Access psid->sub_auth[psid->num_subauth - 1] without checking
if num_subauth is non-zero leads to an out-of-bounds read.
This patch adds a validation step to ensure num_subauth != 0
before sub_auth is accessed.

Cc: stable@vger.kernel.org
Signed-off-by: Norbert Szetei <norbert@doyensec.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

show more ...

3980770c27-Mar-2025 Namjae Jeon <linkinjeon@kernel.org>

ksmbd: fix session use-after-free in multichannel connection

commit fa4cdb8cbca7d6cb6aa13e4d8d83d1103f6345db upstream.

There is a race condition between session setup and
ksmbd_sessions_deregister.

ksmbd: fix session use-after-free in multichannel connection

commit fa4cdb8cbca7d6cb6aa13e4d8d83d1103f6345db upstream.

There is a race condition between session setup and
ksmbd_sessions_deregister. The session can be freed before the connection
is added to channel list of session.
This patch check reference count of session before freeing it.

Cc: stable@vger.kernel.org
Reported-by: Sean Heelan <seanheelan@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

show more ...

a8a8ae3021-Mar-2025 Namjae Jeon <linkinjeon@kernel.org>

ksmbd: fix use-after-free in ksmbd_sessions_deregister()

commit 15a9605f8d69dc85005b1a00c31a050b8625e1aa upstream.

In multichannel mode, UAF issue can occur in session_deregister
when the second ch

ksmbd: fix use-after-free in ksmbd_sessions_deregister()

commit 15a9605f8d69dc85005b1a00c31a050b8625e1aa upstream.

In multichannel mode, UAF issue can occur in session_deregister
when the second channel sets up a session through the connection of
the first channel. session that is freed through the global session
table can be accessed again through ->sessions of connection.

Cc: stable@vger.kernel.org
Reported-by: Norbert Szetei <norbert@doyensec.com>
Tested-by: Norbert Szetei <norbert@doyensec.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

show more ...

60b7207814-Mar-2025 Norbert Szetei <norbert@doyensec.com>

ksmbd: add bounds check for create lease context

commit bab703ed8472aa9d109c5f8c1863921533363dae upstream.

Add missing bounds check for create lease context.

Cc: stable@vger.kernel.org
Reported-by

ksmbd: add bounds check for create lease context

commit bab703ed8472aa9d109c5f8c1863921533363dae upstream.

Add missing bounds check for create lease context.

Cc: stable@vger.kernel.org
Reported-by: Norbert Szetei <norbert@doyensec.com>
Tested-by: Norbert Szetei <norbert@doyensec.com>
Signed-off-by: Norbert Szetei <norbert@doyensec.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

show more ...

8d4848c414-Mar-2025 Namjae Jeon <linkinjeon@kernel.org>

ksmbd: add bounds check for durable handle context

commit 542027e123fc0bfd61dd59e21ae0ee4ef2101b29 upstream.

Add missing bounds check for durable handle context.

Cc: stable@vger.kernel.org
Reporte

ksmbd: add bounds check for durable handle context

commit 542027e123fc0bfd61dd59e21ae0ee4ef2101b29 upstream.

Add missing bounds check for durable handle context.

Cc: stable@vger.kernel.org
Reported-by: Norbert Szetei <norbert@doyensec.com>
Tested-by: Norbert Szetei <norbert@doyensec.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

show more ...


/openbmc/linux/arch/loongarch/include/asm/cache.h
/openbmc/linux/arch/loongarch/net/bpf_jit.c
/openbmc/linux/arch/loongarch/net/bpf_jit.h
/openbmc/linux/arch/powerpc/platforms/cell/spufs/gang.c
/openbmc/linux/arch/powerpc/platforms/cell/spufs/inode.c
/openbmc/linux/arch/powerpc/platforms/cell/spufs/spufs.h
/openbmc/linux/arch/riscv/errata/Makefile
/openbmc/linux/arch/riscv/include/asm/ftrace.h
/openbmc/linux/arch/riscv/mm/hugetlbpage.c
/openbmc/linux/arch/x86/events/intel/core.c
/openbmc/linux/arch/x86/events/intel/ds.c
/openbmc/linux/arch/x86/events/perf_event.h
/openbmc/linux/arch/x86/hyperv/hv_vtl.c
/openbmc/linux/arch/x86/hyperv/ivm.c
/openbmc/linux/arch/x86/include/asm/tlbflush.h
/openbmc/linux/arch/x86/kernel/cpu/microcode/amd.c
/openbmc/linux/arch/x86/kernel/cpu/sgx/driver.c
/openbmc/linux/arch/x86/kernel/tsc.c
/openbmc/linux/arch/x86/lib/copy_user_64.S
/openbmc/linux/drivers/acpi/nfit/core.c
/openbmc/linux/drivers/acpi/resource.c
/openbmc/linux/drivers/acpi/x86/utils.c
/openbmc/linux/drivers/firmware/cirrus/cs_dsp.c
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
/openbmc/linux/drivers/gpu/drm/amd/display/dc/core/dc_link_exports.c
/openbmc/linux/drivers/hid/i2c-hid/i2c-hid-core.c
/openbmc/linux/drivers/hwmon/nct6775-core.c
/openbmc/linux/drivers/memory/omap-gpmc.c
/openbmc/linux/drivers/mmc/host/omap.c
/openbmc/linux/drivers/mmc/host/sdhci-omap.c
/openbmc/linux/drivers/mmc/host/sdhci-pxav3.c
/openbmc/linux/drivers/net/arcnet/com20020-pci.c
/openbmc/linux/drivers/net/dsa/mv88e6xxx/chip.c
/openbmc/linux/drivers/net/dsa/mv88e6xxx/phy.c
/openbmc/linux/drivers/net/ethernet/ibm/ibmveth.c
/openbmc/linux/drivers/net/ethernet/intel/e1000e/defines.h
/openbmc/linux/drivers/net/ethernet/intel/e1000e/ich8lan.c
/openbmc/linux/drivers/net/ethernet/intel/e1000e/ich8lan.h
/openbmc/linux/drivers/net/ethernet/marvell/mvpp2/mvpp2.h
/openbmc/linux/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
/openbmc/linux/drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c
/openbmc/linux/drivers/net/usb/usbnet.c
/openbmc/linux/drivers/ntb/hw/intel/ntb_hw_gen3.c
/openbmc/linux/drivers/ntb/hw/mscc/ntb_hw_switchtec.c
/openbmc/linux/drivers/ntb/test/ntb_perf.c
/openbmc/linux/drivers/nvme/host/pci.c
/openbmc/linux/drivers/platform/x86/intel/hid.c
/openbmc/linux/drivers/platform/x86/intel/speed_select_if/isst_if_common.c
/openbmc/linux/drivers/platform/x86/intel/vsec.c
/openbmc/linux/drivers/scsi/qla2xxx/qla_os.c
/openbmc/linux/fs/btrfs/extent-tree.c
server/smb2pdu.c
/openbmc/linux/include/linux/trace.h
/openbmc/linux/include/linux/trace_events.h
/openbmc/linux/kernel/events/core.c
/openbmc/linux/kernel/locking/semaphore.c
/openbmc/linux/kernel/sched/deadline.c
/openbmc/linux/kernel/trace/trace.c
/openbmc/linux/kernel/trace/trace.h
/openbmc/linux/kernel/trace/trace_boot.c
/openbmc/linux/kernel/trace/trace_events.c
/openbmc/linux/kernel/trace/trace_events_hist.c
/openbmc/linux/lib/overflow_kunit.c
/openbmc/linux/net/can/af_can.c
/openbmc/linux/net/can/af_can.h
/openbmc/linux/net/can/proc.c
/openbmc/linux/net/core/dst.c
/openbmc/linux/net/ipv4/ip_tunnel_core.c
/openbmc/linux/net/ipv4/udp.c
/openbmc/linux/net/ipv6/addrconf.c
/openbmc/linux/net/ipv6/calipso.c
/openbmc/linux/net/ipv6/route.c
/openbmc/linux/net/mac80211/sta_info.c
/openbmc/linux/net/netfilter/nf_tables_api.c
/openbmc/linux/net/netfilter/nft_set_hash.c
/openbmc/linux/net/netfilter/nft_tunnel.c
/openbmc/linux/net/openvswitch/actions.c
/openbmc/linux/net/sched/act_tunnel_key.c
/openbmc/linux/net/sched/cls_flower.c
/openbmc/linux/net/sched/sch_skbprio.c
/openbmc/linux/net/vmw_vsock/af_vsock.c
/openbmc/linux/samples/ftrace/sample-trace-array.c
/openbmc/linux/sound/pci/hda/patch_realtek.c
/openbmc/linux/sound/soc/codecs/rt5665.c
/openbmc/linux/sound/soc/fsl/imx-card.c
fa19b53711-Feb-2025 Namjae Jeon <linkinjeon@kernel.org>

cifs: fix incorrect validation for num_aces field of smb_acl

[ Upstream commit aa2a739a75ab6f24ef72fb3fdb9192c081eacf06 ]

parse_dcal() validate num_aces to allocate ace array.

f (num_aces > ULONG_

cifs: fix incorrect validation for num_aces field of smb_acl

[ Upstream commit aa2a739a75ab6f24ef72fb3fdb9192c081eacf06 ]

parse_dcal() validate num_aces to allocate ace array.

f (num_aces > ULONG_MAX / sizeof(struct smb_ace *))

It is an incorrect validation that we can create an array of size ULONG_MAX.
smb_acl has ->size field to calculate actual number of aces in response buffer
size. Use this to check invalid num_aces.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>

show more ...

4790bcb224-Mar-2025 Namjae Jeon <linkinjeon@kernel.org>

ksmbd: fix r_count dec/increment mismatch

[ Upstream commit ddb7ea36ba7129c2ed107e2186591128618864e1 ]

r_count is only increased when there is an oplock break wait,
so r_count inc/decrement are not

ksmbd: fix r_count dec/increment mismatch

[ Upstream commit ddb7ea36ba7129c2ed107e2186591128618864e1 ]

r_count is only increased when there is an oplock break wait,
so r_count inc/decrement are not paired. This can cause r_count
to become negative, which can lead to a problem where the ksmbd
thread does not terminate.

Fixes: 3aa660c05924 ("ksmbd: prevent connection release during oplock break notification")
Reported-by: Norbert Szetei <norbert@doyensec.com>
Tested-by: Norbert Szetei <norbert@doyensec.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>

show more ...

12345678910>>...26