History log of /openbmc/linux/fs/smb/ (Results 1 – 25 of 573)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
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 ...

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

ksmbd: fix multichannel connection failure

[ Upstream commit c1883049aa9b2b7dffd3a68c5fc67fa92c174bd9 ]

ksmbd check that the session of second channel is in the session list of
first connection. If

ksmbd: fix multichannel connection failure

[ Upstream commit c1883049aa9b2b7dffd3a68c5fc67fa92c174bd9 ]

ksmbd check that the session of second channel is in the session list of
first connection. If it is in session list, multichannel connection
should not be allowed.

Fixes: b95629435b84 ("ksmbd: fix racy issue from session lookup and expire")
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: Sasha Levin <sashal@kernel.org>

show more ...

1de7fec418-Mar-2025 Miaoqian Lin <linmq006@gmail.com>

ksmbd: use aead_request_free to match aead_request_alloc

[ Upstream commit 6171063e9d046ffa46f51579b2ca4a43caef581a ]

Use aead_request_free() instead of kfree() to properly free memory
allocated by

ksmbd: use aead_request_free to match aead_request_alloc

[ Upstream commit 6171063e9d046ffa46f51579b2ca4a43caef581a ]

Use aead_request_free() instead of kfree() to properly free memory
allocated by aead_request_alloc(). This ensures sensitive crypto data
is zeroed before being freed.

Fixes: e2f34481b24d ("cifsd: add server-side procedures for SMB3")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>

show more ...

c6b6b8dc18-Feb-2025 Wang Zhaolong <wangzhaolong1@huawei.com>

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

[ Upstream commit 4e7f1644f2ac6d01dc584f6301c3b1d5aac4eaef ]

