6.6.145-rc1 review
Subsystems (7)
Greg Kroah-Hartman
maintainerPATCH 1249/1266 Bluetooth: hci_sync: annotate data-races around hdev->req_status
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Cen Zhang <[email protected]>
[ Upstream commit b6807cfc195ef99e1ac37b2e1e60df40295daa8c ]
__hci_cmd_sync_sk() sets hdev->req_status under hdev->req_lock:
hdev->req_status = HCI_REQ_PEND;
However, several other functions read or write hdev->req_status without holding any lock:
- hci_send_cmd_sync() reads req_status in hci_cmd_work (workqueue)
- hci_cmd_sync_complete() reads/writes from HCI event completion
- hci_cmd_sync_cancel() / hci_cmd_sync_cancel_sync() read/write
- hci_abort_conn() reads in connection abort path
Since __hci_cmd_sync_sk() runs on hdev->req_workqueue while hci_send_cmd_sync() runs on hdev->workqueue, these are different workqueues that can execute concurrently on different CPUs. The plain C accesses constitute a data race.
Add READ_ONCE()/WRITE_ONCE() annotations on all concurrent accesses to hdev->req_status to prevent potential compiler optimizations that could affect correctness (e.g., load fusing in the wait_event condition or store reordering).
Stable-dep-of: 12917f591cea ("Bluetooth: hci_conn: Fix null ptr deref in hci_abort_conn()")
--- net/bluetooth/hci_core.c | 2 +- net/bluetooth/hci_sync.c | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-)
net/bluetooth/hci_core.c +1 -1
@@ -4060,7 +4060,7 @@ static void hci_send_cmd_sync(struct hcireturn ; } -if (hci_req_status_pend (hdev) && +if (READ_ONCE (hdev->req_status) ==HCI_REQ_PEND && !hci_dev_test_and_set_flag (hdev,HCI_CMD_PENDING )) {kfree_skb (hdev->req_skb); hdev->req_skb =skb_clone (hdev->sent_cmd,GFP_KERNEL );
net/bluetooth/hci_sync.c +10 -10
@@ -25,11 +25,11 @@ static void hci_cmd_sync_complete(struct {bt_dev_dbg (hdev,"result 0x%2.2x" , result); -if (hdev->req_status !=HCI_REQ_PEND ) +if (READ_ONCE (hdev->req_status) !=HCI_REQ_PEND )return ; hdev->req_result = result; - hdev->req_status =HCI_REQ_DONE ; +WRITE_ONCE (hdev->req_status,HCI_REQ_DONE );/* Free the request command so it is not used as response */ kfree_skb (hdev->req_skb);
@@ -168,20 +168,20 @@ struct sk_buff *__hci_cmd_sync_sk(structhci_cmd_sync_add (&req, opcode, plen, param, event, sk); - hdev->req_status =HCI_REQ_PEND ; +WRITE_ONCE (hdev->req_status,HCI_REQ_PEND ); err =hci_req_sync_run (&req);if (err <0 )return ERR_PTR (err); err =wait_event_interruptible_timeout (hdev->req_wait_q, - hdev->req_status !=HCI_REQ_PEND , +READ_ONCE (hdev->req_status) !=HCI_REQ_PEND , timeout);if (err == -ERESTARTSYS )return ERR_PTR (-EINTR ); -switch (hdev->req_status) { +switch (READ_ONCE (hdev->req_status)) {case HCI_REQ_DONE : err = -bt_to_errno (hdev->req_result);break ;
@@ -195,7 +195,7 @@ struct sk_buff *__hci_cmd_sync_sk(structbreak ; } - hdev->req_status =0 ; +WRITE_ONCE (hdev->req_status,0 ); hdev->req_result =0 ; skb = hdev->req_rsp; hdev->req_rsp =NULL ;
@@ -689,9 +689,9 @@ void hci_cmd_sync_cancel(struct hci_dev {bt_dev_dbg (hdev,"err 0x%2.2x" , err); -if (hdev->req_status ==HCI_REQ_PEND ) { +if (READ_ONCE (hdev->req_status) ==HCI_REQ_PEND ) { hdev->req_result = err; - hdev->req_status =HCI_REQ_CANCELED ; +WRITE_ONCE (hdev->req_status,HCI_REQ_CANCELED );queue_work (hdev->workqueue, &hdev->cmd_sync_cancel_work); }
@@ -707,12 +707,12 @@ void hci_cmd_sync_cancel_sync(struct hci {bt_dev_dbg (hdev,"err 0x%2.2x" , err); -if (hdev->req_status ==HCI_REQ_PEND ) { +if (READ_ONCE (hdev->req_status) ==HCI_REQ_PEND ) {/* req_result is __u32 so error must be positive to be properly * propagated. */ hdev->req_result = err <0 ? -err : err; - hdev->req_status =HCI_REQ_CANCELED ; +WRITE_ONCE (hdev->req_status,HCI_REQ_CANCELED );wake_up_interruptible (&hdev->req_wait_q); }
Greg Kroah-Hartman
maintainerPATCH 1250/1266 Bluetooth: hci_conn: Fix null ptr deref in hci_abort_conn()
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Siwei Zhang <[email protected]>
[ Upstream commit 12917f591cea1af36087dba5b9ec888652f0b42a ]
hci_abort_conn() read hci_skb_event(hdev->sent_cmd) when a connection was pending, but hdev->sent_cmd can be NULL while req_status is still HCI_REQ_PEND, leading to a NULL pointer dereference and a general protection fault from the hci_rx_work() receive path.
Instead of inspecting hdev->sent_cmd, track the in-flight create connection command with a new per-connection HCI_CONN_CREATE flag and route all cancellation through hci_cancel_connect_sync(), which dispatches to a dedicated per-type cancel function. The create command is in exactly one of two states: still queued, or in flight. The cancel function holds cmd_sync_work_lock across the whole decision: the worker takes this lock to dequeue every entry, so while it is held a queued command cannot start running and an in-flight command cannot complete and let the next command become pending. This keeps the flag test and hci_cmd_sync_cancel() atomic with respect to the worker, so a queued command is simply dequeued, and an in-flight command owned by this connection is cancelled without the risk of cancelling an unrelated command that became pending in the meantime. CIS uses the same flag mechanism via HCI_CONN_CREATE_CIS but cannot be dequeued per-connection.
hci_acl_create_conn_sync() and hci_le_create_conn_sync() clear HCI_CONN_CREATE after the create command completes, but the command status handler can free conn via hci_conn_del() (for example when the controller rejects the connection) while the worker is still blocked on the connection complete event. Hold a reference on conn across the create command so the flag can be cleared without a use-after-free.
--- include/net/bluetooth/hci_core.h | 1 net/bluetooth/hci_conn.c | 21 ------ net/bluetooth/hci_sync.c | 133 ++++++++++++++++++++++++++++++++++----- 3 files changed, 123 insertions(+), 32 deletions(-)
include/net/bluetooth/hci_core.h +1 -0
@@ -957,6 +957,7 @@ enum {HCI_CONN_AUTH_FAILURE ,HCI_CONN_PER_ADV ,HCI_CONN_BIG_CREATED , +HCI_CONN_CREATE ,HCI_CONN_CREATE_CIS ,HCI_CONN_BIG_SYNC , HCI_CONN_BIG_SYNC_FAILED,
net/bluetooth/hci_conn.c +3 -18
@@ -2910,26 +2910,11 @@ int hci_abort_conn(struct hci_conn *conn conn->abort_reason = reason; -/* If the connection is pending check the command opcode since that -* might be blocking on hci_cmd_sync_work while waiting its respective -* event so we need to hci_cmd_sync_cancel to cancel it. -* -* hci_connect_le serializes the connection attempts so only one -* connection can be in BT_CONNECT at time. +/* Cancel the connect attempt. A return of 0 means the create command +* was still queued and got dequeued, so there is nothing to disconnect. */ -if (conn->state ==BT_CONNECT &&READ_ONCE (hdev->req_status) ==HCI_REQ_PEND ) { -switch (hci_skb_event (hdev->sent_cmd)) { -case HCI_EV_CONN_COMPLETE : -case HCI_EV_LE_CONN_COMPLETE : -case HCI_EV_LE_ENHANCED_CONN_COMPLETE : -case HCI_EVT_LE_CIS_ESTABLISHED : -hci_cmd_sync_cancel (hdev,ECANCELED ); -break ; - } -/* Cancel connect attempt if still queued/pending */ - }else if (!hci_cancel_connect_sync (hdev, conn)) { +if (!hci_cancel_connect_sync (hdev, conn))return 0 ; - }/* Run immediately if on cmd_sync_work since this may be called * as a result to MGMT_OP_DISCONNECT/MGMT_OP_UNPAIR which does
net/bluetooth/hci_sync.c +119 -14
178 lines not on this page · raw message
Greg Kroah-Hartman
maintainerPATCH 1241/1266 exfat: rename argument name for exfat_move_file and exfat_rename_file
In reply to Greg Kroah-Hartman6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yuezhang Mo <[email protected]>
[ Upstream commit 06a2b0b3b490a6103376652c01c3ac6e8e22e654 ]
In this exfat implementation, the relationship between inode and ei is ei=EXFAT_I(inode). However, in the arguments of exfat_move_file() and exfat_rename_file(), argument 'inode' indicates the parent directory, but argument 'ei' indicates the target file to be renamed. They do not have the above relationship, which is not friendly to code readers.
So this commit renames 'inode' to 'parent_inode', making the argument name match its role.
Stable-dep-of: 942296784b2a ("exfat: preserve benign secondary entries during rename and move")
--- fs/exfat/namei.c | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-)
fs/exfat/namei.c +19 -17
@@ -1015,15 +1015,15 @@ unlock:return err; } -static int exfat_rename_file (struct inode *inode,struct exfat_chain *p_dir, +static int exfat_rename_file (struct inode *parent_inode,struct exfat_chain *p_dir,int oldentry,struct exfat_uni_name *p_uniname,struct exfat_inode_info *ei) {int ret, num_old_entries, num_new_entries;struct exfat_dentry *epold, *epnew; -struct super_block *sb = inode->i_sb; +struct super_block *sb = parent_inode->i_sb;struct buffer_head *new_bh, *old_bh; -int sync =IS_DIRSYNC (inode); +int sync =IS_DIRSYNC (parent_inode); epold =exfat_get_dentry (sb, p_dir, oldentry, &old_bh);if (!epold)
@@ -1041,8 +1041,8 @@ static int exfat_rename_file(struct inodif (num_old_entries < num_new_entries) {int newentry; - newentry = -exfat_find_empty_entry (inode, p_dir, num_new_entries); + newentry =exfat_find_empty_entry (parent_inode, p_dir, + num_new_entries);if (newentry <0 )return newentry;/* -EIO or -ENOSPC */
@@ -1073,12 +1073,12 @@ static int exfat_rename_file(struct inodbrelse (old_bh);brelse (new_bh); - ret =exfat_init_ext_entry (inode, p_dir, newentry, + ret =exfat_init_ext_entry (parent_inode, p_dir, newentry, num_new_entries, p_uniname);if (ret)return ret; -exfat_remove_entries (inode, p_dir, oldentry,0 , +exfat_remove_entries (parent_inode, p_dir, oldentry,0 , num_old_entries); ei->dir = *p_dir; ei->entry = newentry;
@@ -1090,10 +1090,10 @@ static int exfat_rename_file(struct inodexfat_update_bh (old_bh, sync);brelse (old_bh); -exfat_remove_entries (inode, p_dir, oldentry, +exfat_remove_entries (parent_inode, p_dir, oldentry,ES_IDX_FIRST_FILENAME +1 , num_old_entries); - ret =exfat_init_ext_entry (inode, p_dir, oldentry, + ret =exfat_init_ext_entry (parent_inode, p_dir, oldentry, num_new_entries, p_uniname);if (ret)return ret;
@@ -1101,13 +1101,13 @@ static int exfat_rename_file(struct inodreturn 0 ; } -static int exfat_move_file (struct inode *inode,struct exfat_chain *p_olddir, +static int exfat_move_file (struct inode *parent_inode,struct exfat_chain *p_olddir,int oldentry,struct exfat_chain *p_newdir,struct exfat_uni_name *p_uniname,struct exfat_inode_info *ei) {int ret, newentry, num_new_entries, num_old_entries;struct exfat_dentry *epmov, *epnew; -struct super_block *sb = inode->i_sb; +struct super_block *sb = parent_inode->i_sb;struct buffer_head *mov_bh, *new_bh; epmov =exfat_get_dentry (sb, p_olddir, oldentry, &mov_bh);
@@ -1124,7 +1124,8 @@ static int exfat_move_file(struct inodeif (num_new_entries <0 )return num_new_entries; - newentry =exfat_find_empty_entry (inode, p_newdir, num_new_entries); + newentry =exfat_find_empty_entry (parent_inode, p_newdir, + num_new_entries);if (newentry <0 )return newentry;/* -EIO or -ENOSPC */
@@ -1137,7 +1138,7 @@ static int exfat_move_file(struct inode epnew->dentry.file.attr |=cpu_to_le16 (ATTR_ARCHIVE ); ei->attr |=ATTR_ARCHIVE ; } -exfat_update_bh (new_bh,IS_DIRSYNC (inode)); +exfat_update_bh (new_bh,IS_DIRSYNC (parent_inode));brelse (mov_bh);brelse (new_bh);
@@ -1151,16 +1152,17 @@ static int exfat_move_file(struct inode } *epnew = *epmov; -exfat_update_bh (new_bh,IS_DIRSYNC (inode)); +exfat_update_bh (new_bh,IS_DIRSYNC (parent_inode));brelse (mov_bh);brelse (new_bh); - ret =exfat_init_ext_entry (inode, p_newdir, newentry, num_new_entries, - p_uniname); + ret =exfat_init_ext_entry (parent_inode, p_newdir, newentry, + num_new_entries, p_uniname);if (ret)return ret; -exfat_remove_entries (inode, p_olddir, oldentry,0 , num_old_entries); +exfat_remove_entries (parent_inode, p_olddir, oldentry,0 , + num_old_entries);exfat_chain_set (&ei->dir, p_newdir->dir, p_newdir->size, p_newdir->flags);
Re: [PATCH 6.6 1020/1266] platform/x86/amd/pmc: Add delay_suspend module parameter
In reply to Greg Kroah-HartmanHi,
Quoted 2 lines · Greg Kroah-Hartman
6.6-stable review patch. If anyone has any objections, please let me know.
No objections, I just wonder why the commits037f0b03c663a2 "platform/x86/amd/pmc: Dont log during intermediate wakeups" anda0738abd042f74 "platform/x86/amd/pmc: Avoid logging "(null)" for DMI values"
are not added for 6.6 as well (they're added for 6.12, 6.18 and 7.1).
Unfortunately intermediate wakeups happen a lot when charging while in s2idle, so in that case dmesg gets spammed with log messages, unless prevented by the "Dont log during intermediate wakeups" commit.
The other commit is more cosmetic, but might still make sense to add it as well so the log messages are consistent between kernel versions.
Cheers,
Daniel
Quoted 89 lines
------------------
From: Daniel Gibson <[email protected]>
commit
428b9fd2dce50b4dc5cd9ade10b92efcf57ce7aaupstream.Enabling the new
delay_suspendmodule parameter delays suspend for 2.5 seconds which is known to help for some AMD-based Lenovo Laptops that otherwise failed to send/receive events for key presses or the lid switch after s2idle. Apparently the EC needs to do some things in the background before suspend or it gets into a bad state.There are many reports of AMD-based laptops (mostly but not exclusively IdeaPads) about similar issues on the web; this parameter gives affected users an easy way to try out if their issues have the same root cause and to work around them until their specific device is added to the quirks list.
The parameter description has a note encouraging users to report their device so it can be added to the quirks list, inspired by a similar request in parameter descriptions of the ideapad-laptop module.
The module parameter can be set to "1" to explicitly enable it, "0" to disable it even on devices that are assumed to be affected, or -1 (the default) to enable it if the device is assumed to be affected (according to fwbug_list[])
Reviewed-by Hans de Goede <[email protected]>Signed-off-by Daniel Gibson <[email protected]>Reviewed-by Ilpo Järvinen <[email protected]>Signed-off-by Ilpo Järvinen <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- drivers/platform/x86/amd/pmc/pmc.c | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-)drivers/platform/x86/amd/pmc/pmc.c +23
-2@@ -16,6 +16,7 @@#include <linux/bits.h> #include <linux/debugfs.h> #include <linux/delay.h> +#include <linux/dmi.h> #include <linux/io.h> #include <linux/iopoll.h> #include <linux/limits.h> @@ -147,6 +148,11 @@ static bool disable_workarounds;module_param (disable_workarounds, bool,0644 );MODULE_PARM_DESC (disable_workarounds,"Disable workarounds for platform bugs" ); +static int delay_suspend =-1 ; +module_param (delay_suspend, int,0644 ); +MODULE_PARM_DESC (delay_suspend, +"Delays s2idle by 2.5 seconds to work around buggy ECs, often causing keyboard issues after suspend. 0: don't delay, 1: do delay, -1 (default): let amd_pmc decide. If you need this please report this to: [email protected]" ); +static struct amd_pmc_dev pmc;static int amd_pmc_send_cmd (struct amd_pmc_dev *dev,u32 arg,u32 *data,u8 msg,bool ret);static int amd_pmc_read_stb (struct amd_pmc_dev *dev,u32 *buf);@@ -817,8 +823,23 @@ static bool amd_pmc_want_suspend_delay(s* * See https://bugzilla.kernel.org/show_bug.cgi?id=221383 */ -if (!disable_workarounds &&amd_pmc_quirk_need_suspend_delay (pdev)) { -dev_info (pdev->dev,"Delaying suspend by 2.5s to avoid platform bug\n" ); +if (amd_pmc_quirk_need_suspend_delay (pdev)) { +/* +* delay_suspend=1 force-enables this, otherwise it can be +* disabled with disable_workarounds or delay_suspend=0 +*/ +if (delay_suspend ==1 || (delay_suspend ==-1 && !disable_workarounds)) { +dev_info (pdev->dev,"Delaying suspend by 2.5s to avoid platform bug\n" ); +return true; + } +dev_info (pdev->dev,"Not delaying suspend because of module parameter, even though your device is assumed to need it!\n" ); + }else if (delay_suspend ==1 ) { +dev_info (pdev->dev,"Delaying suspend by 2.5s because delay_suspend=1. If this solves problems on your machine, please report this whole line to: [email protected] so it can be automatically detected as affected in the future. System Vendor: \"%s\" Product Name: \"%s\" Product Family: \"%s\" Board Vendor: \"%s\" Board Name: \"%s\"\n" , +dmi_get_system_info (DMI_SYS_VENDOR ), +dmi_get_system_info (DMI_PRODUCT_NAME ), +dmi_get_system_info (DMI_PRODUCT_FAMILY ), +dmi_get_system_info (DMI_BOARD_VENDOR ), +dmi_get_system_info (DMI_BOARD_NAME ));return true; }return false;
# Librecast Test Results
020/020 [ OK ] liblcrq
010/010 [ OK ] libmld
120/120 [ OK ] liblibrecast
CPU/kernel: Linux auntie 6.6.145-rc1-g5b1c90a58c89 #1 SMP PREEMPT_DYNAMIC Tue Jul 21 20:42:54 -00 2026 x86_64 AMD Ryzen 9 9950X 16-Core Processor AuthenticAMD GNU/Linux
Am 21.07.2026 um 17:07 schrieb Greg Kroah-Hartman:
Quoted 4 lines
This is the start of the stable review cycle for the 6.6.145 release. There are 1266 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.
Builds, boots and works on my 2-socket Ivy Bridge Xeon E5-2697 v2 server. No dmesg oddities or regressions found.
Beste Grüße,
Peter Schneider
Signature · 8 lines
Climb the mountain not to plant your flag, but to embrace the challenge, enjoy the air and behold the view. Climb it so you can see the world, not so the world can see you. -- David McCullough Jr. OpenPGP: 0xA3828BD796CCE11A8CADE8866E3A92C92C3FF244 Download: https://www.peters-netzplatz.de/download/pschneider1968_pub.asc https://keys.mailvelope.com/pks/lookup?op=get&[email protected] https://keys.mailvelope.com/pks/lookup?op=get&[email protected]
Greg Kroah-Hartman
maintainerRe: [PATCH 6.6 1020/1266] platform/x86/amd/pmc: Add delay_suspend module parameter
In reply to Daniel GibsonQuoted 6 lines · Daniel Gibson
Hi,
Quoted 2 lines · Greg Kroah-Hartman
6.6-stable review patch. If anyone has any objections, please let me know.
Quoted 6 lines
No objections, I just wonder why the commits
037f0b03c663a2"platform/x86/amd/pmc: Dont log during intermediate wakeups" anda0738abd042f74"platform/x86/amd/pmc: Avoid logging "(null)" for DMI values"are not added for 6.6 as well (they're added for 6.12, 6.18 and 7.1).
Because they do not apply to that tree, and there was no explicit "Fixes:" tag on the commit so we just backported them as far as they easily went.
If you want these patches in a stable 6.6.y release, please provide working backports.
thanks,
greg k-h
Re: [PATCH 6.6 0063/1266] rust: Kbuild: set frame-pointer llvm module flag for CONFIG_FRAME_POINTER
In reply to Greg Kroah-HartmanQuoted 43 lines · Greg Kroah-Hartman
6.6-stable review patch. If anyone has any objections, please let me know.
------------------
From: Alice Ryhl <[email protected]>
commit
191f49f1e38b1c10eb44b0f967c6175c884ef7dbupstream.Due to a rustc bug, the -Cforce-frame-pointers=y flag only emits the frame-pointer annotation for functions, but not for the module. This means that functions generated by the LLVM backend such as 'asan.module_ctor' do not receive the frame-pointer annotation.
This is likely to lead to broken backtraces and may also cause issues with ftrace if these features are used with functions generated by the LLVM backend.
Thus, use -Zllvm_module_flag to work around this rustc bug if using a rustc without the fix.
[ The fix [1] has landed for Rust 1.98.0 (expected release on
2026-08-20). - Miguel ]Cc [email protected] # 6.12.y and later (flag not available in pinned Rust in older LTSs).Fixes 2f7ab1267dc9 ("Kbuild: add Rust support")Signed-off-by Alice Ryhl <[email protected]>[ - Adjusted Cc: stable@ as discussed.
- Added comment with link to the PR, similar to what we did in commitac35b5580ace("rust: arm64: set uwtable llvm module flag forCONFIG_UNWIND_TABLES").
- Miguel ]Signed-off-by Miguel Ojeda <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>--- Makefile | 3 +++ 1 file changed, 3 insertions(+)
Makefile KBUILD_RUSTFLAGS += $(KBUILD_RUSTFLAGS-y · line 862
Quoted 6 lines
Makefile +3
-0@@ -857,6 +857,9 @@ KBUILD_RUSTFLAGS += $(KBUILD_RUSTFLAGS-y ifdef CONFIG_FRAME_POINTER KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls KBUILD_RUSTFLAGS += -Cforce-frame-pointers=y +# Work around rustc bug on compilers without +# https://github.com/rust-lang/rust/pull/156980. +KBUILD_RUSTFLAGS += $(if $(call rustc-min-version,109800),,-Zllvm_module_flag=frame-pointer:u32:2:max)
We shouldn't backport this to 6.6 because -Zllvm_module_flag does not exist on the rustc version used by the 6.6. kernel.
Alice
Quoted 4 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.6.145 release. There are 1266 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.
Re: [PATCH 6.6 0063/1266] rust: Kbuild: set frame-pointer llvm module flag for CONFIG_FRAME_POINTER
In reply to Alice RyhlQuoted 3 lines · Alice Ryhl
We shouldn't backport this to 6.6 because -Zllvm_module_flag does not exist on the rustc version used by the 6.6. kernel.
Yeah -- please see the instruction above:
# 6.12.y and later (flag not available in pinned Rust in older LTSs).
More details I wrote back then at:
https://lore.kernel.org/all/CANiq72kek9NoFe2PCFnND1p6BRbuzgv6kT2o5jw09sWg+wau_Q@mail.gmail.com/
Cheers,
Miguel
Re: [PATCH 6.6 1020/1266] platform/x86/amd/pmc: Add delay_suspend module parameter
In reply to Greg Kroah-HartmanQuoted 14 lines · Greg Kroah-Hartman
Quoted 6 lines · Daniel Gibson
Hi,
Quoted 2 lines · Greg Kroah-Hartman
6.6-stable review patch. If anyone has any objections, please let me know.
Quoted 6 lines
No objections, I just wonder why the commits
037f0b03c663a2"platform/x86/amd/pmc: Dont log during intermediate wakeups" anda0738abd042f74"platform/x86/amd/pmc: Avoid logging "(null)" for DMI values"are not added for 6.6 as well (they're added for 6.12, 6.18 and 7.1).
Quoted 8 lines
Because they do not apply to that tree, and there was no explicit "Fixes:" tag on the commit so we just backported them as far as they easily went.
If you want these patches in a stable 6.6.y release, please provide working backports.
thanks,
Thanks for the reply!
I'll backport the commits.
Where should I send the backported patches?
Cheers,
Daniel
Quoted 2 lines
greg k-h
Hi,
Build tested in our x86,arm64,loongarch,riscv config successfully without error.
BRs
Wentao Guan
Log:
Linux version 6.6.145-rc1-arm64-desktop-hwe-g5b1c90a58c89 (guanwentao@uos-PC) (aarch64-linux-gnu-gcc-12 (Deepin 12.3.0-17deepin8) 12.3.0, GNU ld (GNU Binutils for Deepin) 2.41) # SMP PREEMPT Linux version 6.6.145-rc1-arm64-desktop-hwe-g5b1c90a58c89 (guanwentao@uos-PC) (aarch64-linux-gnu-gcc-12 (Deepin 12.3.0-17deepin8) 12.3.0, GNU ld (GNU Binutils for Deepin) 2.41) #2 SMP PREEMPT Wed Jul 22 14:02:44 CST 2026 Linux version 6.6.145-rc1-loong64-desktop-hwe-g5b1c90a58c89 (guanwentao@uos-PC) (loongarch64-linux-gnu-gcc-12 (Deepin 12.3.0-17deepin8) 12.3.0, GNU ld (GNU Binutils for Deepin) 2.41) # SMP PREEMPT Linux version 6.6.145-rc1-loong64-desktop-hwe-g5b1c90a58c89 (guanwentao@uos-PC) (loongarch64-linux-gnu-gcc-12 (Deepin 12.3.0-17deepin8) 12.3.0, GNU ld (GNU Binutils for Deepin) 2.41) #3 SMP PREEMPT Wed Jul 22 14:19:39 CST 2026 Linux version 6.6.145-rc1-riscv64-desktop-hwe+ (guanwentao@uos-PC) (riscv64-linux-gnu-gcc-12 (Deepin 12.3.0-17deepin8) 12.3.0, GNU ld (GNU Binutils for Deepin) 2.41) # SMP
Linux version 6.6.145-rc1-riscv64-desktop-hwe+ (guanwentao@uos-PC) (riscv64-linux-gnu-gcc-12 (Deepin 12.3.0-17deepin8) 12.3.0, GNU ld (GNU Binutils for Deepin) 2.41) #4 SMP Wed Jul 22 14:35:36 CST 2026 Linux version 6.6.145-rc1-amd64-desktop-hwe-g5b1c90a58c89 (guanwentao@uos-PC) (gcc (Deepin 12.3.0-17deepin15) 12.3.0, GNU ld (GNU Binutils for Deepin) 2.41) # SMP PREEMPT_DYNAMIC
Linux version 6.6.145-rc1-amd64-desktop-hwe-g5b1c90a58c89 (guanwentao@uos-PC) (gcc (Deepin 12.3.0-17deepin15) 12.3.0, GNU ld (GNU Binutils for Deepin) 2.41) #1 SMP PREEMPT_DYNAMIC Wed Jul 22 13:43:48 CST 2026
Greg Kroah-Hartman
maintainerRe: [PATCH 6.6 1020/1266] platform/x86/amd/pmc: Add delay_suspend module parameter
In reply to Daniel GibsonQuoted 19 lines · Daniel Gibson
Quoted 18 lines · Greg Kroah-Hartman
Quoted 6 lines · Daniel Gibson
Hi,
Quoted 2 lines · Greg Kroah-Hartman
6.6-stable review patch. If anyone has any objections, please let me know.
Quoted 6 lines
No objections, I just wonder why the commits
037f0b03c663a2"platform/x86/amd/pmc: Dont log during intermediate wakeups" anda0738abd042f74"platform/x86/amd/pmc: Avoid logging "(null)" for DMI values"are not added for 6.6 as well (they're added for 6.12, 6.18 and 7.1).
Because they do not apply to that tree, and there was no explicit "Fixes:" tag on the commit so we just backported them as far as they easily went.
Quoted 8 lines
Quoted 4 lines
If you want these patches in a stable 6.6.y release, please provide working backports.
thanks,
Thanks for the reply!
I'll backport the commits.
Where should I send the backported patches?
As per the stable documentation at:
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
Send them to [email protected].
thanks,
greg k-h
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.6.145 release. There are 1266 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 Thu, 23 Jul 2026 15:23:00 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.6.145-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.6.y
and the diffstat can be found below.thanks,
greg k-h
Built and booted successfully on RISC-V RV64 (HiFive Unmatched).
Quoted 14 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.6.145 release. There are 1266 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 Thu, 23 Jul 2026 15:23:00 +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.6.145-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.6.y
and the diffstat can be found below.
Quoted 5 lines
thanks,
greg k-h
Compiled and booted on my test system. No dmesg regressions.
thanks,
-- Shuah
Hi!
Quoted 4 lines
This is the start of the stable review cycle for the 6.6.145 release. There are 1266 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.
CIP testing did not find any problems here:
https://gitlab.com/cip-project/cip-testing/linux-stable-rc-ci/-/tree/linux-6.6.y
Best regards,
Pavel
Re: [PATCH 6.6 0772/1266] bpf, lsm: Add disabled BPF LSM hook list
In reply to Greg Kroah-HartmanHello All,
backport ("bpf, lsm: Add disabled BPF LSM hook list") for v6.6.y bring the new build warning for us, let your know that.
and the lsm_getselfattr from a04a1198088a1378d0389c250cc684f649bcc91e commit ("LSM: syscalls for current process attributes"), I suggest that use a not upstream commit to just drop 'BTF_ID(func, bpf_lsm_getselfattr)' from 6.6.y. Maybe 6.1.y has the problem too.
BRs
Wentao Guan
Log:
WARN: resolve_btfids: unresolved symbol bpf_lsm_getselfattr
Sasha Levin
maintainerRe: [PATCH 6.6 0772/1266] bpf, lsm: Add disabled BPF LSM hook list
Quoted 7 lines
backport ("bpf, lsm: Add disabled BPF LSM hook list") for v6.6.y bring the new build warning for us, let your know that.
and the
lsm_getselfattrfroma04a1198088a1378d0389c250cc684f649bcc91ecommit ("LSM: syscalls for current process attributes"), I suggest that use a not upstream commit to just drop 'BTF_ID(func, bpf_lsm_getselfattr)' from 6.6.y. Maybe 6.1.y has the problem too.
Thanks for the report, I agree with the analysis.
Quoted 1 line
Maybe 6.1.y has the problem too.
Yes, 6.1.y is affected as well - the same backport of 21c7063f6d08 ("bpf, lsm: Add disabled BPF LSM hook list") is in v6.1.178.
The impact is build noise only: resolve_btfids only prints the WARN and carries on, the unresolved entry is patched as BTF ID 0, and 0 never matches a real prog->aux->attach_btf_id, so the enforcement for the other disabled hooks keeps working. I do not want to revert the pair, since 21c7063f6d08 came in as a dependency of 12091470c6b4 ("bpf: Disable xfrm_decode_session hook attachment"), which prevents a reachable BUG_ON() and does belong on these trees.
Could you post a formal patch for this please?
Signature · 2 lines
Thanks, Sasha
PATCH 1/1 bpf: drop bpf_lsm_getselfattr from hook list
Backport ("bpf, lsm: Add disabled BPF LSM hook list") for v6.6.y bring the warning "WARN: resolve_btfids: unresolved symbol bpf_lsm_getselfattr".
The lsm_getselfattr from commit a04a1198088a
("LSM: syscalls for current process attributes"), no need to backport the huge patch, simply drop the entry to fix the noise.
This is a fix for stable v6.6.145 backport commit, so no upstream commit.
--- kernel/bpf/bpf_lsm.c | 1 - 1 file changed, 1 deletion(-)
kernel/bpf/bpf_lsm.c +0 -1
@@ -42,7 +42,6 @@ BTF_ID(func, bpf_lsm_inode_need_killpriv) BTF_ID(func, bpf_lsm_inode_getsecurity) BTF_ID(func, bpf_lsm_inode_listsecurity) BTF_ID(func, bpf_lsm_inode_copy_up_xattr) -BTF_ID(func, bpf_lsm_getselfattr) BTF_ID(func, bpf_lsm_getprocattr) BTF_ID(func, bpf_lsm_setprocattr)#ifdef CONFIG_KEYS
Signature · 1 line
2.30.2
PATCH 1/1 bpf: drop bpf_lsm_getselfattr from hook list
In reply to Sasha LevinBackport ("bpf, lsm: Add disabled BPF LSM hook list") for v6.1.y bring the warning "WARN: resolve_btfids: unresolved symbol bpf_lsm_getselfattr".
The lsm_getselfattr from commit a04a1198088a
("LSM: syscalls for current process attributes"), no need to backport the huge patch, simply drop the entry to fix the noise.
This is a fix for stable v6.1.178 backport commit, so no upstream commit.
--- kernel/bpf/bpf_lsm.c | 1 - 1 file changed, 1 deletion(-)
kernel/bpf/bpf_lsm.c +0 -1
@@ -42,7 +42,6 @@ BTF_ID(func, bpf_lsm_inode_need_killpriv) BTF_ID(func, bpf_lsm_inode_getsecurity) BTF_ID(func, bpf_lsm_inode_listsecurity) BTF_ID(func, bpf_lsm_inode_copy_up_xattr) -BTF_ID(func, bpf_lsm_getselfattr) BTF_ID(func, bpf_lsm_getprocattr) BTF_ID(func, bpf_lsm_setprocattr)#ifdef CONFIG_KEYS
Signature · 1 line
2.30.2
Re: [PATCH 6.6.y] bpf: drop bpf_lsm_getselfattr from hook list
In reply to Wentao GuanQuoted 1 line
[PATCH 6.6.y] bpf: drop
bpf_lsm_getselfattrfrom hook list
Queued for 6.6, thanks.
Signature · 2 lines
Thanks, Sasha
Re: [PATCH 6.1.y] bpf: drop bpf_lsm_getselfattr from hook list
In reply to Wentao GuanQuoted 1 line
[PATCH 6.1.y] bpf: drop
bpf_lsm_getselfattrfrom hook list
Queued for 6.1, thanks.
Signature · 2 lines
Thanks, Sasha