Linux 7.2.15
Greg Kroah-Hartman
maintainer---------------------------
Note, this is the LAST 7.2.y kernel release. After this one the 7.2.y kernel tree is end-of-life. Please move to 7.3.y at this time.
And yes, you aren't imagining things, this one went "end-of-life" a bit sooner than normal. But based on the release cycle at the moment, and the number of pending cc: stable patches in the queue, I figured it was better this way so we can focus on the latest 7.3.y release as it would require us to keep 8 different branches alive at the same moment, a taxing task under the best of times.
---------------------------
I'm announcing the release of the 7.2.15 kernel.
All users of the 7.2 kernel series must upgrade.
The updated 7.2.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-7.2.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 drivers/iio/light/hid-sensor-als.c | 22 +- drivers/platform/cznic/turris-omnia-mcu-base.c | 1 fs/exec.c | 11 - fs/smb/server/server.c | 5 fs/smb/smbdirect/accept.c | 225 +++++++++++++++++-------- fs/smb/smbdirect/connection.c | 12 - fs/smb/smbdirect/internal.h | 2 fs/smb/smbdirect/listen.c | 137 ++++++++++++++- fs/smb/smbdirect/socket.c | 113 +++++++++++- fs/smb/smbdirect/socket.h | 42 ++++ kernel/fork.c | 4 net/bluetooth/hci_event.c | 9 + net/core/skbuff.c | 2 scripts/link-vmlinux.sh | 20 ++ 15 files changed, 498 insertions(+), 109 deletions(-)
André Draszik (1):
kbuild: link-vmlinux.sh: improve detection of third pass requirement
Christian Brauner (3):
exec: cancel io_uring requests before de_thread()
fork: move the coredump and exec checks into create_io_thread()
fork: don't create io threads once PF_POSTCOREDUMP is set
Daniel Schaefer (1):
iio: hid-sensor: als: scale each channel individually
Greg Kroah-Hartman (1):
Linux 7.2.15
Namjae Jeon (1):
ksmbd: wait for negotiation before receiving another PDU
Radek Podgorny (1):
Bluetooth: forget a peer's RPA once it advertises its identity address
Ridham Khurana (1):
platform: cznic: turris-omnia-mcu: Add missing MODULE_DEVICE_TABLE()
Stefan Metzmacher (3):
smb: smbdirect: don't wait for RDMA_CM_EVENT_DISCONNECTED in smbdirect_socket_destroy_sync()
smb: smbdirect: release failed pending sockets of a listener
smb: smbdirect: don't hand out already failed sockets in smbdirect_socket_accept()
Zizhen Liu (1):
net: skbuff: propagate shared-frag marker in skb_zerocopy()
Greg Kroah-Hartman
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 7 PATCHLEVEL = 2 -SUBLEVEL = 14 +SUBLEVEL = 15 EXTRAVERSION = NAME = Baby Opossum Posse
drivers/iio/light/hid-sensor-als.c +12 -10
@@ -33,9 +33,9 @@ struct als_state {u32 illum[CHANNEL_SCAN_INDEX_MAX ];aligned_s64 timestamp; } scan; -int scale_pre_decml; -int scale_post_decml; -int scale_precision; +int scale_pre_decml[CHANNEL_SCAN_INDEX_MAX ]; +int scale_post_decml[CHANNEL_SCAN_INDEX_MAX ]; +int scale_precision[CHANNEL_SCAN_INDEX_MAX ];int value_offset;int num_channels;s64 timestamp;
@@ -175,9 +175,11 @@ static int als_read_raw(struct iio_dev *indio_dev, ret_type =IIO_VAL_INT ;break ;case IIO_CHAN_INFO_SCALE : - *val = als_state->scale_pre_decml; - *val2 = als_state->scale_post_decml; - ret_type = als_state->scale_precision; +if (chan->scan_index >=CHANNEL_SCAN_INDEX_MAX ) +return -EINVAL ; + *val = als_state->scale_pre_decml[chan->scan_index]; + *val2 = als_state->scale_post_decml[chan->scan_index]; + ret_type = als_state->scale_precision[chan->scan_index];break ;case IIO_CHAN_INFO_OFFSET : *val = als_state->value_offset;
@@ -331,6 +333,10 @@ static int als_parse_report(struct platform_device *pdev, }; ++index; + st->scale_precision[i] =hid_sensor_format_scale (usage_id, + &st->als[i], &st->scale_pre_decml[i], + &st->scale_post_decml[i]); +dev_dbg (&pdev->dev,"als %x:%x\n" , st->als[i].index, st->als[i].report_id); }
@@ -340,10 +346,6 @@ static int als_parse_report(struct platform_device *pdev,if (index) ret =0 ; - st->scale_precision =hid_sensor_format_scale (usage_id, - &st->als[CHANNEL_SCAN_INDEX_INTENSITY ], - &st->scale_pre_decml, &st->scale_post_decml); -return ret; }
drivers/platform/cznic/turris-omnia-mcu-base.c +1 -0
@@ -403,6 +403,7 @@ static const struct of_device_id of_omnia_mcu_match[] = { { .compatible = "cznic,turris-omnia-mcu" }, {} }; +MODULE_DEVICE_TABLE (of, of_omnia_mcu_match);static struct i2c_driver omnia_mcu_driver = { .probe = omnia_mcu_probe,
fs/exec.c +7 -4
@@ -1145,6 +1145,13 @@ int begin_new_exec(struct linux_binprm * bprm)*/ bprm->point_of_no_return = true; +/* +* Cancel any io_uring activity across execve. This runs task work +* that may still create an io-wq worker, so do it while de_thread() +* can still zap it. +*/ +io_uring_task_cancel (); +/* Make this the only thread in the thread group */ retval =de_thread (me);if (retval)
@@ -1161,10 +1168,6 @@ int begin_new_exec(struct linux_binprm * bprm)/* see the comment in check_unsafe_exec() */ current->fs->in_exec =0 ; -/* -* Cancel any io_uring activity across execve -*/ -io_uring_task_cancel ();/* Ensure the files table is not shared. */ retval =unshare_files ();
fs/smb/server/server.c +5 -0
@@ -371,6 +371,7 @@ static void handle_ksmbd_work(struct work_struct *wk)static int queue_ksmbd_work (struct ksmbd_conn *conn) {struct ksmbd_work *work; +bool wait_for_neg =ksmbd_conn_new (conn) ||ksmbd_conn_need_negotiate (conn);int err; err =ksmbd_init_smb_server (conn);
@@ -393,6 +394,10 @@ static int queue_ksmbd_work(struct ksmbd_conn *conn) conn->last_active = jiffies;INIT_WORK (&work->work, handle_ksmbd_work);ksmbd_queue_work (work); +/* Negotiation can change conn->ops, finish it before reading another PDU. */ +if (wait_for_neg) +wait_event (conn->req_running_q, +atomic_read (&conn->req_running) ==0 );return 0 ; }
fs/smb/smbdirect/accept.c +161 -64
348 lines not on this page · raw message
fs/smb/smbdirect/connection.c +6 -6
@@ -83,9 +83,9 @@ static int smbdirect_connection_rdma_event_handler(struct rdma_cm_id *id,* smbdirect_socket_schedule_cleanup[_status]() => * smbdirect_socket_cleanup_work(). * -* As otherwise we'd set SMBDIRECT_SOCKET_DISCONNECTING, -* but never ever get RDMA_CM_EVENT_DISCONNECTED and -* never reach SMBDIRECT_SOCKET_DISCONNECTED. +* As otherwise we'd set SMBDIRECT_SOCKET_DISCONNECTING +* and call rdma_disconnect(), but never ever get +* RDMA_CM_EVENT_DISCONNECTED. */ if (event->event ==RDMA_CM_EVENT_DEVICE_REMOVAL ) smbdirect_socket_schedule_cleanup_status(sc,
@@ -113,9 +113,9 @@ static int smbdirect_connection_rdma_event_handler(struct rdma_cm_id *id,* smbdirect_socket_schedule_cleanup_status() => * smbdirect_socket_cleanup_work(). * -* As otherwise we'd set SMBDIRECT_SOCKET_DISCONNECTING, -* but never ever get RDMA_CM_EVENT_DISCONNECTED and -* never reach SMBDIRECT_SOCKET_DISCONNECTED. +* As otherwise we'd set SMBDIRECT_SOCKET_DISCONNECTING +* and call rdma_disconnect(), but never ever get +* RDMA_CM_EVENT_DISCONNECTED. * * This is also a normal disconnect so * SMBDIRECT_LOG_INFO should be good enough
fs/smb/smbdirect/internal.h +2 -0
@@ -74,6 +74,8 @@ void __smbdirect_socket_schedule_cleanup(struct smbdirect_socket *sc,void smbdirect_socket_destroy_sync (struct smbdirect_socket *sc); +void smbdirect_listen_orphan_socket (struct smbdirect_socket *sc); + int smbdirect_socket_wait_for_credits(struct smbdirect_socket *sc, enum smbdirect_socket_status expected_status, int unexpected_errno,
fs/smb/smbdirect/listen.c +126 -11
180 lines not on this page · raw message
fs/smb/smbdirect/socket.c +101 -12
173 lines not on this page · raw message
fs/smb/smbdirect/socket.h +42 -0
67 lines not on this page · raw message
kernel/fork.c +4 -0
@@ -2689,6 +2689,10 @@ struct task_struct *create_io_thread(int (*fn)(void *), void *arg, int node) .user_worker = 1, }; +/* A creator past its fatal signal or its coredump point gets no thread. */ +if (current->flags & (PF_SIGNALED |PF_POSTCOREDUMP )) +return ERR_PTR (-EINTR ); +return copy_process (NULL ,0 , node, &args); }
net/bluetooth/hci_event.c +9 -0
@@ -6261,6 +6261,15 @@ static void process_adv_report(struct hci_dev *hdev, u8 type, bdaddr_t *bdaddr,if (irk) { bdaddr = &irk->bdaddr; bdaddr_type = irk->addr_type; + }else { +/* The peer is on air with its identity address, so whatever +* RPA is cached for it has been abandoned. Drop it, or +* hci_connect_le() would swap it back in and dial an address +* the peer no longer answers. +*/ + irk =hci_find_irk_by_addr (hdev, bdaddr, bdaddr_type); +if (irk) +bacpy (&irk->rpa,BDADDR_ANY ); } bdaddr_type =ev_bdaddr_type (hdev, bdaddr_type, &bdaddr_resolved);
net/core/skbuff.c +2 -0
@@ -3934,6 +3934,8 @@ skb_zerocopy(struct sk_buff *to, struct sk_buff *from, int len, int hlen) }skb_shinfo (to)->nr_frags = j; +skb_shinfo (to)->flags |=skb_shinfo (from)->flags &SKBFL_SHARED_FRAG ; +return 0 ; }EXPORT_SYMBOL_GPL (skb_zerocopy);
scripts/link-vmlinux.sh +19 -1
@@ -106,6 +106,18 @@ vmlinux_link() ${kallsymso} ${btf_vmlinux_bin_o} ${arch_vmlinux_o} ${ldlibs} } +# Check if kallsymso_prev and kallsymso differ +# If symbol sizes within ${kallsymso} change, any symbols within vmlinux are +# likely to shift, invalidating ${kallsymso}. +# Since file size can remain unchanged even if symbol sizes change, compare the +# actual symbols instead of relying on file size only. +kallsymso_changed() +{ + ${NM} -n "${kallsymso_prev}" > "${kallsymso_prev}.sym" + ${NM} -n "${kallsymso}" > "${kallsymso}.sym" + ! cmp -s "${kallsymso_prev}.sym" "${kallsymso}.sym" +} + # Create ${2}.o file with all symbols from the ${1} object file kallsyms() {
@@ -126,6 +138,7 @@ kallsyms() ${CC} ${NOSTDINC_FLAGS} ${LINUXINCLUDE} ${KBUILD_CPPFLAGS} \ ${KBUILD_AFLAGS} ${KBUILD_AFLAGS_KERNEL} -c -o "${2}.o" "${2}.S" + kallsymso_prev="${kallsymso:-}" kallsymso=${2}.o }
@@ -255,7 +268,12 @@ if is_enabled CONFIG_KALLSYMS; then sysmap_and_kallsyms .tmp_vmlinux2 size2=$(${CONFIG_SHELL} "${srctree}/scripts/file-size.sh" ${kallsymso}) - if [ $size1 -ne $size2 ] || [ -n "${KALLSYMS_EXTRA_PASS}" ]; then + # Due to alignment, file size of the kallsymso object file might remain + # unchanged even if individual symbols within change size. Changed + # symbol sizes can still shift other symbols, though. Therefore, don't + # rely on file size alone. + if [ $size1 -ne $size2 ] || kallsymso_changed || \ + [ -n "${KALLSYMS_EXTRA_PASS}" ]; then vmlinux_link .tmp_vmlinux3 sysmap_and_kallsyms .tmp_vmlinux3 fi