This is the start of the stable review cycle for the 6.1.71 release. There are 100 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Fri, 05 Jan 2024 16:47:49 +0000. Anything received after that time might be too late. The whole patch series can be found in one patch at: https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.1.71-rc1.gz or in the git tree and branch at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.1.y and the diffstat can be found below. thanks, greg k-h ------------- Pseudo-Shortlog of commits: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Linux 6.1.71-rc1 Andrii Nakryiko <andrii@xxxxxxxxxx> tracing/kprobes: Fix symbol counting logic by looking at modules as well Jiri Olsa <jolsa@xxxxxxxxxx> kallsyms: Make module_kallsyms_on_each_symbol generally available Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> device property: Allow const parameter to dev_fwnode() Geert Uytterhoeven <geert+renesas@xxxxxxxxx> spi: Constify spi parameters of chip select APIs NeilBrown <neilb@xxxxxxx> NFSD: fix possible oops when nfsd/pool_stats is closed. Steven Rostedt (Google) <rostedt@xxxxxxxxxxx> ring-buffer: Fix slowpath of interrupted event Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> netfilter: nf_tables: skip set commit for deleted/destroyed sets Steven Rostedt (Google) <rostedt@xxxxxxxxxxx> ring-buffer: Remove useless update to write_stamp in rb_try_to_discard() Steven Rostedt (Google) <rostedt@xxxxxxxxxxx> tracing: Fix blocked reader of snapshot buffer Steven Rostedt (Google) <rostedt@xxxxxxxxxxx> ring-buffer: Fix wake ups when buffer_percent is set to 100 Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> mm/memory-failure: check the mapcount of the precise page Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> mm/memory-failure: cast index to loff_t before shifting it Charan Teja Kalla <quic_charante@xxxxxxxxxxx> mm: migrate high-order folios in swap cache correctly Baokun Li <libaokun1@xxxxxxxxxx> mm/filemap: avoid buffered read/write race to read inconsistent data Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx> platform/x86: p2sb: Allow p2sb_bar() calls during PCI device probe Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: fix slab-out-of-bounds in smb_strndup_from_utf16() Christoph Hellwig <hch@xxxxxx> block: renumber QUEUE_FLAG_HW_WC Louis Chauvet <louis.chauvet@xxxxxxxxxxx> spi: atmel: Fix clock issue when using devices with different polarities Amit Kumar Mahapatra <amit.kumar-mahapatra@xxxxxxx> spi: Add APIs in spi core to set/get spi->chip_select and spi->cs_gpiod Tudor Ambarus <tudor.ambarus@xxxxxxxxxxxxx> spi: Reintroduce spi_set_cs_timing() Helge Deller <deller@xxxxxx> linux/export: Ensure natural alignment of kcrctab array NeilBrown <neilb@xxxxxxx> nfsd: call nfsd_last_thread() before final nfsd_put() NeilBrown <neilb@xxxxxxx> nfsd: separate nfsd_last_thread() from nfsd_put() Nuno Sa <nuno.sa@xxxxxxxxxx> iio: imu: adis16475: add spi_device_id table Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> spi: Introduce spi_get_device_match_data() helper Dan Carpenter <dan.carpenter@xxxxxxxxxx> usb: fotg210-hcd: delete an incorrect bounds test Tony Lindgren <tony@xxxxxxxxxxx> ARM: dts: Fix occasional boot hang for am3 usb Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: fix wrong allocation size update in smb2_open() Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: avoid duplicate opinfo_put() call on error of smb21_lease_break_ack() Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: lazy v2 lease break on smb2_write() Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: send v2 lease break notification for directory Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: downgrade RWH lease caching state to RH for directory Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: set v2 lease capability Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: set epoch in create context v2 lease Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: don't update ->op_state as OPLOCK_STATE_NONE on error Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: move setting SMB2_FLAGS_ASYNC_COMMAND and AsyncId Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: release interim response after sending status pending response Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: move oplock handling after unlock parent dir Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: separately allocate ci per dentry Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: fix possible deadlock in smb2_open Zongmin Zhou <zhouzongmin@xxxxxxxxxx> ksmbd: prevent memory leak on error return Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: fix kernel-doc comment of ksmbd_vfs_kern_path_locked() Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: no need to wait for binded connection termination at logoff Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: add support for surrogate pair conversion Kangjing Huang <huangkangjing@xxxxxxxxx> ksmbd: fix missing RDMA-capable flag for IPoIB device in ksmbd_rdma_capable_netdev() Marios Makassikis <mmakassikis@xxxxxxxxxx> ksmbd: fix recursive locking in vfs helpers Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: fix kernel-doc comment of ksmbd_vfs_setxattr() Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: reorganize ksmbd_iov_pin_rsp() Cheng-Han Wu <hank20010209@xxxxxxxxx> ksmbd: Remove unused field in ksmbd_user struct Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: fix potential double free on smb2_read_pipe() error path Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: fix Null pointer dereferences in ksmbd_update_fstate() Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: fix wrong error response status by using set_smb2_rsp_status() Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: fix race condition between tree conn lookup and disconnect Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: fix race condition from parallel smb2 lock requests Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: fix race condition from parallel smb2 logoff requests Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: fix race condition with fp Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: check iov vector index in ksmbd_conn_write() Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: return invalid parameter error response if smb2 request is invalid Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: fix passing freed memory 'aux_payload_buf' Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: remove unneeded mark_inode_dirty in set_info_sec() Steve French <stfrench@xxxxxxxxxxxxx> ksmbd: remove experimental warning Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: add missing calling smb2_set_err_rsp() on error Yang Li <yang.lee@xxxxxxxxxxxxxxxxx> ksmbd: Fix one kernel-doc comment Atte Heikkilä <atteh.mailbox@xxxxxxxxx> ksmbd: fix `force create mode' and `force directory mode' Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: fix wrong interim response on compound Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: add support for read compound Yang Yingliang <yangyingliang@xxxxxxxxxx> ksmbd: switch to use kmemdup_nul() helper Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: check if a mount point is crossed during path lookup Wang Ming <machel@xxxxxxxx> ksmbd: Fix unsigned expression compared with zero Gustavo A. R. Silva <gustavoars@xxxxxxxxxx> ksmbd: Replace one-element array with flexible-array member Gustavo A. R. Silva <gustavoars@xxxxxxxxxx> ksmbd: Use struct_size() helper in ksmbd_negotiate_smb_dialect() Lu Hongfei <luhongfei@xxxxxxxx> ksmbd: Replace the ternary conditional operator with min() Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: use kvzalloc instead of kvmalloc Lu Hongfei <luhongfei@xxxxxxxx> ksmbd: Change the return value of ksmbd_vfs_query_maximal_access to void Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: return a literal instead of 'err' in ksmbd_vfs_kern_path_locked() Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: use kzalloc() instead of __GFP_ZERO Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: remove unused ksmbd_tree_conn_share function Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: add mnt_want_write to ksmbd vfs functions Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: fix posix_acls and acls dereferencing possible ERR_PTR() Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: call putname after using the last component Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: fix uninitialized pointer read in smb2_create_link() Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: fix uninitialized pointer read in ksmbd_vfs_rename() Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: fix racy issue from using ->d_parent and ->d_name Al Viro <viro@xxxxxxxxxxxxxxxxxx> fs: introduce lock_rename_child() helper David Disseldorp <ddiss@xxxxxxx> ksmbd: remove unused compression negotiate ctx packing David Disseldorp <ddiss@xxxxxxx> ksmbd: avoid duplicate negotiate ctx offset increments David Disseldorp <ddiss@xxxxxxx> ksmbd: set NegotiateContextCount once instead of every inc Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: delete asynchronous work from list Tom Rix <trix@xxxxxxxxxx> ksmbd: remove unused is_char_allowed function Jiapeng Chong <jiapeng.chong@xxxxxxxxxxxxxxxxx> ksmbd: Fix parameter name and comment mismatch Colin Ian King <colin.i.king@xxxxxxxxx> ksmbd: Fix spelling mistake "excceed" -> "exceeded" Steve French <stfrench@xxxxxxxxxxxxx> ksmbd: update Kconfig to note Kerberos support and fix indentation Dawei Li <set_pte_at@xxxxxxxxxxx> ksmbd: Remove duplicated codes Dawei Li <set_pte_at@xxxxxxxxxxx> ksmbd: fix typo, syncronous->synchronous Dawei Li <set_pte_at@xxxxxxxxxxx> ksmbd: Implements sess->rpc_handle_list as xarray ye xingchen <ye.xingchen@xxxxxxxxxx> ksmbd: Convert to use sysfs_emit()/sysfs_emit_at() APIs Marios Makassikis <mmakassikis@xxxxxxxxxx> ksmbd: Fix resource leak in smb2_lock() Jeff Layton <jlayton@xxxxxxxxxx> ksmbd: use F_SETLK when unlocking a file Namjae Jeon <linkinjeon@xxxxxxxxxx> ksmbd: set SMB2_SESSION_FLAG_ENCRYPT_DATA when enforcing data encryption for this share Gustavo A. R. Silva <gustavoars@xxxxxxxxxx> ksmbd: replace one-element arrays with flexible-array members ------------- Diffstat: Makefile | 4 +- arch/arm/boot/dts/am33xx.dtsi | 1 + drivers/base/property.c | 11 +- drivers/iio/imu/adis16475.c | 129 +++-- drivers/platform/x86/p2sb.c | 178 +++++-- drivers/spi/spi-atmel.c | 82 ++- drivers/spi/spi.c | 92 +++- drivers/usb/host/fotg210-hcd.c | 3 - fs/namei.c | 125 ++++- fs/nfsd/nfsctl.c | 9 +- fs/nfsd/nfsd.h | 8 +- fs/nfsd/nfssvc.c | 57 +- fs/smb/common/smb2pdu.h | 1 + fs/smb/server/Kconfig | 10 +- fs/smb/server/asn1.c | 33 +- fs/smb/server/auth.c | 11 +- fs/smb/server/connection.c | 74 +-- fs/smb/server/connection.h | 2 +- fs/smb/server/ksmbd_netlink.h | 4 +- fs/smb/server/ksmbd_work.c | 100 +++- fs/smb/server/ksmbd_work.h | 36 +- fs/smb/server/mgmt/share_config.h | 29 +- fs/smb/server/mgmt/tree_connect.c | 53 +- fs/smb/server/mgmt/tree_connect.h | 14 +- fs/smb/server/mgmt/user_config.h | 1 - fs/smb/server/mgmt/user_session.c | 38 +- fs/smb/server/mgmt/user_session.h | 3 +- fs/smb/server/oplock.c | 147 ++++-- fs/smb/server/oplock.h | 8 +- fs/smb/server/server.c | 36 +- fs/smb/server/smb2misc.c | 19 +- fs/smb/server/smb2ops.c | 19 +- fs/smb/server/smb2pdu.c | 1033 ++++++++++++++++--------------------- fs/smb/server/smb2pdu.h | 3 +- fs/smb/server/smb_common.c | 19 +- fs/smb/server/smb_common.h | 14 +- fs/smb/server/smbacl.c | 20 +- fs/smb/server/smbacl.h | 2 +- fs/smb/server/transport_ipc.c | 4 +- fs/smb/server/transport_rdma.c | 44 +- fs/smb/server/unicode.c | 191 ++++--- fs/smb/server/vfs.c | 638 ++++++++++++----------- fs/smb/server/vfs.h | 52 +- fs/smb/server/vfs_cache.c | 63 ++- fs/smb/server/vfs_cache.h | 18 +- include/linux/blkdev.h | 2 +- include/linux/export-internal.h | 1 + include/linux/module.h | 9 + include/linux/namei.h | 7 + include/linux/property.h | 7 +- include/linux/spi/spi.h | 23 + kernel/module/kallsyms.c | 2 - kernel/trace/ring_buffer.c | 140 ++--- kernel/trace/trace.c | 20 +- kernel/trace/trace_kprobe.c | 25 +- mm/filemap.c | 9 + mm/memory-failure.c | 8 +- mm/migrate.c | 9 +- net/netfilter/nf_tables_api.c | 2 +- 59 files changed, 2139 insertions(+), 1563 deletions(-)