Commit ef7134c7fc48 ("smb: client: Fix use-after-free of netw

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

[ Upstream commit 4e7f1644f2ac6d01dc584f6301c3b1d5aac4eaef ]

Commit ef7134c7fc48 ("smb: client: Fix use-after-free of network
namespace.") attempted to fix a netns use-after-free issue by manually
adjusting reference counts via sk->sk_net_refcnt and sock_inuse_add().

However, a later commit e9f2517a3e18 ("smb: client: fix TCP timers deadlock
after rmmod") pointed out that the approach of manually setting
sk->sk_net_refcnt in the first commit was technically incorrect, as
sk->sk_net_refcnt should only be set for user sockets. It led to issues
like TCP timers not being cleared properly on close. The second commit
moved to a model of just holding an extra netns reference for
server->ssocket using get_net(), and dropping it when the server is torn
down.

But there remain some gaps in the get_net()/put_net() balancing added by
these commits. The incomplete reference handling in these fixes results
in two issues:

1. Netns refcount leaks[1]

The problem process is as follows:

```
mount.cifs cifsd

cifs_do_mount
cifs_mount
cifs_mount_get_session
cifs_get_tcp_session
get_net() /* First get net. */
ip_connect
generic_ip_connect /* Try port 445 */
get_net()
->connect() /* Failed */
put_net()
generic_ip_connect /* Try port 139 */
get_net() /* Missing matching put_net() for this get_net().*/
cifs_get_smb_ses
cifs_negotiate_protocol
smb2_negotiate
SMB2_negotiate
cifs_send_recv
wait_for_response
cifs_demultiplex_thread
cifs_read_from_socket
cifs_readv_from_socket
cifs_reconnect
cifs_abort_connection
sock_release();
server->ssocket = NULL;
/* Missing put_net() here. */
generic_ip_connect
get_net()
->connect() /* Failed */
put_net()
sock_release();
server->ssocket = NULL;
free_rsp_buf
...
clean_demultiplex_info
/* It's only called once here. */
put_net()
```

When cifs_reconnect() is triggered, the server->ssocket is released
without a corresponding put_net() for the reference acquired in
generic_ip_connect() before. it ends up calling generic_ip_connect()
again to retry get_net(). After that, server->ssocket is set to NULL
in the error path of generic_ip_connect(), and the net count cannot be
released in the final clean_demultiplex_info() function.

2. Potential use-after-free

The current refcounting scheme can lead to a potential use-after-free issue
in the following scenario:

```
cifs_do_mount
cifs_mount
cifs_mount_get_session
cifs_get_tcp_session
get_net() /* First get net */
ip_connect
generic_ip_connect
get_net()
bind_socket
kernel_bind /* failed */
put_net()
/* after out_err_crypto_release label */
put_net()
/* after out_err label */
put_net()
```

In the exception handling process where binding the socket fails, the
get_net() and put_net() calls are unbalanced, which may cause the
server->net reference count to drop to zero and be prematurely released.

To address both issues, this patch ties the netns reference counting to
the server->ssocket and server lifecycles. The extra reference is now
acquired when the server or socket is created, and released when the
socket is destroyed or the server is torn down.

[1]: https://bugzilla.kernel.org/show_bug.cgi?id=219792

Fixes: ef7134c7fc48 ("smb: client: Fix use-after-free of network namespace.")
Fixes: e9f2517a3e18 ("smb: client: fix TCP timers deadlock after rmmod")
Signed-off-by: Wang Zhaolong <wangzhaolong1@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>

show more ...


/openbmc/linux/Documentation/devicetree/bindings/vendor-prefixes.yaml
/openbmc/linux/Makefile
/openbmc/linux/arch/arm/mm/fault.c
/openbmc/linux/arch/arm64/boot/dts/rockchip/rk3399-nanopi-r4s.dts
/openbmc/linux/arch/arm64/include/asm/kvm_host.h
/openbmc/linux/arch/arm64/include/asm/kvm_hyp.h
/openbmc/linux/arch/arm64/kernel/fpsimd.c
/openbmc/linux/arch/arm64/kvm/arm.c
/openbmc/linux/arch/arm64/kvm/fpsimd.c
/openbmc/linux/arch/arm64/kvm/hyp/entry.S
/openbmc/linux/arch/arm64/kvm/hyp/include/hyp/switch.h
/openbmc/linux/arch/arm64/kvm/hyp/nvhe/hyp-main.c
/openbmc/linux/arch/arm64/kvm/hyp/nvhe/pkvm.c
/openbmc/linux/arch/arm64/kvm/hyp/nvhe/switch.c
/openbmc/linux/arch/arm64/kvm/hyp/vhe/switch.c
/openbmc/linux/arch/arm64/kvm/reset.c
/openbmc/linux/arch/powerpc/configs/mpc885_ads_defconfig
/openbmc/linux/arch/riscv/kvm/vcpu_pmu.c
/openbmc/linux/arch/um/include/shared/os.h
/openbmc/linux/arch/um/kernel/Makefile
/openbmc/linux/arch/um/os-Linux/process.c
/openbmc/linux/arch/x86/Kconfig
/openbmc/linux/arch/x86/entry/calling.h
/openbmc/linux/arch/x86/kernel/dumpstack.c
/openbmc/linux/arch/x86/kernel/fpu/core.c
/openbmc/linux/arch/x86/kernel/process.c
/openbmc/linux/arch/x86/kernel/traps.c
/openbmc/linux/arch/x86/mm/mem_encrypt_identity.c
/openbmc/linux/arch/x86/mm/pat/cpa-test.c
/openbmc/linux/arch/x86/mm/pat/memtype.c
/openbmc/linux/drivers/base/power/main.c
/openbmc/linux/drivers/base/power/runtime.c
/openbmc/linux/drivers/clk/imx/clk-imx8mp-audiomix.c
/openbmc/linux/drivers/clk/meson/g12a.c
/openbmc/linux/drivers/clk/meson/gxbb.c
/openbmc/linux/drivers/clk/qcom/gcc-msm8953.c
/openbmc/linux/drivers/clk/qcom/mmcc-sdm660.c
/openbmc/linux/drivers/clk/rockchip/clk-rk3328.c
/openbmc/linux/drivers/clk/samsung/clk.c
/openbmc/linux/drivers/counter/microchip-tcb-capture.c
/openbmc/linux/drivers/counter/stm32-lptimer-cnt.c
/openbmc/linux/drivers/cpufreq/cpufreq_governor.c
/openbmc/linux/drivers/cpufreq/scpi-cpufreq.c
/openbmc/linux/drivers/crypto/hisilicon/sec2/sec.h
/openbmc/linux/drivers/crypto/hisilicon/sec2/sec_crypto.c
/openbmc/linux/drivers/crypto/nx/nx-common-pseries.c
/openbmc/linux/drivers/dma/fsl-edma-main.c
/openbmc/linux/drivers/edac/i10nm_base.c
/openbmc/linux/drivers/edac/ie31200_edac.c
/openbmc/linux/drivers/edac/skx_common.c
/openbmc/linux/drivers/edac/skx_common.h
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce/dmub_hw_lock_mgr.c
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.c
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c
/openbmc/linux/drivers/gpu/drm/bridge/ite-it6505.c
/openbmc/linux/drivers/gpu/drm/bridge/ti-sn65dsi86.c
/openbmc/linux/drivers/gpu/drm/display/drm_dp_mst_topology.c
/openbmc/linux/drivers/gpu/drm/mediatek/mtk_dp.c
/openbmc/linux/drivers/gpu/drm/mediatek/mtk_dsi.c
/openbmc/linux/drivers/gpu/drm/mediatek/mtk_hdmi.c
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c
/openbmc/linux/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c
/openbmc/linux/drivers/gpu/drm/msm/dsi/dsi_host.c
/openbmc/linux/drivers/gpu/drm/msm/dsi/dsi_manager.c
/openbmc/linux/drivers/gpu/drm/msm/msm_dsc_helper.h
/openbmc/linux/drivers/gpu/drm/vkms/vkms_drv.c
/openbmc/linux/drivers/gpu/drm/xlnx/zynqmp_dpsub.c
/openbmc/linux/drivers/hid/Makefile
/openbmc/linux/drivers/hid/hid-plantronics.c
/openbmc/linux/drivers/hwtracing/coresight/coresight-catu.c
/openbmc/linux/drivers/hwtracing/coresight/coresight-core.c
/openbmc/linux/drivers/hwtracing/coresight/coresight-etm4x-core.c
/openbmc/linux/drivers/i3c/master/svc-i3c-master.c
/openbmc/linux/drivers/iio/accel/mma8452.c
/openbmc/linux/drivers/iio/accel/msa311.c
/openbmc/linux/drivers/iio/adc/ad4130.c
/openbmc/linux/drivers/iio/adc/ad7124.c
/openbmc/linux/drivers/infiniband/core/device.c
/openbmc/linux/drivers/infiniband/core/mad.c
/openbmc/linux/drivers/infiniband/core/sysfs.c
/openbmc/linux/drivers/infiniband/hw/erdma/erdma_cm.c
/openbmc/linux/drivers/infiniband/hw/mana/main.c
/openbmc/linux/drivers/infiniband/hw/mlx5/cq.c
/openbmc/linux/drivers/infiniband/hw/mlx5/odp.c
/openbmc/linux/drivers/leds/led-core.c
/openbmc/linux/drivers/media/dvb-frontends/dib8000.c
/openbmc/linux/drivers/media/platform/allegro-dvt/allegro-core.c
/openbmc/linux/drivers/media/platform/verisilicon/hantro_g2_hevc_dec.c
/openbmc/linux/drivers/memstick/host/rtsx_usb_ms.c
/openbmc/linux/drivers/mfd/sm501.c
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/bnxt.c
/openbmc/linux/drivers/net/usb/qmi_wwan.c
/openbmc/linux/drivers/net/usb/usbnet.c
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/file.h
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/d3.c
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/fw.c
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/sta.c
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/sta.h
/openbmc/linux/drivers/pci/controller/cadence/pcie-cadence-ep.c
/openbmc/linux/drivers/pci/controller/cadence/pcie-cadence.h
/openbmc/linux/drivers/pci/controller/dwc/pcie-histb.c
/openbmc/linux/drivers/pci/controller/pcie-brcmstb.c
/openbmc/linux/drivers/pci/controller/pcie-xilinx-cpm.c
/openbmc/linux/drivers/pci/hotplug/pciehp_hpc.c
/openbmc/linux/drivers/pci/pci.c
/openbmc/linux/drivers/pci/pcie/aspm.c
/openbmc/linux/drivers/pci/pcie/portdrv.c
/openbmc/linux/drivers/pci/probe.c
/openbmc/linux/drivers/pci/setup-bus.c
/openbmc/linux/drivers/pinctrl/intel/pinctrl-intel.c
/openbmc/linux/drivers/pinctrl/renesas/pinctrl-rza2.c
/openbmc/linux/drivers/pinctrl/renesas/pinctrl-rzg2l.c
/openbmc/linux/drivers/pinctrl/renesas/pinctrl-rzv2m.c
/openbmc/linux/drivers/pinctrl/tegra/pinctrl-tegra.c
/openbmc/linux/drivers/platform/x86/dell/dell-wmi-ddv.c
/openbmc/linux/drivers/power/supply/max77693_charger.c
/openbmc/linux/drivers/remoteproc/qcom_q6v5_mss.c
/openbmc/linux/drivers/remoteproc/qcom_q6v5_pas.c
/openbmc/linux/drivers/remoteproc/remoteproc_core.c
/openbmc/linux/drivers/reset/starfive/reset-starfive-jh71x0.c
/openbmc/linux/drivers/soundwire/slave.c
/openbmc/linux/drivers/staging/rtl8723bs/Kconfig
/openbmc/linux/drivers/thermal/intel/int340x_thermal/int3402_thermal.c
/openbmc/linux/drivers/tty/n_tty.c
/openbmc/linux/drivers/tty/serial/8250/8250_dma.c
/openbmc/linux/drivers/tty/serial/8250/8250_pci.c
/openbmc/linux/drivers/tty/serial/fsl_lpuart.c
/openbmc/linux/drivers/ufs/host/ufs-qcom.c
/openbmc/linux/drivers/usb/gadget/function/uvc_v4l2.c
/openbmc/linux/drivers/usb/host/xhci-mem.c
/openbmc/linux/drivers/usb/typec/ucsi/ucsi_ccg.c
/openbmc/linux/drivers/vhost/scsi.c
/openbmc/linux/drivers/video/console/Kconfig
/openbmc/linux/drivers/video/fbdev/au1100fb.c
/openbmc/linux/drivers/video/fbdev/sm501fb.c
/openbmc/linux/fs/btrfs/tree-checker.c
/openbmc/linux/fs/btrfs/tree-checker.h
/openbmc/linux/fs/fuse/dax.c
/openbmc/linux/fs/fuse/dir.c
/openbmc/linux/fs/fuse/file.c
/openbmc/linux/fs/hostfs/hostfs.h
/openbmc/linux/fs/hostfs/hostfs_kern.c
/openbmc/linux/fs/hostfs/hostfs_user.c
/openbmc/linux/fs/isofs/dir.c
/openbmc/linux/fs/nfs/delegation.c
/openbmc/linux/fs/nfs/sysfs.c
/openbmc/linux/fs/ntfs3/index.c
/openbmc/linux/fs/ntfs3/ntfs.h
/openbmc/linux/fs/ocfs2/alloc.c
/openbmc/linux/fs/proc/base.c
client/connect.c
/openbmc/linux/include/drm/display/drm_dp_mst_helper.h
/openbmc/linux/include/linux/coresight.h
/openbmc/linux/include/linux/fwnode.h
/openbmc/linux/include/linux/interrupt.h
/openbmc/linux/include/linux/pgtable.h
/openbmc/linux/include/linux/pm_runtime.h
/openbmc/linux/include/rdma/ib_verbs.h
/openbmc/linux/kernel/events/ring_buffer.c
/openbmc/linux/kernel/events/uprobes.c
/openbmc/linux/kernel/fork.c
/openbmc/linux/kernel/kexec_elf.c
/openbmc/linux/kernel/sched/core.c
/openbmc/linux/kernel/trace/bpf_trace.c
/openbmc/linux/kernel/watch_queue.c
/openbmc/linux/lib/842/842_compress.c
/openbmc/linux/mm/memory.c
/openbmc/linux/mm/page_alloc.c
/openbmc/linux/net/atm/mpc.c
/openbmc/linux/net/ipv6/netfilter/nf_socket_ipv6.c
/openbmc/linux/net/mptcp/options.c
/openbmc/linux/net/netfilter/nft_counter.c
/openbmc/linux/scripts/selinux/install_policy.sh
/openbmc/linux/security/smack/smack.h
/openbmc/linux/security/smack/smack_lsm.c
/openbmc/linux/sound/pci/hda/patch_realtek.c
/openbmc/linux/sound/soc/codecs/cs35l41-spi.c
/openbmc/linux/sound/soc/ti/j721e-evm.c
/openbmc/linux/sound/usb/mixer_quirks.c
/openbmc/linux/tools/lib/bpf/linker.c
/openbmc/linux/tools/objtool/check.c
/openbmc/linux/tools/perf/bench/syscall.c
/openbmc/linux/tools/perf/tests/shell/coresight/asm_pure_loop/asm_pure_loop.S
/openbmc/linux/tools/perf/util/arm-spe.c
/openbmc/linux/tools/perf/util/evlist.c
/openbmc/linux/tools/perf/util/pmu.c
/openbmc/linux/tools/perf/util/pmu.h
/openbmc/linux/tools/perf/util/pmus.c
/openbmc/linux/tools/perf/util/python.c
/openbmc/linux/tools/perf/util/stat-shadow.c
/openbmc/linux/tools/perf/util/units.c
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/bloom_filter_map.c
/openbmc/linux/tools/testing/selftests/bpf/progs/strncmp_bench.c
/openbmc/linux/tools/testing/selftests/mm/cow.c
d0f8737011-Feb-2025 Namjae Jeon <linkinjeon@kernel.org>

ksmbd: fix incorrect validation for num_aces field of smb_acl

commit 1b8b67f3c5e5169535e26efedd3e422172e2db64 upstream.

parse_dcal() validate num_aces to allocate posix_ace_state_array.

if (num_ac

ksmbd: fix incorrect validation for num_aces field of smb_acl

commit 1b8b67f3c5e5169535e26efedd3e422172e2db64 upstream.

parse_dcal() validate num_aces to allocate posix_ace_state_array.

if (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 request buffer
size. Use this to check invalid num_aces.

Reported-by: Igor Leite Ladessa <igor-ladessa@hotmail.com>
Tested-by: Igor Leite Ladessa <igor-ladessa@hotmail.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/broadcom/bcm2711.dtsi
/openbmc/linux/arch/arm/boot/dts/nxp/imx/imx6qdl-apalis.dtsi
/openbmc/linux/arch/arm/mach-davinci/Kconfig
/openbmc/linux/arch/arm/mach-omap1/Kconfig
/openbmc/linux/arch/arm/mach-shmobile/headsmp.S
/openbmc/linux/arch/arm64/boot/dts/freescale/imx8mm-verdin-dahlia.dtsi
/openbmc/linux/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql.dtsi
/openbmc/linux/arch/arm64/boot/dts/freescale/imx8mp-verdin-dahlia.dtsi
/openbmc/linux/arch/arm64/boot/dts/rockchip/px30-ringneck-haikou.dts
/openbmc/linux/arch/arm64/boot/dts/rockchip/rk3566-lubancat-1.dts
/openbmc/linux/arch/riscv/boot/dts/starfive/jh7110-pinfunc.h
/openbmc/linux/drivers/accel/qaic/qaic_data.c
/openbmc/linux/drivers/firmware/efi/libstub/randomalloc.c
/openbmc/linux/drivers/firmware/imx/imx-scu.c
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/nv.c
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/soc15.c
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/vi.c
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce/dmub_hw_lock_mgr.c
/openbmc/linux/drivers/gpu/drm/radeon/radeon_vce.c
/openbmc/linux/drivers/gpu/drm/scheduler/sched_entity.c
/openbmc/linux/drivers/gpu/drm/v3d/v3d_sched.c
/openbmc/linux/drivers/hid/hid-apple.c
/openbmc/linux/drivers/i2c/busses/i2c-omap.c
/openbmc/linux/drivers/infiniband/hw/bnxt_re/qplib_fp.c
/openbmc/linux/drivers/infiniband/hw/bnxt_re/qplib_rcfw.h
/openbmc/linux/drivers/infiniband/hw/hns/hns_roce_hem.c
/openbmc/linux/drivers/infiniband/hw/hns/hns_roce_main.c
/openbmc/linux/drivers/infiniband/hw/hns/hns_roce_qp.c
/openbmc/linux/drivers/infiniband/hw/mlx5/ah.c
/openbmc/linux/drivers/mmc/host/atmel-mci.c
/openbmc/linux/drivers/mmc/host/sdhci-brcmstb.c
/openbmc/linux/drivers/net/can/flexcan/flexcan-core.c
/openbmc/linux/drivers/net/can/rcar/rcar_canfd.c
/openbmc/linux/drivers/net/can/usb/ucan.c
/openbmc/linux/drivers/nvme/host/fc.c
/openbmc/linux/drivers/nvme/host/tcp.c
/openbmc/linux/drivers/regulator/core.c
/openbmc/linux/drivers/regulator/dummy.c
/openbmc/linux/drivers/soc/imx/soc-imx8m.c
/openbmc/linux/drivers/soc/qcom/pdr_interface.c
/openbmc/linux/fs/proc/generic.c
/openbmc/linux/fs/proc/inode.c
/openbmc/linux/fs/proc/internal.h
server/smbacl.c
/openbmc/linux/include/linux/proc_fs.h
/openbmc/linux/include/net/bluetooth/hci.h
/openbmc/linux/include/net/bluetooth/l2cap.h
/openbmc/linux/include/net/netfilter/nf_tables.h
/openbmc/linux/mm/filemap.c
/openbmc/linux/mm/migrate.c
/openbmc/linux/net/atm/lec.c
/openbmc/linux/net/batman-adv/bat_iv_ogm.c
/openbmc/linux/net/batman-adv/bat_v_ogm.c
/openbmc/linux/net/bluetooth/6lowpan.c
/openbmc/linux/net/bluetooth/l2cap_core.c
/openbmc/linux/net/bluetooth/l2cap_sock.c
/openbmc/linux/net/core/lwtunnel.c
/openbmc/linux/net/core/neighbour.c
/openbmc/linux/net/ipv6/addrconf.c
/openbmc/linux/net/ipv6/route.c
/openbmc/linux/net/netfilter/nf_tables_api.c
/openbmc/linux/net/netfilter/nft_connlimit.c
/openbmc/linux/net/netfilter/nft_counter.c
/openbmc/linux/net/netfilter/nft_dynset.c
/openbmc/linux/net/netfilter/nft_last.c
/openbmc/linux/net/netfilter/nft_limit.c
/openbmc/linux/net/netfilter/nft_quota.c
/openbmc/linux/net/netfilter/nft_set_hash.c
/openbmc/linux/net/netfilter/nft_set_pipapo.c
/openbmc/linux/net/netfilter/nft_set_rbtree.c
/openbmc/linux/net/xdp/xsk_buff_pool.c
/openbmc/linux/net/xfrm/xfrm_output.c
/openbmc/linux/rust/kernel/sync.rs
fb0800cb11-Mar-2025 Henrique Carvalho <henrique.carvalho@suse.com>

smb: client: Fix match_session bug preventing session reuse

[ Upstream commit 605b249ea96770ac4fac4b8510a99e0f8442be5e ]

Fix a bug in match_session() that can causes the session to not be
reused in

smb: client: Fix match_session bug preventing session reuse

[ Upstream commit 605b249ea96770ac4fac4b8510a99e0f8442be5e ]

Fix a bug in match_session() that can causes the session to not be
reused in some cases.

Reproduction steps:

mount.cifs //server/share /mnt/a -o credentials=creds
mount.cifs //server/share /mnt/b -o credentials=creds,sec=ntlmssp
cat /proc/fs/cifs/DebugData | grep SessionId | wc -l

mount.cifs //server/share /mnt/b -o credentials=creds,sec=ntlmssp
mount.cifs //server/share /mnt/a -o credentials=creds
cat /proc/fs/cifs/DebugData | grep SessionId | wc -l

Cc: stable@vger.kernel.org
Reviewed-by: Enzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: Henrique Carvalho <henrique.carvalho@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>

show more ...

7dc9abfa28-Jan-2025 Steve French <stfrench@microsoft.com>

smb3: add support for IAKerb

[ Upstream commit eea5119fa5979c350af5783a8148eacdd4219715 ]

There are now more servers which advertise support for IAKerb (passthrough
Kerberos authentication via prox

smb3: add support for IAKerb

[ Upstream commit eea5119fa5979c350af5783a8148eacdd4219715 ]

There are now more servers which advertise support for IAKerb (passthrough
Kerberos authentication via proxy). IAKerb is a public extension industry
standard Kerberos protocol that allows a client without line-of-sight
to a Domain Controller to authenticate. There can be cases where we
would fail to mount if the server only advertises the OID for IAKerb
in SPNEGO/GSSAPI. Add code to allow us to still upcall to userspace
in these cases to obtain the Kerberos ticket.

Signed-off-by: Steve French <stfrench@microsoft.com>
Stable-dep-of: 605b249ea967 ("smb: client: Fix match_session bug preventing session reuse")
Signed-off-by: Sasha Levin <sashal@kernel.org>

show more ...

10cbae8417-Sep-2024 Pali Rohár <pali@kernel.org>

cifs: Throw -EOPNOTSUPP error on unsupported reparse point type from parse_reparse_point()

[ Upstream commit cad3fc0a4c8cef07b07ceddc137f582267577250 ]

This would help to track and detect by caller

cifs: Throw -EOPNOTSUPP error on unsupported reparse point type from parse_reparse_point()

[ Upstream commit cad3fc0a4c8cef07b07ceddc137f582267577250 ]

This would help to track and detect by caller if the reparse point type was
processed or not.

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 ...

474c087120-Sep-2024 Pali Rohár <pali@kernel.org>

cifs: Validate content of WSL reparse point buffers

[ Upstream commit 1f48660667efb97c3cf70485c7e1977af718b48b ]

WSL socket, fifo, char and block devices have empty reparse buffer.
Validate the len

cifs: Validate content of WSL reparse point buffers

[ Upstream commit 1f48660667efb97c3cf70485c7e1977af718b48b ]

WSL socket, fifo, char and block devices have empty reparse buffer.
Validate the length of the reparse buffer.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Stable-dep-of: cad3fc0a4c8c ("cifs: Throw -EOPNOTSUPP error on unsupported reparse point type from parse_reparse_point()")
Signed-off-by: Sasha Levin <sashal@kernel.org>

show more ...

6c13fcb711-Mar-2025 Murad Masimov <m.masimov@mt-integration.ru>

cifs: Fix integer overflow while processing closetimeo mount option

[ Upstream commit d5a30fddfe2f2e540f6c43b59cf701809995faef ]

User-provided mount parameter closetimeo of type u32 is intended to

cifs: Fix integer overflow while processing closetimeo mount option

[ Upstream commit d5a30fddfe2f2e540f6c43b59cf701809995faef ]

User-provided mount parameter closetimeo of type u32 is intended to have
an upper limit, but before it is validated, the value is converted from
seconds to jiffies which can lead to an integer overflow.

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

Fixes: 5efdd9122eff ("smb3: allow deferred close timeout to be configurable")
Signed-off-by: Murad Masimov <m.masimov@mt-integration.ru>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>

show more ...

d5fff81c11-Mar-2025 Murad Masimov <m.masimov@mt-integration.ru>

cifs: Fix integer overflow while processing actimeo mount option

[ Upstream commit 64f690ee22c99e16084e0e45181b2a1eed2fa149 ]

User-provided mount parameter actimeo of type u32 is intended to have
a

cifs: Fix integer overflow while processing actimeo mount option

[ Upstream commit 64f690ee22c99e16084e0e45181b2a1eed2fa149 ]

User-provided mount parameter actimeo of type u32 is intended to have
an upper limit, but before it is validated, the value is converted from
seconds to jiffies which can lead to an integer overflow.

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

Fixes: 6d20e8406f09 ("cifs: add attribute cache timeout (actimeo) tunable")
Signed-off-by: Murad Masimov <m.masimov@mt-integration.ru>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>

show more ...

9e438d0411-Mar-2025 Murad Masimov <m.masimov@mt-integration.ru>

cifs: Fix integer overflow while processing acdirmax mount option

[ Upstream commit 5b29891f91dfb8758baf1e2217bef4b16b2b165b ]

User-provided mount parameter acdirmax of type u32 is intended to have

cifs: Fix integer overflow while processing acdirmax mount option

[ Upstream commit 5b29891f91dfb8758baf1e2217bef4b16b2b165b ]

User-provided mount parameter acdirmax of type u32 is intended to have
an upper limit, but before it is validated, the value is converted from
seconds to jiffies which can lead to an integer overflow.

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

Fixes: 4c9f948142a5 ("cifs: Add new mount parameter "acdirmax" to allow caching directory metadata")
Signed-off-by: Murad Masimov <m.masimov@mt-integration.ru>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>

show more ...

0252c33c11-Mar-2025 Murad Masimov <m.masimov@mt-integration.ru>

cifs: Fix integer overflow while processing acregmax mount option

[ Upstream commit 7489161b1852390b4413d57f2457cd40b34da6cc ]

User-provided mount parameter acregmax of type u32 is intended to have

cifs: Fix integer overflow while processing acregmax mount option

[ Upstream commit 7489161b1852390b4413d57f2457cd40b34da6cc ]

User-provided mount parameter acregmax of type u32 is intended to have
an upper limit, but before it is validated, the value is converted from
seconds to jiffies which can lead to an integer overflow.

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

Fixes: 5780464614f6 ("cifs: Add new parameter "acregmax" for distinct file and directory metadata timeout")
Signed-off-by: Murad Masimov <m.masimov@mt-integration.ru>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>

show more ...

d026392e12-Mar-2025 Paulo Alcantara <pc@manguebit.com>

smb: client: fix regression with guest option

commit fc99045effa81fdf509c2a97cbb7e6e8f2fd4443 upstream.

When mounting a CIFS share with 'guest' mount option, mount.cifs(8)
will set empty password=

smb: client: fix regression with guest option

commit fc99045effa81fdf509c2a97cbb7e6e8f2fd4443 upstream.

When mounting a CIFS share with 'guest' mount option, mount.cifs(8)
will set empty password= and password2= options. Currently we only
handle empty strings from user= and password= options, so the mount
will fail with

cifs: Bad value for 'password2'

Fix this by handling empty string from password2= option as well.

Link: https://bbs.archlinux.org/viewtopic.php?id=303927
Reported-by: Adam Williamson <awilliam@redhat.com>
Closes: https://lore.kernel.org/r/83c00b5fea81c07f6897a5dd3ef50fd3b290f56c.camel@redhat.com
Fixes: 35f834265e0d ("smb3: fix broken reconnect when password changing on the server by allowing password rotation")
Cc: stable@vger.kernel.org
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

show more ...

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

ksmbd: prevent connection release during oplock break notification

commit 3aa660c059240e0c795217182cf7df32909dd917 upstream.

ksmbd_work could be freed when after connection release.
Increment r_cou

ksmbd: prevent connection release during oplock break notification

commit 3aa660c059240e0c795217182cf7df32909dd917 upstream.

ksmbd_work could be freed when after connection release.
Increment r_count of ksmbd_conn to indicate that requests
are not finished yet and to not release the 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 ...

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

ksmbd: fix use-after-free in ksmbd_free_work_struct

commit bb39ed47065455604729404729d9116868638d31 upstream.

->interim_entry of ksmbd_work could be deleted after oplock is freed.
We don't need to

ksmbd: fix use-after-free in ksmbd_free_work_struct

commit bb39ed47065455604729404729d9116868638d31 upstream.

->interim_entry of ksmbd_work could be deleted after oplock is freed.
We don't need to manage it with linked list. The interim request could be
immediately sent whenever a oplock break wait is needed.

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/x86/events/intel/core.c
/openbmc/linux/arch/x86/kernel/cpu/microcode/amd.c
/openbmc/linux/arch/x86/kernel/irq.c
/openbmc/linux/block/bio.c
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c
/openbmc/linux/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
/openbmc/linux/drivers/gpu/drm/display/drm_dp_mst_topology.c
/openbmc/linux/drivers/gpu/drm/drm_atomic_uapi.c
/openbmc/linux/drivers/gpu/drm/drm_connector.c
/openbmc/linux/drivers/gpu/drm/i915/display/intel_display.c
/openbmc/linux/drivers/gpu/drm/nouveau/nouveau_connector.c
/openbmc/linux/drivers/gpu/drm/vkms/vkms_composer.c
/openbmc/linux/drivers/input/joystick/xpad.c
/openbmc/linux/drivers/input/misc/iqs7222.c
/openbmc/linux/drivers/input/serio/i8042-acpipnpio.h
/openbmc/linux/drivers/input/touchscreen/ads7846.c
/openbmc/linux/drivers/nvme/host/core.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/fs/fuse/dir.c
/openbmc/linux/fs/namei.c
server/ksmbd_work.c
server/ksmbd_work.h
server/oplock.c
server/oplock.h
/openbmc/linux/include/linux/fs.h
/openbmc/linux/include/linux/io_uring_types.h
/openbmc/linux/io_uring/io_uring.c
/openbmc/linux/io_uring/io_uring.h
/openbmc/linux/io_uring/kbuf.c
/openbmc/linux/io_uring/kbuf.h
/openbmc/linux/io_uring/rsrc.c
/openbmc/linux/mm/nommu.c
/openbmc/linux/net/core/dev.c
/openbmc/linux/net/mptcp/protocol.h
/openbmc/linux/net/sctp/stream.c
/openbmc/linux/sound/soc/codecs/tas2764.c
/openbmc/linux/sound/soc/codecs/tas2764.h
/openbmc/linux/sound/soc/codecs/tas2770.c
d3ca799217-Sep-2024 Pali Rohár <pali@kernel.org>

cifs: Treat unhandled directory name surrogate reparse points as mount directory nodes

[ Upstream commit b587fd128660d48cd2122f870f720ff8e2b4abb3 ]

If the reparse point was not handled (indicated b

cifs: Treat unhandled directory name surrogate reparse points as mount directory nodes

[ Upstream commit b587fd128660d48cd2122f870f720ff8e2b4abb3 ]

If the reparse point was not handled (indicated by the -EOPNOTSUPP from
ops->parse_reparse_point() call) but reparse tag is of type name surrogate
directory type, then treat is as a new mount point.

Name surrogate reparse point represents another named entity in the system.

From SMB client point of view, this another entity is resolved on the SMB
server, and server serves its content automatically. Therefore from Linux
client point of view, this name surrogate reparse point of directory type
crosses mount point.

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/arch/alpha/include/asm/elf.h
/openbmc/linux/arch/alpha/include/asm/pgtable.h
/openbmc/linux/arch/alpha/include/asm/processor.h
/openbmc/linux/arch/alpha/kernel/osf_sys.c
/openbmc/linux/drivers/hid/Kconfig
/openbmc/linux/drivers/hid/hid-apple.c
/openbmc/linux/drivers/hid/hid-ids.h
/openbmc/linux/drivers/hid/hid-quirks.c
/openbmc/linux/drivers/hid/hid-topre.c
/openbmc/linux/drivers/hid/intel-ish-hid/ipc/ipc.c
/openbmc/linux/drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h
/openbmc/linux/drivers/net/wwan/mhi_wwan_mbim.c
/openbmc/linux/drivers/nvme/host/apple.c
/openbmc/linux/drivers/nvme/host/pci.c
/openbmc/linux/drivers/nvme/host/tcp.c
/openbmc/linux/drivers/nvme/target/rdma.c
/openbmc/linux/drivers/platform/x86/thinkpad_acpi.c
/openbmc/linux/drivers/s390/cio/chp.c
/openbmc/linux/drivers/thermal/cpufreq_cooling.c
/openbmc/linux/drivers/usb/phy/phy-generic.c
/openbmc/linux/drivers/xen/swiotlb-xen.c
client/inode.c
common/smbfsctl.h
/openbmc/linux/fs/vboxsf/super.c
/openbmc/linux/include/linux/nvme-tcp.h
/openbmc/linux/io_uring/io-wq.c
/openbmc/linux/kernel/sched/core.c
/openbmc/linux/net/bluetooth/l2cap_core.c
/openbmc/linux/sound/pci/hda/patch_realtek.c
/openbmc/linux/sound/soc/codecs/arizona.c
/openbmc/linux/sound/soc/codecs/madera.c
/openbmc/linux/sound/soc/codecs/wm5110.c
/openbmc/linux/sound/soc/generic/simple-card-utils.c
/openbmc/linux/sound/soc/sh/rcar/core.c
/openbmc/linux/sound/soc/sh/rcar/rsnd.h
/openbmc/linux/sound/soc/sh/rcar/src.c
/openbmc/linux/sound/soc/sh/rcar/ssi.c
/openbmc/linux/sound/soc/sof/amd/acp-ipc.c
/openbmc/linux/sound/soc/sof/intel/hda-codec.c
/openbmc/linux/tools/objtool/check.c
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
dd33c1a305-Feb-2025 Paulo Alcantara <pc@manguebit.com>

smb: client: fix noisy when tree connecting to DFS interlink targets

[ Upstream commit 773dc23ff81838b6f74d7fabba5a441cc6a93982 ]

When the client attempts to tree connect to a domain-based DFS
name

smb: client: fix noisy when tree connecting to DFS interlink targets

[ Upstream commit 773dc23ff81838b6f74d7fabba5a441cc6a93982 ]

When the client attempts to tree connect to a domain-based DFS
namespace from a DFS interlink target, the server will return
STATUS_BAD_NETWORK_NAME and the following will appear on dmesg:

CIFS: VFS: BAD_NETWORK_NAME: \\dom\dfs

Since a DFS share might contain several DFS interlinks and they expire
after 10 minutes, the above message might end up being flooded on
dmesg when mounting or accessing them.

Print this only once per share.

Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>

show more ...


/openbmc/linux/Documentation/timers/no_hz.rst
/openbmc/linux/Makefile
/openbmc/linux/arch/arm64/include/asm/hugetlb.h
/openbmc/linux/arch/arm64/mm/hugetlbpage.c
/openbmc/linux/arch/loongarch/include/asm/hugetlb.h
/openbmc/linux/arch/mips/include/asm/hugetlb.h
/openbmc/linux/arch/parisc/include/asm/hugetlb.h
/openbmc/linux/arch/parisc/mm/hugetlbpage.c
/openbmc/linux/arch/powerpc/include/asm/hugetlb.h
/openbmc/linux/arch/powerpc/kvm/e500_mmu_host.c
/openbmc/linux/arch/riscv/include/asm/csr.h
/openbmc/linux/arch/riscv/include/asm/hugetlb.h
/openbmc/linux/arch/riscv/kernel/cpufeature.c
/openbmc/linux/arch/riscv/mm/hugetlbpage.c
/openbmc/linux/arch/s390/include/asm/hugetlb.h
/openbmc/linux/arch/s390/kernel/traps.c
/openbmc/linux/arch/s390/mm/hugetlbpage.c
/openbmc/linux/arch/sparc/include/asm/hugetlb.h
/openbmc/linux/arch/sparc/mm/hugetlbpage.c
/openbmc/linux/arch/x86/boot/compressed/acpi.c
/openbmc/linux/arch/x86/boot/compressed/cmdline.c
/openbmc/linux/arch/x86/boot/compressed/ident_map_64.c
/openbmc/linux/arch/x86/boot/compressed/kaslr.c
/openbmc/linux/arch/x86/boot/compressed/mem.c
/openbmc/linux/arch/x86/boot/compressed/misc.c
/openbmc/linux/arch/x86/boot/compressed/misc.h
/openbmc/linux/arch/x86/boot/compressed/pgtable_64.c
/openbmc/linux/arch/x86/boot/compressed/sev.c
/openbmc/linux/arch/x86/include/asm/boot.h
/openbmc/linux/arch/x86/kernel/cpu/cacheinfo.c
/openbmc/linux/arch/x86/kernel/cpu/intel.c
/openbmc/linux/arch/x86/kernel/cpu/mshyperv.c
/openbmc/linux/arch/x86/kernel/cpu/sgx/ioctl.c
/openbmc/linux/arch/x86/kvm/cpuid.c
/openbmc/linux/arch/x86/kvm/svm/svm.c
/openbmc/linux/arch/x86/kvm/svm/svm.h
/openbmc/linux/arch/x86/mm/init.c
/openbmc/linux/block/partitions/efi.c
/openbmc/linux/drivers/acpi/resource.c
/openbmc/linux/drivers/base/core.c
/openbmc/linux/drivers/block/ublk_drv.c
/openbmc/linux/drivers/block/zram/zram_drv.c
/openbmc/linux/drivers/bluetooth/btusb.c
/openbmc/linux/drivers/bus/mhi/host/pci_generic.c
/openbmc/linux/drivers/cdx/cdx.c
/openbmc/linux/drivers/char/misc.c
/openbmc/linux/drivers/clocksource/i8253.c
/openbmc/linux/drivers/firmware/efi/libstub/x86-stub.c
/openbmc/linux/drivers/firmware/efi/libstub/x86-stub.h
/openbmc/linux/drivers/firmware/iscsi_ibft.c
/openbmc/linux/drivers/gpio/gpio-aggregator.c
/openbmc/linux/drivers/gpio/gpio-rcar.c
/openbmc/linux/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
/openbmc/linux/drivers/gpu/drm/hyperv/hyperv_drm_drv.c
/openbmc/linux/drivers/gpu/drm/i915/display/icl_dsi.c
/openbmc/linux/drivers/gpu/drm/radeon/r300.c
/openbmc/linux/drivers/gpu/drm/radeon/radeon_asic.h
/openbmc/linux/drivers/gpu/drm/radeon/rs400.c
/openbmc/linux/drivers/gpu/drm/scheduler/gpu_scheduler_trace.h
/openbmc/linux/drivers/hid/hid-google-hammer.c
/openbmc/linux/drivers/hid/hid-steam.c
/openbmc/linux/drivers/hid/intel-ish-hid/ishtp-hid.c
/openbmc/linux/drivers/hv/vmbus_drv.c
/openbmc/linux/drivers/hwmon/ad7314.c
/openbmc/linux/drivers/hwmon/ntc_thermistor.c
/openbmc/linux/drivers/hwmon/peci/dimmtemp.c
/openbmc/linux/drivers/hwmon/pmbus/pmbus.c
/openbmc/linux/drivers/hwmon/xgene-hwmon.c
/openbmc/linux/drivers/hwtracing/intel_th/pci.c
/openbmc/linux/drivers/iio/adc/at91-sama5d2_adc.c
/openbmc/linux/drivers/iio/dac/ad3552r.c
/openbmc/linux/drivers/iio/filter/admv8818.c
/openbmc/linux/drivers/misc/cardreader/rtsx_usb.c
/openbmc/linux/drivers/misc/eeprom/digsy_mtc_eeprom.c
/openbmc/linux/drivers/misc/mei/hw-me-regs.h
/openbmc/linux/drivers/misc/mei/pci-me.c
/openbmc/linux/drivers/net/bonding/bond_options.c
/openbmc/linux/drivers/net/caif/caif_virtio.c
/openbmc/linux/drivers/net/dsa/mt7530.c
/openbmc/linux/drivers/net/dsa/mv88e6xxx/chip.c
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/bnxt.c
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.h
/openbmc/linux/drivers/net/ethernet/emulex/benet/be.h
/openbmc/linux/drivers/net/ethernet/emulex/benet/be_cmds.c
/openbmc/linux/drivers/net/ethernet/emulex/benet/be_main.c
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c
/openbmc/linux/drivers/net/ethernet/intel/ice/ice_arfs.c
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/devlink.c
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/bridge.c
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/lag.h
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.c
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/fs_chains.c
/openbmc/linux/drivers/net/ipa/data/ipa_data-v4.7.c
/openbmc/linux/drivers/net/mctp/mctp-i2c.c
/openbmc/linux/drivers/net/ppp/ppp_generic.c
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/iwl-drv.c
/openbmc/linux/drivers/nvme/host/fc.c
/openbmc/linux/drivers/nvme/target/tcp.c
/openbmc/linux/drivers/pinctrl/bcm/pinctrl-bcm281xx.c
/openbmc/linux/drivers/platform/x86/intel/pmc/core.c
/openbmc/linux/drivers/platform/x86/thinkpad_acpi.c
/openbmc/linux/drivers/powercap/powercap_sys.c
/openbmc/linux/drivers/rapidio/devices/rio_mport_cdev.c
/openbmc/linux/drivers/rapidio/rio-scan.c
/openbmc/linux/drivers/scsi/qla1280.c
/openbmc/linux/drivers/scsi/scsi_scan.c
/openbmc/linux/drivers/slimbus/messaging.c
/openbmc/linux/drivers/spi/spi-mxs.c
/openbmc/linux/drivers/ufs/core/ufshcd.c
/openbmc/linux/drivers/usb/atm/cxacru.c
/openbmc/linux/drivers/usb/core/hub.c
/openbmc/linux/drivers/usb/core/quirks.c
/openbmc/linux/drivers/usb/dwc3/core.c
/openbmc/linux/drivers/usb/dwc3/core.h
/openbmc/linux/drivers/usb/dwc3/drd.c
/openbmc/linux/drivers/usb/dwc3/gadget.c
/openbmc/linux/drivers/usb/gadget/composite.c
/openbmc/linux/drivers/usb/gadget/function/u_ether.c
/openbmc/linux/drivers/usb/host/xhci-mem.c
/openbmc/linux/drivers/usb/host/xhci-pci.c
/openbmc/linux/drivers/usb/host/xhci.h
/openbmc/linux/drivers/usb/renesas_usbhs/common.c
/openbmc/linux/drivers/usb/renesas_usbhs/mod_gadget.c
/openbmc/linux/drivers/usb/typec/tcpm/tcpci_rt1711h.c
/openbmc/linux/drivers/usb/typec/ucsi/ucsi.c
/openbmc/linux/drivers/video/fbdev/hyperv_fb.c
/openbmc/linux/drivers/virt/acrn/hsm.c
/openbmc/linux/fs/exfat/balloc.c
/openbmc/linux/fs/exfat/exfat_fs.h
/openbmc/linux/fs/exfat/fatent.c
/openbmc/linux/fs/nfs/file.c
/openbmc/linux/fs/proc/base.c
/openbmc/linux/fs/select.c
client/smb2pdu.c
/openbmc/linux/include/asm-generic/hugetlb.h
/openbmc/linux/include/linux/compaction.h
/openbmc/linux/include/linux/hugetlb.h
/openbmc/linux/include/linux/i8253.h
/openbmc/linux/include/linux/sched.h
/openbmc/linux/include/net/bluetooth/hci_core.h
/openbmc/linux/kernel/bpf/ringbuf.c
/openbmc/linux/kernel/events/core.c
/openbmc/linux/kernel/events/uprobes.c
/openbmc/linux/kernel/sched/core.c
/openbmc/linux/kernel/sched/debug.c
/openbmc/linux/kernel/sched/fair.c
/openbmc/linux/kernel/sys.c
/openbmc/linux/kernel/time/hrtimer.c
/openbmc/linux/kernel/trace/trace_probe.h
/openbmc/linux/mm/compaction.c
/openbmc/linux/mm/hugetlb.c
/openbmc/linux/mm/kmsan/hooks.c
/openbmc/linux/mm/memory.c
/openbmc/linux/mm/page_alloc.c
/openbmc/linux/mm/vmalloc.c
/openbmc/linux/net/8021q/vlan.c
/openbmc/linux/net/bluetooth/hci_core.c
/openbmc/linux/net/bluetooth/hci_event.c
/openbmc/linux/net/bluetooth/iso.c
/openbmc/linux/net/bluetooth/l2cap_core.c
/openbmc/linux/net/bluetooth/mgmt.c
/openbmc/linux/net/bluetooth/rfcomm/core.c
/openbmc/linux/net/bluetooth/sco.c
/openbmc/linux/net/core/netpoll.c
/openbmc/linux/net/ipv4/tcp.c
/openbmc/linux/net/ipv4/tcp_offload.c
/openbmc/linux/net/ipv4/udp_offload.c
/openbmc/linux/net/ipv6/addrconf.c
/openbmc/linux/net/ipv6/ila/ila_lwt.c
/openbmc/linux/net/llc/llc_s_ac.c
/openbmc/linux/net/mptcp/pm_netlink.c
/openbmc/linux/net/netfilter/ipvs/ip_vs_ctl.c
/openbmc/linux/net/netfilter/nf_conncount.c
/openbmc/linux/net/netfilter/nft_ct.c
/openbmc/linux/net/netfilter/nft_exthdr.c
/openbmc/linux/net/openvswitch/flow_netlink.c
/openbmc/linux/net/sched/sch_api.c
/openbmc/linux/net/sched/sch_fifo.c
/openbmc/linux/net/sched/sch_gred.c
/openbmc/linux/net/switchdev/switchdev.c
/openbmc/linux/net/wireless/core.c
/openbmc/linux/net/wireless/nl80211.c
/openbmc/linux/net/wireless/reg.c
/openbmc/linux/security/integrity/ima/ima_main.c
/openbmc/linux/security/integrity/integrity.h
/openbmc/linux/sound/core/seq/seq_clientmgr.c
/openbmc/linux/sound/pci/hda/Kconfig
/openbmc/linux/sound/pci/hda/hda_intel.c
/openbmc/linux/sound/pci/hda/patch_realtek.c
/openbmc/linux/sound/usb/usx2y/usbusx2y.c
/openbmc/linux/sound/usb/usx2y/usbusx2y.h
/openbmc/linux/sound/usb/usx2y/usbusx2yaudio.c
/openbmc/linux/usr/include/Makefile
8994f0ce27-Feb-2025 Namjae Jeon <linkinjeon@kernel.org>

ksmbd: fix bug on trap in smb2_lock

commit e26e2d2e15daf1ab33e0135caf2304a0cfa2744b upstream.

If lock count is greater than 1, flags could be old value.
It should be checked with flags of smb_lock,

ksmbd: fix bug on trap in smb2_lock

commit e26e2d2e15daf1ab33e0135caf2304a0cfa2744b upstream.

If lock count is greater than 1, flags could be old value.
It should be checked with flags of smb_lock, not flags.
It will cause bug-on trap from locks_free_lock in error handling
routine.

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 ...

12345678910>>...23