6.0.3-rc1 review
Subsystems (10)
Greg Kroah-Hartman
maintainerPATCH 597/862 clk: imx8mp: tune the order of enet_qos_root_clk
In reply to Greg Kroah-HartmanFrom: Peng Fan <[email protected]>
[ Upstream commit c68cd258a67730c24566b9688d7c134e67459ac6 ]
The enet_qos_root_clk takes sim_enet_root_clk as parent. When registering enet_qos_root_clk, it will be put into clk orphan list, because sim_enet_root_clk is not ready.
When sim_enet_root_clk is ready, clk_core_reparent_orphans_nolock will set enet_qos_root_clk parent to sim_enet_root_clk.
Because CLK_OPS_PARENT_ENABLE is set, sim_enet_root_clk will be enabled and disabled during the enet_qos_root_clk reparent phase.
All the above are correct. But with M7 booted early and using enet, M7 enet feature will be broken, because clk driver probe phase disable the needed clks, in case M7 firmware not configure sim_enet_root_clk.
And tune the order would also save cpu cycles.
Stable-dep-of: 855ae87a2073 ("clk: imx: scu: fix memleak on platform_device_add() fails")
--- drivers/clk/imx/clk-imx8mp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/imx/clk-imx8mp.c +1 -1
@@ -665,8 +665,8 @@ static int imx8mp_clocks_probe(struct platform_device *pdev) hws[IMX8MP_CLK_CAN1_ROOT ] =imx_clk_hw_gate2 ("can1_root_clk" ,"can1" , ccm_base +0x4350 ,0 ); hws[IMX8MP_CLK_CAN2_ROOT ] =imx_clk_hw_gate2 ("can2_root_clk" ,"can2" , ccm_base +0x4360 ,0 ); hws[IMX8MP_CLK_SDMA1_ROOT ] =imx_clk_hw_gate4 ("sdma1_root_clk" ,"ipg_root" , ccm_base +0x43a0 ,0 ); - hws[IMX8MP_CLK_ENET_QOS_ROOT ] =imx_clk_hw_gate4 ("enet_qos_root_clk" ,"sim_enet_root_clk" , ccm_base +0x43b0 ,0 ); hws[IMX8MP_CLK_SIM_ENET_ROOT ] =imx_clk_hw_gate4 ("sim_enet_root_clk" ,"enet_axi" , ccm_base +0x4400 ,0 ); + hws[IMX8MP_CLK_ENET_QOS_ROOT ] =imx_clk_hw_gate4 ("enet_qos_root_clk" ,"sim_enet_root_clk" , ccm_base +0x43b0 ,0 ); hws[IMX8MP_CLK_GPU2D_ROOT ] =imx_clk_hw_gate4 ("gpu2d_root_clk" ,"gpu2d_core" , ccm_base +0x4450 ,0 ); hws[IMX8MP_CLK_GPU3D_ROOT ] =imx_clk_hw_gate4 ("gpu3d_root_clk" ,"gpu3d_core" , ccm_base +0x4460 ,0 ); hws[IMX8MP_CLK_UART1_ROOT ] =imx_clk_hw_gate4 ("uart1_root_clk" ,"uart1" , ccm_base +0x4490 ,0 );
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 747/862 platform/chrome: cros_ec: Notify the PM of wake events during resume
In reply to Greg Kroah-HartmanFrom: Jameson Thies <[email protected]>
[ Upstream commit 8edd2752b0aa498b3a61f3caee8f79f7e0567fad ]
cros_ec_handle_event in the cros_ec driver can notify the PM of wake events. When a device is suspended, cros_ec_handle_event will not check MKBP events. Instead, received MKBP events are checked during resume by cros_ec_report_events_during_suspend. But cros_ec_report_events_during_suspend cannot notify the PM if received events are wake events, causing wake events to not be reported if received while the device is suspended.
Update cros_ec_report_events_during_suspend to notify the PM of wake events during resume by calling pm_wakeup_event.
--- drivers/platform/chrome/cros_ec.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/platform/chrome/cros_ec.c +7 -1
@@ -349,10 +349,16 @@ EXPORT_SYMBOL(cros_ec_suspend);static void cros_ec_report_events_during_suspend (struct cros_ec_device *ec_dev) { +bool wake_event; +while (ec_dev->mkbp_event_supported && -cros_ec_get_next_event (ec_dev,NULL ,NULL ) >0 ) +cros_ec_get_next_event (ec_dev, &wake_event,NULL ) >0 ) {blocking_notifier_call_chain (&ec_dev->event_notifier,1 , ec_dev); + +if (wake_event &&device_may_wakeup (ec_dev->dev)) +pm_wakeup_event (ec_dev->dev,0 ); + } }/**
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 846/862 io_uring/net: dont skip notifs for failed requests
In reply to Greg Kroah-HartmanFrom: Pavel Begunkov <[email protected]>
[ upstream commit 6ae91ac9a6aa7d6005c3c6d0f4d263fbab9f377f ]
We currently only add a notification CQE when the send succeded, i.e. cqe.res >= 0. However, it'd be more robust to do buffer notifications for failed requests as well in case drivers decide do something fanky.
Always return a buffer notification after initial prep, don't hide it. This behaviour is better aligned with documentation and the patch also helps the userspace to respect it.
--- io_uring/net.c | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-)
io_uring/net.c +6 -16
@@ -879,7 +879,6 @@ void io_send_zc_cleanup(struct io_kiocb { struct io_sr_msg *zc = io_kiocb_to_cmd(req, struct io_sr_msg); - zc->notif->flags |=REQ_F_CQE_SKIP ;io_notif_flush (zc->notif); zc->notif =NULL ; }
@@ -996,7 +995,7 @@ int io_send_zc(struct io_kiocb *req, unsstruct msghdr msg;struct iovec iov;struct socket *sock; -unsigned msg_flags, cflags; +unsigned msg_flags;int ret, min_ret =0 ; sock =sock_from_file (req->file);
@@ -1064,8 +1063,6 @@ int io_send_zc(struct io_kiocb *req, uns req->flags |=REQ_F_PARTIAL_IO ;return io_setup_async_addr (req, addr, issue_flags); } -if (ret <0 && !zc->done_io) - zc->notif->flags |=REQ_F_CQE_SKIP ;if (ret == -ERESTARTSYS ) ret = -EINTR ;req_set_fail (req);
@@ -1078,8 +1075,7 @@ int io_send_zc(struct io_kiocb *req, unsio_notif_flush (zc->notif); req->flags &= ~REQ_F_NEED_CLEANUP ; - cflags = ret >=0 ?IORING_CQE_F_MORE :0 ; -io_req_set_res (req, ret, cflags); +io_req_set_res (req, ret,IORING_CQE_F_MORE );return IOU_OK ; }
@@ -1096,17 +1092,11 @@ void io_sendrecv_fail(struct io_kiocb *rvoid io_send_zc_fail (struct io_kiocb *req) { struct io_sr_msg *sr = io_kiocb_to_cmd(req, struct io_sr_msg); -int res = req->cqe.res; -if (req->flags &REQ_F_PARTIAL_IO ) { -if (req->flags &REQ_F_NEED_CLEANUP ) { -io_notif_flush (sr->notif); - sr->notif =NULL ; - req->flags &= ~REQ_F_NEED_CLEANUP ; - } - res = sr->done_io; - } -io_req_set_res (req, res, req->cqe.flags); +if (req->flags &REQ_F_PARTIAL_IO ) + req->cqe.res = sr->done_io; +if (req->flags &REQ_F_NEED_CLEANUP ) + req->cqe.flags |=IORING_CQE_F_MORE ; }int io_accept_prep (struct io_kiocb *req,const struct io_uring_sqe *sqe)
Greg Kroah-Hartman
maintainerPATCH 349/862 drm/mipi-dsi: Detach devices when removing the host
In reply to Greg Kroah-HartmanFrom: Maxime Ripard <[email protected]>
[ Upstream commit 668a8f17b5290d04ef7343636a5588a0692731a1 ]
Whenever the MIPI-DSI host is unregistered, the code of mipi_dsi_host_unregister() loops over every device currently found on that bus and will unregister it.
However, it doesn't detach it from the bus first, which leads to all kind of resource leaks if the host wants to perform some clean up whenever a device is detached.
--- drivers/gpu/drm/drm_mipi_dsi.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/drm_mipi_dsi.c +1 -0
@@ -346,6 +346,7 @@ static int mipi_dsi_remove_device_fn(struct device *dev, void *priv) {struct mipi_dsi_device *dsi =to_mipi_dsi_device (dev); +mipi_dsi_detach (dsi);mipi_dsi_device_unregister (dsi);return 0 ;
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 394/862 drm/msm/dp: correct 1.62G link rate at dp_catalog_ctrl_config_msa()
In reply to Greg Kroah-HartmanFrom: Kuogee Hsieh <[email protected]>
[ Upstream commit aa0bff10af1c4b92e6b56e3e1b7f81c660d3ba78 ]
At current implementation there is an extra 0 at 1.62G link rate which cause no correct pixel_div selected for 1.62G link rate to calculate mvid and nvid. This patch delete the extra 0 to have mvid and nvid be calculated correctly.
Changes in v2:
-- fix Fixes tag's text
Changes in v3:
-- fix misspelling of "Reviewed-by"
Patchwork: https://patchwork.freedesktop.org/patch/499328/
--- drivers/gpu/drm/msm/dp/dp_catalog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/dp/dp_catalog.c +1 -1
@@ -431,7 +431,7 @@ void dp_catalog_ctrl_config_msa(struct dp_catalog *dp_catalog,if (rate == link_rate_hbr3) pixel_div =6 ; -else if (rate ==1620000 || rate ==270000 ) +else if (rate ==162000 || rate ==270000 ) pixel_div =2 ;else if (rate == link_rate_hbr2) pixel_div =4 ;
Signature · 1 line
2.35.1
Re: [PATCH 6.0 523/862] phy: qcom-qmp-pcie: add pcs_misc sanity check
In reply to Greg Kroah-HartmanQuoted 19 lines · Greg Kroah-Hartman
Quoted 18 lines · Johan Hovold
Quoted 16 lines · Greg Kroah-Hartman
From: Johan Hovold <[email protected]>
[ Upstream commit
ecd5507e72ea03659dc2cc3e4393fbf8f4e2e02a]Make sure that the (otherwise) optional
pcs_miscIO region has been provided in case the configuration specifies a corresponding initialisation table to avoid crashing with malformed device trees.Note that the related debug message is now superfluous as the region is only used when the configuration has a
pcs_misctable.Fixes 421c9a0e9731 ("phy: qcom: qmp: Add SDM845 PCIe QMP PHY support")Signed-off-by Johan Hovold <[email protected]>Signed-off-by Vinod Koul <[email protected]>Signed-off-by Sasha Levin <[email protected]>
Quoted 4 lines
Quoted 2 lines
This was added to prevent future bugs when adding support for new platforms and did not have a stable tag. Please drop.
Ok, that wasn't obvious at all from the changelog :(
Ah, sorry, I misread my own patch. This one does indeed prevent a crash with malformed devicetrees as the commit message says.
But whether that needs backporting or nor is a separate question. I'd say either way is fine.
Quoted 2 lines
I'll go drop this, and the others you marked as "should not be there" from the queue, thanks.
Thanks.
Quoted 2 lines
Maybe next time, don't use a Fixes: tag if the commit really doesn't "fix" anything in the current kernel...
Sorry about the confusion. The Fixes tag is correct in this case.
Johan
Greg Kroah-Hartman
maintainerPATCH 544/862 block: Fix the enum blk_eh_timer_return documentation
In reply to Greg Kroah-HartmanFrom: Bart Van Assche <[email protected]>
[ Upstream commit b2bed51a5261f4266ecb857bba680a7f668d3ddf ]
The documentation of the blk_eh_timer_return enumeration values does not reflect correctly how e.g. the SCSI core uses these values. Fix the documentation.
--- include/linux/blk-mq.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
include/linux/blk-mq.h +9 -2
@@ -268,9 +268,16 @@ static inline void rq_list_move(struct request **src, struct request **dst,rq_list_add (dst, rq); } +/** +* enum blk_eh_timer_return - How the timeout handler should proceed +* @BLK_EH_DONE: The block driver completed the command or will complete it at +* a later time. +* @BLK_EH_RESET_TIMER: Reset the request timer and continue waiting for the +* request to complete. +*/ enum blk_eh_timer_return { -BLK_EH_DONE ,/* drivers has completed the command */ -BLK_EH_RESET_TIMER ,/* reset timer and try again */ +BLK_EH_DONE , +BLK_EH_RESET_TIMER , };#define BLK_TAG_ALLOC_FIFO 0/* allocate starting from 0 */
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 585/862 phy: qcom-qmp-pcie: fix resource mapping for SDM845 QHP PHY
In reply to Greg Kroah-HartmanFrom: Dmitry Baryshkov <[email protected]>
[ Upstream commit 0a40891b83f257b25a2b983758f72f6813f361cb ]
On SDM845 one of PCIe PHYs (the QHP one) has the same region for TX and RX registers. Since the commit 4be26f695ffa ("phy: qcom-qmp-pcie: fix memleak on probe deferral") added checking that resources are not allocated beforehand, this PHY can not be probed anymore. Fix this by skipping the map of ->rx resource on the QHP PHY and assign it manually.
--- drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c +4 -1
@@ -2333,7 +2333,10 @@ int qcom_qmp_phy_pcie_create(struct device *dev, struct device_node *np, int id,if (IS_ERR (qphy->tx))return PTR_ERR (qphy->tx); - qphy->rx =devm_of_iomap (dev, np,1 ,NULL ); +if (of_device_is_compatible (dev->of_node,"qcom,sdm845-qhp-pcie-phy" )) + qphy->rx = qphy->tx; +else + qphy->rx =devm_of_iomap (dev, np,1 ,NULL );if (IS_ERR (qphy->rx))return PTR_ERR (qphy->rx);
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 594/862 clk: baikal-t1: Add SATA internal ref clock buffer
In reply to Greg Kroah-HartmanFrom: Serge Semin <[email protected]>
[ Upstream commit 081a9b7c74eae4e12b2cb1b86720f836a8f29247 ]
It turns out the internal SATA reference clock signal will stay unavailable for the SATA interface consumer until the buffer on it's way is ungated. So aside with having the actual clock divider enabled we need to ungate a buffer placed on the signal way to the SATA controller (most likely some rudiment from the initial SoC release). Seeing the switch flag is placed in the same register as the SATA-ref clock divider at a non-standard ffset, let's implement it as a separate clock controller with the set-rate propagation to the parental clock divider wrapper. As such we'll be able to disable/enable and still change the original clock source rate.
--- drivers/clk/baikal-t1/ccu-div.c | 64 +++++++++++++++++++++++++++++ drivers/clk/baikal-t1/ccu-div.h | 4 ++ drivers/clk/baikal-t1/clk-ccu-div.c | 18 +++++++- 3 files changed, 85 insertions(+), 1 deletion(-)
drivers/clk/baikal-t1/ccu-div.c +64 -0
@@ -34,6 +34,7 @@#define CCU_DIV_CTL_CLKDIV_MASK (_width) \ GENMASK((_width) + CCU_DIV_CTL_CLKDIV_FLD - 1, CCU_DIV_CTL_CLKDIV_FLD)#define CCU_DIV_CTL_LOCK_SHIFTED BIT(27) +#define CCU_DIV_CTL_GATE_REF_BUF BIT(28)#define CCU_DIV_CTL_LOCK_NORMAL BIT(31)#define CCU_DIV_RST_DELAY_US 1
@@ -170,6 +171,40 @@ static int ccu_div_gate_is_enabled(struct clk_hw *hw)return !!(val &CCU_DIV_CTL_EN ); } +static int ccu_div_buf_enable (struct clk_hw *hw) +{ +struct ccu_div *div =to_ccu_div (hw); +unsigned long flags; + +spin_lock_irqsave (&div->lock, flags); +regmap_update_bits (div->sys_regs, div->reg_ctl, +CCU_DIV_CTL_GATE_REF_BUF ,0 ); +spin_unlock_irqrestore (&div->lock, flags); + +return 0 ; +} + +static void ccu_div_buf_disable (struct clk_hw *hw) +{ +struct ccu_div *div =to_ccu_div (hw); +unsigned long flags; + +spin_lock_irqsave (&div->lock, flags); +regmap_update_bits (div->sys_regs, div->reg_ctl, +CCU_DIV_CTL_GATE_REF_BUF ,CCU_DIV_CTL_GATE_REF_BUF ); +spin_unlock_irqrestore (&div->lock, flags); +} + +static int ccu_div_buf_is_enabled (struct clk_hw *hw) +{ +struct ccu_div *div =to_ccu_div (hw); +u32 val =0 ; + +regmap_read (div->sys_regs, div->reg_ctl, &val); + +return !(val &CCU_DIV_CTL_GATE_REF_BUF ); +} +static unsigned long ccu_div_var_recalc_rate (struct clk_hw *hw,unsigned long parent_rate) {
@@ -323,6 +358,7 @@ static const struct ccu_div_dbgfs_bit ccu_div_bits[] = {CCU_DIV_DBGFS_BIT_ATTR ("div_en" ,CCU_DIV_CTL_EN ),CCU_DIV_DBGFS_BIT_ATTR ("div_rst" ,CCU_DIV_CTL_RST ),CCU_DIV_DBGFS_BIT_ATTR ("div_bypass" ,CCU_DIV_CTL_SET_CLKDIV ), +CCU_DIV_DBGFS_BIT_ATTR ("div_buf" ,CCU_DIV_CTL_GATE_REF_BUF ), CCU_DIV_DBGFS_BIT_ATTR("div_lock", CCU_DIV_CTL_LOCK_NORMAL) };
@@ -441,6 +477,9 @@ static void ccu_div_var_debug_init(struct clk_hw *hw, struct dentry *dentry)continue ; } +if (!strcmp ("div_buf" , name)) +continue ; + bits[didx] = ccu_div_bits[bidx]; bits[didx].div = div;
@@ -477,6 +516,21 @@ static void ccu_div_gate_debug_init(struct clk_hw *hw, struct dentry *dentry) &ccu_div_dbgfs_fixed_clkdiv_fops); } +static void ccu_div_buf_debug_init (struct clk_hw *hw,struct dentry *dentry) +{ +struct ccu_div *div =to_ccu_div (hw); +struct ccu_div_dbgfs_bit *bit; + + bit =kmalloc (sizeof (*bit),GFP_KERNEL ); +if (!bit) +return ; + + *bit = ccu_div_bits[3 ]; + bit->div = div; +debugfs_create_file_unsafe (bit->name, ccu_div_dbgfs_mode, dentry, bit, + &ccu_div_dbgfs_bit_fops); +} +static void ccu_div_fixed_debug_init (struct clk_hw *hw,struct dentry *dentry) {struct ccu_div *div =to_ccu_div (hw);
@@ -489,6 +543,7 @@ static void ccu_div_fixed_debug_init(struct clk_hw *hw, struct dentry *dentry)#define ccu_div_var_debug_init NULL#define ccu_div_gate_debug_init NULL +#define ccu_div_buf_debug_init NULL#define ccu_div_fixed_debug_init NULL#endif /* !CONFIG_DEBUG_FS */
@@ -520,6 +575,13 @@ static const struct clk_ops ccu_div_gate_ops = { .debug_init = ccu_div_gate_debug_init }; +static const struct clk_ops ccu_div_buf_ops = { + .enable = ccu_div_buf_enable, + .disable = ccu_div_buf_disable, + .is_enabled = ccu_div_buf_is_enabled, + .debug_init = ccu_div_buf_debug_init +}; +static const struct clk_ops ccu_div_fixed_ops = { .recalc_rate = ccu_div_fixed_recalc_rate, .round_rate = ccu_div_fixed_round_rate,
@@ -566,6 +628,8 @@ struct ccu_div *ccu_div_hw_register(const struct ccu_div_init_data *div_init) }else if (div_init->type ==CCU_DIV_GATE ) { hw_init.ops = &ccu_div_gate_ops; div->divider = div_init->divider; + }else if (div_init->type ==CCU_DIV_BUF ) { + hw_init.ops = &ccu_div_buf_ops; }else if (div_init->type ==CCU_DIV_FIXED ) { hw_init.ops = &ccu_div_fixed_ops; div->divider = div_init->divider;
drivers/clk/baikal-t1/ccu-div.h +4 -0
@@ -15,8 +15,10 @@/* * CCU Divider private clock IDs +* @CCU_SYS_SATA_CLK: CCU SATA internal clock * @CCU_SYS_XGMAC_CLK: CCU XGMAC internal clock */ +#define CCU_SYS_SATA_CLK -1#define CCU_SYS_XGMAC_CLK -2/*
@@ -37,11 +39,13 @@* enum ccu_div_type - CCU Divider types * @CCU_DIV_VAR: Clocks gate with variable divider. * @CCU_DIV_GATE: Clocks gate with fixed divider. +* @CCU_DIV_BUF: Clock gate with no divider. * @CCU_DIV_FIXED: Ungateable clock with fixed divider. */ enum ccu_div_type {CCU_DIV_VAR ,CCU_DIV_GATE , +CCU_DIV_BUF ,CCU_DIV_FIXED };
drivers/clk/baikal-t1/clk-ccu-div.c +17 -1
@@ -76,6 +76,16 @@ .divider = _divider \ } +#define CCU_DIV_BUF_INFO (_id, _name, _pname, _base, _flags) \ + { \ + .id = _id, \ + .name = _name, \ + .parent_name = _pname, \ + .base = _base, \ + .type = CCU_DIV_BUF, \ + .flags = _flags \ + } +#define CCU_DIV_FIXED_INFO (_id, _name, _pname, _divider) \ { \ .id = _id, \
@@ -188,11 +198,14 @@ static const struct ccu_div_rst_map axi_rst_map[] = {* for the SoC devices registers IO-operations. */ static const struct ccu_div_info sys_info[] = { -CCU_DIV_VAR_INFO (CCU_SYS_SATA_REF_CLK ,"sys_sata_ref_clk" , +CCU_DIV_VAR_INFO (CCU_SYS_SATA_CLK ,"sys_sata_clk" ,"sata_clk" ,CCU_SYS_SATA_REF_BASE ,4 ,CLK_SET_RATE_GATE ,CCU_DIV_SKIP_ONE |CCU_DIV_LOCK_SHIFTED |CCU_DIV_RESET_DOMAIN ), +CCU_DIV_BUF_INFO (CCU_SYS_SATA_REF_CLK ,"sys_sata_ref_clk" , +"sys_sata_clk" ,CCU_SYS_SATA_REF_BASE , +CLK_SET_RATE_PARENT ),CCU_DIV_VAR_INFO (CCU_SYS_APB_CLK ,"sys_apb_clk" ,"pcie_clk" ,CCU_SYS_APB_BASE ,5 ,CLK_IS_CRITICAL ,CCU_DIV_RESET_DOMAIN ),
@@ -398,6 +411,9 @@ static int ccu_div_clk_register(struct ccu_div_data *data) init.base = info->base; init.sys_regs = data->sys_regs; init.divider = info->divider; + }else if (init.type ==CCU_DIV_BUF ) { + init.base = info->base; + init.sys_regs = data->sys_regs; }else { init.divider = info->divider; }
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 561/862 staging: vt6655: fix some erroneous memory clean-up loops
In reply to Greg Kroah-HartmanFrom: Nam Cao <[email protected]>
[ Upstream commit 2a2db520e3ca5aafba7c211abfd397666c9b5f9d ]
In some initialization functions of this driver, memory is allocated with 'i' acting as an index variable and increasing from 0. The commit in "Fixes" introduces some clean-up codes in case of allocation failure, which free memory in reverse order with 'i' decreasing to 0. However, there are some problems:
- The case i=0 is left out. Thus memory is leaked.
- In case memory allocation fails right from the start, the memory freeing loops will start with i=-1 and invalid memory locations will be accessed.
One of these loops has been fixed in commit c8ff91535880 ("staging:
vt6655: fix potential memory leak"). Fix the remaining erroneous loops.
--- drivers/staging/vt6655/device_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/vt6655/device_main.c +3 -3
@@ -583,7 +583,7 @@ static int device_init_rd0_ring(struct vnt_private *priv)kfree (desc->rd_info); err_free_desc: -while (--i) { +while (i--) { desc = &priv->aRD0Ring[i];device_free_rx_buf (priv, desc);kfree (desc->rd_info);
@@ -629,7 +629,7 @@ static int device_init_rd1_ring(struct vnt_private *priv)kfree (desc->rd_info); err_free_desc: -while (--i) { +while (i--) { desc = &priv->aRD1Ring[i];device_free_rx_buf (priv, desc);kfree (desc->rd_info);
@@ -734,7 +734,7 @@ static int device_init_td1_ring(struct vnt_private *priv)return 0 ; err_free_desc: -while (--i) { +while (i--) { desc = &priv->apTD1Rings[i];kfree (desc->td_info); }
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 763/862 mmc: sdhci-msm: add compatible string check for sdm670
In reply to Greg Kroah-HartmanFrom: Richard Acayan <[email protected]>
[ Upstream commit 4de95950d970c71a9e82a24573bb7a44fd95baa1 ]
The Snapdragon 670 has the same quirk as Snapdragon 845 (needing to restore the dll config). Add a compatible string check to detect the need for this.
--- drivers/mmc/host/sdhci-msm.c | 1 + 1 file changed, 1 insertion(+)
drivers/mmc/host/sdhci-msm.c +1 -0
@@ -2441,6 +2441,7 @@ static const struct of_device_id sdhci_msm_dt_match[] = {*/ {.compatible = "qcom,sdhci-msm-v4", .data = &sdhci_msm_mci_var}, {.compatible = "qcom,sdhci-msm-v5", .data = &sdhci_msm_v5_var}, + {.compatible = "qcom,sdm670-sdhci", .data = &sdm845_sdhci_var}, {.compatible = "qcom,sdm845-sdhci", .data = &sdm845_sdhci_var}, {.compatible = "qcom,sc7180-sdhci", .data = &sdm845_sdhci_var}, {},
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 187/862 drm/i915: Fix watermark calculations for DG2 CCS modifiers
In reply to Greg Kroah-HartmanFrom: Ville Syrjälä <[email protected]>
commit ccfa6d35f9233702c924316cdf40c05b6ce88113 upstream.
Take the DG2 CCS modifiers into account when calculating the watermarks. Othwerwise we'll calculate the watermarks thinking these tile-4 modifiers are linear.
The rc_surface part is actually a nop since that is not used for any glk+ platform.
--- drivers/gpu/drm/i915/intel_pm.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/intel_pm.c +6 -2
@@ -5311,13 +5311,17 @@ skl_compute_wm_params(const struct intel modifier == I915_FORMAT_MOD_Yf_TILED_CCS || modifier ==I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS || modifier ==I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS || - modifier ==I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC ; + modifier ==I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC || + modifier ==I915_FORMAT_MOD_4_TILED_DG2_RC_CCS || + modifier ==I915_FORMAT_MOD_4_TILED_DG2_MC_CCS ; wp->x_tiled = modifier ==I915_FORMAT_MOD_X_TILED ; wp->rc_surface = modifier ==I915_FORMAT_MOD_Y_TILED_CCS || modifier == I915_FORMAT_MOD_Yf_TILED_CCS || modifier ==I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS || modifier ==I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS || - modifier ==I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC ; + modifier ==I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC || + modifier ==I915_FORMAT_MOD_4_TILED_DG2_RC_CCS || + modifier ==I915_FORMAT_MOD_4_TILED_DG2_MC_CCS ; wp->is_planar =intel_format_info_is_yuv_semiplanar (format, modifier); wp->width = width;
Greg Kroah-Hartman
maintainerPATCH 355/862 drm/bridge: tc358767: Add of_node_put() when breaking out of loop
In reply to Greg Kroah-HartmanFrom: Liang He <[email protected]>
[ Upstream commit 14e7157afb055248ed34901fcd6fbf54201cfea1 ]
In tc_probe_bridge_endpoint(), we should call of_node_put() when breaking out of the for_each_endpoint_of_node() which will automatically increase and decrease the refcount.
--- drivers/gpu/drm/bridge/tc358767.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/bridge/tc358767.c +3 -2
@@ -2010,9 +2010,10 @@ static int tc_probe_bridge_endpoint(struct tc_data *tc)for_each_endpoint_of_node (dev->of_node, node) {of_graph_parse_endpoint (node, &endpoint); -if (endpoint.port >2 ) +if (endpoint.port >2 ) { +of_node_put (node);return -EINVAL ; - + } mode |=BIT (endpoint.port); }
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 290/862 wifi: mt76: fix uninitialized pointer in mt7921_mac_fill_rx
In reply to Greg Kroah-HartmanFrom: Lorenzo Bianconi <[email protected]>
[ Upstream commit 9be57ad73984545d594ed359dac19457bcb9fc27 ]
Initialize msta pointer to NULL in mt7921_mac_fill_rx() in order to not dereference a uninitialized pointer.
--- drivers/net/wireless/mediatek/mt76/mt7921/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/mediatek/mt76/mt7921/mac.c +1 -1
@@ -235,7 +235,7 @@ mt7921_mac_fill_rx(struct mt7921_dev *dev, struct sk_buff *skb)u32 rxd2 =le32_to_cpu (rxd[2 ]);u32 rxd3 =le32_to_cpu (rxd[3 ]);u32 rxd4 =le32_to_cpu (rxd[4 ]); -struct mt7921_sta *msta; +struct mt7921_sta *msta =NULL ;u16 seq_ctrl =0 ;__le16 fc =0 ;u8 mode =0 ;
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 300/862 netfilter: conntrack: fix the gc rescheduling delay
In reply to Greg Kroah-HartmanFrom: Antoine Tenart <[email protected]>
[ Upstream commit 95eabdd207024312876d0ebed90b4c977e050e85 ]
Commit 2cfadb761d3d ("netfilter: conntrack: revisit gc autotuning") changed the eviction rescheduling to the use average expiry of scanned entries (within 1-60s) by doing:
for (...) {
expires = clamp(nf_ct_expires(tmp), ...);
next_run += expires;
next_run /= 2;
}The issue is the above will make the average ('next_run' here) more dependent on the last expiration values than the firsts (for sets > 2). Depending on the expiration values used to compute the average, the result can be quite different than what's expected. To fix this we can do the following:
for (...) {
expires = clamp(nf_ct_expires(tmp), ...);
next_run += (expires - next_run) / ++count;
}--- net/netfilter/nf_conntrack_core.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
net/netfilter/nf_conntrack_core.c +8 -2
@@ -67,6 +67,7 @@ struct conntrack_gc_work {struct delayed_work dwork;u32 next_bucket;u32 avg_timeout; +u32 count;u32 start_time;bool exiting;bool early_drop;
@@ -1466,6 +1467,7 @@ static void gc_worker(struct work_struct *work)unsigned int expired_count =0 ;unsigned long next_run;s32 delta_time; +long count; gc_work = container_of(work, struct conntrack_gc_work, dwork.work);
@@ -1475,10 +1477,12 @@ static void gc_worker(struct work_struct *work)if (i ==0 ) { gc_work->avg_timeout =GC_SCAN_INTERVAL_INIT ; + gc_work->count =1 ; gc_work->start_time = start_time; } next_run = gc_work->avg_timeout; + count = gc_work->count; end_time = start_time +GC_SCAN_MAX_DURATION ;
@@ -1498,8 +1502,8 @@ static void gc_worker(struct work_struct *work)hlist_nulls_for_each_entry_rcu (h, n, &ct_hash[i], hnnode) {struct nf_conntrack_net *cnet; -unsigned long expires;struct net *net; +long expires; tmp =nf_ct_tuplehash_to_ctrack (h);
@@ -1513,6 +1517,7 @@ static void gc_worker(struct work_struct *work) gc_work->next_bucket = i; gc_work->avg_timeout = next_run; + gc_work->count = count; delta_time = nfct_time_stamp - gc_work->start_time;
@@ -1528,8 +1533,8 @@ static void gc_worker(struct work_struct *work) } expires =clamp (nf_ct_expires (tmp),GC_SCAN_INTERVAL_MIN ,GC_SCAN_INTERVAL_CLAMP ); + expires = (expires - (long )next_run) / ++count; next_run += expires; - next_run /=2u ;if (nf_conntrack_max95 ==0 ||gc_worker_skip_ct (tmp))continue ;
@@ -1570,6 +1575,7 @@ static void gc_worker(struct work_struct *work) delta_time = nfct_time_stamp - end_time;if (delta_time >0 && i < hashsz) { gc_work->avg_timeout = next_run; + gc_work->count = count; gc_work->next_bucket = i; next_run =0 ; goto early_exit;
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 734/862 ALSA: hda: Fix page fault in snd_hda_codec_shutdown()
In reply to Greg Kroah-HartmanFrom: Cezary Rojewski <[email protected]>
[ Upstream commit f2bd1c5ae2cb0cf9525c9bffc0038c12dd7e1338 ]
If early probe of HDAudio bus driver fails e.g.: due to missing firmware file, snd_hda_codec_shutdown() ends in manipulating uninitialized codec->pcm_list_head causing page fault.
Initialization of HDAudio codec in ASoC is split in two:
- snd_hda_codec_device_init()
- snd_hda_codec_device_new()
snd_hda_codec_device_init() is called during probe_codecs() by HDAudio bus driver while snd_hda_codec_device_new() is called by codec-component's ->probe(). The second call will not happen until all components required by related sound card are present within the ASoC framework. With firmware failing to load during the PCI's deferred initialization i.e.: probe_work(), no platform components are ever registered. HDAudio codec enumeration is done at that point though, so the codec components became registered to ASoC framework, calling snd_hda_codec_device_init() in the process.
Now, during platform reboot snd_hda_codec_shutdown() is called for every codec found on the HDAudio bus causing oops if any of them has not completed both of their initialization steps. Relocating field initialization fixes the issue.
--- sound/pci/hda/hda_codec.c | 41 +++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 21 deletions(-)
sound/pci/hda/hda_codec.c +20 -21
@@ -931,8 +931,28 @@ snd_hda_codec_device_init(struct hda_bus *bus, unsigned int codec_addr, } codec->bus = bus; + codec->depop_delay =-1 ; + codec->fixup_id =HDA_FIXUP_ID_NOT_SET ; + codec->core.dev.release = snd_hda_codec_dev_release; + codec->core.exec_verb = codec_exec_verb; codec->core.type =HDA_DEV_LEGACY ; +mutex_init (&codec->spdif_mutex); +mutex_init (&codec->control_mutex); +snd_array_init (&codec->mixers,sizeof (struct hda_nid_item ),32 ); +snd_array_init (&codec->nids,sizeof (struct hda_nid_item ),32 ); +snd_array_init (&codec->init_pins,sizeof (struct hda_pincfg ),16 ); +snd_array_init (&codec->driver_pins,sizeof (struct hda_pincfg ),16 ); +snd_array_init (&codec->cvt_setups,sizeof (struct hda_cvt_setup ),8 ); +snd_array_init (&codec->spdif_out,sizeof (struct hda_spdif_out ),16 ); +snd_array_init (&codec->jacktbl,sizeof (struct hda_jack_tbl ),16 ); +snd_array_init (&codec->verbs,sizeof (struct hda_verb *),8 ); +INIT_LIST_HEAD (&codec->conn_list); +INIT_LIST_HEAD (&codec->pcm_list_head); +INIT_DELAYED_WORK (&codec->jackpoll_work, hda_jackpoll_work); +refcount_set (&codec->pcm_ref,1 ); +init_waitqueue_head (&codec->remove_sleep); +return codec; }EXPORT_SYMBOL_GPL (snd_hda_codec_device_init);
@@ -985,29 +1005,8 @@ int snd_hda_codec_device_new(struct hda_bus *bus, struct snd_card *card,if (snd_BUG_ON (codec_addr >HDA_MAX_CODEC_ADDRESS ))return -EINVAL ; - codec->core.dev.release = snd_hda_codec_dev_release; - codec->core.exec_verb = codec_exec_verb; - codec->card = card; codec->addr = codec_addr; -mutex_init (&codec->spdif_mutex); -mutex_init (&codec->control_mutex); -snd_array_init (&codec->mixers,sizeof (struct hda_nid_item ),32 ); -snd_array_init (&codec->nids,sizeof (struct hda_nid_item ),32 ); -snd_array_init (&codec->init_pins,sizeof (struct hda_pincfg ),16 ); -snd_array_init (&codec->driver_pins,sizeof (struct hda_pincfg ),16 ); -snd_array_init (&codec->cvt_setups,sizeof (struct hda_cvt_setup ),8 ); -snd_array_init (&codec->spdif_out,sizeof (struct hda_spdif_out ),16 ); -snd_array_init (&codec->jacktbl,sizeof (struct hda_jack_tbl ),16 ); -snd_array_init (&codec->verbs,sizeof (struct hda_verb *),8 ); -INIT_LIST_HEAD (&codec->conn_list); -INIT_LIST_HEAD (&codec->pcm_list_head); -refcount_set (&codec->pcm_ref,1 ); -init_waitqueue_head (&codec->remove_sleep); - -INIT_DELAYED_WORK (&codec->jackpoll_work, hda_jackpoll_work); - codec->depop_delay =-1 ; - codec->fixup_id =HDA_FIXUP_ID_NOT_SET ;#ifdef CONFIG_PM codec->power_jiffies = jiffies;
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 105/862 slimbus: qcom-ngd: cleanup in probe error path
In reply to Greg Kroah-HartmanFrom: Krzysztof Kozlowski <[email protected]>
commit 16f14551d0df9e7cd283545d7d748829594d912f upstream.
Add proper error path in probe() to cleanup resources previously acquired/allocated to fix warnings visible during probe deferral:
notifier callback qcom_slim_ngd_ssr_notify already registered
WARNING: CPU: 6 PID: 70 at kernel/notifier.c:28 notifier_chain_register+0x5c/0x90 Modules linked in: CPU: 6 PID: 70 Comm: kworker/u16:1 Not tainted 6.0.0-rc3-next-20220830 #380 Call trace: notifier_chain_register+0x5c/0x90 srcu_notifier_chain_register+0x44/0x90 qcom_register_ssr_notifier+0x38/0x4c qcom_slim_ngd_ctrl_probe+0xd8/0x400 platform_probe+0x6c/0xe0 really_probe+0xbc/0x2d4 __driver_probe_device+0x78/0xe0 driver_probe_device+0x3c/0x12c __device_attach_driver+0xb8/0x120 bus_for_each_drv+0x78/0xd0 __device_attach+0xa8/0x1c0 device_initial_probe+0x18/0x24 bus_probe_device+0xa0/0xac deferred_probe_work_func+0x88/0xc0 process_one_work+0x1d4/0x320 worker_thread+0x2cc/0x44c kthread+0x110/0x114 ret_from_fork+0x10/0x20
--- drivers/slimbus/qcom-ngd-ctrl.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
drivers/slimbus/qcom-ngd-ctrl.c +11 -2
@@ -1576,18 +1576,27 @@ static int qcom_slim_ngd_ctrl_probe(stru ctrl->pdr =pdr_handle_alloc (slim_pd_status, ctrl);if (IS_ERR (ctrl->pdr)) {dev_err (dev,"Failed to init PDR handle\n" ); -return PTR_ERR (ctrl->pdr); + ret =PTR_ERR (ctrl->pdr); + goto err_pdr_alloc; } pds =pdr_add_lookup (ctrl->pdr,"avs/audio" ,"msm/adsp/audio_pd" );if (IS_ERR (pds) &&PTR_ERR (pds) != -EALREADY ) { ret =PTR_ERR (pds);dev_err (dev,"pdr add lookup failed: %d\n" , ret); -return ret; + goto err_pdr_lookup; }platform_driver_register (&qcom_slim_ngd_driver);return of_qcom_slim_ngd_register (dev, ctrl); + +err_pdr_alloc: +qcom_unregister_ssr_notifier (ctrl->notifier, &ctrl->nb); + +err_pdr_lookup: +pdr_handle_release (ctrl->pdr); + +return ret; }static int qcom_slim_ngd_ctrl_remove (struct platform_device *pdev)
Greg Kroah-Hartman
maintainerPATCH 177/862 KVM: x86: Treat #DBs from the emulator as fault-like (code and DR7.GD=1)
In reply to Greg Kroah-HartmanFrom: Sean Christopherson <[email protected]>
commit 5623f751bd9c438ed12840e086f33c4646440d19 upstream.
Add a dedicated "exception type" for #DBs, as #DBs can be fault-like or trap-like depending the sub-type of #DB, and effectively defer the decision of what to do with the #DB to the caller.
For the emulator's two calls to exception_type(), treat the #DB as fault-like, as the emulator handles only code breakpoint and general detect #DBs, both of which are fault-like.
For event injection, which uses exception_type() to determine whether to set EFLAGS.RF=1 on the stack, keep the current behavior of not setting RF=1 for #DBs. Intel and AMD explicitly state RF isn't set on code #DBs, so exempting by failing the "== EXCPT_FAULT" check is correct. The only other fault-like #DB is General Detect, and despite Intel and AMD both strongly implying (through omission) that General Detect #DBs should set RF=1, hardware (multiple generations of both Intel and AMD), in fact does not. Through insider knowledge, extreme foresight, sheer dumb luck, or some combination thereof, KVM correctly handled RF for General Detect #DBs.
--- arch/x86/kvm/x86.c | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-)
arch/x86/kvm/x86.c +25 -2
@@ -528,6 +528,7 @@ static int exception_class(int vector)#define EXCPT_TRAP 1#define EXCPT_ABORT 2#define EXCPT_INTERRUPT 3 +#define EXCPT_DB 4static int exception_type (int vector) {
@@ -538,8 +539,14 @@ static int exception_type(int vector) mask =1 << vector; -/* #DB is trap, as instruction watchpoints are handled elsewhere */ -if (mask & ((1 <<DB_VECTOR ) | (1 <<BP_VECTOR ) | (1 <<OF_VECTOR ))) +/* +* #DBs can be trap-like or fault-like, the caller must check other CPU +* state, e.g. DR6, to determine whether a #DB is a trap or fault. +*/ +if (mask & (1 <<DB_VECTOR )) +return EXCPT_DB ; + +if (mask & ((1 <<BP_VECTOR ) | (1 <<OF_VECTOR )))return EXCPT_TRAP ;if (mask & ((1 <<DF_VECTOR ) | (1 <<MC_VECTOR )))
@@ -8801,6 +8808,12 @@ writeback:unsigned long rflags =static_call (kvm_x86_get_rflags)(vcpu);toggle_interruptibility (vcpu, ctxt->interruptibility); vcpu->arch.emulate_regs_need_sync_to_vcpu = false; + +/* +* Note, EXCPT_DB is assumed to be fault-like as the emulator +* only supports code breakpoints and general detect #DB, both +* of which are fault-like. +*/ if (!ctxt->have_exception ||exception_type (ctxt->exception.vector) ==EXCPT_TRAP ) {kvm_pmu_trigger_event (vcpu,PERF_COUNT_HW_INSTRUCTIONS );
@@ -9724,6 +9737,16 @@ static int inject_pending_event(struct k/* try to inject new event if pending */ if (vcpu->arch.exception.pending) { +/* +* Fault-class exceptions, except #DBs, set RF=1 in the RFLAGS +* value pushed on the stack. Trap-like exception and all #DBs +* leave RF as-is (KVM follows Intel's behavior in this regard; +* AMD states that code breakpoint #DBs excplitly clear RF=0). +* +* Note, most versions of Intel's SDM and AMD's APM incorrectly +* describe the behavior of General Detect #DBs, which are +* fault-like. They do _not_ set RF, a la code breakpoints. +*/ if (exception_type (vcpu->arch.exception.nr) ==EXCPT_FAULT )__kvm_set_rflags (vcpu,kvm_get_rflags (vcpu) |X86_EFLAGS_RF );
Greg Kroah-Hartman
maintainerPATCH 539/862 ata: fix ata_id_sense_reporting_enabled() and ata_id_has_sense_reporting()
In reply to Greg Kroah-HartmanFrom: Niklas Cassel <[email protected]>
[ Upstream commit 690aa8c3ae308bc696ec8b1b357b995193927083 ]
ACS-5 section
7.13.6.41 Words 85..87, 120: Commands and feature sets supported or enabled states that:
If bit 15 of word 86 is set to one, bit 14 of word 119 is set to one, and bit 15 of word 119 is cleared to zero, then word 119 is valid.
If bit 15 of word 86 is set to one, bit 14 of word 120 is set to one, and bit 15 of word 120 is cleared to zero, then word 120 is valid.
(This text also exists in really old ACS standards, e.g. ACS-3.)
Currently, ata_id_sense_reporting_enabled() and ata_id_has_sense_reporting() both check bit 15 of word 86, but neither of them check that bit 14 of word 119 is set to one, or that bit 15 of word 119 is cleared to zero.
Additionally, make ata_id_sense_reporting_enabled() return false if !ata_id_has_sense_reporting(), similar to how e.g. ata_id_flush_ext_enabled() returns false if !ata_id_has_flush_ext().
--- include/linux/ata.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-)
include/linux/ata.h +9 -4
@@ -771,16 +771,21 @@ static inline bool ata_id_has_read_log_dma_ext(const u16 *id)static inline bool ata_id_has_sense_reporting (const u16 *id) { -if (!(id[ATA_ID_CFS_ENABLE_2 ] & (1 <<15 ))) +if (!(id[ATA_ID_CFS_ENABLE_2 ] &BIT (15 ))) +return false; +if ((id[ATA_ID_COMMAND_SET_3 ] & (BIT (15 ) |BIT (14 ))) !=BIT (14 ))return false; -return id[ATA_ID_COMMAND_SET_3 ] & (1 <<6 ); +return id[ATA_ID_COMMAND_SET_3 ] &BIT (6 ); }static inline bool ata_id_sense_reporting_enabled (const u16 *id) { -if (!(id[ATA_ID_CFS_ENABLE_2 ] & (1 <<15 ))) +if (!ata_id_has_sense_reporting (id)) +return false; +/* ata_id_has_sense_reporting() == true, word 86 must have bit 15 set */ +if ((id[ATA_ID_COMMAND_SET_4 ] & (BIT (15 ) |BIT (14 ))) !=BIT (14 ))return false; -return id[ATA_ID_COMMAND_SET_4 ] & (1 <<6 ); +return id[ATA_ID_COMMAND_SET_4 ] &BIT (6 ); }/**
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 166/862 rpmsg: char: Avoid double destroy of default endpoint
In reply to Greg Kroah-HartmanFrom: Shengjiu Wang <[email protected]>
commit 467233a4ac29b215d492843d067a9f091e6bf0c5 upstream.
The rpmsg_dev_remove() in rpmsg_core is the place for releasing this default endpoint.
So need to avoid destroying the default endpoint in rpmsg_chrdev_eptdev_destroy(), this should be the same as rpmsg_eptdev_release(). Otherwise there will be double destroy issue that ept->refcount report warning:
refcount_t: underflow; use-after-free.
Call trace: refcount_warn_saturate+0xf8/0x150 virtio_rpmsg_destroy_ept+0xd4/0xec rpmsg_dev_remove+0x60/0x70
The issue can be reproduced by stopping remoteproc before closing the /dev/rpmsgX.
--- drivers/rpmsg/rpmsg_char.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/rpmsg/rpmsg_char.c +3 -1
@@ -76,7 +76,9 @@ int rpmsg_chrdev_eptdev_destroy(struct dmutex_lock (&eptdev->ept_lock);if (eptdev->ept) { -rpmsg_destroy_ept (eptdev->ept); +/* The default endpoint is released by the rpmsg core */ +if (!eptdev->default_ept) +rpmsg_destroy_ept (eptdev->ept); eptdev->ept =NULL ; }mutex_unlock (&eptdev->ept_lock);
Greg Kroah-Hartman
maintainerPATCH 126/862 f2fs: increase the limit for reserve_root
In reply to Greg Kroah-HartmanFrom: Jaegeuk Kim <[email protected]>
commit da35fe96d12d15779f3cb74929b7ed03941cf983 upstream.
This patch increases the threshold that limits the reserved root space from 0.2% to 12.5% by using simple shift operation.
Typically Android sets 128MB, but if the storage capacity is 32GB, 0.2% which is around 64MB becomes too small. Let's relax it.
--- fs/f2fs/super.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
fs/f2fs/super.c +2 -2
@@ -301,10 +301,10 @@ static void f2fs_destroy_casefold_cache(static inline void limit_reserve_root (struct f2fs_sb_info *sbi) { -block_t limit =min ((sbi->user_block_count <<1 ) /1000 , +block_t limit =min ((sbi->user_block_count >>3 ), sbi->user_block_count - sbi->reserved_blocks); -/* limit is 0.2% */ +/* limit is 12.5% */ if (test_opt (sbi,RESERVE_ROOT ) &&F2FS_OPTION (sbi).root_reserved_blocks > limit) {F2FS_OPTION (sbi).root_reserved_blocks = limit;
Greg Kroah-Hartman
maintainerPATCH 138/862 ext4: fix check for block being out of directory size
In reply to Greg Kroah-HartmanFrom: Jan Kara <[email protected]>
commit 61a1d87a324ad5e3ed27c6699dfc93218fcf3201 upstream.
The check in __ext4_read_dirblock() for block being outside of directory size was wrong because it compared block number against directory size in bytes. Fix it.
CVE: CVE-2022-1184
--- fs/ext4/namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ext4/namei.c +1 -1
@@ -126,7 +126,7 @@ static struct buffer_head *__ext4_read_dstruct ext4_dir_entry *dirent;int is_dx_block =0 ; -if (block >= inode->i_size) { +if (block >= inode->i_size >> inode->i_blkbits) {ext4_error_inode (inode, func, line, block,"Attempting to read directory block (%u) that is past i_size (%llu)" , block, inode->i_size);
Greg Kroah-Hartman
maintainerPATCH 173/862 blk-wbt: call rq_qos_add() after wb_normal is initialized
In reply to Greg Kroah-HartmanFrom: Yu Kuai <[email protected]>
commit 8c5035dfbb9475b67c82b3fdb7351236525bf52b upstream.
Our test found a problem that wbt inflight counter is negative, which will cause io hang(noted that this problem doesn't exist in mainline):
t1: device create t2: issue ioadd_disk
blk_register_queue
wbt_enable_default
wbt_init
rq_qos_add
// wb_normal is still 0
/*
* in mainline, disk can't be opened before
* bdev_add(), however, in old kernels, disk
* can be opened before blk_register_queue().
*/
blkdev_issue_flush
// disk size is 0, however, it's not checked
submit_bio_wait
submit_bio
blk_mq_submit_bio
rq_qos_throttle
wbt_wait
bio_to_wbt_flags
rwb_enabled
// wb_normal is 0, inflight is not increased
wbt_queue_depth_changed(&rwb->rqos);
wbt_update_limits
// wb_normal is initialized
rq_qos_track
wbt_track
rq->wbt_flags |= bio_to_wbt_flags(rwb, bio);
// wb_normal is not 0,wbt_flags will be sett3: io completionblk_mq_free_request
rq_qos_done
wbt_done
wbt_is_tracked
// return true
__wbt_done
wbt_rqw_done
atomic_dec_return(&rqw->inflight);
// inflight is decreasedcommit 8235b5c1e8c1 ("block: call bdev_add later in device_add_disk") can avoid this problem, however it's better to fix this problem in wbt:
1) Lower kernel can't backport this patch due to lots of refactor.
2) Root cause is that wbt call rq_qos_add() before wb_normal is initialized.
--- block/blk-wbt.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
block/blk-wbt.c +4 -5
@@ -843,6 +843,10 @@ int wbt_init(struct request_queue *q) rwb->enable_state =WBT_STATE_ON_DEFAULT ; rwb->wc =1 ; rwb->rq_depth.default_depth =RWB_DEF_DEPTH ; + rwb->min_lat_nsec =wbt_default_latency_nsec (q); + +wbt_queue_depth_changed (&rwb->rqos); +wbt_set_write_cache (q,test_bit (QUEUE_FLAG_WC , &q->queue_flags));/* * Assign rwb and add the stats callback.
@@ -853,11 +857,6 @@ int wbt_init(struct request_queue *q)blk_stat_add_callback (q, rwb->cb); - rwb->min_lat_nsec =wbt_default_latency_nsec (q); - -wbt_queue_depth_changed (&rwb->rqos); -wbt_set_write_cache (q,test_bit (QUEUE_FLAG_WC , &q->queue_flags)); -return 0 ; err_free:
Greg Kroah-Hartman
maintainerPATCH 553/862 xhci: Dont show warning for reinit on known broken suspend
In reply to Greg Kroah-HartmanFrom: Mario Limonciello <[email protected]>
[ Upstream commit 484d6f7aa3283d082c87654b7fe7a7f725423dfb ]
commit 8b328f8002bc ("xhci: re-initialize the HC during resume if HCE was set") introduced a new warning message when the host controller error was set and re-initializing.
This is expected behavior on some designs which already set xhci->broken_suspend so the new warning is alarming to some users.
Modify the code to only show the warning if this was a surprising behavior to the XHCI driver.
--- drivers/usb/host/xhci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/usb/host/xhci.c +2 -1
@@ -1183,7 +1183,8 @@ int xhci_resume(struct xhci_hcd *xhci, bool hibernated)/* re-initialize the HC on Restore Error, or Host Controller Error */ if (temp & (STS_SRE |STS_HCE )) { reinit_xhc = true; -xhci_warn (xhci,"xHC error in resume, USBSTS 0x%x, Reinit\n" , temp); +if (!xhci->broken_suspend) +xhci_warn (xhci,"xHC error in resume, USBSTS 0x%x, Reinit\n" , temp); }if (reinit_xhc) {
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 113/862 ksmbd: fix incorrect handling of iterate_dir
In reply to Greg Kroah-HartmanFrom: Namjae Jeon <[email protected]>
commit 88541cb414b7a2450c45fc9c131b37b5753b7679 upstream.
if iterate_dir() returns non-negative value, caller has to treat it as normal and check there is any error while populating dentry information. ksmbd doesn't have to do anything because ksmbd already checks too small OutputBufferLength to store one file information.
And because ctx->pos is set to file->f_pos when iterative_dir is called, remove restart_ctx(). And if iterate_dir() return -EIO, which mean directory entry is corrupted, return STATUS_FILE_CORRUPT_ERROR error response.
This patch fixes some failure of SMB2_QUERY_DIRECTORY, which happens when ntfs3 is local filesystem.
--- fs/ksmbd/smb2pdu.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-)
fs/ksmbd/smb2pdu.c +4 -10
@@ -3808,11 +3808,6 @@ static int __query_dir(struct dir_contexreturn 0 ; } -static void restart_ctx (struct dir_context *ctx) -{ - ctx->pos =0 ; -} -static int verify_info_level (int info_level) {switch (info_level) {
@@ -3921,7 +3916,6 @@ int smb2_query_dir(struct ksmbd_work *woif (srch_flag &SMB2_REOPEN || srch_flag &SMB2_RESTART_SCANS ) {ksmbd_debug (SMB ,"Restart directory scan\n" );generic_file_llseek (dir_fp->filp,0 ,SEEK_SET ); -restart_ctx (&dir_fp->readdir_data.ctx); }memset (&d_info,0 ,sizeof (struct ksmbd_dir_info ));
@@ -3968,11 +3962,9 @@ int smb2_query_dir(struct ksmbd_work *wo*/ if (!d_info.out_buf_len && !d_info.num_entry) goto no_buf_len; -if (rc ==0 ) -restart_ctx (&dir_fp->readdir_data.ctx); -if (rc == -ENOSPC ) +if (rc >0 || rc == -ENOSPC ) rc =0 ; -if (rc) +else if (rc) goto err_out; d_info.wptr = d_info.rptr;
@@ -4029,6 +4021,8 @@ err_out2: rsp->hdr.Status =STATUS_NO_MEMORY ; else if (rc == -EFAULT) rsp->hdr.Status = STATUS_INVALID_INFO_CLASS; + else if (rc == -EIO) + rsp->hdr.Status = STATUS_FILE_CORRUPT_ERROR;if (!rsp->hdr.Status) rsp->hdr.Status =STATUS_UNEXPECTED_IO_ERROR ;
Greg Kroah-Hartman
maintainerPATCH 89/862 PCI: Sanitise firmware BAR assignments behind a PCI-PCI bridge
In reply to Greg Kroah-HartmanFrom: Maciej W. Rozycki <[email protected]>
commit 0e32818397426a688f598f35d3bc762eca6d7592 upstream.
When pci_assign_resource() is unable to assign resources to a BAR, it uses pci_revert_fw_address() to fall back to a firmware assignment (if any). Previously pci_revert_fw_address() assumed all addresses could reach the device, but this is not true if the device is below a bridge that only forwards addresses within its windows.
This problem was observed on a Tyan Tomcat IV S1564D system where the BIOS did not assign valid addresses to several bridges and USB devices:
pci 0000:00:11.0: PCI-to-PCIe bridge to [bus 01-ff]
pci 0000:00:11.0: bridge window [io 0xe000-0xefff]
pci 0000:01:00.0: PCIe Upstream Port to [bus 02-ff]
pci 0000:01:00.0: bridge window [io 0x0000-0x0fff] # unreachable
pci 0000:02:02.0: PCIe Downstream Port to [bus 05-ff]
pci 0000:02:02.0: bridge window [io 0x0000-0x0fff] # unreachable
pci 0000:05:00.0: PCIe-to-PCI bridge to [bus 06-ff]
pci 0000:05:00.0: bridge window [io 0x0000-0x0fff] # unreachable
pci 0000:06:08.0: USB UHCI 1.1
pci 0000:06:08.0: BAR 4: [io 0xfce0-0xfcff] # unreachable
pci 0000:06:08.1: USB UHCI 1.1
pci 0000:06:08.1: BAR 4: [io 0xfce0-0xfcff] # unreachable
pci 0000:06:08.0: can't claim BAR 4 [io 0xfce0-0xfcff]: no compatible bridge window pci 0000:06:08.1: can't claim BAR 4 [io 0xfce0-0xfcff]: no compatible bridge window
During the first pass of assigning unassigned resources, there was not enough I/O space available, so we couldn't assign the 06:08.0 BAR and reverted to the firmware assignment (still unreachable). Reverting the 06:08.1 assignment failed because it conflicted with 06:08.0:
pci 0000:00:11.0: bridge window [io 0xe000-0xefff]
pci 0000:01:00.0: no space for bridge window [io size 0x2000] pci 0000:02:02.0: no space for bridge window [io size 0x1000] pci 0000:05:00.0: no space for bridge window [io size 0x1000]
pci 0000:06:08.0: BAR 4: no space for [io size 0x0020]
pci 0000:06:08.0: BAR 4: trying firmware assignment [io 0xfce0-0xfcff]
pci 0000:06:08.1: BAR 4: no space for [io size 0x0020]
pci 0000:06:08.1: BAR 4: trying firmware assignment [io 0xfce0-0xfcff]
pci 0000:06:08.1: BAR 4: [io 0xfce0-0xfcff] conflicts with 0000:06:08.0 [io 0xfce0-0xfcff]
A subsequent pass assigned valid bridge windows and a valid 06:08.1 BAR, but left the 06:08.0 BAR alone, so the UHCI device was still unusable:
pci 0000:00:11.0: bridge window [io 0xe000-0xefff] released pci 0000:00:11.0: bridge window [io 0x1000-0x2fff] # reassigned pci 0000:01:00.0: bridge window [io 0x1000-0x2fff] # reassigned pci 0000:02:02.0: bridge window [io 0x2000-0x2fff] # reassigned pci 0000:05:00.0: bridge window [io 0x2000-0x2fff] # reassigned pci 0000:06:08.0: BAR 4: assigned [io 0xfce0-0xfcff] # left alone pci 0000:06:08.1: BAR 4: assigned [io 0x2000-0x201f]
...
uhci_hcd 0000:06:08.0: host system error, PCI problems?
uhci_hcd 0000:06:08.0: host controller process error, something bad happened! uhci_hcd 0000:06:08.0: host controller halted, very bad! uhci_hcd 0000:06:08.0: HCRESET not completed yet!
uhci_hcd 0000:06:08.0: HC died; cleaning up
If the address assigned by firmware is not reachable because it's not within upstream bridge windows, fail instead of assigning the unusable address from firmware.
--- drivers/pci/setup-res.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
drivers/pci/setup-res.c +11 -0
@@ -214,6 +214,17 @@ static int pci_revert_fw_address(struct root =pci_find_parent_resource (dev, res);if (!root) { +/* +* If dev is behind a bridge, accesses will only reach it +* if res is inside the relevant bridge window. +*/ +if (pci_upstream_bridge (dev)) +return -ENXIO ; + +/* +* On the root bus, assume the host bridge will forward +* everything. +*/ if (res->flags &IORESOURCE_IO ) root = &ioport_resource;else
Greg Kroah-Hartman
maintainerPATCH 141/862 ext4: ext4_read_bh_lock() should submit IO if the buffer isnt uptodate
In reply to Greg Kroah-HartmanFrom: Zhang Yi <[email protected]>
commit 0b73284c564d3ae4feef4bc920292f004acf4980 upstream.
Recently we notice that ext4 filesystem would occasionally fail to read metadata from disk and report error message, but the disk and block layer looks fine. After analyse, we lockon commit 88dbcbb3a484 ("blkdev: avoid migration stalls for blkdev pages"). It provide a migration method for the bdev, we could move page that has buffers without extra users now, but it lock the buffers on the page, which breaks the fragile metadata read operation on ext4 filesystem, ext4_read_bh_lock() was copied from ll_rw_block(), it depends on the assumption of that locked buffer means it is under IO. So it just trylock the buffer and skip submit IO if it lock failed, after wait_on_buffer() we conclude IO error because the buffer is not uptodate.
This issue could be easily reproduced by add some delay just after buffer_migrate_lock_buffers() in __buffer_migrate_folio() and do fsstress on ext4 filesystem.
EXT4-fs error (device pmem1): __ext4_find_entry:1658: inode #73193:
comm fsstress: reading directory lblock 0
EXT4-fs error (device pmem1): __ext4_find_entry:1658: inode #75334:
comm fsstress: reading directory lblock 0
Fix it by removing the trylock logic in ext4_read_bh_lock(), just lock the buffer and submit IO if it's not uptodate, and also leave over readahead helper.
--- fs/ext4/super.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-)
fs/ext4/super.c +5 -11
@@ -205,19 +205,12 @@ int ext4_read_bh(struct buffer_head *bh,int ext4_read_bh_lock (struct buffer_head *bh,blk_opf_t op_flags,bool wait) { -if (trylock_buffer (bh)) { -if (wait) -return ext4_read_bh (bh, op_flags,NULL ); +lock_buffer (bh); +if (!wait) {ext4_read_bh_nowait (bh, op_flags,NULL );return 0 ; } -if (wait) { -wait_on_buffer (bh); -if (buffer_uptodate (bh)) -return 0 ; -return -EIO ; - } -return 0 ; +return ext4_read_bh (bh, op_flags,NULL ); }/*
@@ -264,7 +257,8 @@ void ext4_sb_breadahead_unmovable(structstruct buffer_head *bh =sb_getblk_gfp (sb, block,0 );if (likely (bh)) { -ext4_read_bh_lock (bh,REQ_RAHEAD , false); +if (trylock_buffer (bh)) +ext4_read_bh_nowait (bh,REQ_RAHEAD ,NULL );brelse (bh); } }
Greg Kroah-Hartman
maintainerPATCH 171/862 media: cedrus: Fix endless loop in cedrus_h265_skip_bits()
In reply to Greg Kroah-HartmanFrom: Dmitry Osipenko <[email protected]>
commit 91db7a3fc7fe670cf1770a398a43bb4a1f776bf1 upstream.
The busy status bit may never de-assert if number of programmed skip bits is incorrect, resulting in a kernel hang because the bit is polled endlessly in the code. Fix it by adding timeout for the bit-polling. This problem is reproducible by setting the data_bit_offset field of the HEVC slice params to a wrong value by userspace.
--- drivers/staging/media/sunxi/cedrus/cedrus_h265.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/staging/media/sunxi/cedrus/cedrus_h265.c +3 -2
@@ -234,8 +234,9 @@ static void cedrus_h265_skip_bits(structcedrus_write (dev,VE_DEC_H265_TRIGGER ,VE_DEC_H265_TRIGGER_FLUSH_BITS |VE_DEC_H265_TRIGGER_TYPE_N_BITS (tmp)); -while (cedrus_read (dev,VE_DEC_H265_STATUS ) &VE_DEC_H265_STATUS_VLD_BUSY ) -udelay (1 ); + +if (cedrus_wait_for (dev,VE_DEC_H265_STATUS ,VE_DEC_H265_STATUS_VLD_BUSY )) +dev_err_ratelimited (dev->dev,"timed out waiting to skip bits\n" ); count += tmp; }
Greg Kroah-Hartman
maintainerPATCH 543/862 mtd: rawnand: meson: fix bit map use in meson_nfc_ecc_correct()
In reply to Greg Kroah-HartmanFrom: Dan Carpenter <[email protected]>
[ Upstream commit 3e4ad3212cf22687410b1e8f4e68feec50646113 ]
The meson_nfc_ecc_correct() function accidentally does a right shift instead of a left shift so it only works for BIT(0). Also use BIT_ULL() because "correct_bitmap" is a u64 and we want to avoid shift wrapping bugs.
--- drivers/mtd/nand/raw/meson_nand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/mtd/nand/raw/meson_nand.c +2 -2
@@ -454,7 +454,7 @@ static int meson_nfc_ecc_correct(struct nand_chip *nand, u32 *bitflips,if (ECC_ERR_CNT (*info) !=ECC_UNCORRECTABLE ) { mtd->ecc_stats.corrected +=ECC_ERR_CNT (*info); *bitflips =max_t (u32, *bitflips,ECC_ERR_CNT (*info)); - *correct_bitmap |=1 >> i; + *correct_bitmap |=BIT_ULL (i);continue ; } if ((nand->options & NAND_NEED_SCRAMBLING) &&
@@ -800,7 +800,7 @@ static int meson_nfc_read_page_hwecc(struct nand_chip *nand, u8 *buf,u8 *data = buf + i * ecc->size;u8 *oob = nand->oob_poi + i * (ecc->bytes +2 ); -if (correct_bitmap & (1 << i)) +if (correct_bitmap &BIT_ULL (i))continue ; ret = nand_check_erased_ecc_chunk(data, ecc->size, oob, ecc->bytes + 2,
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 545/862 eventfd: guard wake_up in eventfd fs calls as well
In reply to Greg Kroah-HartmanFrom: Dylan Yudaken <[email protected]>
[ Upstream commit 9f0deaa12d832f488500a5afe9b912e9b3cfc432 ]
Guard wakeups that the user can trigger, and that may end up triggering a call back into eventfd_signal. This is in addition to the current approach that only guards in eventfd_signal.
Rename in_eventfd_signal -> in_eventfd at the same time to reflect this.
Without this there would be a deadlock in the following code using libaio:
int main()
{
struct io_context *ctx = NULL;
struct iocb iocb;
struct iocb *iocbs[] = { &iocb };
int evfd;
uint64_t val = 1;
evfd = eventfd(0, EFD_CLOEXEC);
assert(!io_setup(2, &ctx));
io_prep_poll(&iocb, evfd, POLLIN);
io_set_eventfd(&iocb, evfd);
assert(1 == io_submit(ctx, 1, iocbs));
write(evfd, &val, 8);
}--- fs/eventfd.c | 10 +++++++--- include/linux/eventfd.h | 2 +- include/linux/sched.h | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-)
fs/eventfd.c +7 -3
@@ -69,17 +69,17 @@ __u64 eventfd_signal(struct eventfd_ctx* it returns false, the eventfd_signal() call should be deferred to a * safe context. */ -if (WARN_ON_ONCE (current->in_eventfd_signal)) +if (WARN_ON_ONCE (current->in_eventfd))return 0 ;spin_lock_irqsave (&ctx->wqh.lock, flags); - current->in_eventfd_signal =1 ; + current->in_eventfd =1 ;if (ULLONG_MAX - ctx->count < n) n =ULLONG_MAX - ctx->count; ctx->count += n;if (waitqueue_active (&ctx->wqh))wake_up_locked_poll (&ctx->wqh,EPOLLIN ); - current->in_eventfd_signal =0 ; + current->in_eventfd =0 ;spin_unlock_irqrestore (&ctx->wqh.lock, flags);return n;
@@ -253,8 +253,10 @@ static ssize_t eventfd_read(struct kiocb__set_current_state (TASK_RUNNING ); }eventfd_ctx_do_read (ctx, &ucnt); + current->in_eventfd =1 ;if (waitqueue_active (&ctx->wqh))wake_up_locked_poll (&ctx->wqh,EPOLLOUT ); + current->in_eventfd =0 ;spin_unlock_irq (&ctx->wqh.lock);if (unlikely (copy_to_iter (&ucnt,sizeof (ucnt), to) !=sizeof (ucnt)))return -EFAULT ;
@@ -301,8 +303,10 @@ static ssize_t eventfd_write(struct file }if (likely (res >0 )) { ctx->count += ucnt; + current->in_eventfd =1 ;if (waitqueue_active (&ctx->wqh))wake_up_locked_poll (&ctx->wqh,EPOLLIN ); + current->in_eventfd =0 ; }spin_unlock_irq (&ctx->wqh.lock);
include/linux/eventfd.h +1 -1
@@ -46,7 +46,7 @@ void eventfd_ctx_do_read(struct eventfd_static inline bool eventfd_signal_allowed (void ) { -return !current->in_eventfd_signal; +return !current->in_eventfd; }#else /* CONFIG_EVENTFD */
include/linux/sched.h +1 -1
@@ -936,7 +936,7 @@ struct task_struct {#endif #ifdef CONFIG_EVENTFD /* Recursion prevention for eventfd_signal() */ - unsigned in_eventfd_signal:1; + unsigned in_eventfd:1;#endif #ifdef CONFIG_IOMMU_SVA unsigned pasid_activated:1;
Greg Kroah-Hartman
maintainerPATCH 610/862 powerpc/pci_dn: Add missing of_node_put()
In reply to Greg Kroah-HartmanFrom: Liang He <[email protected]>
[ Upstream commit 110a1fcb6c4d55144d8179983a475f17a1d6f832 ]
In pci_add_device_node_info(), use of_node_put() to drop the reference to 'parent' returned by of_get_parent() to keep refcount balance.
--- arch/powerpc/kernel/pci_dn.c | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/kernel/pci_dn.c +1 -0
@@ -330,6 +330,7 @@ struct pci_dn *pci_add_device_node_info(struct pci_controller *hose,INIT_LIST_HEAD (&pdn->list); parent =of_get_parent (dn); pdn->parent = parent ?PCI_DN (parent) :NULL ; +of_node_put (parent);if (pdn->parent)list_add_tail (&pdn->list, &pdn->parent->child_list);
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 602/862 mailbox: imx: fix RST channel support
In reply to Greg Kroah-HartmanFrom: Peng Fan <[email protected]>
[ Upstream commit 7e5cd064f73ccecd2ac1aadca078394bd25ea3ce ]
Because IMX_MU_xCR_MAX was increased to 5, some mu cfgs were not updated to include the CR register. Add the missed CR register to xcr array.
--- drivers/mailbox/imx-mailbox.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/mailbox/imx-mailbox.c +5 -5
@@ -904,7 +904,7 @@ static const struct imx_mu_dcfg imx_mu_cfg_imx7ulp = { .xTR = 0x20, .xRR = 0x40, .xSR = {0x60, 0x60, 0x60, 0x60}, - .xCR = {0x64, 0x64, 0x64, 0x64}, + .xCR = {0x64, 0x64, 0x64, 0x64, 0x64}, }; static const struct imx_mu_dcfg imx_mu_cfg_imx8ulp = {
@@ -927,7 +927,7 @@ static const struct imx_mu_dcfg imx_mu_cfg_imx8ulp_s4 = { .xTR = 0x200, .xRR = 0x280, .xSR = {0xC, 0x118, 0x124, 0x12C}, - .xCR = {0x110, 0x114, 0x120, 0x128}, + .xCR = {0x8, 0x110, 0x114, 0x120, 0x128}, }; static const struct imx_mu_dcfg imx_mu_cfg_imx93_s4 = {
@@ -938,7 +938,7 @@ static const struct imx_mu_dcfg imx_mu_cfg_imx93_s4 = { .xTR = 0x200, .xRR = 0x280, .xSR = {0xC, 0x118, 0x124, 0x12C}, - .xCR = {0x110, 0x114, 0x120, 0x128}, + .xCR = {0x8, 0x110, 0x114, 0x120, 0x128}, }; static const struct imx_mu_dcfg imx_mu_cfg_imx8_scu = {
@@ -949,7 +949,7 @@ static const struct imx_mu_dcfg imx_mu_cfg_imx8_scu = { .xTR = 0x0, .xRR = 0x10, .xSR = {0x20, 0x20, 0x20, 0x20}, - .xCR = {0x24, 0x24, 0x24, 0x24}, + .xCR = {0x24, 0x24, 0x24, 0x24, 0x24}, }; static const struct imx_mu_dcfg imx_mu_cfg_imx8_seco = {
@@ -960,7 +960,7 @@ static const struct imx_mu_dcfg imx_mu_cfg_imx8_seco = { .xTR = 0x0, .xRR = 0x10, .xSR = {0x20, 0x20, 0x20, 0x20}, - .xCR = {0x24, 0x24, 0x24, 0x24}, + .xCR = {0x24, 0x24, 0x24, 0x24, 0x24}, }; static const struct of_device_id imx_mu_dt_ids[] = {
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 114/862 ksmbd: fix endless loop when encryption for response fails
In reply to Greg Kroah-HartmanFrom: Namjae Jeon <[email protected]>
commit 360c8ee6fefdb496fffd2c18bb9a96a376a1a804 upstream.
If ->encrypt_resp return error, goto statement cause endless loop. It send an error response immediately after removing it.
--- fs/ksmbd/server.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
fs/ksmbd/server.c +1 -3
@@ -235,10 +235,8 @@ send:if (work->sess && work->sess->enc && work->encrypted && conn->ops->encrypt_resp) { rc = conn->ops->encrypt_resp (work); -if (rc <0 ) { +if (rc <0 ) conn->ops->set_rsp_status (work,STATUS_DATA_ERROR ); - goto send; - } }ksmbd_conn_write (work);
Greg Kroah-Hartman
maintainerPATCH 556/862 usb: dwc3: core: fix some leaks in probe
In reply to Greg Kroah-HartmanFrom: Dan Carpenter <[email protected]>
[ Upstream commit 2a735e4b5580a2a6bbd6572109b4c4f163c57462 ]
The dwc3_get_properties() function calls:
dwc->usb_psy = power_supply_get_by_name(usb_psy_name);
so there is some additional clean up required on these error paths.
--- drivers/usb/dwc3/core.c | 58 +++++++++++++++++++++++++---------------- 1 file changed, 36 insertions(+), 22 deletions(-)
drivers/usb/dwc3/core.c +36 -22
@@ -1712,8 +1712,10 @@ static int dwc3_probe(struct platform_device *pdev)dwc3_get_properties (dwc); dwc->reset =devm_reset_control_array_get_optional_shared (dev); -if (IS_ERR (dwc->reset)) -return PTR_ERR (dwc->reset); +if (IS_ERR (dwc->reset)) { + ret =PTR_ERR (dwc->reset); + goto put_usb_psy; + }if (dev->of_node) {/*
@@ -1723,45 +1725,57 @@ static int dwc3_probe(struct platform_device *pdev)* check for them to retain backwards compatibility. */ dwc->bus_clk =devm_clk_get_optional (dev,"bus_early" ); -if (IS_ERR (dwc->bus_clk)) -return dev_err_probe (dev,PTR_ERR (dwc->bus_clk), -"could not get bus clock\n" ); +if (IS_ERR (dwc->bus_clk)) { + ret =dev_err_probe (dev,PTR_ERR (dwc->bus_clk), +"could not get bus clock\n" ); + goto put_usb_psy; + }if (dwc->bus_clk ==NULL ) { dwc->bus_clk =devm_clk_get_optional (dev,"bus_clk" ); -if (IS_ERR (dwc->bus_clk)) -return dev_err_probe (dev,PTR_ERR (dwc->bus_clk), -"could not get bus clock\n" ); +if (IS_ERR (dwc->bus_clk)) { + ret =dev_err_probe (dev,PTR_ERR (dwc->bus_clk), +"could not get bus clock\n" ); + goto put_usb_psy; + } } dwc->ref_clk =devm_clk_get_optional (dev,"ref" ); -if (IS_ERR (dwc->ref_clk)) -return dev_err_probe (dev,PTR_ERR (dwc->ref_clk), -"could not get ref clock\n" ); +if (IS_ERR (dwc->ref_clk)) { + ret =dev_err_probe (dev,PTR_ERR (dwc->ref_clk), +"could not get ref clock\n" ); + goto put_usb_psy; + }if (dwc->ref_clk ==NULL ) { dwc->ref_clk =devm_clk_get_optional (dev,"ref_clk" ); -if (IS_ERR (dwc->ref_clk)) -return dev_err_probe (dev,PTR_ERR (dwc->ref_clk), -"could not get ref clock\n" ); +if (IS_ERR (dwc->ref_clk)) { + ret =dev_err_probe (dev,PTR_ERR (dwc->ref_clk), +"could not get ref clock\n" ); + goto put_usb_psy; + } } dwc->susp_clk =devm_clk_get_optional (dev,"suspend" ); -if (IS_ERR (dwc->susp_clk)) -return dev_err_probe (dev,PTR_ERR (dwc->susp_clk), -"could not get suspend clock\n" ); +if (IS_ERR (dwc->susp_clk)) { + ret =dev_err_probe (dev,PTR_ERR (dwc->susp_clk), +"could not get suspend clock\n" ); + goto put_usb_psy; + }if (dwc->susp_clk ==NULL ) { dwc->susp_clk =devm_clk_get_optional (dev,"suspend_clk" ); -if (IS_ERR (dwc->susp_clk)) -return dev_err_probe (dev,PTR_ERR (dwc->susp_clk), -"could not get suspend clock\n" ); +if (IS_ERR (dwc->susp_clk)) { + ret =dev_err_probe (dev,PTR_ERR (dwc->susp_clk), +"could not get suspend clock\n" ); + goto put_usb_psy; + } } } ret =reset_control_deassert (dwc->reset);if (ret) -return ret; + goto put_usb_psy; ret =dwc3_clk_enable (dwc);if (ret)
@@ -1861,7 +1875,7 @@ static int dwc3_probe(struct platform_device *pdev)dwc3_clk_disable (dwc); assert_reset:reset_control_assert (dwc->reset); - +put_usb_psy:if (dwc->usb_psy)power_supply_put (dwc->usb_psy);
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 87/862 xen/gntdev: Prevent leaking grants
In reply to Greg Kroah-HartmanFrom: M. Vefa Bicakci <[email protected]>
commit 0991028cd49567d7016d1b224fe0117c35059f86 upstream.
Prior to this commit, if a grant mapping operation failed partially, some of the entries in the map_ops array would be invalid, whereas all of the entries in the kmap_ops array would be valid. This in turn would cause the following logic in gntdev_map_grant_pages to become invalid:
for (i = 0; i < map->count; i++) {
if (map->map_ops[i].status == GNTST_okay) {
map->unmap_ops[i].handle = map->map_ops[i].handle;
if (!use_ptemod)
alloced++;
}
if (use_ptemod) {
if (map->kmap_ops[i].status == GNTST_okay) {
if (map->map_ops[i].status == GNTST_okay)
alloced++;
map->kunmap_ops[i].handle = map->kmap_ops[i].handle;
}
}
}
...
atomic_add(alloced, &map->live_grants);Assume that use_ptemod is true (i.e., the domain mapping the granted pages is a paravirtualized domain). In the code excerpt above, note that the "alloced" variable is only incremented when both kmap_ops[i].status and map_ops[i].status are set to GNTST_okay (i.e., both mapping operations are successful). However, as also noted above, there are cases where a grant mapping operation fails partially, breaking the assumption of the code excerpt above.
The aforementioned causes map->live_grants to be incorrectly set. In some cases, all of the map_ops mappings fail, but all of the kmap_ops mappings succeed, meaning that live_grants may remain zero. This in turn makes it impossible to unmap the successfully grant-mapped pages pointed to by kmap_ops, because unmap_grant_pages has the following snippet of code at its beginning:
if (atomic_read(&map->live_grants) == 0)
return; /* Nothing to do */
In other cases where only some of the map_ops mappings fail but all kmap_ops mappings succeed, live_grants is made positive, but when the user requests unmapping the grant-mapped pages, __unmap_grant_pages_done will then make map->live_grants negative, because the latter function does not check if all of the pages that were requested to be unmapped were actually unmapped, and the same function unconditionally subtracts "data->count" (i.e., a value that can be greater than map->live_grants) from map->live_grants. The side effects of a negative live_grants value have not been studied.
The net effect of all of this is that grant references are leaked in one of the above conditions. In Qubes OS v4.1 (which uses Xen's grant mechanism extensively for X11 GUI isolation), this issue manifests itself with warning messages like the following to be printed out by the Linux kernel in the VM that had granted pages (that contain X11 GUI window data) to dom0: "g.e. 0x1234 still pending", especially after the user rapidly resizes GUI VM windows (causing some grant-mapping operations to partially or completely fail, due to the fact that the VM unshares some of the pages as part of the window resizing, making the pages impossible to grant-map from dom0).
The fix for this issue involves counting all successful map_ops and kmap_ops mappings separately, and then adding the sum to live_grants. During unmapping, only the number of successfully unmapped grants is subtracted from live_grants. The code is also modified to check for negative live_grants values after the subtraction and warn the user.
--- drivers/xen/gntdev.c | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-)
drivers/xen/gntdev.c +17 -5
@@ -367,8 +367,7 @@ int gntdev_map_grant_pages(struct gntdevfor (i =0 ; i < map->count; i++) {if (map->map_ops[i].status == GNTST_okay) { map->unmap_ops[i].handle = map->map_ops[i].handle; -if (!use_ptemod) - alloced++; + alloced++; }else if (!err) err = -EINVAL ;
@@ -377,8 +376,7 @@ int gntdev_map_grant_pages(struct gntdevif (use_ptemod) {if (map->kmap_ops[i].status == GNTST_okay) { -if (map->map_ops[i].status == GNTST_okay) - alloced++; + alloced++; map->kunmap_ops[i].handle = map->kmap_ops[i].handle; }else if (!err) err = -EINVAL ;
@@ -394,8 +392,14 @@ static void __unmap_grant_pages_done(intunsigned int i;struct gntdev_grant_map *map = data->data;unsigned int offset = data->unmap_ops - map->unmap_ops; +int successful_unmaps =0 ; +int live_grants;for (i =0 ; i < data->count; i++) { +if (map->unmap_ops[offset + i].status == GNTST_okay && + map->unmap_ops[offset + i].handle !=INVALID_GRANT_HANDLE ) + successful_unmaps++; +WARN_ON (map->unmap_ops[offset + i].status != GNTST_okay && map->unmap_ops[offset + i].handle !=INVALID_GRANT_HANDLE ); pr_debug("unmap handle=%d st=%d\n",
@@ -403,6 +407,10 @@ static void __unmap_grant_pages_done(int map->unmap_ops[offset+i].status); map->unmap_ops[offset+i].handle =INVALID_GRANT_HANDLE ;if (use_ptemod) { +if (map->kunmap_ops[offset + i].status == GNTST_okay && + map->kunmap_ops[offset + i].handle !=INVALID_GRANT_HANDLE ) + successful_unmaps++; +WARN_ON (map->kunmap_ops[offset + i].status != GNTST_okay && map->kunmap_ops[offset + i].handle !=INVALID_GRANT_HANDLE ); pr_debug("kunmap handle=%u st=%d\n",
@@ -411,11 +419,15 @@ static void __unmap_grant_pages_done(int map->kunmap_ops[offset+i].handle =INVALID_GRANT_HANDLE ; } } +/* * Decrease the live-grant counter. This must happen after the loop to * prevent premature reuse of the grants by gnttab_mmap(). */ -atomic_sub (data->count, &map->live_grants); + live_grants =atomic_sub_return (successful_unmaps, &map->live_grants); +if (WARN_ON (live_grants <0 )) +pr_err ("%s: live_grants became negative (%d) after unmapping %d pages!\n" , + __func__, live_grants, successful_unmaps);/* Release reference taken by __unmap_grant_pages */ gntdev_put_map (NULL , map);
Greg Kroah-Hartman
maintainerPATCH 144/862 ext4: fix dir corruption when ext4_dx_add_entry() fails
In reply to Greg Kroah-HartmanFrom: Zhihao Cheng <[email protected]>
commit 7177dd009c7c04290891e9a534cd47d1b620bd04 upstream.
Following process may lead to fs corruption:
1. ext4_create(dir/foo)
ext4_add_nondir
ext4_add_entry
ext4_dx_add_entry
a. add_dirent_to_buf
ext4_mark_inode_dirty
ext4_handle_dirty_metadata // dir inode bh is recorded into journal
b. ext4_append // dx_get_count(entries) == dx_get_limit(entries)
ext4_bread(EXT4_GET_BLOCKS_CREATE)
ext4_getblk
ext4_map_blocks
ext4_ext_map_blocks
ext4_mb_new_blocks
dquot_alloc_block
dquot_alloc_space_nodirty
inode_add_bytes // update dir's i_blocks
ext4_ext_insert_extent
ext4_ext_dirty // record extent bh into journal
ext4_handle_dirty_metadata(bh)
// record new block into journal
inode->i_size += inode->i_sb->s_blocksize // new size(in mem)
c. ext4_handle_dirty_dx_node(bh2)
// record dir's new block(dx_node) into journal
d. ext4_handle_dirty_dx_node((frame - 1)->bh)
e. ext4_handle_dirty_dx_node(frame->bh)
f. do_split // ret err!
g. add_dirent_to_buf
ext4_mark_inode_dirty(dir) // update raw_inode on disk(skipped)2. fsck -a /dev/sdb
drop last block(dx_node) which beyonds dir's i_size.
/dev/sdb: recovering journal
/dev/sdb contains a file system with errors, check forced. /dev/sdb: Inode 12, end of extent exceeds allowed value
(logical block 128, physical block 3938, len 1)
3. fsck -fn /dev/sdb
dx_node->entry[i].blk > dir->i_size
Pass 2: Checking directory structure
Problem in HTREE directory inode 12 (/dir): bad block number 128. Clear HTree index? no
Problem in HTREE directory inode 12: block #3 has invalid depth (2) Problem in HTREE directory inode 12: block #3 has bad max hash Problem in HTREE directory inode 12: block #3 not referenced
Fix it by marking inode dirty directly inside ext4_append(). Fetch a reproducer in [Link].
--- fs/ext4/namei.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-)
fs/ext4/namei.c +10 -5
@@ -85,15 +85,20 @@ static struct buffer_head *ext4_append(hreturn bh; inode->i_size += inode->i_sb->s_blocksize;EXT4_I (inode)->i_disksize = inode->i_size; + err =ext4_mark_inode_dirty (handle, inode); +if (err) + goto out;BUFFER_TRACE (bh,"get_write_access" ); err =ext4_journal_get_write_access (handle, inode->i_sb, bh,EXT4_JTR_NONE ); -if (err) { -brelse (bh); -ext4_std_error (inode->i_sb, err); -return ERR_PTR (err); - } +if (err) + goto out;return bh; + +out: +brelse (bh); +ext4_std_error (inode->i_sb, err); +return ERR_PTR (err); } static int ext4_dx_csum_verify(struct inode *inode,
Greg Kroah-Hartman
maintainerPATCH 170/862 media: cedrus: Set the platform driver data earlier
In reply to Greg Kroah-HartmanFrom: Dmitry Osipenko <[email protected]>
commit 708938f8495147fe2e77a9a3e1015d8e6899323e upstream.
The cedrus_hw_resume() crashes with NULL deference on driver probe if runtime PM is disabled because it uses platform data that hasn't been set up yet. Fix this by setting the platform data earlier during probe.
--- drivers/staging/media/sunxi/cedrus/cedrus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/media/sunxi/cedrus/cedrus.c +2 -2
@@ -448,6 +448,8 @@ static int cedrus_probe(struct platform_if (!dev)return -ENOMEM ; +platform_set_drvdata (pdev, dev); + dev->vfd = cedrus_video_device; dev->dev = &pdev->dev; dev->pdev = pdev;
@@ -521,8 +523,6 @@ static int cedrus_probe(struct platform_ goto err_m2m_mc; } -platform_set_drvdata (pdev, dev); -return 0 ; err_m2m_mc:
Greg Kroah-Hartman
maintainerPATCH 151/862 ftrace: Still disable enabled records marked as disabled
In reply to Greg Kroah-HartmanFrom: Steven Rostedt (Google) <[email protected]>
commit cf04f2d5df0037741207382ac8fe289e8bf84ced upstream.
Weak functions started causing havoc as they showed up in the "available_filter_functions" and this confused people as to why some functions marked as "notrace" were listed, but when enabled they did nothing. This was because weak functions can still have fentry calls, and these addresses get added to the "available_filter_functions" file. kallsyms is what converts those addresses to names, and since the weak functions are not listed in kallsyms, it would just pick the function before that.
To solve this, there was a trick to detect weak functions listed, and these records would be marked as DISABLED so that they do not get enabled and are mostly ignored. As the processing of the list of all functions to figure out what is weak or not can take a long time, this process is put off into a kernel thread and run in parallel with the rest of start up.
Now the issue happens whet function tracing is enabled via the kernel command line. As it starts very early in boot up, it can be enabled before the records that are weak are marked to be disabled. This causes an issue in the accounting, as the weak records are enabled by the command line function tracing, but after boot up, they are not disabled.
The ftrace records have several accounting flags and a ref count. The DISABLED flag is just one. If the record is enabled before it is marked DISABLED it will get an ENABLED flag and also have its ref counter incremented. After it is marked for DISABLED, neither the ENABLED flag nor the ref counter is cleared. There's sanity checks on the records that are performed after an ftrace function is registered or unregistered, and this detected that there were records marked as ENABLED with ref counter that should not have been.
Note, the module loading code uses the DISABLED flag as well to keep its functions from being modified while its being loaded and some of these flags may get set in this process. So changing the verification code to ignore DISABLED records is a no go, as it still needs to verify that the module records are working too.
Also, the weak functions still are calling a trampoline. Even though they should never be called, it is dangerous to leave these weak functions calling a trampoline that is freed, so they should still be set back to nops.
There's two places that need to not skip records that have the ENABLED and the DISABLED flags set. That is where the ftrace_ops is processed and sets the records ref counts, and then later when the function itself is to be updated, and the ENABLED flag gets removed. Add a helper function "skip_record()" that returns true if the record has the DISABLED flag set but not the ENABLED flag.
--- kernel/trace/ftrace.c | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-)
kernel/trace/ftrace.c +16 -4
@@ -1644,6 +1644,18 @@ ftrace_find_tramp_ops_any_other(struct dstatic struct ftrace_ops *ftrace_find_tramp_ops_next (struct dyn_ftrace *rec,struct ftrace_ops *ops); +static bool skip_record (struct dyn_ftrace *rec) +{ +/* +* At boot up, weak functions are set to disable. Function tracing +* can be enabled before they are, and they still need to be disabled now. +* If the record is disabled, still continue if it is marked as already +* enabled (this is needed to keep the accounting working). +*/ +return rec->flags &FTRACE_FL_DISABLED && + !(rec->flags &FTRACE_FL_ENABLED ); +} +static bool __ftrace_hash_rec_update (struct ftrace_ops *ops,int filter_hash,bool inc)
@@ -1693,7 +1705,7 @@ static bool __ftrace_hash_rec_update(strint in_hash =0 ;int match =0 ; -if (rec->flags &FTRACE_FL_DISABLED ) +if (skip_record (rec))continue ;if (all) {
@@ -2126,7 +2138,7 @@ static int ftrace_check_record(struct dy ftrace_bug_type =FTRACE_BUG_UNKNOWN ; -if (rec->flags &FTRACE_FL_DISABLED ) +if (skip_record (rec))return FTRACE_UPDATE_IGNORE ;/*
@@ -2241,7 +2253,7 @@ static int ftrace_check_record(struct dyif (update) {/* If there's no more users, clear all flags */ if (!ftrace_rec_count (rec)) - rec->flags =0 ; + rec->flags &=FTRACE_FL_DISABLED ;else /* * Just disable the record, but keep the ops TRAMP
@@ -2634,7 +2646,7 @@ void __weak ftrace_replace_code(int mod_do_for_each_ftrace_rec (pg, rec) { -if (rec->flags &FTRACE_FL_DISABLED ) +if (skip_record (rec))continue ; failed =__ftrace_replace_code (rec, enable);
Greg Kroah-Hartman
maintainerPATCH 555/862 usb: typec: anx7411: Use of_get_child_by_name() instead of of_find_node_by_name()
In reply to Greg Kroah-HartmanFrom: Liang He <[email protected]>
[ Upstream commit e45d7337dc0e4f7f1c2876e1b22c71a544ad12fd ]
In anx7411_typec_switch_probe(), we should call of_get_child_by_name() instead of of_find_node_by_name() as of_find_xxx API will decrease the refcount of the 'from' argument.
--- drivers/usb/typec/anx7411.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/typec/anx7411.c +2 -2
@@ -1105,7 +1105,7 @@ static int anx7411_typec_switch_probe(struct anx7411_data *ctx,int ret;struct device_node *node; - node =of_find_node_by_name (dev->of_node,"orientation_switch" ); + node =of_get_child_by_name (dev->of_node,"orientation_switch" );if (!node)return 0 ;
@@ -1115,7 +1115,7 @@ static int anx7411_typec_switch_probe(struct anx7411_data *ctx,return ret; } - node =of_find_node_by_name (dev->of_node,"mode_switch" ); + node =of_get_child_by_name (dev->of_node,"mode_switch" );if (!node) {dev_err (dev,"no typec mux exist" ); ret = -ENODEV ;
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 152/862 ring-buffer: Allow splice to read previous partially read pages
In reply to Greg Kroah-HartmanFrom: Steven Rostedt (Google) <[email protected]>
commit fa8f4a89736b654125fb254b0db753ac68a5fced upstream.
If a page is partially read, and then the splice system call is run against the ring buffer, it will always fail to read, no matter how much is in the ring buffer. That's because the code path for a partial read of the page does will fail if the "full" flag is set.
The splice system call wants full pages, so if the read of the ring buffer is not yet full, it should return zero, and the splice will block. But if a previous read was done, where the beginning has been consumed, it should still be given to the splice caller if the rest of the page has been written to.
This caused the splice command to never consume data in this scenario, and let the ring buffer just fill up and lose events.
--- kernel/trace/ring_buffer.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
kernel/trace/ring_buffer.c +9 -1
@@ -5616,7 +5616,15 @@ int ring_buffer_read_page(struct trace_bunsigned int pos =0 ;unsigned int size; -if (full) +/* +* If a full page is expected, this can still be returned +* if there's been a previous partial read and the +* rest of the page can be read and the commit page is off +* the reader page. +*/ +if (full && + (!read || (len < (commit - read)) || + cpu_buffer->reader_page == cpu_buffer->commit_page)) goto out_unlock;if (len > (commit - read))
Greg Kroah-Hartman
maintainerPATCH 132/862 jbd2: fix potential use-after-free in jbd2_fc_wait_bufs
In reply to Greg Kroah-HartmanFrom: Ye Bin <[email protected]>
commit 243d1a5d505d0b0460c9af0ad56ed4a56ef0bebd upstream.
In 'jbd2_fc_wait_bufs' use 'bh' after put buffer head reference count which may lead to use-after-free.
So judge buffer if uptodate before put buffer head reference count.
--- fs/jbd2/journal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
fs/jbd2/journal.c +3 -3
@@ -923,16 +923,16 @@ int jbd2_fc_wait_bufs(journal_t *journalfor (i = j_fc_off -1 ; i >= j_fc_off - num_blks; i--) { bh = journal->j_fc_wbuf[i];wait_on_buffer (bh); -put_bh (bh); - journal->j_fc_wbuf[i] =NULL ;/* * Update j_fc_off so jbd2_fc_release_bufs can release remain * buffer head. */ if (unlikely (!buffer_uptodate (bh))) { - journal->j_fc_off = i; + journal->j_fc_off = i +1 ;return -EIO ; } +put_bh (bh); + journal->j_fc_wbuf[i] =NULL ; }return 0 ;
Greg Kroah-Hartman
maintainerPATCH 148/862 ext4: update state->fc_regions_size after successful memory allocation
In reply to Greg Kroah-HartmanFrom: Ye Bin <[email protected]>
commit 27cd49780381c6ccbf248798e5e8fd076200ffba upstream.
To avoid to 'state->fc_regions_size' mismatch with 'state->fc_regions' when fail to reallocate 'fc_reqions',only update 'state->fc_regions_size' after 'state->fc_regions' is allocated successfully.
--- fs/ext4/fast_commit.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
fs/ext4/fast_commit.c +5 -4
@@ -1689,14 +1689,15 @@ int ext4_fc_record_regions(struct super_if (state->fc_regions_used == state->fc_regions_size) {struct ext4_fc_alloc_region *fc_regions; - state->fc_regions_size += -EXT4_FC_REPLAY_REALLOC_INCREMENT ; fc_regions =krealloc (state->fc_regions, - state->fc_regions_size * -sizeof (struct ext4_fc_alloc_region ), +sizeof (struct ext4_fc_alloc_region ) * + (state->fc_regions_size + +EXT4_FC_REPLAY_REALLOC_INCREMENT ),GFP_KERNEL );if (!fc_regions)return -ENOMEM ; + state->fc_regions_size += +EXT4_FC_REPLAY_REALLOC_INCREMENT ; state->fc_regions = fc_regions; } region = &state->fc_regions[state->fc_regions_used++];
Greg Kroah-Hartman
maintainerPATCH 669/862 ACPI: tables: FPDT: Dont call acpi_os_map_memory() on invalid phys address
In reply to Greg Kroah-HartmanFrom: Hans de Goede <[email protected]>
[ Upstream commit 211391bf04b3c74e250c566eeff9cf808156c693 ]
On a Packard Bell Dot SC (Intel Atom N2600 model) there is a FPDT table which contains invalid physical addresses, with high bits set which fall outside the range of the CPU-s supported physical address range.
Calling acpi_os_map_memory() on such an invalid phys address leads to the below WARN_ON in ioremap triggering resulting in an oops/stacktrace.
Add code to verify the physical address before calling acpi_os_map_memory() to fix / avoid the oops.
[ 1.226900] ioremap: invalid physical address 3001000000000000 [ 1.226949] ------------[ cut here ]------------ [ 1.226962] WARNING: CPU: 1 PID: 1 at arch/x86/mm/ioremap.c:200 __ioremap_caller.cold+0x43/0x5f [ 1.226996] Modules linked in: [ 1.227016] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 6.0.0-rc3+ #490 [ 1.227029] Hardware name: Packard Bell dot s/SJE01_CT, BIOS V1.10 07/23/2013 [ 1.227038] RIP: 0010:__ioremap_caller.cold+0x43/0x5f [ 1.227054] Code: 96 00 00 e9 f8 af 24 ff 89 c6 48 c7 c7 d8 0c 84 99 e8 6a 96 00 00 e9 76 af 24 ff 48 89 fe 48 c7 c7 a8 0c 84 99 e8 56 96 00 00 <0f> 0b e9 60 af 24 ff 48 8b 34 24 48 c7 c7 40 0d 84 99 e8 3f 96 00 [ 1.227067] RSP: 0000:ffffb18c40033d60 EFLAGS: 00010286 [ 1.227084] RAX: 0000000000000032 RBX: 3001000000000000 RCX: 0000000000000000 [ 1.227095] RDX: 0000000000000001 RSI: 00000000ffffdfff RDI: 00000000ffffffff [ 1.227105] RBP: 3001000000000000 R08: 0000000000000000 R09: ffffb18c40033c18 [ 1.227115] R10: 0000000000000003 R11: ffffffff99d62fe8 R12: 0000000000000008 [ 1.227124] R13: 0003001000000000 R14: 0000000000001000 R15: 3001000000000000 [ 1.227135] FS: 0000000000000000(0000) GS:ffff913a3c080000(0000) knlGS:0000000000000000 [ 1.227146] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1.227156] CR2: 0000000000000000 CR3: 0000000018c26000 CR4: 00000000000006e0 [ 1.227167] Call Trace: [ 1.227176] <TASK> [ 1.227185] ? acpi_os_map_iomem+0x1c9/0x1e0 [ 1.227215] ? kmem_cache_alloc_trace+0x187/0x370 [ 1.227254] acpi_os_map_iomem+0x1c9/0x1e0 [ 1.227288] acpi_init_fpdt+0xa8/0x253 [ 1.227308] ? acpi_debugfs_init+0x1f/0x1f [ 1.227339] do_one_initcall+0x5a/0x300 [ 1.227406] ? rcu_read_lock_sched_held+0x3f/0x80 [ 1.227442] kernel_init_freeable+0x28b/0x2cc [ 1.227512] ? rest_init+0x170/0x170 [ 1.227538] kernel_init+0x16/0x140 [ 1.227552] ret_from_fork+0x1f/0x30 [ 1.227639] </TASK> [ 1.227647] irq event stamp: 186819 [ 1.227656] hardirqs last enabled at (186825): [<ffffffff98184a6e>] __up_console_sem+0x5e/0x70 [ 1.227672] hardirqs last disabled at (186830): [<ffffffff98184a53>] __up_console_sem+0x43/0x70 [ 1.227686] softirqs last enabled at (186576): [<ffffffff980fbc9d>] __irq_exit_rcu+0xed/0x160 [ 1.227701] softirqs last disabled at (186569): [<ffffffff980fbc9d>] __irq_exit_rcu+0xed/0x160 [ 1.227715] ---[ end trace 0000000000000000 ]---
--- drivers/acpi/acpi_fpdt.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)
drivers/acpi/acpi_fpdt.c +22 -0
@@ -143,6 +143,23 @@ static const struct attribute_group boot_attr_group = {static struct kobject *fpdt_kobj; +#if definedCONFIG_X86 && definedCONFIG_PHYS_ADDR_T_64BIT +#include <linux/processor.h> +static bool fpdt_address_valid (u64 address) +{ +/* +* On some systems the table contains invalid addresses +* with unsuppored high address bits set, check for this. +*/ +return !(address >> boot_cpu_data.x86_phys_bits); +} +#else +static bool fpdt_address_valid (u64 address) +{ +return true; +} +#endif +static int fpdt_process_subtable (u64 address,u32 subtable_type) {struct fpdt_subtable_header *subtable_header;
@@ -151,6 +168,11 @@ static int fpdt_process_subtable(u64 address, u32 subtable_type)u32 length, offset;int result; +if (!fpdt_address_valid (address)) { +pr_info (FW_BUG "invalid physical address: 0x%llx!\n" , address); +return -EINVAL ; + } + subtable_header =acpi_os_map_memory (address,sizeof (*subtable_header));if (!subtable_header)return -ENOMEM ;
Signature · 1 line
2.35.1
Re: [PATCH 6.0 528/862] phy: qcom-qmp-usb: fix memleak on probe deferral
In reply to Greg Kroah-HartmanQuoted 9 lines · Greg Kroah-Hartman
From: Johan Hovold <[email protected]>
[ Upstream commit
a5d6b1ac56cbd6b5850a3a54e35f1cb71e8e8cdd]Switch to using the device-managed
of_iomaphelper to avoid leaking memory on probe deferral and driver unbind.Note that this helper checks for already reserved regions and may fail if there are multiple devices claiming the same memory.
Again, because of the above, this should not be backported. Please drop.
Quoted 8 lines
Two bindings currently rely on overlapping mappings for the PCS region so fallback to non-exclusive mappings for those for now.
Fixes e78f3d15e115 ("phy: qcom-qmp: new qmp phy driver for qcom-chipsets")Signed-off-by Johan Hovold <[email protected]>Signed-off-by Vinod Koul <[email protected]>Signed-off-by Sasha Levin <[email protected]>
Johan
Greg Kroah-Hartman
maintainerRe: [PATCH 6.0 523/862] phy: qcom-qmp-pcie: add pcs_misc sanity check
In reply to Johan HovoldQuoted 12 lines · Johan Hovold
Quoted 11 lines · Greg Kroah-Hartman
From: Johan Hovold <[email protected]>
[ Upstream commit
ecd5507e72ea03659dc2cc3e4393fbf8f4e2e02a]Make sure that the (otherwise) optional
pcs_miscIO region has been provided in case the configuration specifies a corresponding initialisation table to avoid crashing with malformed device trees.Note that the related debug message is now superfluous as the region is only used when the configuration has a
pcs_misctable.
Quoted 8 lines
Quoted 5 lines
Fixes 421c9a0e9731 ("phy: qcom: qmp: Add SDM845 PCIe QMP PHY support")Signed-off-by Johan Hovold <[email protected]>Signed-off-by Vinod Koul <[email protected]>Signed-off-by Sasha Levin <[email protected]>This was added to prevent future bugs when adding support for new platforms and did not have a stable tag. Please drop.
Ok, that wasn't obvious at all from the changelog :(
I'll go drop this, and the others you marked as "should not be there" from the queue, thanks.
Maybe next time, don't use a Fixes: tag if the commit really doesn't "fix" anything in the current kernel...
thanks,
greg k-h
Greg Kroah-Hartman
maintainerPATCH 112/862 smb3: do not log confusing message when server returns no network interfaces
In reply to Greg Kroah-HartmanFrom: Steve French <[email protected]>
commit 4659f01e3cd94f64d9bd06764ace2ef8fe1b6227 upstream.
Some servers can return an empty network interface list so, unless multichannel is requested, no need to log an error for this, and when multichannel is requested on mount but no interfaces, log something less confusing. For this case change
parse_server_interfaces: malformed interface info
to
empty network interface list returned by server localhost
Also do not relog this error every ten minutes (only log on mount, once)
--- fs/cifs/cifsproto.h | 2 +- fs/cifs/connect.c | 2 +- fs/cifs/smb2ops.c | 23 ++++++++++++++++++----- 3 files changed, 20 insertions(+), 7 deletions(-)
fs/cifs/cifsproto.h +1 -1
@@ -639,7 +639,7 @@ cifs_chan_is_iface_active(struct cifs_seint cifs_chan_update_iface (struct cifs_ses *ses,struct TCP_Server_Info *server);int -SMB3_request_interfaces (const unsigned int xid,struct cifs_tcon *tcon); +SMB3_request_interfaces (const unsigned int xid,struct cifs_tcon *tcon,bool in_mount);void extract_unc_hostname (const char *unc,const char **h,size_t *len);int copy_path_name (char *dst,const char *src);
fs/cifs/connect.c +1 -1
@@ -155,7 +155,7 @@ static void smb2_query_server_interfaces/* * query server network interfaces, in case they change */ - rc =SMB3_request_interfaces (0 , tcon); + rc =SMB3_request_interfaces (0 , tcon, false);if (rc) {cifs_dbg (FYI ,"%s: failed to query server interfaces: %d\n" , __func__, rc);
fs/cifs/smb2ops.c +18 -5
@@ -512,8 +512,7 @@ smb3_negotiate_rsize(struct cifs_tcon *tstatic int parse_server_interfaces (struct network_interface_info_ioctl_rsp *buf, -size_t buf_len, -struct cifs_ses *ses) +size_t buf_len,struct cifs_ses *ses,bool in_mount) {struct network_interface_info_ioctl_rsp *p;struct sockaddr_in *addr4;
@@ -543,6 +542,20 @@ parse_server_interfaces(struct network_i }spin_unlock (&ses->iface_lock); +/* +* Samba server e.g. can return an empty interface list in some cases, +* which would only be a problem if we were requesting multichannel +*/ +if (bytes_left ==0 ) { +/* avoid spamming logs every 10 minutes, so log only in mount */ +if ((ses->chan_max >1 ) && in_mount) +cifs_dbg (VFS , +"empty network interface list returned by server %s\n" , + ses->server->hostname); + rc = -EINVAL ; + goto out; + } +while (bytes_left >=sizeof (*p)) {memset (&tmp_iface,0 ,sizeof (tmp_iface)); tmp_iface.speed =le64_to_cpu (p->LinkSpeed);
@@ -673,7 +686,7 @@ out: }int -SMB3_request_interfaces (const unsigned int xid,struct cifs_tcon *tcon) +SMB3_request_interfaces (const unsigned int xid,struct cifs_tcon *tcon,bool in_mount) {int rc;unsigned int ret_data_len =0 ;
@@ -693,7 +706,7 @@ SMB3_request_interfaces(const unsigned i goto out; } - rc =parse_server_interfaces (out_buf, ret_data_len, ses); + rc =parse_server_interfaces (out_buf, ret_data_len, ses, in_mount);if (rc) goto out;
@@ -729,7 +742,7 @@ smb3_qfs_tcon(const unsigned int xid, stif (rc)return ; -SMB3_request_interfaces (xid, tcon); +SMB3_request_interfaces (xid, tcon, true/* called during mount */ );SMB2_QFS_attr (xid, tcon, fid.persistent_fid, fid.volatile_fid,FS_ATTRIBUTE_INFORMATION );
Re: [PATCH 6.0 585/862] phy: qcom-qmp-pcie: fix resource mapping for SDM845 QHP PHY
In reply to Greg Kroah-HartmanQuoted 11 lines · Greg Kroah-Hartman
From: Dmitry Baryshkov <[email protected]>
[ Upstream commit
0a40891b83f257b25a2b983758f72f6813f361cb]On SDM845 one of PCIe PHYs (the QHP one) has the same region for TX and RX registers. Since the commit
4be26f695ffa("phy: qcom-qmp-pcie: fix memleak on probe deferral") added checking that resources are not allocated beforehand, this PHY can not be probed anymore. Fix this by skipping the map of ->rx resource on the QHP PHY and assign it manually.Fixes 4be26f695ffa ("phy: qcom-qmp-pcie: fix memleak on probe deferral")
This one is not needed in 6.0 since the offending commit should not be backported.
Quoted 5 lines
Signed-off-by Dmitry Baryshkov <[email protected]>Reviewed-by Johan Hovold <[email protected]>Signed-off-by Vinod Koul <[email protected]>Signed-off-by Sasha Levin <[email protected]>
Johan
Greg Kroah-Hartman
maintainerPATCH 288/862 wifi: mt76: mt7921: fix the firmware version report
In reply to Greg Kroah-HartmanFrom: Sean Wang <[email protected]>
[ Upstream commit 00be84d6dfc8319ed1864d3ca8658569d36a1882 ]
Fix the regression of the firmware version report since 'b9ec27102ac0 ('mt76: connac: move mt76_connac2_load_ram in connac module')'.
--- drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c +4 -0
@@ -2888,6 +2888,10 @@ int mt76_connac2_load_ram(struct mt76_dev *dev, const char *fw_wm, goto out; } +snprintf (dev->hw->wiphy->fw_version, +sizeof (dev->hw->wiphy->fw_version), +"%.10s-%.15s" , hdr->fw_ver, hdr->build_date); +release_firmware (fw);if (!fw_wa)
Signature · 1 line
2.35.1
Quoted 7 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.0.3 release. There are 862 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, 21 Oct 2022 08:30:19 +0000. Anything received after that time might be too late.
Hi Greg,
6.0.3-rc1 tested.
Run tested on:
- Intel Alder Lake x86_64 (nuc12 i7-1260P)
In addition - build tested for:
- Allwinner A64
- Allwinner H3
- Allwinner H5
- Allwinner H6
- NXP iMX6
- NXP iMX8
- Qualcomm Dragonboard
- Rockchip RK3288
- Rockchip RK3328
- Rockchip RK3399pro
- Samsung Exynos5422
--
Rudi
Greg Kroah-Hartman
maintainerPATCH 809/862 bcache: fix set_at_max_writeback_rate() for multiple attached devices
In reply to Greg Kroah-HartmanFrom: Coly Li <[email protected]>
[ Upstream commit d2d05b88035d2d51a5bb6c5afec88a0880c73df4 ]
Inside set_at_max_writeback_rate() the calculation in following if() check is wrong,
if (atomic_inc_return(&c->idle_counter) < atomic_read(&c->attached_dev_nr) * 6)
Because each attached backing device has its own writeback thread running and increasing c->idle_counter, the counter increates much faster than expected. The correct calculation should be,
(counter / dev_nr) < dev_nr * 6
which equals to,
counter < dev_nr * dev_nr * 6
This patch fixes the above mistake with correct calculation, and helper routine idle_counter_exceeded() is added to make code be more clear.
--- drivers/md/bcache/writeback.c | 73 +++++++++++++++++++++++++---------- 1 file changed, 52 insertions(+), 21 deletions(-)
drivers/md/bcache/writeback.c +52 -21
@@ -157,6 +157,53 @@ static void __update_writeback_rate(struct cached_dev *dc) dc->writeback_rate_target = target; } +static bool idle_counter_exceeded (struct cache_set *c) +{ +int counter, dev_nr; + +/* +* If c->idle_counter is overflow (idel for really long time), +* reset as 0 and not set maximum rate this time for code +* simplicity. +*/ + counter =atomic_inc_return (&c->idle_counter); +if (counter <=0 ) { +atomic_set (&c->idle_counter,0 ); +return false; + } + + dev_nr =atomic_read (&c->attached_dev_nr); +if (dev_nr ==0 ) +return false; + +/* +* c->idle_counter is increased by writeback thread of all +* attached backing devices, in order to represent a rough +* time period, counter should be divided by dev_nr. +* Otherwise the idle time cannot be larger with more backing +* device attached. +* The following calculation equals to checking +* (counter / dev_nr) < (dev_nr * 6) +*/ +if (counter < (dev_nr * dev_nr *6 )) +return false; + +return true; +} + +/* +* Idle_counter is increased every time when update_writeback_rate() is +* called. If all backing devices attached to the same cache set have +* identical dc->writeback_rate_update_seconds values, it is about 6 +* rounds of update_writeback_rate() on each backing device before +* c->at_max_writeback_rate is set to 1, and then max wrteback rate set +* to each dc->writeback_rate.rate. +* In order to avoid extra locking cost for counting exact dirty cached +* devices number, c->attached_dev_nr is used to calculate the idle +* throushold. It might be bigger if not all cached device are in write- +* back mode, but it still works well with limited extra rounds of +* update_writeback_rate(). +*/ static bool set_at_max_writeback_rate (struct cache_set *c,struct cached_dev *dc) {
@@ -167,21 +214,8 @@ static bool set_at_max_writeback_rate(struct cache_set *c,/* Don't set max writeback rate if gc is running */ if (!c->gc_mark_valid)return false; -/* -* Idle_counter is increased everytime when update_writeback_rate() is -* called. If all backing devices attached to the same cache set have -* identical dc->writeback_rate_update_seconds values, it is about 6 -* rounds of update_writeback_rate() on each backing device before -* c->at_max_writeback_rate is set to 1, and then max wrteback rate set -* to each dc->writeback_rate.rate. -* In order to avoid extra locking cost for counting exact dirty cached -* devices number, c->attached_dev_nr is used to calculate the idle -* throushold. It might be bigger if not all cached device are in write- -* back mode, but it still works well with limited extra rounds of -* update_writeback_rate(). -*/ -if (atomic_inc_return (&c->idle_counter) < -atomic_read (&c->attached_dev_nr) *6 ) + +if (!idle_counter_exceeded (c))return false;if (atomic_read (&c->at_max_writeback_rate) !=1 )
@@ -195,13 +229,10 @@ static bool set_at_max_writeback_rate(struct cache_set *c, dc->writeback_rate_change =0 ;/* -* Check c->idle_counter and c->at_max_writeback_rate agagain in case -* new I/O arrives during before set_at_max_writeback_rate() returns. -* Then the writeback rate is set to 1, and its new value should be -* decided via __update_writeback_rate(). +* In case new I/O arrives during before +* set_at_max_writeback_rate() returns. */ -if ((atomic_read (&c->idle_counter) < -atomic_read (&c->attached_dev_nr) *6 ) || +if (!idle_counter_exceeded (c) || !atomic_read (&c->at_max_writeback_rate))return false;
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 799/862 scsi: lpfc: Fix null ndlp ptr dereference in abnormal exit path for GFT_ID
In reply to Greg Kroah-HartmanFrom: James Smart <[email protected]>
[ Upstream commit 59b7e210a522b836a01516c71ee85d1d92c1f075 ]
An error case exit from lpfc_cmpl_ct_cmd_gft_id() results in a call to lpfc_nlp_put() with a null pointer to a nodelist structure.
Changed lpfc_cmpl_ct_cmd_gft_id() to initialize nodelist pointer upon entry.
--- drivers/scsi/lpfc/lpfc_ct.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/scsi/lpfc/lpfc_ct.c +2 -5
@@ -1509,7 +1509,7 @@ lpfc_cmpl_ct_cmd_gft_id(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,struct lpfc_sli_ct_request *CTrsp;int did;struct lpfc_nodelist *ndlp =NULL ; -struct lpfc_nodelist *ns_ndlp =NULL ; +struct lpfc_nodelist *ns_ndlp = cmdiocb->ndlp;uint32_t fc4_data_0, fc4_data_1;u32 ulp_status =get_job_ulpstatus (phba, rspiocb);u32 ulp_word4 =get_job_word4 (phba, rspiocb);
@@ -1522,15 +1522,12 @@ lpfc_cmpl_ct_cmd_gft_id(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb, ulp_status, ulp_word4, did);/* Ignore response if link flipped after this request was made */ -if ((uint32_t ) cmdiocb->event_tag != phba->fc_eventTag) { +if ((uint32_t )cmdiocb->event_tag != phba->fc_eventTag) {lpfc_printf_vlog (vport,KERN_INFO ,LOG_DISCOVERY ,"9046 Event tag mismatch. Ignoring NS rsp\n" ); goto out; } -/* Preserve the nameserver node to release the reference. */ - ns_ndlp = cmdiocb->ndlp; -if (ulp_status ==IOSTAT_SUCCESS ) {/* Good status, continue checking */ CTrsp = (struct lpfc_sli_ct_request *)outp->virt;
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 803/862 iommu/arm-smmu-v3: Make default domain type of HiSilicon PTT device to identity
In reply to Greg Kroah-HartmanFrom: Yicong Yang <[email protected]>
[ Upstream commit 24b6c7798a0122012ca848ea0d25e973334266b0 ]
The DMA operations of HiSilicon PTT device can only work properly with identical mappings. So add a quirk for the device to force the domain as passthrough.
--- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c +21 -0
@@ -2817,6 +2817,26 @@ static int arm_smmu_dev_disable_feature(struct device *dev, } } +/* +* HiSilicon PCIe tune and trace device can be used to trace TLP headers on the +* PCIe link and save the data to memory by DMA. The hardware is restricted to +* use identity mapping only. +*/ +#define IS_HISI_PTT_DEVICE (pdev) ((pdev)->vendor == PCI_VENDOR_ID_HUAWEI && \ + (pdev)->device == 0xa12e) + +static int arm_smmu_def_domain_type (struct device *dev) +{ +if (dev_is_pci (dev)) { +struct pci_dev *pdev =to_pci_dev (dev); + +if (IS_HISI_PTT_DEVICE (pdev)) +return IOMMU_DOMAIN_IDENTITY ; + } + +return 0 ; +} +static struct iommu_ops arm_smmu_ops = { .capable = arm_smmu_capable, .domain_alloc = arm_smmu_domain_alloc,
@@ -2831,6 +2851,7 @@ static struct iommu_ops arm_smmu_ops = { .sva_unbind = arm_smmu_sva_unbind, .sva_get_pasid = arm_smmu_sva_get_pasid, .page_response = arm_smmu_page_response, + .def_domain_type = arm_smmu_def_domain_type, .pgsize_bitmap = -1UL, /* Restricted during device attach */ .owner = THIS_MODULE, .default_domain_ops = &(const struct iommu_domain_ops ) {
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 810/862 soundwire: cadence: Dont overwrite msg->buf during write commands
In reply to Greg Kroah-HartmanFrom: Richard Fitzgerald <[email protected]>
[ Upstream commit ba05b39d265bdd16913f7684600d9d41e2796745 ]
The buf passed in struct sdw_msg must only be written for a READ, in that case the RDATA part of the response is the data value of the register.
For a write command there is no RDATA, and buf should be assumed to be const and unmodifable. The original caller should not expect its data buffer to be corrupted by an sdw_nwrite().
--- drivers/soundwire/cadence_master.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/soundwire/cadence_master.c +6 -3
@@ -544,9 +544,12 @@ cdns_fill_msg_resp(struct sdw_cdns *cdns,return SDW_CMD_IGNORED ; } -/* fill response */ -for (i =0 ; i < count; i++) - msg->buf[i + offset] =FIELD_GET (CDNS_MCP_RESP_RDATA , cdns->response_buf[i]); +if (msg->flags ==SDW_MSG_FLAG_READ ) { +/* fill response */ +for (i =0 ; i < count; i++) + msg->buf[i + offset] =FIELD_GET (CDNS_MCP_RESP_RDATA , + cdns->response_buf[i]); + }return SDW_CMD_OK ; }
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 853/862 Revert "drm/amd/display: correct hostvm flag"
In reply to Greg Kroah-HartmanFrom: Aric Cyr <[email protected]>
commit 96ab3cb3b0f862308a03046d01d66c7b4154846b upstream.
This reverts commit 796d6a37ff5ffaf9f2dc0f3f4bf9f4a1034c00de.
4K144 resolution isn't available on DCN31.
--- drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c +1 -1
@@ -891,7 +891,7 @@ static const struct dc_debug_options deb .optimize_edp_link_rate = true, .enable_sw_cntl_psr = true, .enable_z9_disable_interface = true, /* Allow support for the PMFW interface for disable Z9*/ - .dml_hostvm_override = DML_HOSTVM_NO_OVERRIDE, + .dml_hostvm_override = DML_HOSTVM_OVERRIDE_FALSE, };static const struct dc_debug_options debug_defaults_diags = {
Greg Kroah-Hartman
maintainerPATCH 651/862 crypto: cavium - prevent integer overflow loading firmware
In reply to Greg Kroah-HartmanFrom: Dan Carpenter <[email protected]>
[ Upstream commit 2526d6bf27d15054bb0778b2f7bc6625fd934905 ]
The "code_length" value comes from the firmware file. If your firmware is untrusted realistically there is probably very little you can do to protect yourself. Still we try to limit the damage as much as possible. Also Smatch marks any data read from the filesystem as untrusted and prints warnings if it not capped correctly.
The "ntohl(ucode->code_length) * 2" multiplication can have an integer overflow.
--- drivers/crypto/cavium/cpt/cptpf_main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/crypto/cavium/cpt/cptpf_main.c +4 -2
@@ -253,6 +253,7 @@ static int cpt_ucode_load_fw(struct cpt_device *cpt, const u8 *fw, bool is_ae)const struct firmware *fw_entry;struct device *dev = &cpt->pdev->dev;struct ucode_header *ucode; +unsigned int code_length;struct microcode *mcode;int j, ret =0 ;
@@ -263,11 +264,12 @@ static int cpt_ucode_load_fw(struct cpt_device *cpt, const u8 *fw, bool is_ae) ucode = (struct ucode_header *)fw_entry->data; mcode = &cpt->mcode[cpt->next_mc_idx];memcpy (mcode->version, (u8 *)fw_entry->data,CPT_UCODE_VERSION_SZ ); - mcode->code_size =ntohl (ucode->code_length) *2 ; -if (!mcode->code_size) { + code_length =ntohl (ucode->code_length); +if (code_length ==0 || code_length >=INT_MAX /2 ) { ret = -EINVAL ; goto fw_release; } + mcode->code_size = code_length *2 ; mcode->is_ae = is_ae; mcode->core_mask =0ULL ;
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 415/862 memory: pl353-smc: Fix refcount leak bug in pl353_smc_probe()
In reply to Greg Kroah-HartmanFrom: Liang He <[email protected]>
[ Upstream commit 61b3c876c1cbdb1efd1f52a1f348580e6e14efb6 ]
The break of for_each_available_child_of_node() needs a corresponding of_node_put() when the reference 'child' is not used anymore. Here we do not need to call of_node_put() in fail path as '!match' means no break.
While the of_platform_device_create() will created a new reference by 'child' but it has considered the refcounting.
--- drivers/memory/pl353-smc.c | 1 + 1 file changed, 1 insertion(+)
drivers/memory/pl353-smc.c +1 -0
@@ -122,6 +122,7 @@ static int pl353_smc_probe(struct amba_device *adev, const struct amba_id *id) }of_platform_device_create (child,NULL , &adev->dev); +of_node_put (child);return 0 ;
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 772/862 ARM: dts: imx6dl: add missing properties for sram
In reply to Greg Kroah-HartmanFrom: Alexander Stein <[email protected]>
[ Upstream commit f5848b95633d598bacf0500e0108dc5961af88c0 ]
All 3 properties are required by sram.yaml. Fixes the dtbs_check warning:
sram@900000: '#address-cells' is a required property sram@900000: '#size-cells' is a required property sram@900000: 'ranges' is a required property
--- arch/arm/boot/dts/imx6dl.dtsi | 3 +++ 1 file changed, 3 insertions(+)
arch/arm/boot/dts/imx6dl.dtsi +3 -0
@@ -84,6 +84,9 @@ ocram: sram@900000 { compatible = "mmio-sram"; reg = <0x00900000 0x20000>; + ranges = <0 0x00900000 0x20000>; + #address-cells = <1>; + #size-cells = <1>; clocks = <&clks IMX6QDL_CLK_OCRAM>; };
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 802/862 nbd: Fix hung when signal interrupts nbd_start_device_ioctl()
In reply to Greg Kroah-HartmanFrom: Shigeru Yoshida <[email protected]>
[ Upstream commit 1de7c3cf48fc41cd95adb12bd1ea9033a917798a ]
syzbot reported hung task [1]. The following program is a simplified version of the reproducer:
int main(void)
{
int sv[2], fd;
if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv) < 0)
return 1;
if ((fd = open("/dev/nbd0", 0)) < 0)
return 1;
if (ioctl(fd, NBD_SET_SIZE_BLOCKS, 0x81) < 0)
return 1;
if (ioctl(fd, NBD_SET_SOCK, sv[0]) < 0)
return 1;
if (ioctl(fd, NBD_DO_IT) < 0)
return 1;
return 0;
}When signal interrupt nbd_start_device_ioctl() waiting the condition atomic_read(&config->recv_threads) == 0, the task can hung because it waits the completion of the inflight IOs.
This patch fixes the issue by clearing queue, not just shutdown, when signal interrupt nbd_start_device_ioctl().
--- drivers/block/nbd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/block/nbd.c +4 -2
@@ -1413,10 +1413,12 @@ static int nbd_start_device_ioctl(struct nbd_device *nbd)mutex_unlock (&nbd->config_lock); ret =wait_event_interruptible (config->recv_wq,atomic_read (&config->recv_threads) ==0 ); -if (ret) +if (ret) {sock_shutdown (nbd); -flush_workqueue (nbd->recv_workq); +nbd_clear_que (nbd); + } +flush_workqueue (nbd->recv_workq);mutex_lock (&nbd->config_lock);nbd_bdev_reset (nbd);/* user requested, ignore socket errors */
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 778/862 ARM: dts: imx6sx-udoo-neo: dont use multiple blank lines
In reply to Greg Kroah-HartmanFrom: Marcel Ziswiler <[email protected]>
[ Upstream commit fd2dd7077c7498765e7326c1b7f34bde85f1a975 ]
This fixes the following warning:
arch/arm/boot/dts/imx6sx-udoo-neo.dtsi:309: check: Please don't use multiple blank lines
While at it, use tabs indent for some pinctrl entries.
--- arch/arm/boot/dts/imx6sx-udoo-neo.dtsi | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-)
arch/arm/boot/dts/imx6sx-udoo-neo.dtsi +6 -8
@@ -226,7 +226,7 @@ &iomuxc { pinctrl_bt_reg: btreggrp { fsl,pins = - <MX6SX_PAD_KEY_ROW2__GPIO2_IO_17 0x15059>; + <MX6SX_PAD_KEY_ROW2__GPIO2_IO_17 0x15059>; }; pinctrl_enet1: enet1grp {
@@ -306,7 +306,6 @@ >; }; - pinctrl_uart1: uart1grp { fsl,pins = <MX6SX_PAD_GPIO1_IO04__UART1_DCE_TX 0x1b0b1>,
@@ -347,24 +346,23 @@ pinctrl_otg1_reg: otg1grp { fsl,pins = - <MX6SX_PAD_GPIO1_IO09__GPIO1_IO_9 0x10b0>; + <MX6SX_PAD_GPIO1_IO09__GPIO1_IO_9 0x10b0>; }; - pinctrl_otg2_reg: otg2grp { fsl,pins = - <MX6SX_PAD_NAND_RE_B__GPIO4_IO_12 0x10b0>; + <MX6SX_PAD_NAND_RE_B__GPIO4_IO_12 0x10b0>; }; pinctrl_usb_otg1: usbotg1grp { fsl,pins = - <MX6SX_PAD_GPIO1_IO10__ANATOP_OTG1_ID 0x17059>, - <MX6SX_PAD_GPIO1_IO08__USB_OTG1_OC 0x10b0>; + <MX6SX_PAD_GPIO1_IO10__ANATOP_OTG1_ID 0x17059>, + <MX6SX_PAD_GPIO1_IO08__USB_OTG1_OC 0x10b0>; }; pinctrl_usb_otg2: usbot2ggrp { fsl,pins = - <MX6SX_PAD_QSPI1A_DATA0__USB_OTG2_OC 0x10b0>; + <MX6SX_PAD_QSPI1A_DATA0__USB_OTG2_OC 0x10b0>; }; pinctrl_usdhc2: usdhc2grp {
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 773/862 ARM: dts: imx6qp: add missing properties for sram
In reply to Greg Kroah-HartmanFrom: Alexander Stein <[email protected]>
[ Upstream commit 088fe5237435ee2f7ed4450519b2ef58b94c832f ]
All 3 properties are required by sram.yaml. Fixes the dtbs_check warning:
sram@940000: '#address-cells' is a required property sram@940000: '#size-cells' is a required property sram@940000: 'ranges' is a required property
--- arch/arm/boot/dts/imx6qp.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm/boot/dts/imx6qp.dtsi +6 -0
@@ -9,12 +9,18 @@ ocram2: sram@940000 { compatible = "mmio-sram"; reg = <0x00940000 0x20000>; + ranges = <0 0x00940000 0x20000>; + #address-cells = <1>; + #size-cells = <1>; clocks = <&clks IMX6QDL_CLK_OCRAM>; }; ocram3: sram@960000 { compatible = "mmio-sram"; reg = <0x00960000 0x20000>; + ranges = <0 0x00960000 0x20000>; + #address-cells = <1>; + #size-cells = <1>; clocks = <&clks IMX6QDL_CLK_OCRAM>; };
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 792/862 clk: zynqmp: Fix stack-out-of-bounds in strncpy`
In reply to Greg Kroah-HartmanFrom: Ian Nam <[email protected]>
[ Upstream commit dd80fb2dbf1cd8751efbe4e53e54056f56a9b115 ]
"BUG: KASAN: stack-out-of-bounds in strncpy+0x30/0x68"
Linux-ATF interface is using 16 bytes of SMC payload. In case clock name is longer than 15 bytes, string terminated NULL character will not be received by Linux. Add explicit NULL character at last byte to fix issues when clock name is longer.
This fixes below bug reported by KASAN:
==================================================================
BUG: KASAN: stack-out-of-bounds in strncpy+0x30/0x68 Read of size 1 at addr ffff0008c89a7410 by task swapper/0/1 CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.4.0-00396-g81ef9e7-dirty #3 Hardware name: Xilinx Versal vck190 Eval board revA (QSPI) (DT) Call trace: dump_backtrace+0x0/0x1e8 show_stack+0x14/0x20 dump_stack+0xd4/0x108 print_address_description.isra.0+0xbc/0x37c __kasan_report+0x144/0x198 kasan_report+0xc/0x18 __asan_load1+0x5c/0x68 strncpy+0x30/0x68 zynqmp_clock_probe+0x238/0x7b8 platform_drv_probe+0x6c/0xc8 really_probe+0x14c/0x418 driver_probe_device+0x74/0x130 __device_attach_driver+0xc4/0xe8 bus_for_each_drv+0xec/0x150 __device_attach+0x160/0x1d8 device_initial_probe+0x10/0x18 bus_probe_device+0xe0/0xf0 device_add+0x528/0x950 of_device_add+0x5c/0x80 of_platform_device_create_pdata+0x120/0x168 of_platform_bus_create+0x244/0x4e0 of_platform_populate+0x50/0xe8 zynqmp_firmware_probe+0x370/0x3a8 platform_drv_probe+0x6c/0xc8 really_probe+0x14c/0x418 driver_probe_device+0x74/0x130 device_driver_attach+0x94/0xa0 __driver_attach+0x70/0x108 bus_for_each_dev+0xe4/0x158 driver_attach+0x30/0x40 bus_add_driver+0x21c/0x2b8 driver_register+0xbc/0x1d0 __platform_driver_register+0x7c/0x88 zynqmp_firmware_driver_init+0x1c/0x24 do_one_initcall+0xa4/0x234 kernel_init_freeable+0x1b0/0x24c kernel_init+0x10/0x110 ret_from_fork+0x10/0x18 The buggy address belongs to the page: page:ffff0008f9be1c88 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 raw: 0008d00000000000 ffff0008f9be1c90 ffff0008f9be1c90 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff page dumped because: kasan: bad access detected
addr ffff0008c89a7410 is located in stack of task swapper/0/1 at offset 112 in frame:
zynqmp_clock_probe+0x0/0x7b8
this frame has 3 objects:
[32, 44) 'response'
[64, 80) 'ret_payload'
[96, 112) 'name'
Memory state around the buggy address:
ffff0008c89a7300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff0008c89a7380: 00 00 00 00 f1 f1 f1 f1 00 04 f2 f2 00 00 f2 f2
>ffff0008c89a7400: 00 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
^
ffff0008c89a7480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff0008c89a7500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================--- drivers/clk/zynqmp/clkc.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/clk/zynqmp/clkc.c +7 -0
@@ -710,6 +710,13 @@ static void zynqmp_get_clock_info(void)FIELD_PREP (CLK_ATTR_NODE_INDEX , i);zynqmp_pm_clock_get_name (clock[i].clk_id, &name); + +/* +* Terminate with NULL character in case name provided by firmware +* is longer and truncated due to size limit. +*/ + name.name[sizeof (name.name) -1 ] ='\0' ; +if (!strcmp (name.name,RESERVED_CLK_NAME ))continue ;strncpy (clock[i].clk_name, name.name,MAX_NAME_LEN );
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 393/862 drm/msm/dpu: index dpu_kms->hw_vbif using vbif_idx
In reply to Greg Kroah-HartmanFrom: Dmitry Baryshkov <[email protected]>
[ Upstream commit 7538f80ae0d98bf51eb89eee5344aec219902d42 ]
Remove loops over hw_vbif. Instead always VBIF's idx as an index in the array. This fixes an error in dpu_kms_hw_init(), where we fill dpu_kms->hw_vbif[i], but check for an error pointer at dpu_kms->hw_vbif[vbif_idx].
Patchwork: https://patchwork.freedesktop.org/patch/489569/
--- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 12 ++++------ drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c | 29 +++++++++++------------- 2 files changed, 18 insertions(+), 23 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +5 -7
@@ -823,12 +823,10 @@ static void _dpu_kms_hw_destroy(struct dpu_kms *dpu_kms)_dpu_kms_mmu_destroy (dpu_kms);if (dpu_kms->catalog) { -for (i =0 ; i < dpu_kms->catalog->vbif_count; i++) { -u32 vbif_idx = dpu_kms->catalog->vbif[i].id; - -if ((vbif_idx <VBIF_MAX ) && dpu_kms->hw_vbif[vbif_idx]) { -dpu_hw_vbif_destroy (dpu_kms->hw_vbif[vbif_idx]); - dpu_kms->hw_vbif[vbif_idx] =NULL ; +for (i =0 ; i <ARRAY_SIZE (dpu_kms->hw_vbif); i++) { +if (dpu_kms->hw_vbif[i]) { +dpu_hw_vbif_destroy (dpu_kms->hw_vbif[i]); + dpu_kms->hw_vbif[i] =NULL ; } } }
@@ -1110,7 +1108,7 @@ static int dpu_kms_hw_init(struct msm_kms *kms)for (i =0 ; i < dpu_kms->catalog->vbif_count; i++) {u32 vbif_idx = dpu_kms->catalog->vbif[i].id; - dpu_kms->hw_vbif[i] =dpu_hw_vbif_init (vbif_idx, + dpu_kms->hw_vbif[vbif_idx] =dpu_hw_vbif_init (vbif_idx, dpu_kms->vbif[vbif_idx], dpu_kms->catalog);if (IS_ERR_OR_NULL (dpu_kms->hw_vbif[vbif_idx])) { rc =PTR_ERR (dpu_kms->hw_vbif[vbif_idx]);
drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c +13 -16
@@ -11,6 +11,14 @@#include "dpu_hw_vbif.h" #include "dpu_trace.h" +static struct dpu_hw_vbif *dpu_get_vbif (struct dpu_kms *dpu_kms,enum dpu_vbif vbif_idx) +{ +if (vbif_idx <ARRAY_SIZE (dpu_kms->hw_vbif)) +return dpu_kms->hw_vbif[vbif_idx]; + +return NULL ; +} +/** * _dpu_vbif_wait_for_xin_halt - wait for the xin to halt * @vbif: Pointer to hardware vbif driver
@@ -148,20 +156,15 @@ static u32 _dpu_vbif_get_ot_limit(struct dpu_hw_vbif *vbif,void dpu_vbif_set_ot_limit (struct dpu_kms *dpu_kms,struct dpu_vbif_set_ot_params *params) { -struct dpu_hw_vbif *vbif =NULL ; +struct dpu_hw_vbif *vbif;struct dpu_hw_mdp *mdp;bool forced_on = false;u32 ot_lim; -int ret, i; +int ret; mdp = dpu_kms->hw_mdp; -for (i =0 ; i <ARRAY_SIZE (dpu_kms->hw_vbif); i++) { -if (dpu_kms->hw_vbif[i] && - dpu_kms->hw_vbif[i]->idx == params->vbif_idx) - vbif = dpu_kms->hw_vbif[i]; - } - + vbif =dpu_get_vbif (dpu_kms, params->vbif_idx);if (!vbif || !mdp) {DRM_DEBUG_ATOMIC ("invalid arguments vbif %d mdp %d\n" , vbif !=NULL , mdp !=NULL );
@@ -204,7 +207,7 @@ void dpu_vbif_set_ot_limit(struct dpu_kms *dpu_kms,void dpu_vbif_set_qos_remap (struct dpu_kms *dpu_kms,struct dpu_vbif_set_qos_params *params) { -struct dpu_hw_vbif *vbif =NULL ; +struct dpu_hw_vbif *vbif;struct dpu_hw_mdp *mdp;bool forced_on = false;const struct dpu_vbif_qos_tbl *qos_tbl;
@@ -216,13 +219,7 @@ void dpu_vbif_set_qos_remap(struct dpu_kms *dpu_kms, } mdp = dpu_kms->hw_mdp; -for (i =0 ; i <ARRAY_SIZE (dpu_kms->hw_vbif); i++) { -if (dpu_kms->hw_vbif[i] && - dpu_kms->hw_vbif[i]->idx == params->vbif_idx) { - vbif = dpu_kms->hw_vbif[i]; -break ; - } - } + vbif =dpu_get_vbif (dpu_kms, params->vbif_idx);if (!vbif || !vbif->cap) {DPU_ERROR ("invalid vbif %d\n" , params->vbif_idx);
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 337/862 af_unix: Fix memory leaks of the whole sk due to OOB skb.
In reply to Greg Kroah-HartmanFrom: Kuniyuki Iwashima <[email protected]>
[ Upstream commit 7a62ed61367b8fd01bae1e18e30602c25060d824 ]
syzbot reported a sequence of memory leaks, and one of them indicated we failed to free a whole sk:
unreferenced object 0xffff8880126e0000 (size 1088):
comm "syz-executor419", pid 326, jiffies 4294773607 (age 12.609s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 7d 00 00 00 00 00 00 00 ........}.......
01 00 07 40 00 00 00 00 00 00 00 00 00 00 00 00 ...@............
backtrace:
[<000000006fefe750>] sk_prot_alloc+0x64/0x2a0 net/core/sock.c:1970
[<0000000074006db5>] sk_alloc+0x3b/0x800 net/core/sock.c:2029
[<00000000728cd434>] unix_create1+0xaf/0x920 net/unix/af_unix.c:928
[<00000000a279a139>] unix_create+0x113/0x1d0 net/unix/af_unix.c:997
[<0000000068259812>] __sock_create+0x2ab/0x550 net/socket.c:1516
[<00000000da1521e1>] sock_create net/socket.c:1566 [inline]
[<00000000da1521e1>] __sys_socketpair+0x1a8/0x550 net/socket.c:1698
[<000000007ab259e1>] __do_sys_socketpair net/socket.c:1751 [inline]
[<000000007ab259e1>] __se_sys_socketpair net/socket.c:1748 [inline]
[<000000007ab259e1>] __x64_sys_socketpair+0x97/0x100 net/socket.c:1748
[<000000007dedddc1>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
[<000000007dedddc1>] do_syscall_64+0x38/0x90 arch/x86/entry/common.c:80
[<000000009456679f>] entry_SYSCALL_64_after_hwframe+0x63/0xcdWe can reproduce this issue by creating two AF_UNIX SOCK_STREAM sockets, send()ing an OOB skb to each other, and close()ing them without consuming the OOB skbs.
int skpair[2]; socketpair(AF_UNIX, SOCK_STREAM, 0, skpair); send(skpair[0], "x", 1, MSG_OOB); send(skpair[1], "x", 1, MSG_OOB); close(skpair[0]); close(skpair[1]);
Currently, we free an OOB skb in unix_sock_destructor() which is called via __sk_free(), but it's too late because the receiver's unix_sk(sk)->oob_skb is accounted against the sender's sk->sk_wmem_alloc and __sk_free() is called only when sk->sk_wmem_alloc is 0.
In the repro sequences, we do not consume the OOB skb, so both two sk's sock_put() never reach __sk_free() due to the positive sk->sk_wmem_alloc. Then, no one can consume the OOB skb nor call __sk_free(), and we finally leak the two whole sk.
Thus, we must free the unconsumed OOB skb earlier when close()ing the socket.
--- net/unix/af_unix.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)
net/unix/af_unix.c +7 -6
@@ -569,12 +569,6 @@ static void unix_sock_destructor(struct sock *sk)skb_queue_purge (&sk->sk_receive_queue); -#if IS_ENABLED (CONFIG_AF_UNIX_OOB ) -if (u->oob_skb) { -kfree_skb (u->oob_skb); - u->oob_skb =NULL ; - } -#endif DEBUG_NET_WARN_ON_ONCE (refcount_read (&sk->sk_wmem_alloc));DEBUG_NET_WARN_ON_ONCE (!sk_unhashed (sk));DEBUG_NET_WARN_ON_ONCE (sk->sk_socket);
@@ -620,6 +614,13 @@ static void unix_release_sock(struct sock *sk, int embrion)unix_state_unlock (sk); +#if IS_ENABLED (CONFIG_AF_UNIX_OOB ) +if (u->oob_skb) { +kfree_skb (u->oob_skb); + u->oob_skb =NULL ; + } +#endif +wake_up_interruptible_all (&u->peer_wait);if (skpair !=NULL ) {
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 388/862 drm/amdgpu: Fix memory leak in hpd_rx_irq_create_workqueue()
In reply to Greg Kroah-HartmanFrom: Rafael Mendonca <[email protected]>
[ Upstream commit 7136f956c73c4ba50bfeb61653dfd6a9669ea915 ]
If construction of the array of work queues to handle hpd_rx_irq offload work fails, we need to unwind. Destroy all the created workqueues and the allocated memory for the hpd_rx_irq_offload_work_queue struct array.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +9 -1
@@ -1296,13 +1296,21 @@ static struct hpd_rx_irq_offload_work_queue *hpd_rx_irq_create_workqueue(structif (hpd_rx_offload_wq[i].wq ==NULL ) {DRM_ERROR ("create amdgpu_dm_hpd_rx_offload_wq fail!" ); -return NULL ; + goto out_err; }spin_lock_init (&hpd_rx_offload_wq[i].offload_lock); }return hpd_rx_offload_wq; + +out_err: +for (i =0 ; i < max_caps; i++) { +if (hpd_rx_offload_wq[i].wq) +destroy_workqueue (hpd_rx_offload_wq[i].wq); + } +kfree (hpd_rx_offload_wq); +return NULL ; }struct amdgpu_stutter_quirk {
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 438/862 arm64: dts: qcom: sc8280xp-pmics: Remove reg entry & use correct node name for pmc8280c_lpg node
In reply to Greg Kroah-HartmanFrom: Bhupesh Sharma <[email protected]>
[ Upstream commit 7dac7991408f77b0b33ee5e6b729baa683889277 ]
Commit eeca7d46217c ("arm64: dts: qcom: pm8350c: Drop PWM reg declaration") dropped PWM reg declaration for pm8350c pwm(s), but there is a leftover 'reg' entry inside the lpg/pwm node in sc8280xp dts file. Remove the same.
While at it, also remove the unused unit address in the node label.
Also, since dt-bindings expect LPG/PWM node name to be "pwm", use correct node name as well, to fix the following error reported by 'make dtbs_check':
'lpg' does not match any of the regexes
--- arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi +1 -2
@@ -60,9 +60,8 @@ #interrupt-cells = <2>; }; - pmc8280c_lpg: lpg@e800 { + pmc8280c_lpg: pwm { compatible = "qcom,pm8350c-pwm"; - reg = <0xe800>; #address-cells = <1>; #size-cells = <0>;
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 818/862 usb: musb: Fix musb_gadget.c rxstate overflow bug
In reply to Greg Kroah-HartmanFrom: Robin Guo <[email protected]>
[ Upstream commit eea4c860c3b366369eff0489d94ee4f0571d467d ]
The usb function device call musb_gadget_queue() adds the passed request to musb_ep::req_list,If the (request->length > musb_ep->packet_sz) and (is_buffer_mapped(req) return false),the rxstate() will copy all data in fifo to request->buf which may cause request->buf out of bounds.
Fix it by add the length check :
fifocnt = min_t(unsigned, request->length - request->actual, fifocnt);
--- drivers/usb/musb/musb_gadget.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/usb/musb/musb_gadget.c +3 -0
@@ -760,6 +760,9 @@ static void rxstate(struct musb *musb, struct musb_request *req)musb_writew (epio,MUSB_RXCSR , csr); buffer_aint_mapped: + fifo_count = min_t(unsigned int, + request->length - request->actual, + (unsigned int )fifo_count);musb_read_fifo (musb_ep->hw_ep, fifo_count, (u8 *) (request->buf + request->actual)); request->actual += fifo_count;
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 577/862 mfd: lp8788: Fix an error handling path in lp8788_irq_init() and lp8788_irq_init()
In reply to Greg Kroah-HartmanFrom: Christophe JAILLET <[email protected]>
[ Upstream commit 557244f6284f30613f2d61f14b579303165876c3 ]
In lp8788_irq_init(), if an error occurs after a successful irq_domain_add_linear() call, it must be undone by a corresponding irq_domain_remove() call.
irq_domain_remove() should also be called in lp8788_irq_exit() for the same reason.
--- drivers/mfd/lp8788-irq.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/mfd/lp8788-irq.c +3 -0
@@ -175,6 +175,7 @@ int lp8788_irq_init(struct lp8788 *lp, int irq)IRQF_TRIGGER_FALLING |IRQF_ONESHOT , "lp8788-irq", irqd);if (ret) { +irq_domain_remove (lp->irqdm);dev_err (lp->dev,"failed to create a thread for IRQ_N\n" );return ret; }
@@ -188,4 +189,6 @@ void lp8788_irq_exit(struct lp8788 *lp) {if (lp->irq)free_irq (lp->irq, lp->irqdm); +if (lp->irqdm) +irq_domain_remove (lp->irqdm); }
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 589/862 usb: mtu3: fix failed runtime suspend in host only mode
In reply to Greg Kroah-HartmanFrom: Chunfeng Yun <[email protected]>
[ Upstream commit 1c703e29da5efac6180e4c189029fa34b7e48e97 ]
When the dr_mode is "host", after the host enter runtime suspend, the mtu3 can't do it, because the mtu3's device wakeup function is not enabled, instead it's enabled in gadget init function, to fix the issue, init wakeup early in mtu3's probe()
--- drivers/usb/mtu3/mtu3_core.c | 2 -- drivers/usb/mtu3/mtu3_plat.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/usb/mtu3/mtu3_core.c +0 -2
@@ -978,8 +978,6 @@ int ssusb_gadget_init(struct ssusb_mtk *ssusb) goto irq_err; } -device_init_wakeup (dev, true); -/* power down device IP for power saving by default */ mtu3_stop (mtu);
drivers/usb/mtu3/mtu3_plat.c +2 -0
@@ -356,6 +356,8 @@ static int mtu3_probe(struct platform_device *pdev)pm_runtime_enable (dev);pm_runtime_get_sync (dev); +device_init_wakeup (dev, true); + ret =ssusb_rscs_init (ssusb);if (ret) goto comm_init_err;
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 551/862 RDMA/cm: Use SLID in the work completion as the DLID in responder side
In reply to Greg Kroah-HartmanFrom: Mark Zhang <[email protected]>
[ Upstream commit b7d95040c13f61a4a6a859c5355faf583eff9658 ]
The responder should always use WC's SLID as the dlid, to follow the IB SPEC section "13.5.4.2 COMMON RESPONSE ACTIONS":
A responder always takes the following actions in constructing a response packet:
- The SLID of the received packet is used as the DLID in the response packet.
--- drivers/infiniband/core/cm.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/infiniband/core/cm.c +7 -7
@@ -1632,14 +1632,13 @@ static void cm_path_set_rec_type(struct ib_device *ib_device, u32 port_num,static void cm_format_path_lid_from_req (struct cm_req_msg *req_msg,struct sa_path_rec *primary_path, -struct sa_path_rec *alt_path) +struct sa_path_rec *alt_path, +struct ib_wc *wc) {u32 lid;if (primary_path->rec_type !=SA_PATH_REC_TYPE_OPA ) { -sa_path_set_dlid (primary_path, -IBA_GET (CM_REQ_PRIMARY_LOCAL_PORT_LID , - req_msg)); +sa_path_set_dlid (primary_path, wc->slid);sa_path_set_slid (primary_path,IBA_GET (CM_REQ_PRIMARY_REMOTE_PORT_LID , req_msg));
@@ -1676,7 +1675,8 @@ static void cm_format_path_lid_from_req(struct cm_req_msg *req_msg,static void cm_format_paths_from_req (struct cm_req_msg *req_msg,struct sa_path_rec *primary_path, -struct sa_path_rec *alt_path) +struct sa_path_rec *alt_path, +struct ib_wc *wc) { primary_path->dgid = *IBA_GET_MEM_PTR (CM_REQ_PRIMARY_LOCAL_PORT_GID , req_msg);
@@ -1734,7 +1734,7 @@ static void cm_format_paths_from_req(struct cm_req_msg *req_msg,if (sa_path_is_roce (alt_path)) alt_path->roce.route_resolved = false; } -cm_format_path_lid_from_req (req_msg, primary_path, alt_path); +cm_format_path_lid_from_req (req_msg, primary_path, alt_path, wc); }static u16 cm_get_bth_pkey (struct cm_work *work)
@@ -2148,7 +2148,7 @@ static int cm_req_handler(struct cm_work *work)if (cm_req_has_alt_path (req_msg)) work->path[1 ].rec_type = work->path[0 ].rec_type;cm_format_paths_from_req (req_msg, &work->path[0 ], - &work->path[1 ]); + &work->path[1 ], work->mad_recv_wc->wc);if (cm_id_priv->av.ah_attr.type ==RDMA_AH_ATTR_TYPE_ROCE )sa_path_set_dmac (&work->path[0 ], cm_id_priv->av.ah_attr.roce.dmac);
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 191/862 drm/amd/display: Update PMFW z-state interface for DCN314
In reply to Greg Kroah-HartmanFrom: Nicholas Kazlauskas <[email protected]>
commit 4f5bdde386d3b8e9317df5562950e1b4fa177599 upstream.
[Why]
Request from PMFW to change the messaging format to specify whether we support z-state via individual bits.
[How]
Update the args we pass in the support message.
--- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/dcn314_smu.c | 11 +++-------- drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c | 3 ++- 2 files changed, 5 insertions(+), 9 deletions(-)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/dcn314_smu.c +3 -8
@@ -339,29 +339,24 @@ void dcn314_smu_set_zstate_support(strucif (!clk_mgr->smu_present)return ; -if (!clk_mgr->base.ctx->dc->debug.enable_z9_disable_interface && - (support ==DCN_ZSTATE_SUPPORT_ALLOW_Z10_ONLY )) - support =DCN_ZSTATE_SUPPORT_DISALLOW ; - -// Arg[15:0] = 8/9/0 for Z8/Z9/disallow -> existing bits // Arg[16] = Disallow Z9 -> new bit switch (support) {case DCN_ZSTATE_SUPPORT_ALLOW : msg_id = VBIOSSMC_MSG_AllowZstatesEntry; - param =9 ; + param = (1 <<10 ) | (1 <<9 ) | (1 <<8 );break ;case DCN_ZSTATE_SUPPORT_DISALLOW : msg_id = VBIOSSMC_MSG_AllowZstatesEntry; - param =8 ; + param =0 ;break ;case DCN_ZSTATE_SUPPORT_ALLOW_Z10_ONLY : msg_id = VBIOSSMC_MSG_AllowZstatesEntry; - param =0x00010008 ; + param = (1 <<10 );break ;default ://DCN_ZSTATE_SUPPORT_UNKNOWN
drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c +2 -1
@@ -881,7 +881,8 @@ static const struct dc_plane_cap plane_c };static const struct dc_debug_options debug_defaults_drv = { - .disable_z10 = true,/*hw not support it*/ + .disable_z10 = false, + .enable_z9_disable_interface = true, .disable_dmcu = true, .force_abm_enable = false, .timing_trace = false,
Works on my Arch Linux homeserver
with Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz
Quoted 3,620 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.0.3 release. There are 862 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, 21 Oct 2022 08:30:19 +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.0.3-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
linux-6.0.y
and the diffstat can be found below.thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:Greg Kroah-Hartman <[email protected]>
Linux 6.0.3-rc1Nathan Chancellor <[email protected]>
lib/Kconfig.debug: Add check for non-constant .{s,u}leb128 support to
DWARF5Masahiro Yamada <[email protected]>
Kconfig.debug: add toolchain checks forDEBUG_INFO_DWARF_TOOLCHAIN_DEFAULTMasahiro Yamada <[email protected]>
Kconfig.debug: simplify the dependency of DEBUG_INFO_DWARF4/5Jens Axboe <[email protected]>
io_uring/rw: ensurekiocb_end_write()is always calledPavel Begunkov <[email protected]>
io_uring: fix fdinfo sqe offsets calculationNathan Chancellor <[email protected]>
drm/amd/display: Fix build breakage withCONFIG_DEBUG_FS=nNicholas Piggin <[email protected]>
powerpc/64s/interrupt: Fix lost interrupts when returning to soft-masked
contextTetsuo Handa <[email protected]>
net/ieee802154: don't warn zero-sized raw_sendmsg()Alexander Aring <[email protected]>
Revert "net/ieee802154: reject zero-sizedraw_sendmsg()"Aric Cyr <[email protected]>
Revert "drm/amd/display: correct hostvm flag"Randy Dunlap <[email protected]>
net: ethernet: ti:davinci_mdio: fix build for mdio bitbang usesYu Kuai <[email protected]>
blk-wbt: fix that 'rwb->wc' is always set to 1 in wbt_init()Takashi Iwai <[email protected]>
ALSA: usb-audio: Fix last interface check for registrationAlexander Aring <[email protected]>
net: ieee802154: return-EINVALfor unknown addr typeLiu Shixin <[email protected]>
mm: hugetlb: fix UAF inhugetlb_handle_userfaultPavel Begunkov <[email protected]>
io_uring/net: fix notif cqe reorderingPavel Begunkov <[email protected]>
io_uring/net: don't skip notifs for failed requestsPavel Begunkov <[email protected]>
io_uring/net: renameio_sendzc()Pavel Begunkov <[email protected]>
io_uring/net: don't lose partialsend_zcon failPavel Begunkov <[email protected]>
io_uring/net: useio_sr_msgfor sendzcPavel Begunkov <[email protected]>
io_uring/net: refactorio_sr_msgtypesAdrian Hunter <[email protected]>
perf intel-pt: Fixsystem_widedummy event for hybridAdrian Hunter <[email protected]>
perf intel-pt: Fix segfault inintel_pt_print_info()with uClibcRob Herring <[email protected]>
perf: Skip and warn on unknown format 'configN' attrsIvan T. Ivanov <[email protected]>
clk: bcm2835: Round UART input clock upWayne Chang <[email protected]>
usb: typec: ucsi: Don't warn on probe deferralManivannan Sadhasivam <[email protected]>
dmaengine: dw-edma: Remove runtime PM supportLv Ruyi <[email protected]>
fsi: master-ast-cf: Fix missingof_node_putinfsi_master_acf_probeEddie James <[email protected]>
fsi: occ: Prevent use after freeEddie James <[email protected]>
hwmon (occ): Retry for checksum failureKeith Busch <[email protected]>
blk-mq: use quiesced elevator switch when reinitializing queuesDongliang Mu <[email protected]>
usb: idmouse: fix an uninit-value inidmouse_openVarun Prakash <[email protected]>
nvmet-tcp: add bounds check on Transfer TagKeith Busch <[email protected]>
nvme: copyfirmware_revon each initKeith Busch <[email protected]>
nvme: handle effects after freeing the requestJan Kara <[email protected]>
ext2: Usekvmalloc()for group descriptor arrayArun Easi <[email protected]>
scsi: tracing: Fix compile error intrace_arraycalls when TRACING is
disabledXiaoke Wang <[email protected]>
staging: rtl8723bs: fix a potential memory leak inrtw_init_cmd_priv()Xiaoke Wang <[email protected]>
staging: rtl8723bs: fix potential memory leak inrtw_init_drv_sw()Pavel Begunkov <[email protected]>
io_uring: fix CQE reorderingsunghwan jung <[email protected]>
Revert "usb: storage: Add quirk for Samsung Fit flash"Piyush Mehta <[email protected]>
usb: dwc3: core: Enable GUCTL1 bit 10 for fixing termination error after
resume bugAlexander Stein <[email protected]>
arm64: dts: imx8mp: Add snps,gfladj-refclk-lpm-sel quirk to USB nodesAlexander Stein <[email protected]>
usb: dwc3: core: addgfladj_refclk_lpm_selquirkRobin Guo <[email protected]>
usb: musb: Fixmusb_gadget.crxstate overflow bugJianglei Nie <[email protected]>
usb: host: xhci: Fix potential memory leak inxhci_alloc_stream_info()Logan Gunthorpe <[email protected]>
md/raid5: Wait forMD_SB_CHANGE_PENDINGin raid5dJohnothan King <[email protected]>
HID: nintendo: check analog user calibration for plausibilityJianglei Nie <[email protected]>
HSI:ssi_protocol: fix potential resource leak inssip_pn_open()Hyunwoo Kim <[email protected]>
HID: roccat: Fix use-after-free inroccat_read()Harry Stern <[email protected]>
hid: topre: Add driver fixing report descriptorPierre-Louis Bossart <[email protected]>
soundwire: intel: fix error handling on dai registration issuesRichard Fitzgerald <[email protected]>
soundwire: cadence: Don't overwrite msg->buf during write commandsColy Li <[email protected]>
bcache: fixset_at_max_writeback_rate()for multiple attached devicesSerge Semin <[email protected]>
ata:libahci_platform: Sanity check the DT child nodes numberYu Kuai <[email protected]>
blk-throttle: prevent overflow while calculating wait timeNam Cao <[email protected]>
staging: vt6655: fix potential memory leakWei Yongjun <[email protected]>
power: supply: adp5061: fix out-of-bounds read inadp5061_get_chg_type()Michael Grzeschik <[email protected]>
usb: gadget: uvc: increase worker prio toWQ_HIGHPRIYicong Yang <[email protected]>
iommu/arm-smmu-v3: Make default domain type of HiSilicon PTT device to
identityShigeru Yoshida <[email protected]>
nbd: Fix hung when signal interruptsnbd_start_device_ioctl()Letu Ren <[email protected]>
scsi: 3w-9xxx: Avoid disabling device if failing to enable itVaishnav Achath <[email protected]>
dmaengine: ti: k3-udma: ResetUDMA_CHAN_RTbyte counters to prevent
overflowJames Smart <[email protected]>
scsi: lpfc: Fix null ndlp ptr dereference in abnormal exit path forGFT_IDJustin Chen <[email protected]>
usb: host: xhci-plat: suspend/resume clks for brcmJustin Chen <[email protected]>
usb: host: xhci-plat: suspend and resume clocksDaisuke Matsuda <[email protected]>
RDMA/rxe: Delete error messages triggered by incoming Read requestsQuanyang Wang <[email protected]>
clk: zynqmp: pll: rectify rate rounding inzynqmp_pll_round_rateHangyu Hua <[email protected]>
media: platform: fix some double free in meson-ge2d and mtk-jpeg and
s5p-mfcZheyu Ma <[email protected]>
media: cx88: Fix a null-ptr-deref bug inbuffer_prepare()Ian Nam <[email protected]>
clk: zynqmp: Fix stack-out-of-bounds in strncpy`Alex Sverdlin <[email protected]>
ARM: 9242/1: kasan: Only map modules ifCONFIG_KASAN_VMALLOC=nLi Huafei <[email protected]>
ARM: 9234/1: stacktrace: Avoid duplicate saving of exception PC valueLi Huafei <[email protected]>
ARM: 9233/1: stacktrace: Skip frame pointer boundary check forcall_with_stack()Kunihiko Hayashi <[email protected]>
arm64: dts: uniphier: Add USB-device support for PXs3 reference boardJosef Bacik <[email protected]>
btrfs: call__btrfs_remove_free_space_cache_lockedon cache load
failureMaciej S. Szmigiero <[email protected]>
btrfs: don't print information about space cache or tree every remountQu Wenruo <[email protected]>
btrfs: scrub: try to fix super block errorsQu Wenruo <[email protected]>
btrfs: scrub: properly report super block errors in system logQu Wenruo <[email protected]>
btrfs: dump extra info if one free space cache has more bitmaps than it
shouldArnd Bergmann <[email protected]>
ARM: orion: fix include pathSebastian Krzyszkowiak <[email protected]>
arm64: dts: imx8mq-librem5: Add bq25895 as max17055's power supplyFrieder Schrempf <[email protected]>
arm64: dts: imx8mm-kontron: Use the VSELECT signal to switch SD card IO
voltageMark Brown <[email protected]>
kselftest/arm64: Fix validatation termination record afterEXTRA_CONTEXTMarcel Ziswiler <[email protected]>
ARM: dts: imx6sx-udoo-neo: don't use multiple blank linesMarcel Ziswiler <[email protected]>
ARM: dts: imx6sl: use tabs for code indentAlexander Stein <[email protected]>
ARM: dts: imx6sx: add missing properties for sramAlexander Stein <[email protected]>
ARM: dts: imx6sll: add missing properties for sramAlexander Stein <[email protected]>
ARM: dts: imx6sl: add missing properties for sramAlexander Stein <[email protected]>
ARM: dts: imx6qp: add missing properties for sramAlexander Stein <[email protected]>
ARM: dts: imx6dl: add missing properties for sramAlexander Stein <[email protected]>
ARM: dts: imx6q: add missing properties for sramKrzysztof Kozlowski <[email protected]>
arm64: dts: qcom: sc7280-idp: correct ADC channel node name and unit
addressHaibo Chen <[email protected]>
ARM: dts: imx7d-sdb: config the max pressure for tsc2046Alexander Stein <[email protected]>
ARM: dts: imx6: delete interrupts property if interrupts-extended is
setFelix Kuehling <[email protected]>
drm/amdkfd: Fix UBSAN shift-out-of-bounds warningWenjing Liu <[email protected]>
drm/amd/display: polling vid stream status in hpo dp blankAric Cyr <[email protected]>
drm/amd/display: Remove interface for periodic interrupt 1Khaled Almahallawy <[email protected]>
drm/dp: Don't rewrite link config when setting phy test patternRichard Acayan <[email protected]>
mmc: sdhci-msm: add compatible string check for sdm670Adrián Larumbe <[email protected]>
drm/meson: remove drm bridges at aggregate driver unbind timeAdrián Larumbe <[email protected]>
drm/meson: explicitly remove aggregate driver at module unload timeAdrián Larumbe <[email protected]>
drm/meson: reorder driver deinit sequence to fix use-after-free bugMario Limonciello <[email protected]>
ASoC: amd: yc: Add Lenovo Yoga Slim 7 Pro X to quirks tableXiaoyan Li <[email protected]>
ASoC: amd: yc: Add ASUS UM5302TA into DMI tablehongao <[email protected]>
drm/amdgpu: fix initial connector audio valueSherry Wang <[email protected]>
drm/amd/display: correct hostvm flagGeorge Shen <[email protected]>
drm/amd/display: Fix urgent latency override for DCN32/DCN321Philip Yang <[email protected]>
drm/amdgpu: SDMA update use unlocked iteratorPierre-Louis Bossart <[email protected]>
ASoC: SOF: add quirk to override topologymclk_idMikhail Rudenko <[email protected]>
ASoC: sunxi: sun4i-codec: setdebugfs_prefixfor CPU DAI componentJairaj Arava <[email protected]>
ASoC: SOF: pci: Change DMI match info to support all Chrome platformsMuralidhar Reddy <[email protected]>
ALSA: intel-dspconfig: add ES8336 support for AlderLake-PSHans de Goede <[email protected]>
platform/x86: msi-laptop: Change DMI match / alias strings to fix module
autoloadingJorge Lopez <[email protected]>
platform/x86: hp-wmi: Setting thermal profile fails with 0x06Jameson Thies <[email protected]>
platform/chrome:cros_ec: Notify the PM of wake events during resumeMaya Matuszczyk <[email protected]>
drm: panel-orientation-quirks: Add quirk for Aya Neo AirMaya Matuszczyk <[email protected]>
drm: panel-orientation-quirks: Add quirk for Anbernic Win600Mateusz Kwiatkowski <[email protected]>
drm/vc4: vec: Fix timings for VEC modesTakashi Iwai <[email protected]>
ALSA: usb-audio: Register card at the last interfaceYifan Zha <[email protected]>
drm/admgpu: Skip CG/PG on SOC21 under SRIOV VFYifan Zha <[email protected]>
drm/amdgpu: Skip the program of MMMC_VM_AGP_* in SRIOV on MMHUBv3_0_0sunliming <[email protected]>
drm/amd/display: Fix variable dereferenced before checkLucas Stach <[email protected]>
drm: bridge:dw_hdmi: only trigger hotplug event on link changeBernard Zhao <[email protected]>
drm/amd: fix potential memory leakAndy Shevchenko <[email protected]>
platform/x86:pmc_atom: Improve quirk message to be less crypticVivek Kasireddy <[email protected]>
udmabuf: Set ubuf->sg = NULL if the creation of sg table failsConner Knox <[email protected]>
ALSA: usb-audio: Add quirk to enable Avid Mbox 3 supportCezary Rojewski <[email protected]>
ALSA: hda: Fix page fault insnd_hda_codec_shutdown()David Gow <[email protected]>
drm/amd/display: fix overflow onMIN_I64definitionZeng Jingxiang <[email protected]>
gpu: lontium-lt9611: Fix NULL pointer dereference inlt9611_connector_init()Liviu Dudau <[email protected]>
drm/komeda: Fix handling of atomic commits in theatomic_commit_tail
hookJavier Martinez Canillas <[email protected]>
drm: Preventdrm_copy_field()to attempt copying a NULL pointerJavier Martinez Canillas <[email protected]>
drm: Usesize_ttype for len variable indrm_copy_field()Jianglei Nie <[email protected]>
drm/nouveau/nouveau_bo: fix potential memory leak innouveau_bo_alloc()Andrew Gaul <[email protected]>
r8152: Rate limit overflow messagesAndy Shevchenko <[email protected]>
i2c: designware-pci: Group AMD NAVI quirk parts togetherXin Liu <[email protected]>
libbpf: Fix overrun in netlink attribute iterationKees Cook <[email protected]>
net: sched:cls_u32: Avoidmemcpy()false-positive warningLuiz Augusto von Dentz <[email protected]>
Bluetooth: L2CAP: Fix user-after-freeSong Liu <[email protected]>
bpf: usebpf_prog_packforbpf_dispatcherJiri Olsa <[email protected]>
bpf: Adjustkprobe_multientry_ipforCONFIG_X86_KERNEL_IBTLiu Jian <[email protected]>
net: If sock is dead don't access sock'ssk_wqinsk_stream_wait_memoryJason A. Donenfeld <[email protected]>
hwmon: (sht4x) do not overflow clamping operation on 32-bit platformsDaniel Golle <[email protected]>
wifi: rt2x00: correctly set BBP register 86 for MT7620Daniel Golle <[email protected]>
wifi: rt2x00: set SoC wmac clock registerDaniel Golle <[email protected]>
wifi: rt2x00: set VGC gain for both chains of MT7620Daniel Golle <[email protected]>
wifi: rt2x00: set correctTX_SW_CFG1MAC register for MT7620Daniel Golle <[email protected]>
wifi: rt2x00: don't run Rt5592 IQ calibration on MT7620Ziyang Xuan <[email protected]>
can: bcm: check the result ofcan_send()inbcm_can_tx()Hou Tao <[email protected]>
selftests/bpf: Free the allocated resources after test case succeedsVadim Fedorenko <[email protected]>
bnxt_en: replace reset with config timestampsLuiz Augusto von Dentz <[email protected]>
Bluetooth:hci_event: Make sure ISO events don't affect non-ISO
connectionsLuiz Augusto von Dentz <[email protected]>
Bluetooth:hci_sysfs: Fix attempting to calldevice_addmultiple timesTetsuo Handa <[email protected]>
Bluetooth: L2CAP: initialize delayed works atl2cap_chan_create()Po-Hao Huang <[email protected]>
wifi: rtw89: fix rx filter after scanPo-Hao Huang <[email protected]>
wifi: rtw89: free unused skb to prevent memory leakSean Wang <[email protected]>
wifi: mt76: mt7921: reset msta->airtime_ac while clearing up hw valueJianglei Nie <[email protected]>
wifi: ath11k: mhi: fix potential memory leak inath11k_mhi_register()Patrick Rudolph <[email protected]>
regulator: core: Prevent integer underflowKiran K <[email protected]>
Bluetooth: btintel: Mark Intel controller to supportLE_STATESquirkAlexander Coffin <[email protected]>
wifi: brcmfmac: fix use-after-free bug inbrcmf_netdev_start_xmit()Michal Jaron <[email protected]>
iavf: Fix race betweeniavf_closeandiavf_reset_taskSergei Antonov <[email protected]>
net: ftmac100: fix endianness-related issues from 'sparse'Zong-Zhe Yang <[email protected]>
rtw89: ser: leave lps with mutexManikanta Pubbisetty <[email protected]>
wifi: ath11k: Register shutdown handler for WCN6750Khalid Masum <[email protected]>
xfrm: Updateipcomp_scratcheswith NULL when freedRichard Gobert <[email protected]>
net-next: FixIP_UNICAST_IFoption behavior for connected socketsRobert Hancock <[email protected]>
net: axienet: Switch to 64-bit RX/TX statisticsDaniel Sneddon <[email protected]>
x86/apic: Don't disable x2APIC if lockedMika Westerberg <[email protected]>
thunderbolt: Add back Intel Falcon Ridge end-to-end flow control
workaroundTetsuo Handa <[email protected]>
wifi: ath9k: avoid uninit memory read inath9k_htc_rx_msg()Jane Chu <[email protected]>
x86/mce: Retrieve poison range from hardwareJohannes Berg <[email protected]>
wifi: mac80211: accept STA changes without link changesJerry Ray <[email protected]>
micrel: ksz8851: fixes struct pointer issueEric Dumazet <[email protected]>
tcp: annotate data-race aroundtcp_md5sig_pool_populatedMike Pattrick <[email protected]>
openvswitch: Fix overreporting of drops in dropwatchMike Pattrick <[email protected]>
openvswitch: Fix double reporting of drops in dropwatchRavi Gunasekaran <[email protected]>
net: ethernet: ti:davinci_mdio: Add workaround for errata i2329Quentin Monnet <[email protected]>
bpftool: Clear errno after libcap's checksWright Feng <[email protected]>
wifi: brcmfmac: fix invalid address access when enabling SCAN log levelZong-Zhe Yang <[email protected]>
wifi: rtw88: phy: fix warning of possible buffer overflowHengqi Chen <[email protected]>
libbpf: Do not require executable permission for shared librariesJames Hilliard <[email protected]>
libbpf: Ensure functions withalways_inlineattribute are inlineDai Ngo <[email protected]>
NFSD: fix use-after-free on source server when doing inter-server copyAnna Schumaker <[email protected]>
NFSD: Return nfserr_serverfault if splice_ok but buf->pages have dataKees Cook <[email protected]>
x86/entry: Work around Clang__bdos()bugMario Limonciello <[email protected]>
ACPI: x86: Add a quirk for Dell Inspiron 14 2-in-1 for StorageD3EnableKees Cook <[email protected]>
ARM: decompressor: Include .data.rel.ro.localSrinivas Pandruvada <[email protected]>
thermal:intel_powerclamp: Useget_cpu()instead ofsmp_processor_id()
to avoid crashChao Qin <[email protected]>
powercap:intel_rapl: fix UBSAN shift-out-of-bounds issueKees Cook <[email protected]>
MIPS: BCM47XX: Castmemcmp()of function to (void *)Doug Smythies <[email protected]>
cpufreq:intel_pstate: Add Tigerlake support in no-HWP modeHans de Goede <[email protected]>
ACPI: tables: FPDT: Don't callacpi_os_map_memory()on invalid phys
addressKees Cook <[email protected]>
fortify: Fix__compiletime_strlen()underUBSAN_BOUNDS_LOCALArvid Norlander <[email protected]>
ACPI: video: Add Toshiba Satellite/Portege Z830 quirkPerry Yuan <[email protected]>
cpufreq:amd_pstate: fix wrong lowest perf fetchPaul E. McKenney <[email protected]>
rcu-tasks: Ensure RCU Tasks Trace loops have quiescent statesZqiang <[email protected]>
rcu-tasks: ConvertRCU_LOCKDEP_WARN()toWARN_ONCE()Michal Hocko <[email protected]>
rcu: Back off uponfill_page_cache_func()allocation failureZqiang <[email protected]>
rcu: Avoid triggering strict-GP irq-work when RCU is idleAlexander Aring <[email protected]>
fs: dlm: fix race in lowcommsAaron Tomlin <[email protected]>
module: tracking: Keep a record of tainted unloaded modules onlyChristoph Hellwig <[email protected]>
ARM/dma-mappіng: don't override ->dma_coherent when set from a busnotifier
Stefan Berger <[email protected]>
selftest: tpm2: AddClient.__del__()to close/dev/tpm*handleZhang Rui <[email protected]>
tools/powerturbostat: Use standard Energy Unit for SPR Dram RAPL
domainChao Yu <[email protected]>
f2fs: fix to accountFS_CP_DATA_IOcorrectlyZhang Qilong <[email protected]>
f2fs: fix race condition on settingFI_NO_EXTENTflagShuai Xue <[email protected]>
ACPI: APEI: do not addtask_workto kernel thread to avoid memory leakVincent Knecht <[email protected]>
thermal/drivers/qcom/tsens-v0_1: Fix MSM8939 fourth sensorhw_idJason A. Donenfeld <[email protected]>
random: schedule jitter credit for next jiffy, not in two jiffiesDan Carpenter <[email protected]>
crypto: cavium - prevent integer overflow loading firmwareDan Carpenter <[email protected]>
crypto: marvell/octeontx - prevent integer overflowsJanis Schoetterl-Glausch <[email protected]>
kbuild: rpm-pkg: fix breakage when V=1 is usedMasahiro Yamada <[email protected]>
linux/export: use inline assembler to populate symbol CRCsMasahiro Yamada <[email protected]>
kbuild: remove the target in signal traps when interruptedSong Liu <[email protected]>
ftrace: Fix recursive lockingdirect_mutexinftrace_modify_direct_callerNico Pache <[email protected]>
tracing/osnoise: Fix possible recursive locking instop_per_cpu_kthreadsYipeng Zou <[email protected]>
tracing: kprobe: Make gen test module work in arm and riscvYipeng Zou <[email protected]>
tracing: kprobe: Fix kprobe event gen test module on exitRobin Murphy <[email protected]>
iommu/iova: Fix module config properlyEnzo Matsumiya <[email protected]>
cifs: return correct error in ->calc_signature()Lin Yujun <[email protected]>
clocksource/drivers/timer-gxp: Add missing error handling ingxp_timer_probeKunkun Jiang <[email protected]>
clocksource/drivers/arm_arch_timer: Fix handling of ARM erratum 858921Damian Muszynski <[email protected]>
crypto: qat - fix DMA transfer directionPeter Harliman Liem <[email protected]>
crypto: inside-secure - Change swab to swab32Koba Ko <[email protected]>
crypto: ccp - Release dma channels before dmaengine unrgisterIgnat Korchagin <[email protected]>
crypto: akcipher - default implementation for setting a private keyDan Carpenter <[email protected]>
iommu/omap: Fix buffer overflow in debugfsWaiman Long <[email protected]>
cgroup/cpuset: Enableupdate_tasks_cpumask()ontop_cpusetWeili Qian <[email protected]>
crypto: hisilicon/qm - fix missing put dfx accessLucas Segarra Fernandez <[email protected]>
crypto: qat - fix default value of WDT timerKshitiz Varshney <[email protected]>
hwrng: imx-rngc - Moving IRQ handler registering afterimx_rngc_irq_mask_clear()Martin Kaiser <[email protected]>
hwrng: imx-rngc - usedevm_clk_get_enabledMichal Koutný <[email protected]>
cgroup: Honor caller's cgroup NS when resolving pathJacky Li <[email protected]>
crypto: ccp - Fail the PSP initialization when writing psp data file
failedJames Cowgill <[email protected]>
hwrng: arm-smccc-trng - fixNO_ENTROPYhandlingYe Weihua <[email protected]>
crypto: hisilicon/zip - fix mismatch in get/setsgl_sge_nrZhengchao Shao <[email protected]>
crypto: sahara - don't sleep when in softirqHaren Myneni <[email protected]>
powerpc/pseries/vas: Passhw_cpu_idto node associativity HCALLLi Huafei <[email protected]>
powerpc/kprobes: Fix null pointer reference inarch_prepare_kprobe()Pali Rohár <[email protected]>
powerpc: Fix SPE Power ISA properties for e500v1 platformsNicholas Piggin <[email protected]>
powerpc/64/interrupt: Fix return to masked context after hard-mask irq
becomes pendingNicholas Piggin <[email protected]>
powerpc/64: mark irqs hard disabled in boot pacaNicholas Piggin <[email protected]>
powerpc/64/interrupt: Fix false warning in context tracking due to idle
stateNicholas Piggin <[email protected]>
powerpc/64s: FixGENERIC_CPUbuild flags for PPC970 / G5Vitaly Kuznetsov <[email protected]>
x86/hyperv: Fix 'structhv_enlightened_vmcs' definitionRohan McLure <[email protected]>
powerpc: Fix fallocate andfadvise64_64compat parameter combinationPali Rohár <[email protected]>
powerpc: dts:turris1x.dts: Fix labels in DSA cpu port nodesPali Rohár <[email protected]>
powerpc: dts:turris1x.dts: Fix NOR partitions labelsAnup Patel <[email protected]>
cpuidle: riscv-sbi: FixCPU_PM_CPU_IDLE_ENTER_xyz()macro usageZheng Yongjun <[email protected]>
powerpc/powernv: add missingof_node_put()inopal_export_attrs()Liang He <[email protected]>
powerpc/pci_dn: Add missingof_node_put()Liang He <[email protected]>
powerpc/sysdev/fsl_msi: Add missingof_node_put()Nathan Chancellor <[email protected]>
powerpc/math_emu/efp: Includemodule.hMichael Ellerman <[email protected]>
powerpc/configs: Properly enablePAPR_SCMinpseries_defconfigHangyu Hua <[email protected]>
ipc: mqueue: fix possible memory leak ininit_mqueue_fs()Jack Wang <[email protected]>
mailbox: bcm-ferxrm-mailbox: Fix error check fordma_map_sgConor Dooley <[email protected]>
mailbox: mpfs: account for mbox offsets while sendingConor Dooley <[email protected]>
mailbox: mpfs: fix handling of the reg propertyPeng Fan <[email protected]>
mailbox: imx: fix RST channel supportJoel Stanley <[email protected]>
clk: ast2600: BCLK comes from EPLLMiaoqian Lin <[email protected]>
clk: ti: dra7-atl: Fix reference leak inof_dra7_atl_clk_probeLiang He <[email protected]>
clk: ti: Balanceof_node_get()calls forof_find_node_by_name()Lin Yujun <[email protected]>
clk: imx: scu: fix memleak onplatform_device_add()failsPeng Fan <[email protected]>
clk: imx8mp: tune the order ofenet_qos_root_clkStefan Wahren <[email protected]>
clk: bcm2835: fixbcm2835_clock_rate_from_divisordeclarationMaxime Ripard <[email protected]>
clk: bcm2835: Make peripheral PLLC criticalSerge Semin <[email protected]>
clk: baikal-t1: Add SATA internal ref clock bufferSerge Semin <[email protected]>
clk: baikal-t1: Add shared xGMAC ref/ptp clocks internal parentSerge Semin <[email protected]>
clk: baikal-t1: Fix invalid xGMAC PTP clock dividerSerge Semin <[email protected]>
clk: vc5: Fix 5P49V6901 outputs disabling when enabling FODDavid Collins <[email protected]>
spmi: pmic-arb: correct duplicate APID to PPID mapping logicChunfeng Yun <[email protected]>
usb: mtu3: fix failed runtime suspend in host only modeBasavaraj Natikar <[email protected]>
HID:amd_sfh: Handle condition of "no sensors" for SFH1.1Dave Jiang <[email protected]>
dmaengine: ioat: stopmod_timerfrom resurrecting deleted timer in__cleanup()Jens Axboe <[email protected]>
io_uring/rw: defer fsnotify calls to task contextDmitry Baryshkov <[email protected]>
phy: qcom-qmp-pcie: fix resource mapping for SDM845 QHP PHYChen-Yu Tsai <[email protected]>
clk: mediatek: Migrate remaining clk_unregister_*() to
clk_hw_unregister_*()Chen-Yu Tsai <[email protected]>
clk: mediatek: fix unregister function inmtk_clk_register_dividers
cleanupAngeloGioacchino Del Regno <[email protected]>
clk: mediatek: clk-mt8195-mfg: Reparentmfg_bg3dand propagate rate
changesChen-Yu Tsai <[email protected]>
clk: mediatek: mt8183: mfgcfg: Propagate rate changes to parentJens Hillenstedt <[email protected]>
mfd: da9061: Fix Failed to set Two-Wire Bus Mode.Jiasheng Jiang <[email protected]>
mfd: sm501: Add check forplatform_driver_register()Dan Carpenter <[email protected]>
mfd: fsl-imx25: Fix check forplatform_get_irq()errorsChristophe JAILLET <[email protected]>
mfd: lp8788: Fix an error handling path inlp8788_irq_init()andlp8788_irq_init()Christophe JAILLET <[email protected]>
mfd: lp8788: Fix an error handling path inlp8788_probe()Christophe JAILLET <[email protected]>
mfd: fsl-imx25: Fix an error handling path inmx25_tsadc_setup_irq()Christophe JAILLET <[email protected]>
mfd:intel_soc_pmic: Fix an error handling path inintel_soc_pmic_i2c_probe()Jiasheng Jiang <[email protected]>
fsi: core: Check error number after callingida_simple_getBob Pearson <[email protected]>
RDMA/rxe: Fixresize_finish()inrxe_queue.cBob Pearson <[email protected]>
RDMA/rxe: Set pd early in mr alloc routinesChristoph Hellwig <[email protected]>
nvmet-auth: don't try to cancel a non-initializedwork_structAdam Skladowski <[email protected]>
clk: qcom: gcc-sm6115: Override default Alpha PLL regsRobert Marko <[email protected]>
clk: qcom: apss-ipq6018: markapcs_alias0_core_clkas criticalMike Christie <[email protected]>
scsi: iscsi:iscsi_tcp: Fix null-ptr-deref while callinggetpeername()John Garry <[email protected]>
scsi: pm8001: Fixrunning_reqfor internal abort commandsDuoming Zhou <[email protected]>
scsi: libsas: Fix use-after-free bug insmp_execute_task_sg()Pali Rohár <[email protected]>
serial: 8250: Fix restoring termios speed after suspendGuilherme G. Piccoli <[email protected]>
firmware: google: Test spinlock on panic path to avoid lockupsLin Yujun <[email protected]>
slimbus: qcom-ngd: Add error handling inof_qcom_slim_ngd_registerNam Cao <[email protected]>
staging: vt6655: fix some erroneous memory clean-up loopsDongliang Mu <[email protected]>
phy: qualcomm: callclk_disable_unpreparein the error handlingSherry Sun <[email protected]>
tty: serial:fsl_lpuart: disable dma rx/tx use flags inlpuart_dma_shutdownIlpo Järvinen <[email protected]>
serial: 8250: Toggle IER bits on only after irq has been set upDan Carpenter <[email protected]>
drivers: serial: jsm: fix some leaks in probeDan Carpenter <[email protected]>
usb: dwc3: core: fix some leaks in probeLiang He <[email protected]>
usb: typec: anx7411: Useof_get_child_by_name()instead ofof_find_node_by_name()Albert Briscoe <[email protected]>
usb: gadget: function: fix danglingpnp_stringinf_printer.cMario Limonciello <[email protected]>
xhci: Don't show warning for reinit on known broken suspendDaisuke Matsuda <[email protected]>
IB: Set IOVA/LENGTH onIB_MRin core/uverbs layersMark Zhang <[email protected]>
RDMA/cm: Use SLID in the work completion as the DLID in responder sideLogan Gunthorpe <[email protected]>
md: Remove extramddev_get()inmd_seq_start()David Sloan <[email protected]>
md/raid5: Remove unnecessarybio_put()inraid5_read_one_chunk()Logan Gunthorpe <[email protected]>
md/raid5: Ensurestripe_fillhappens on non-read IO with journalSaurabh Sengar <[email protected]>
md: Replace snprintf with scnprintfJens Axboe <[email protected]>
io_uring/fdinfo: fix sqe dumping forIORING_SETUP_SQE128Dylan Yudaken <[email protected]>
eventfd: guardwake_upin eventfd fs calls as wellBart Van Assche <[email protected]>
block: Fix the enumblk_eh_timer_returndocumentationDan Carpenter <[email protected]>
mtd: rawnand: meson: fix bit map use inmeson_nfc_ecc_correct()Niklas Cassel <[email protected]>
ata: fixata_id_has_dipm()Niklas Cassel <[email protected]>
ata: fixata_id_has_ncq_autosense()Niklas Cassel <[email protected]>
ata: fixata_id_has_devslp()Niklas Cassel <[email protected]>
ata: fixata_id_sense_reporting_enabled()andata_id_has_sense_reporting()Bernard Metzler <[email protected]>
RDMA/siw: Fix QP destroy to wait for all references dropped.Bernard Metzler <[email protected]>
RDMA/siw: Always consume all skbuf data insk_data_ready()upcall.Bart Van Assche <[email protected]>
RDMA/srp: Fixsrp_abort()Shiraz Saleem <[email protected]>
RDMA/irdma: Validate udata inlen and outlenSindhu-Devale <[email protected]>
RDMA/irdma: Align AE id codes to correct flush code and eventPali Rohár <[email protected]>
mtd: rawnand:fsl_elbc: Fix none ECC modeMartin Blumenstingl <[email protected]>
mtd: rawnand: intel: Remove undocumented compatible stringMartin Blumenstingl <[email protected]>
mtd: rawnand: intel: Read the chip-select line from the correct OF nodeChunfeng Yun <[email protected]>
phy: phy-mtk-tphy: fix the phy type setting issueLiang He <[email protected]>
phy: amlogic: phy-meson-axg-mipi-pcie-analog: Hold reference returned byof_get_parent()Johan Hovold <[email protected]>
phy: qcom-qmp-usb: fix memleak on probe deferralJohan Hovold <[email protected]>
phy: qcom-qmp-ufs: fix memleak on probe deferralJohan Hovold <[email protected]>
phy: qcom-qmp-combo: fix memleak on probe deferralJohan Hovold <[email protected]>
phy: qcom-qmp-pcie-msm8996: fix memleak on probe deferralJohan Hovold <[email protected]>
phy: qcom-qmp-pcie: fix memleak on probe deferralJohan Hovold <[email protected]>
phy: qcom-qmp-pcie: addpcs_miscsanity checkJohan Hovold <[email protected]>
phy: qcom-qmp-usb: disable runtime PM on unbindDan Carpenter <[email protected]>
remoteproc: Hardenrproc_handle_vdev()against integer overflowWilliam Dean <[email protected]>
mtd: devices: docg3: check the return value ofdevm_ioremap()in the
probeJames Smart <[email protected]>
scsi: lpfc: Fix various issues reported by toolsDang Huynh <[email protected]>
clk: qcom: sm6115: SelectQCOM_GDSCJan Kara <[email protected]>
sbitmap: Avoid leaving waitqueue in invalid state in__sbq_wake_up()Jim Cromie <[email protected]>
dyndbg: drop EXPORTeddynamic_debug_exec_queriesJim Cromie <[email protected]>
dyndbg: let query-modname override actual module nameJim Cromie <[email protected]>
dyndbg: fix module.dyndbg handlingJim Cromie <[email protected]>
dyndbg: fixstatic_branchmanipulationDan Carpenter <[email protected]>
usb: gadget:f_fs: stricter integer overflow checksVincent Whitchurch <[email protected]>
iio: Use per-device lockdep class for mlockJie Hai <[email protected]>
dmaengine: hisilicon: Add multi-thread support for a DMA channelJie Hai <[email protected]>
dmaengine: hisilicon: Fix CQ head updateJie Hai <[email protected]>
dmaengine: hisilicon: Disable channels when unregisterhisi_dmaJerry Snitselaar <[email protected]>
dmaengine: idxd: avoid deadlock inprocess_misc_interrupts()Peter Geis <[email protected]>
phy: rockchip-inno-usb2: Return zero after otg syncDan Carpenter <[email protected]>
fpga: prevent integer overflow indfl_feature_ioctl_set_irq()Matthew Gerlach <[email protected]>
fpga: dfl-pci: Add IDs for Intel N6000, N6001 and C6100 cardsHangyu Hua <[email protected]>
misc: ocxl: fix possible refcount leak inafu_ioctl()AngeloGioacchino Del Regno <[email protected]>
clk: mediatek: mt8195-infra_ao: Set pwrmcu clocks as criticalAngeloGioacchino Del Regno <[email protected]>
clk: mediatek: clk-mt8195-vdo1: Reparent and set rate on vdo1_dpintf's
parentAngeloGioacchino Del Regno <[email protected]>
clk: mediatek: clk-mt8195-vdo0: Set rate on vdo0_dp_intf0_dp_intf'sparent
Zhu Yanjun <[email protected]>
RDMA/rxe: Fix the error caused by qp->skZhu Yanjun <[email protected]>
RDMA/rxe: Fix "kernel NULL pointer dereference" errorMiaoqian Lin <[email protected]>
media: xilinx: vipp: Fix refcount leak inxvip_graph_dma_initYunke Cao <[email protected]>
media: uvcvideo: Use entityget_curinuvc_ctrl_setJosé Expósito <[email protected]>
media: uvcvideo: Fix memory leak inuvc_gpio_parseXu Qiang <[email protected]>
media: meson: vdec: add missingclk_disable_unprepareon error invdec_hevc_start()Ming Qian <[email protected]>
media: amphion: fix a bug that vpu core may not resume after suspendMing Qian <[email protected]>
media: amphion: don't change the colorspace reported by decoder.Ming Qian <[email protected]>
media: amphion: adjust the encoder's value range of gop sizeMing Qian <[email protected]>
media: amphion: insert picture startcode after seek for vc1g formatHirokazu Honda <[email protected]>
media: mediatek: vcodec: Skip non CBR bitrate modeShubhrajyoti Datta <[email protected]>
tty:xilinx_uartps: Fix theignore_statusShubhrajyoti Datta <[email protected]>
tty:xilinx_uartps: Checkclk_enablereturn valueDongliang Mu <[email protected]>
media: airspy: fix memory leak in airspy probeLiang He <[email protected]>
media: exynos4-is: fimc-is: Addof_node_put()when breaking out of loopMarijn Suijten <[email protected]>
clk: qcom: gcc-sdm660: Use floor ops for SDCC1 clockJack Wang <[email protected]>
HSI:omap_ssi_port: Fixdma_map_sgerror checkMiaoqian Lin <[email protected]>
HSI:omap_ssi: Fix refcount leak inssi_probeJosé Expósito <[email protected]>
HID: uclogic: Fix warning inuclogic_rdesc_template_applyJosé Expósito <[email protected]>
HID: uclogic: Add missing suffix for digitalizersYu Kuai <[email protected]>
sbitmap: fix possible io hung due to lost wakeupChanho Park <[email protected]>
clk: samsung: exynosautov9: correct register offsets of peric0/c1Miaoqian Lin <[email protected]>
clk: tegra20: Fix refcount leak integra20_clock_initMiaoqian Lin <[email protected]>
clk: tegra: Fix refcount leak integra114_clock_initMiaoqian Lin <[email protected]>
clk: tegra: Fix refcount leak integra210_clock_initChristophe JAILLET <[email protected]>
coresight: docs: Fix a broken referenceLiang He <[email protected]>
clk: sprd: Hold reference returned byof_get_parent()Liang He <[email protected]>
clk: berlin: Addof_node_put()forof_get_parent()Liang He <[email protected]>
clk: qoriq: Hold reference returned byof_get_parent()Liang He <[email protected]>
clk: oxnas: Hold reference returned byof_get_parent()Liang He <[email protected]>
clk: st: Hold reference returned byof_get_parent()Liang He <[email protected]>
clk: meson: Hold reference returned byof_get_parent()Thinh Nguyen <[email protected]>
usb: common: debug: Check non-standard control requestsChristophe JAILLET <[email protected]>
usb: common: usb-conn-gpio: Simplify some error messageAharon Landau <[email protected]>
RDMA/mlx5: Don't compare mkey tags in DEVX indirect mkeyJakob Hauser <[email protected]>
iio: magnetometer: yas530: Change data type ofhard_offsetsto signedJonathan Cameron <[email protected]>
iio: ABI: Fix wrong format of differential capacitance channel ABI.Nuno Sá <[email protected]>
iio: inkern: fix return value indevm_of_iio_channel_get_by_name()Nuno Sá <[email protected]>
iio: inkern: only release the device node when done with itClaudiu Beznea <[email protected]>
iio: adc: at91-sama5d2_adc: disable/prepare buffer on suspend/resumeClaudiu Beznea <[email protected]>
iio: adc: at91-sama5d2_adc: lock around oversampling and sample freqClaudiu Beznea <[email protected]>
iio: adc: at91-sama5d2_adc: check return status for pressure and touchClaudiu Beznea <[email protected]>
iio: adc: at91-sama5d2_adc: fix AT91_SAMA5D2_MR_TRACKTIM_MAXZhao Gongyi <[email protected]>
selftests/cpu-hotplug: Reserve one cpu online at leastZhao Gongyi <[email protected]>
selftests/cpu-hotplug: Delete fault injection related codeZhao Gongyi <[email protected]>
selftests/cpu-hotplug: Use return instead of exitDarrick J. Wong <[email protected]>
iomap: iomap: fix memory corruption when recording errors during
writebackDmitry Torokhov <[email protected]>
ARM: dts: exynos: fix polarity of VBUS GPIO of OrigenDmitry Torokhov <[email protected]>
arm64: dts: exynos: fix polarity of "enable" line of NFC chip in TM2Mark Rutland <[email protected]>
arm64: ftrace: fix module PLTs with mcountJosh Triplett <[email protected]>
ext4: don't run ext4lazyinit for read-only filesystemsJerry Lee 李修賢 <[email protected]>
ext4: continue to expand file system when the target size doesn't reachGeert Uytterhoeven <[email protected]>
ARM: Drop CMDLINE_* dependency on ATAGSDmitry Torokhov <[email protected]>
ARM: dts: exynos: correct s5k6a3 reset polarity on Midas familyMatt Ranostay <[email protected]>
arm64: dts: ti: k3-j7200: fix main pinmux rangeJohan Hovold <[email protected]>
arm64: dts: qcom: sm8450: fix UFS PHY serdes sizeJohan Hovold <[email protected]>
arm64: dts: qcom: ipq8074: fix PCIe PHY serdes sizeDmitry Osipenko <[email protected]>
soc/tegra: fuse: DropKconfigdependency onTEGRA20_APB_DMALiang He <[email protected]>
soc/tegra: fuse: Add missingof_node_put()integra_init_fuse()Krzysztof Kozlowski <[email protected]>
arm64: dts: qcom: sm8350-sagami: correct TS pin propertyRandy Dunlap <[email protected]>
ia64: exportmemory_add_physaddr_to_nidto fix cxl build errorBhupesh Sharma <[email protected]>
arm64: dts: qcom: sc8280xp-pmics: Remove reg entry & use correct nodename for
pmc8280c_lpgnodeChris Packham <[email protected]>
arm64: dts: marvell: 98dx25xx: use correct property for i2c gpiosMichael Walle <[email protected]>
ARM: dts: kirkwood: lsxl: remove first ethernet portMichael Walle <[email protected]>
ARM: dts: kirkwood: lsxl: fix serial lineMarek Behún <[email protected]>
ARM: dts: turris-omnia: Fix mpp26 pin name and commentStephen Boyd <[email protected]>
arm64: dts: qcom: sc7180-trogdor: Keeppm6150_adcenabled for TZBryan O'Donoghue <[email protected]>
arm64: dts: qcom: pm8350c: Drop PWM reg declarationJohan Hovold <[email protected]>
arm64: dts: qcom: sa8295p-adp: disallow regulator mode switchesJohan Hovold <[email protected]>
arm64: dts: qcom: sc8280xp-lenovo-thinkpad-x13s: disallow regulator modeswitches
Johan Hovold <[email protected]>
arm64: dts: qcom: sc8280xp-crd: disallow regulator mode switchesSatya Priya <[email protected]>
arm64: dts: qcom: sc7280: Update lpasscore nodeSatya Priya <[email protected]>
arm64: dts: qcom: sc7280: Cleanup the lpasscc nodeGeert Uytterhoeven <[email protected]>
arm64: dts: qcom: sdm845-xiaomi-polaris: Fixsde_dsi_activepinctrlChanho Park <[email protected]>
dt-bindings: clock: exynosautov9: correct clock numbering of peric0/c1Biju Das <[email protected]>
arm64: dts: renesas: r9a07g043: Fix SCI{Rx,Tx} interrupt typesBiju Das <[email protected]>
arm64: dts: renesas: r9a07g054: Fix SCI{Rx,Tx} interrupt typesBiju Das <[email protected]>
arm64: dts: renesas: r9a07g044: Fix SCI{Rx,Tx} interrupt typesLucas Stach <[email protected]>
ARM: dts: imx6qdl-kontron-samx6i: hook up DDC i2c busLiang He <[email protected]>
soc: qcom: smem_state: Add refcounting for the 'state->of_node'Liang He <[email protected]>
soc: qcom: smsm: Fix refcount leak bugs inqcom_smsm_probe()Amir Goldstein <[email protected]>
locks: fix TOCTOU race when granting write leaseLiang He <[email protected]>
memory: of: Fix refcount leak bug inof_lpddr3_get_ddr_timings()Liang He <[email protected]>
memory: of: Fix refcount leak bug inof_get_ddr_timings()Liang He <[email protected]>
memory: pl353-smc: Fix refcount leak bug inpl353_smc_probe()Takashi Iwai <[email protected]>
ALSA: hda/hdmi: Don't skip notification handling during PM operationJudy Hsiao <[email protected]>
ASoC: rockchip: i2s: useregmap_read_poll_timeout_atomicto pollI2S_CLRZhang Qilong <[email protected]>
ASoC: mt6660: Fix PM disable depth imbalance inmt6660_i2c_probeZhang Qilong <[email protected]>
ASoC: wm5102: Fix PM disable depth imbalance inwm5102_probeZhang Qilong <[email protected]>
ASoC: wm5110: Fix PM disable depth imbalance inwm5110_probeZhang Qilong <[email protected]>
ASoC: wm8997: Fix PM disable depth imbalance inwm8997_probeKrzysztof Kozlowski <[email protected]>
ASoC: wcd-mbhc-v2: Revert "ASoC: wcd-mbhc-v2: usepm_runtime_resume_and_get()"Zhang Qilong <[email protected]>
ASoC: stm: Fix PM disable depth imbalance instm32_i2s_probeZhang Qilong <[email protected]>
ASoC: stm32: spdifrx: Fix PM disable depth imbalance instm32_spdifrx_probeZhang Qilong <[email protected]>
ASoC: stm32: dfsdm: Fix PM disable depth imbalance instm32_adfsdm_probeChristophe JAILLET <[email protected]>
mmc: wmt-sdmmc: Fix an error handling path inwmt_mci_probe()Andreas Pape <[email protected]>
ALSA: dmaengine: increment buffer pointer atomicallyChristophe JAILLET <[email protected]>
ASoC: da7219: Fix an error handling path inda7219_register_dai_clks()Srinivas Kandagatla <[email protected]>
ASoC: codecs: tx-macro: fix kcontrol putDan Carpenter <[email protected]>
virtio-gpu: fix shift wrapping bug invirtio_gpu_fence_event_create()Rafael Mendonca <[email protected]>
drm/vmwgfx: Fix memory leak invmw_mksstat_add_ioctl()Peter Ujfalusi <[email protected]>
ASoC: SOF: ipc4-topology: Free the ida when IPC fails insof_ipc4_widget_setup()Takashi Iwai <[email protected]>
ALSA: usb-audio: Properly refcounting clock rateJaroslav Kysela <[email protected]>
ALSA: hda/hdmi: Fix the converter allocation for the silent streamJaroslav Kysela <[email protected]>
ALSA: hda/hdmi: change type for the 'assigned' variableKuogee Hsieh <[email protected]>
drm/msm/dp: correct 1.62G link rate atdp_catalog_ctrl_config_msa()Dmitry Baryshkov <[email protected]>
drm/msm/dpu: index dpu_kms->hw_vbif using vbif_idxDmitry Baryshkov <[email protected]>
drm/msm: lookup the ICC paths in both mdp5/dpu and mdss devicesLiang He <[email protected]>
ASoC: eureka-tlv320: Hold reference returned fromof_find_xxxAPIChristophe JAILLET <[email protected]>
mmc: au1xmmc: Fix an error handling path inau1xmmc_probe()Judy Hsiao <[email protected]>
ASoC: rockchip: i2s: useregmap_read_poll_timeoutto pollI2S_CLRRafael Mendonca <[email protected]>
drm/amdgpu: Fix memory leak inhpd_rx_irq_create_workqueue()Liang He <[email protected]>
drm/omap: dss: Fix refcount leak bugsAngeloGioacchino Del Regno <[email protected]>
ASoC: SOF: mediatek: mt8195: Import namespaceSND_SOC_SOF_MTK_COMMONAngeloGioacchino Del Regno <[email protected]>
ASoC: mediatek: mt8195-mt6359: Properly register sound card for SOFGerd Hoffmann <[email protected]>
drm/bochs: fix blankingChia-I Wu <[email protected]>
drm/virtio: setfb_modifiers_not_supportedTakashi Iwai <[email protected]>
ALSA: hda: beep: Simplify keep-power-at-enable behaviorCristian Ciocaltea <[email protected]>
ASoC:wm_adsp: Handle optional legacy supportJiasheng Jiang <[email protected]>
ASoC: rsnd: Add check forrsnd_mod_power_onPin-yen Lin <[email protected]>
drm/bridge: it6505: Fix the order ofDP_SET_POWERcommandsZheyu Ma <[email protected]>
drm/bridge: megachips: Fix a null pointer dereference bugYang Yingliang <[email protected]>
drm/amdgpu: add missingpci_disable_device()inamdgpu_pmops_runtime_resume()Prashant Malani <[email protected]>
platform/chrome:cros_ec_typec: Correct alt mode indexPrashant Malani <[email protected]>
platform/chrome:cros_ec_typec: Add bit offset for DP VDORandy Dunlap <[email protected]>
drm: fixdrm_mipi_dbibuild errorsRandy Dunlap <[email protected]>
drm/panel: use 'select' for Ili9341 panel driver helpersHans de Goede <[email protected]>
platform/x86: msi-laptop: Fix resource cleanupHans de Goede <[email protected]>
platform/x86: msi-laptop: Fix old-ec check for backlight registeringMartin Povišer <[email protected]>
ASoC: tas2764: Fix mute/unmuteMartin Povišer <[email protected]>
ASoC: tas2764: Drop conflictingset_bias_levelpower settingMartin Povišer <[email protected]>
ASoC: tas2764: Allow mono streamsKuninori Morimoto <[email protected]>
ASoC:soc-pcm.c: call__soc_pcm_close()insoc_pcm_close()Rob Clark <[email protected]>
drm/virtio: Fix same-context optimizationStanislav Lisovskiy <[email protected]>
drm/i915/dg2: Bump up CDCLK for DG2Dan Carpenter <[email protected]>
platform/chrome: fix memory corruption in ioctlRustam Subkhankulov <[email protected]>
platform/chrome: fix double-free inchromeos_laptop_prepare()Javier Martinez Canillas <[email protected]>
drm/msm: Make .remove and .shutdown HW shutdown consistentYang Yingliang <[email protected]>
ASoC: amd: acp: add missingplatform_device_unregister()inacp_pci_probe()Dan Carpenter <[email protected]>
ASoC: mt6359: fix tests forplatform_get_irq()failureLiang He <[email protected]>
drm:pl111: Addof_node_put()when breaking out offor_each_available_child_of_node()Simon Ser <[email protected]>
drm/dp_mst: fixdrm_dp_dpcd_readreturn value checksJosé Expósito <[email protected]>
drm/format-helper: Fix test on big endian architecturesChen-Yu Tsai <[email protected]>
drm/bridge: parade-ps8640: Fix regulator supply orderLiang He <[email protected]>
drm/bridge: tc358767: Addof_node_put()when breaking out of loopLiang He <[email protected]>
drm/bridge: anx7625: Fix refcount bug in anx7625_parse_dt()Dmitry Osipenko <[email protected]>
drm/virtio: Correctdrm_gem_shmem_get_sg_table()error handlingThomas Zimmermann <[email protected]>
video/aperture: Disable and unregister sysfb devices via aperture
helpersPin-Yen Lin <[email protected]>
drm/bridge: it6505: Power on downstream device in .atomic_enableMaxime Ripard <[email protected]>
drm/vc4: drv: Callcomponent_unbind_all()Maxime Ripard <[email protected]>
drm/mipi-dsi: Detach devices when removing the hostDan Carpenter <[email protected]>
drm/bridge: Avoid uninitialized variable warningAlvin Šipraga <[email protected]>
drm: bridge: adv7511: unregister cec i2c device after cec adapterAlvin Šipraga <[email protected]>
drm: bridge: adv7511: fix CEC power down control register offsetRussell King (Oracle) <[email protected]>
net: mvpp2: fix mvpp2 debugfs leakEric Dumazet <[email protected]>
once: addDO_ONCE_SLOW()for sleepable contextsTetsuo Handa <[email protected]>
net/ieee802154: reject zero-sized raw_sendmsg()Maxim Mikityanskiy <[email protected]>
net: wwan: iosm: Callmutex_initbefore locking itZheng Wang <[email protected]>
eth: sp7021: fix use after free bug inspl2sw_nvmem_get_mac_addressJianglei Nie <[email protected]>
bnx2x: fix potential memory leak inbnx2x_tpa_stop()Raju Lakkaraju <[email protected]>
eth: lan743x: reject extts for non-pci11x1x devicesJiasheng Jiang <[email protected]>
net: prestera: acl: Add check for kmemdupKuniyuki Iwashima <[email protected]>
af_unix: Fix memory leaks of the whole sk due to OOB skb.Tetsuo Handa <[email protected]>
net: rds: don't hold sock lock when cancelling work fromrds_tcp_reset_callbacks()Oleksandr Shamray <[email protected]>
hwmon: (pmbus/mp2888) Fix sensors readouts for MPS Multi-phase mp2888
controllerLuiz Augusto von Dentz <[email protected]>
Bluetooth:hci_sync: Fix not indicating power stateMarek Szyprowski <[email protected]>
spi: Ensure thatsg_tablewon't be used after being freedNeal Cardwell <[email protected]>
tcp: fixtcp_cwnd_validate()to not forgetis_cwnd_limitedXin Long <[email protected]>
sctp: handle the error returned fromsctp_auth_asoc_init_active_keyDuoming Zhou <[email protected]>
mISDN: fix use-after-free bugs in l1oip timer handlersJakub Kicinski <[email protected]>
eth: alx: takertnl_lockon resumeJunichi Uekawa <[email protected]>
vhost/vsock: Use kvmalloc/kvfree for larger packets.Bitterblue Smith <[email protected]>
wifi: rtl8xxxu: Fix AIFS written to REG_EDCA_*_PARAMBitterblue Smith <[email protected]>
wifi: rtl8xxxu: gen2: Enable 40 MHz channel widthAbhishek Pandit-Subedi <[email protected]>
Bluetooth: Prevent double register of suspendVincent Whitchurch <[email protected]>
spi: s3c64xx: Fix large transfers with DMAPhil Sutter <[email protected]>
netfilter:nft_fib: Fix for rpath check with VRF devicesLiu Jian <[email protected]>
xfrm: Reinject transport-mode packets through workqueueLuiz Augusto von Dentz <[email protected]>
Bluetooth:hci_core: Fix not handling link timeouts propertlyAsmaa Mnebhi <[email protected]>
i2c: mlxbf: support lock mechanismAndrii Nakryiko <[email protected]>
libbpf: Don't require full struct enum64 in UAPI headersXiaomeng Tong <[email protected]>
cw1200: fix incorrect check to determine if no element is found in listLiu Jian <[email protected]>
skmsg: Schedule psock work if the cached skb exists on the psockZhang Qilong <[email protected]>
spi/omap100k:Fix PM disable depth imbalance inomap1_spi100k_probeZhang Qilong <[email protected]>
spi: dw: Fix PM disable depth imbalance indw_spi_bt1_probeZhang Qilong <[email protected]>
spi: cadence-quadspi: Fix PM disable depth imbalance incqspi_probeLuciano Leão <[email protected]>
x86/cpu: Include the header of init_ia32_feat_ctl()'s prototypeChristian Marangi <[email protected]>
wifi: ath11k: fix peer addition/deletion error on sta band migrationAndrii Nakryiko <[email protected]>
libbpf: restore memory layout ofbpf_object_open_optsKees Cook <[email protected]>
x86/microcode/AMD: Track patch allocation size explicitlyArınç ÜNAL <[email protected]>
mips: dts: ralink: mt7621: fix external phy on GB-PC2Jesus Fernandez Manzano <[email protected]>
wifi: ath11k: fix number of VHT beamformee spatial streamsWen Gong <[email protected]>
wifi: ath11k: fix failed to find the peer withpeer_id0 when
disconnectedDuoming Zhou <[email protected]>
mwifiex: fix sleep in atomic context bugs caused bydev_coredumpvQingqing Yang <[email protected]>
flow_dissector: Do not count vlan tags inside tunnel payloadPu Lehui <[email protected]>
selftests/bpf: Adapt cgroup effective query uapi changePu Lehui <[email protected]>
bpftool: Fix wrong cgroup attach flags being assigned to effective
progsPu Lehui <[email protected]>
bpf, cgroup: Rejectprog_attach_flagsarray when effective queryAntoine Tenart <[email protected]>
netfilter: conntrack: revisit the gc initial rescheduling biasAntoine Tenart <[email protected]>
netfilter: conntrack: fix the gc rescheduling delayXin Liu <[email protected]>
libbpf: Fix NULL pointer exception in APIbtf_dump__dump_type_dataTetsuo Handa <[email protected]>
Bluetooth: hci_{ldisc,serdev}: checkpercpu_init_rwsem()failureBaochen Qiang <[email protected]>
wifi: ath11k: IncludeSTA_KEEPALIVE_ARP_RESPONSETLV header by defaultAndrii Nakryiko <[email protected]>
libbpf: Fix crash ifSEC("freplace")programs don't haveattach_prog_fd
setLee Jones <[email protected]>
bpf: Ensure correct locking around vulnerable functionfind_vpid()Zheng Yongjun <[email protected]>
net:fs_enet: Fix wrong check indo_pd_setupLuiz Augusto von Dentz <[email protected]>
Bluetooth: RFCOMM: Fix possible deadlock on socket shutdown/releaseDeren Wu <[email protected]>
wifi: mt76: mt7921e: fix rmmod crash in driver reload testHoward Hsu <[email protected]>
wifi: mt76: mt7915: do not check state before configuring implicit
beamformLorenzo Bianconi <[email protected]>
wifi: mt76: fix uninitialized pointer inmt7921_mac_fill_rxHoward Hsu <[email protected]>
wifi: mt76: mt7915: fix mcs value in ht modeSean Wang <[email protected]>
wifi: mt76: mt7921: fix the firmware version reportSean Wang <[email protected]>
wifi: mt76: mt7921: add mt7921_mutex_acquire at
mt7921_sta_set_decap_offloadSean Wang <[email protected]>
wifi: mt76: mt7921: add mt7921_mutex_acquire at mt7921_[start, stop]_apLorenzo Bianconi <[email protected]>
wifi: mt76: connac: fix possible unaligned access inmt76_connac_mcu_add_nested_tlvLorenzo Bianconi <[email protected]>
wifi: mt76: mt7915: fix possible unaligned access inmt7915_mac_add_twt_setupLorenzo Bianconi <[email protected]>
wifi: mt76: mt7615: add mt7615_mutex_acquire/release in
mt7615_sta_set_decap_offloadYN Chen <[email protected]>
wifi: mt76: sdio: fix transmitting packet hangsDan Carpenter <[email protected]>
wifi: mt76: mt7921: fix use after free in mt7921_acpi_read()Dan Carpenter <[email protected]>
wifi: mt76: mt7915: fix an uninitialized variable bugSean Wang <[email protected]>
wifi: mt76: sdio: poll sta stat when device transmits dataSean Wang <[email protected]>
wifi: mt76: sdio: fix the deadlock caused by sdio->stat_workSean Wang <[email protected]>
wifi: mt76: mt7921u: fix race issue between reset and suspend/resumeSean Wang <[email protected]>
wifi: mt76: mt7921s: fix race issue between reset and suspend/resumeSean Wang <[email protected]>
wifi: mt76: mt7921e: fix race issue between reset and suspend/resumeTetsuo Handa <[email protected]>
Bluetooth: avoidhci_dev_test_and_set_flag()inmgmt_init_hdev()Bitterblue Smith <[email protected]>
wifi: rtl8xxxu: Remove copy-paste leftover ingen2_update_rate_maskBitterblue Smith <[email protected]>
wifi: rtl8xxxu: gen2: Fix mistake in path B IQ calibrationLorenz Bauer <[email protected]>
bpf: btf: fix truncatedlast_member_type_idinbtf_struct_resolveNeil Armstrong <[email protected]>
spi: meson-spicc: do not rely on busy flag in pow2 clk opsBitterblue Smith <[email protected]>
wifi: rtl8xxxu: Fix skb misuse in TX queue selectionXu Qiang <[email protected]>
spi: qup: add missingclk_disable_unprepareon error inspi_qup_pm_resume_runtime()Xu Qiang <[email protected]>
spi: qup: add missingclk_disable_unprepareon error inspi_qup_resume()Johannes Berg <[email protected]>
wifi: mac80211: mlme: assign link address correctlyIan Rogers <[email protected]>
selftests/xsk: Avoid use-after-free on ctxYang Yingliang <[email protected]>
wifi: rtw88: add missingdestroy_workqueue()on error path inrtw_core_init()Dan Carpenter <[email protected]>
wifi: wfx: prevent underflow inwfx_send_pds()Dan Carpenter <[email protected]>
wifi: rtl8xxxu: tighten bounds checking inrtl8xxxu_read_efuse()Ping-Ke Shih <[email protected]>
wifi: rtw89: pci: correct TX resource checking in low power modePing-Ke Shih <[email protected]>
wifi: rtw89: pci: fix interrupt stuck after leaving low power modeHou Tao <[email protected]>
bpf: Only add BTF IDs for socket security hooks whenCONFIG_SECURITY_NETWORKis onSean Wang <[email protected]>
Bluetooth: btusb: mediatek: fix WMT failure during runtime suspendHou Tao <[email protected]>
bpf: Use this_cpu_{inc_return|dec} for prog->activeHou Tao <[email protected]>
bpf: Use this_cpu_{inc|dec|inc_return} forbpf_task_storage_busyManikanta Pubbisetty <[email protected]>
wifi: ath11k: Fix incorrect QMI message ID mappingsHou Tao <[email protected]>
bpf: Propagate error fromhtab_lock_bucket()to userspaceHou Tao <[email protected]>
bpf: Disable preemption when increasing per-cpumap_lockedMaciej Fijalkowski <[email protected]>
selftests/xsk: Add missingclose()on netns fdMaciej Fijalkowski <[email protected]>
xsk: Fix backpressure mechanism on TxKohei Tarumizu <[email protected]>
x86/resctrl: Fix to restore to original value when re-enabling hardware
prefetch registerChristophe JAILLET <[email protected]>
spi: mt7621: Fix an error message in mt7621_spi_probe()Sabrina Dubroca <[email protected]>
esp: choose the correct inner protocol for GSO on inter address family
tunnelsRichard Guy Briggs <[email protected]>
audit: freeaudit_proctitleonly on task exitRichard Guy Briggs <[email protected]>
audit: explicitly check audit_context->context enum valueJacob Keller <[email protected]>
ice: settx_tstampswhen creating new Tx rings via ethtoolLam Thai <[email protected]>
bpftool: Fix a wrong type cast inbtf_dumper_intHari Chandrakanthan <[email protected]>
wifi: mac80211: allow bw change during channel switch in meshJohannes Berg <[email protected]>
wifi:mac80211_hwsim: fix link change handlingMordechay Goodstein <[email protected]>
wifi: mac80211: mlme: don't add empty EML capabilitiesJohannes Berg <[email protected]>
wifi: mac80211: fix use-after-freeShaul Triebitz <[email protected]>
wifi: cfg80211: get correct AP link chandefShaul Triebitz <[email protected]>
wifi: mac80211: properly setold_linkswhen removing a linkKumar Kartikeya Dwivedi <[email protected]>
bpf: Fix reference state management for synchronous callbacksMaksym Glubokiy <[email protected]>
net: prestera: cache port state for non-phylink ports tooGerhard Engleder <[email protected]>
tsnep: FixTSNEP_INFO_TX_TIMEregister defineUwe Kleine-König <[email protected]>
leds: lm3601x: Don't use mutex after it was destroyedJoanne Koong <[email protected]>
bpf: Fixref_obj_idfor dynptr data slices in verifierDave Marchevsky <[email protected]>
bpf: Cleanupcheck_refcount_okWen Gong <[email protected]>
wifi: ath10k: add peer map clean up for peer delete inath10k_sta_state()Youghandhar Chintala <[email protected]>
wifi: ath10k: Set tx credit to one for WCN3990 snoc based devicesPing-Ke Shih <[email protected]>
wifi: rtlwifi: 8192de: correct checking of IQK reloadFlorian Fainelli <[email protected]>
libbpf: Initialize err inprobe_map_createJason A. Donenfeld <[email protected]>
m68k: Process bootinfo records before saving themBill Wendling <[email protected]>
x86/paravirt: add extra clobbers withZERO_CALL_USED_REGSenabledChuck Lever <[email protected]>
NFSD: Fix handling of oversized NFSv4 COMPOUND requestsChuck Lever <[email protected]>
NFSD: Protect against send buffer overflow in NFSv2 READDIRChuck Lever <[email protected]>
SUNRPC: Fix svcxdr_init_encode's buflen calculationChuck Lever <[email protected]>
SUNRPC: Fix svcxdr_init_decode's end-of-buffer calculationChristophe JAILLET <[email protected]>
nfsd: Fix a memory leak in an error handling pathSami Tolvanen <[email protected]>
objtool: Preserve specialst_shndxindexes inelf_update_symbolHuisong Li <[email protected]>
ACPI: PCC: Fix Tx acknowledge in the PCC address space handlerHuisong Li <[email protected]>
ACPI: PCC: replacewait_for_completion()Rafael Mendonca <[email protected]>
ACPI: PCC: Release resources on address space setup failure pathWang Kefeng <[email protected]>
ARM: 9247/1: mm: set readonly forMT_MEMORY_ROwithARM_LPAEWang Kefeng <[email protected]>
ARM: 9244/1: dump: Fix wrong pg_level in walk_pmd()Bart Van Assche <[email protected]>
ARM: 9243/1: riscpc: Unbreak the buildJia Zhu <[email protected]>
erofs: usekill_anon_super()to kill super in fscache modeGao Xiang <[email protected]>
erofs: fix order >=MAX_ORDERwarning due to crafted negativei_sizeLin Yujun <[email protected]>
MIPS: SGI-IP27: Fix platform-device leak inbridge_platform_create()Lin Yujun <[email protected]>
MIPS: SGI-IP30: Fix platform-device leak inbridge_platform_create()Kees Cook <[email protected]>
sh: machvec: Use char[] for section boundariesPerry Yuan <[email protected]>
cpufreq: amd-pstate: Fix initialhighest_perfvalueXuewen Yan <[email protected]>
thermal:cpufreq_cooling: Check the policy first incpufreq_cooling_register()Christian Brauner <[email protected]>
acl: return EOPNOTSUPP inposix_acl_fix_xattr_common()Christian Brauner <[email protected]>
ntfs3: rework xattr handlers and switch to POSIX ACL VFS helpersOndrej Mosnacek <[email protected]>
userfaultfd: open userfaultfds withO_RDONLYMimi Zohar <[email protected]>
ima: fix blocking of security.ima xattrs of unsupported algorithmsGreg Kroah-Hartman <[email protected]>
selinux: use "grep -E" instead of "egrep"Steve French <[email protected]>
smb3: must initialize two ACL struct fields to zeroRuili Ji <[email protected]>
drm/amdgpu: EnableF32_WPTR_POLL_ENABLEin mqdSonny Jiang <[email protected]>
drm/amdgpu: Enable VCN PG onGC11_0_1Shirish S <[email protected]>
drm/amd/display: explicitly disablepsr_feature_enableappropriatelyAurabindo Pillai <[email protected]>
drm/amd/display: Add HUBP surface flip interrupt handlerYunxiang Li <[email protected]>
drm/amd/display: Fix vblank refcount in vrr transitionRodrigo Siqueira <[email protected]>
drm/amd/display: Enable 2 to 1 ODM policy if supportedRoman Li <[email protected]>
drm/amd/display: Enable dpia support for dcn314Fangzhi Zuo <[email protected]>
drm/amd/display: Validate DSC After Enable All New CRTCsMartin Leung <[email protected]>
drm/amd/display: zeromem mypipe heap struct before using itNicholas Kazlauskas <[email protected]>
drm/amd/display: Update PMFW z-state interface for DCN314Alvin Lee <[email protected]>
drm/amd/display: Fix watermark calculationThomas Hellström <[email protected]>
drm/i915: Fix display problems after resumeVille Syrjälä <[email protected]>
drm/i915: Fix watermark calculations for DG2 CCS+CC modifierVille Syrjälä <[email protected]>
drm/i915: Fix watermark calculations for DG2 CCS modifiersVille Syrjälä <[email protected]>
drm/i915: Fix watermark calculations for gen12+ CCS+CC modifierVille Syrjälä <[email protected]>
drm/i915: Fix watermark calculations for gen12+ MC CCS modifierVille Syrjälä <[email protected]>
drm/i915: Fix watermark calculations for gen12+ RC CCS modifierTvrtko Ursulin <[email protected]>
drm/i915/guc: Fix revocation of non-persistent contextsChris Wilson <[email protected]>
drm/i915/gt: Usei915_vm_putonppgtt_createerror pathsJianglei Nie <[email protected]>
drm/nouveau: fix a use-after-free innouveau_gem_prime_import_sg_table()Lyude Paul <[email protected]>
drm/nouveau/kms/nv140-: Disable interlacingGreg Kroah-Hartman <[email protected]>
staging: greybus:audio_helper: remove unused and wrong debugfs usageSean Christopherson <[email protected]>
KVM: VMX: Drop bits 31:16 when shoving exception error code into VMCSSean Christopherson <[email protected]>
KVM: x86: Treat #DBs from the emulator as fault-like (code and
DR7.GD=1)Sean Christopherson <[email protected]>
KVM: nVMX: Don't propagate vmcs12'sPERF_GLOBAL_CTRLsettings to vmcs02Sean Christopherson <[email protected]>
KVM: nVMX: Unconditionally purge queued/injected events on nested
"exit"Michal Luczaj <[email protected]>
KVM: x86/emulator: Fix handing of POP SS to correctly set
interruptibilityYu Kuai <[email protected]>
blk-wbt: callrq_qos_add()afterwb_normalis initializedYu Kuai <[email protected]>
blk-throttle: fix that io throttle can only work for single bioDmitry Osipenko <[email protected]>
media: cedrus: Fix endless loop incedrus_h265_skip_bits()Dmitry Osipenko <[email protected]>
media: cedrus: Set the platform driver data earlierNicolas Dufresne <[email protected]>
media: cedrus: Fix watchdog race conditionArd Biesheuvel <[email protected]>
efi: libstub: drop pointlessget_memory_map()callMario Limonciello <[email protected]>
thunderbolt: Explicitly enable lane adapter hotplug events at startupShengjiu Wang <[email protected]>
rpmsg: char: Avoid double destroy of default endpointSteven Rostedt (Google) <[email protected]>
tracing: Fix reading strings from synthetic eventsSteven Rostedt (Google) <[email protected]>
tracing: Add "(fault)" name injection to kernel probesSteven Rostedt (Google) <[email protected]>
tracing: Move duplicate code oftrace_kprobe/eprobe.cinto headerSteven Rostedt (Google) <[email protected]>
tracing: Do not free snapshot if tracer is on cmdlineSteven Rostedt (Google) <[email protected]>
tracing: Addioctl()to force ring buffer waiters to wake upSteven Rostedt (Google) <[email protected]>
tracing: Wake up waiters when tracing is disabledSteven Rostedt (Google) <[email protected]>
tracing: Wake up ring buffer waiters on closing of the fileWaiman Long <[email protected]>
tracing: Disable interrupt or preemption before acquiringarch_spinlock_tTao Chen <[email protected]>
tracing/eprobe: Fix alloc event dir failed when event name no setSteven Rostedt (Google) <[email protected]>
ring-buffer: Fix race between reset page and reading pageSteven Rostedt (Google) <[email protected]>
ring-buffer: Addring_buffer_wake_waiters()Steven Rostedt (Google) <[email protected]>
ring-buffer: Check pending waiters when doing wake ups as wellSteven Rostedt (Google) <[email protected]>
ring-buffer: Have theshortest_fullqueue be the shortest not longestSteven Rostedt (Google) <[email protected]>
ring-buffer: Allow splice to read previous partially read pagesSteven Rostedt (Google) <[email protected]>
ftrace: Still disable enabled records marked as disabledZheng Yejian <[email protected]>
ftrace: Properly unsetFTRACE_HASH_FL_MODRik van Riel <[email protected]>
livepatch: fix race between fork and KLP transitionYe Bin <[email protected]>
ext4: update 'state->fc_regions_size' after successful memoryallocation
Ye Bin <[email protected]>
ext4: fix potential memory leak inext4_fc_record_regions()Ye Bin <[email protected]>
ext4: fix potential memory leak inext4_fc_record_modified_inode()Ye Bin <[email protected]>
ext4: fix miss release buffer head inext4_fc_write_inodeZhihao Cheng <[email protected]>
ext4: fix dir corruption whenext4_dx_add_entry()failsJeff Layton <[email protected]>
ext4: fixi_versionhandling in ext4Jinke Han <[email protected]>
ext4: place buffer head allocation before handle startZhang Yi <[email protected]>
ext4:ext4_read_bh_lock()should submit IO if the buffer isn't uptodateJeff Layton <[email protected]>
ext4: unconditionally enable thei_versioncounterLukas Czerner <[email protected]>
ext4: don't increase iversion counter forea_inodesJan Kara <[email protected]>
ext4: fix check for block being out of directory sizeLalith Rajendran <[email protected]>
ext4: makeext4_lazyinit_threadfreezableBaokun Li <[email protected]>
ext4: fix null-ptr-deref inext4_write_infoJan Kara <[email protected]>
ext4: avoid crash when inline data creation follows DIO writeJan Kara <[email protected]>
ext2: Add sanity checks for group and filesystem sizeYe Bin <[email protected]>
jbd2: add miss release buffer head infc_do_one_pass()Ye Bin <[email protected]>
jbd2: fix potential use-after-free injbd2_fc_wait_bufsYe Bin <[email protected]>
jbd2: fix potential buffer head reference count leakAndrew Perepechko <[email protected]>
jbd2: wake up journal waiters in FIFO order, not LIFOJaegeuk Kim <[email protected]>
f2fs: allow direct read for zoned deviceChao Yu <[email protected]>
f2fs: fix to do sanity check on summary infoChao Yu <[email protected]>
f2fs: fix to do sanity check on destination blkaddr during recoveryJaegeuk Kim <[email protected]>
f2fs: increase the limit forreserve_rootJaegeuk Kim <[email protected]>
f2fs: flush pending checkpoints when freezing superJaegeuk Kim <[email protected]>
f2fs: complete checkpoints during remountJaegeuk Kim <[email protected]>
f2fs: fix wrong continue condition in GCTetsuo Handa <[email protected]>
btrfs: set generation before callingbtrfs_clean_tree_blockinbtrfs_init_new_bufferFilipe Manana <[email protected]>
btrfs: fix missed extent on fsync after dropping extent mapsFilipe Manana <[email protected]>
btrfs: fix race between quota enable and quota rescan ioctlQu Wenruo <[email protected]>
btrfs: enhance unsupported compat RO flags handlingAlexander Zhu <[email protected]>
btrfs: fix alignment of VMA for memory mapped files on THPLukas Czerner <[email protected]>
fs: recordI_DIRTY_TIMEeven if inode already hasI_DIRTY_INODEMickaël Salaün <[email protected]>
ksmbd: Fix user namespace mappingZhang Xiaoxu <[email protected]>
ksmbd: Fix wrong return value and message length check insmb2_ioctl()Namjae Jeon <[email protected]>
ksmbd: fix endless loop when encryption for response failsNamjae Jeon <[email protected]>
ksmbd: fix incorrect handling ofiterate_dirSteve French <[email protected]>
smb3: do not log confusing message when server returns no network
interfacesJason A. Donenfeld <[email protected]>
hwrng: core - let sleep be interrupted when unregistering hwrngHyunwoo Kim <[email protected]>
fbdev: smscufx: Fix use-after-free inufx_ops_open()Quentin Schulz <[email protected]>
pinctrl: rockchip: add pinmux_ops.gpio_set_direction callbackQuentin Schulz <[email protected]>
gpio: rockchip: request GPIO mux to pinctrl when setting directionSaurav Kashyap <[email protected]>
scsi: qedf: Populate sysfs attributes for vportJames Smart <[email protected]>
scsi: lpfc: Rework MIB Rx Monitor debug info logicKrzysztof Kozlowski <[email protected]>
slimbus: qcom-ngd: cleanup in probe error pathKrzysztof Kozlowski <[email protected]>
slimbus: qcom-ngd: use correct error in message ofpdr_add_lookup()
failurePali Rohár <[email protected]>
powerpc/boot: Explicitly disable usage of SPE instructionsChristophe Leroy <[email protected]>
powerpc/Kconfig: Fix non existingCONFIG_PPC_FSL_BOOKEZhang Rui <[email protected]>
powercap:intel_rapl: Use standard Energy Unit for SPR Dram RAPL domainMatthias Kaehlcke <[email protected]>
LoadPin: FixKconfigdoc about format of file with verity digestsViresh Kumar <[email protected]>
cpufreq: qcom-cpufreq-hw: Fix uninitializedthrottled_freqwarningChuck Lever <[email protected]>
NFSD: Protect against send buffer overflow in NFSv3 READChuck Lever <[email protected]>
NFSD: Protect against send buffer overflow in NFSv2 READChuck Lever <[email protected]>
NFSD: Protect against send buffer overflow in NFSv3 READDIRMaciej W. Rozycki <[email protected]>
serial: 8250: Request full 16550A feature probing for OxSemi PCIe
devicesMaciej W. Rozycki <[email protected]>
serial: 8250: Let drivers request full 16550A feature probingLukas Wunner <[email protected]>
serial: ar933x: Deassert Transmit Enable on ->rs485_config()Lukas Wunner <[email protected]>
serial: Deassert Transmit Enable on probe in driver-specific wayLukas Wunner <[email protected]>
serial: stm32: Deassert Transmit Enable on ->rs485_config()Christophe Leroy <[email protected]>
serial:cpm_uart: Don't request IRQ too early for console portMaciej W. Rozycki <[email protected]>
PCI: Sanitise firmware BAR assignments behind a PCI-PCI bridgeM. Vefa Bicakci <[email protected]>
xen/gntdev: Accommodate VMA splittingM. Vefa Bicakci <[email protected]>
xen/gntdev: Prevent leaking grantsCarlos Llamas <[email protected]>
mm/mmap: undo ->mmap() when arch_validate_flags() failsPeter Xu <[email protected]>
mm/uffd: fix warning withoutPTE_MARKER_UFFD_WPcompiled inBaolin Wang <[email protected]>
mm/damon: validate if the pmd entry is present before accessingBaolin Wang <[email protected]>
mm/hugetlb: fix races when looking up a CONT-PTE/PMD size hugetlb pageYang Guo <[email protected]>
clocksource/drivers/arm_arch_timer: FixCNTPCT_LOandCNTVCT_LOvalueJames Morse <[email protected]>
arm64: errata: Add Cortex-A55 to the repeat tlbi listCatalin Marinas <[email protected]>
arm64: mte: Avoid settingPG_mte_taggedif no tags cleared or restoredPeter Collingbourne <[email protected]>
arm64: mte: move register initialization to CTakashi Iwai <[email protected]>
drm/udl: Restore display mode on resumeDmitry Osipenko <[email protected]>
drm/virtio: Use appropriate atomic state invirtio_gpu_plane_cleanup_fb()Dmitry Osipenko <[email protected]>
drm/virtio: Unlock reservations ondma_resv_reserve_fences()errorDmitry Osipenko <[email protected]>
drm/virtio: Unlock reservations onvirtio_gpu_object_shmem_init()errorDmitry Osipenko <[email protected]>
drm/virtio: Check whether transferred 2D BO is shmemChristian Marangi <[email protected]>
dmaengine: qcom-adm: fix wrong calling convention forprep_slave_sgChristian Marangi <[email protected]>
dmaengine: qcom-adm: fix wrong sizeof config inslave_configDario Binacchi <[email protected]>
dmaengine: mxs: useplatform_driver_registerMatthias Kaehlcke <[email protected]>
dm: verity-loadpin: Only trust verity targets with enforcementHamza Mahfooz <[email protected]>
Revert "drm/amdgpu: use dirty framebuffer helper"Sagi Grimberg <[email protected]>
nvme-multipath: fix possible hang in live ns resize with ANA accessGaosheng Cui <[email protected]>
nvmem: core: Fix memleak innvmem_register()Huacai Chen <[email protected]>
UM: cpuinfo: Fix a warning forCONFIG_CPUMASK_OFFSTACKFangrui Song <[email protected]>
riscv: Pass -mno-relax only on lld < 15.0.0Wenting Zhang <[email protected]>
riscv: always honor theCONFIG_CMDLINE_FORCEwhen parsing dtbAndrew Bresticker <[email protected]>
riscv: MakeVM_WRITEimplyVM_READAndrew Bresticker <[email protected]>
riscv: Allow PROT_WRITE-onlymmap()Jisheng Zhang <[email protected]>
riscv: vdso: fix NULL deference invdso_join_timens()when vforkHelge Deller <[email protected]>
parisc: Fix userspace graphics card breakage due to pgtable special bitHelge Deller <[email protected]>
parisc: fbdev/stifb: Align graphics memory size to 4MBMaciej W. Rozycki <[email protected]>
RISC-V: Make port I/O string accessors actually workPalmer Dabbelt <[email protected]>
RISC-V: Re-enable counter access from userspaceConor Dooley <[email protected]>
riscv: topology: fix default topology reportingConor Dooley <[email protected]>
arm64: topology: movestore_cpu_topology()to shared codeLinus Walleij <[email protected]>
regulator:qcom_rpm: Fix circular deferral regressionMika Westerberg <[email protected]>
net: thunderbolt: Enable DMA paths only after rings are enabledLiang He <[email protected]>
hwmon: (gsc-hwmon) Callof_node_get()beforeof_find_xxxAPIKrzysztof Kozlowski <[email protected]>
ASoC: wcd934x: fix order of Slimbus unprepare/disableKrzysztof Kozlowski <[email protected]>
ASoC: wcd9335: fix order of Slimbus unprepare/disableKrzysztof Kozlowski <[email protected]>
arm64: dts: qcom: sdm845-mtp: correct ADC settle timePatryk Duda <[email protected]>
platform/chrome:cros_ec_proto: Update version onGET_NEXT_EVENT
failureZhihao Cheng <[email protected]>
quota: Check next/prev free block number after reading from quota fileAndri Yngvason <[email protected]>
HID: multitouch: Add memory barriersJan Kara <[email protected]>
mbcache: Avoid nesting of cache->c_list_lock under bit locksRoberto Sassu <[email protected]>
btf: Exportbpf_dynptrdefinitionAlexander Aring <[email protected]>
fs: dlm: fix invalid derefence ofsb_lvbptrAlexander Aring <[email protected]>
fs: dlm: handle-EBUSYfirst in lock arg validationAlexander Aring <[email protected]>
fs: dlm: fix race betweentest_bit()andqueue_work()Jarkko Nikula <[email protected]>
i2c: designware: Fix handling of real but unexpected device interruptsWenchao Chen <[email protected]>
mmc: sdhci-sprd: Fix minimum clock limitPrathamesh Shete <[email protected]>
mmc: sdhci-tegra: Use actual clock rate for SW tuning correctionBiju Das <[email protected]>
mmc:renesas_sdhi: Fix rounding errorsAnssi Hannula <[email protected]>
can:kvaser_usb_leaf: Fix CAN state after restartAnssi Hannula <[email protected]>
can:kvaser_usb_leaf: Fix TX queue out of sync after restartAnssi Hannula <[email protected]>
can:kvaser_usb_leaf: Fix overread with an invalid commandAnssi Hannula <[email protected]>
can:kvaser_usb: Fix use of uninitialized completionAvri Altman <[email protected]>
mmc: core: Add SD card quirk for broken discardJean-Francois Le Fillatre <[email protected]>
usb: add quirks for Lenovo OneLink+ DockNathan Chancellor <[email protected]>
usb: gadget: uvc: Fix argument tosizeof()inuvc_register_video()Rafael Mendonca <[email protected]>
xhci: dbc: Fix memory leak inxhci_alloc_dbc()Eddie James <[email protected]>
iio: pressure: dps310: Reset chip after timeoutEddie James <[email protected]>
iio: pressure: dps310: Refactor startup procedureNuno Sá <[email protected]>
iio: adc: ad7923: fix channel readings for some variantsUwe Kleine-König <[email protected]>
iio: ltc2497: Fix reading conversion resultsMichael Hennerich <[email protected]>
iio: dac: ad5593r: Fix i2c read protocol requirementsZhang Xiaoxu <[email protected]>
cifs: Fix the error length ofVALIDATE_NEGOTIATE_INFOmessageRonnie Sahlberg <[email protected]>
cifs: destage dirty pages before re-reading them for cache=noneGaurav Kohli <[email protected]>
hv_netvsc: Fix race between VF offering and VF association message from
hostPavel Begunkov <[email protected]>
io_uring: correctpinned_vmaccountingPavel Begunkov <[email protected]>
io_uring/af_unix: defer registered files gc toio_uringreleaseJens Axboe <[email protected]>
io_uring/net: handle-EINPROGRESScorrect forIORING_OP_CONNECTPavel Begunkov <[email protected]>
io_uring: limit registration w/SINGLE_ISSUERPavel Begunkov <[email protected]>
io_uring/net: don't updatemsg_nameif not providedStefan Metzmacher <[email protected]>
io_uring/net: fixfast_iovassignment inio_setup_async_msg()Pavel Begunkov <[email protected]>
io_uring/rw: don't lose short results onio_setup_async_rw()Pavel Begunkov <[email protected]>
io_uring/rw: fix unexpected link breakagePavel Begunkov <[email protected]>
io_uring/net: don't lose partial send/recv on failPavel Begunkov <[email protected]>
io_uring/rw: don't lose partial IO result on failPavel Begunkov <[email protected]>
io_uring: add custom opcode hooks on failTudor Ambarus <[email protected]>
mtd: rawnand: atmel: Unmap streaming DMA mappingsSaranya Gopal <[email protected]>
ALSA: hda/realtek: Add Intel Reference SSID to support headset keysLuke D. Jones <[email protected]>
ALSA: hda/realtek: Add quirk for ASUS GV601R laptopLuke D. Jones <[email protected]>
ALSA: hda/realtek: Correct pin configs for ASUS G533ZCallum Osmotherly <[email protected]>
ALSA: hda/realtek: removeALC289_FIXUP_DUAL_SPKfor Dell 5530Takashi Iwai <[email protected]>
ALSA: usb-audio: Fix NULL dererence at error pathTakashi Iwai <[email protected]>
ALSA: usb-audio: Fix potential memory leaksTakashi Iwai <[email protected]>
ALSA: rawmidi: Dropregister_mutexinsnd_rawmidi_free()Takashi Iwai <[email protected]>
ALSA: oss: Fix potential deadlock at unregistration-------------
Diffstat:
Documentation/ABI/testing/sysfs-bus-iio | 2 +- Documentation/admin-guide/kernel-parameters.txt | 4 + Documentation/arm64/silicon-errata.rst | 2 + Documentation/filesystems/vfs.rst | 3 + .../trace/coresight/coresight-cpu-debug.rst | 3 +- Makefile | 4 +- arch/arm/Kconfig | 1 - arch/arm/boot/compressed/misc.c | 2 + arch/arm/boot/compressed/vmlinux.lds.S | 2 + arch/arm/boot/dts/armada-385-turris-omnia.dts | 4 +- arch/arm/boot/dts/exynos4412-midas.dtsi | 2 +- arch/arm/boot/dts/exynos4412-origen.dts | 2 +- arch/arm/boot/dts/imx6dl-riotboard.dts | 1 + arch/arm/boot/dts/imx6dl.dtsi | 3 + arch/arm/boot/dts/imx6q-arm2.dts | 1 + arch/arm/boot/dts/imx6q-evi.dts | 1 + arch/arm/boot/dts/imx6q-mccmon6.dts | 1 + arch/arm/boot/dts/imx6q.dtsi | 3 + arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi | 6 +- arch/arm/boot/dts/imx6qdl-nit6xlite.dtsi | 1 + arch/arm/boot/dts/imx6qdl-nitrogen6_max.dtsi | 1 + arch/arm/boot/dts/imx6qdl-nitrogen6_som2.dtsi | 1 + arch/arm/boot/dts/imx6qdl-nitrogen6x.dtsi | 1 + arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 1 + arch/arm/boot/dts/imx6qdl-tqma6a.dtsi | 1 + arch/arm/boot/dts/imx6qdl-ts7970.dtsi | 1 + arch/arm/boot/dts/imx6qp.dtsi | 6 + arch/arm/boot/dts/imx6sl.dtsi | 23 +- arch/arm/boot/dts/imx6sll.dtsi | 3 + arch/arm/boot/dts/imx6sx-udoo-neo.dtsi | 14 +- arch/arm/boot/dts/imx6sx.dtsi | 6 + arch/arm/boot/dts/imx7d-sdb.dts | 7 +- arch/arm/boot/dts/kirkwood-lsxl.dtsi | 16 +- arch/arm/boot/dts/uniphier-pinctrl.dtsi | 10 + arch/arm/include/asm/stacktrace.h | 6 + arch/arm/kernel/return_address.c | 1 + arch/arm/kernel/stacktrace.c | 84 +++-- arch/arm/lib/call_with_stack.S | 2 + arch/arm/mm/dma-mapping.c | 12 +- arch/arm/mm/dump.c | 2 +- arch/arm/mm/kasan_init.c | 9 +- arch/arm/mm/mmu.c | 4 + arch/arm/plat-orion/Makefile | 2 +- arch/arm64/Kconfig | 17 + .../boot/dts/exynos/exynos5433-tm2-common.dtsi | 2 +- .../boot/dts/freescale/imx8mm-kontron-n801x-s.dts | 3 + .../dts/freescale/imx8mm-kontron-n801x-som.dtsi | 2 - arch/arm64/boot/dts/freescale/imx8mp.dtsi | 4 +- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 1 + arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi | 8 +- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 4 +- arch/arm64/boot/dts/qcom/pm8350c.dtsi | 3 +- arch/arm64/boot/dts/qcom/sa8295p-adp.dts | 11 - .../boot/dts/qcom/sc7180-trogdor-coachz-r1.dts | 2 - arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi | 2 - arch/arm64/boot/dts/qcom/sc7280-idp.dts | 2 +- arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 2 +- arch/arm64/boot/dts/qcom/sc7280.dtsi | 9 +- arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 9 - .../dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 10 - arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi | 3 +- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 12 +- arch/arm64/boot/dts/qcom/sdm845-xiaomi-polaris.dts | 2 +- .../boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi | 2 +- arch/arm64/boot/dts/qcom/sm8450.dtsi | 2 +- arch/arm64/boot/dts/renesas/r9a07g043.dtsi | 8 +- arch/arm64/boot/dts/renesas/r9a07g044.dtsi | 8 +- arch/arm64/boot/dts/renesas/r9a07g054.dtsi | 8 +- arch/arm64/boot/dts/socionext/Makefile | 4 +- .../dts/socionext/uniphier-pxs3-ref-gadget0.dts | 41 +++ .../dts/socionext/uniphier-pxs3-ref-gadget1.dts | 40 +++ .../boot/dts/ti/k3-j7200-common-proc-board.dts | 10 +- arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 11 +- arch/arm64/include/asm/mte.h | 5 + arch/arm64/kernel/cpu_errata.c | 5 + arch/arm64/kernel/cpufeature.c | 3 +- arch/arm64/kernel/ftrace.c | 17 +- arch/arm64/kernel/mte.c | 60 +++- arch/arm64/kernel/suspend.c | 2 + arch/arm64/kernel/topology.c | 40 --- arch/arm64/mm/mteswap.c | 7 +- arch/arm64/mm/proc.S | 46 +-- arch/ia64/mm/numa.c | 1 + arch/m68k/kernel/setup_mm.c | 5 +- arch/mips/bcm47xx/prom.c | 4 +- arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc2.dts | 6 +- arch/mips/sgi-ip27/ip27-xtalk.c | 70 +++-- arch/mips/sgi-ip30/ip30-xtalk.c | 70 +++-- arch/parisc/include/asm/pgtable.h | 7 +- arch/parisc/kernel/entry.S | 8 + arch/powerpc/Kconfig | 2 +- arch/powerpc/Makefile | 2 +- arch/powerpc/boot/Makefile | 1 + arch/powerpc/boot/dts/fsl/e500v1_power_isa.dtsi | 51 +++ arch/powerpc/boot/dts/fsl/mpc8540ads.dts | 2 +- arch/powerpc/boot/dts/fsl/mpc8541cds.dts | 2 +- arch/powerpc/boot/dts/fsl/mpc8555cds.dts | 2 +- arch/powerpc/boot/dts/fsl/mpc8560ads.dts | 2 +- arch/powerpc/boot/dts/turris1x.dts | 14 +- arch/powerpc/configs/pseries_defconfig | 1 + arch/powerpc/include/asm/interrupt.h | 3 +- arch/powerpc/include/asm/syscalls.h | 12 + arch/powerpc/kernel/interrupt.c | 10 - arch/powerpc/kernel/interrupt_64.S | 45 ++- arch/powerpc/kernel/kprobes.c | 8 +- arch/powerpc/kernel/pci_dn.c | 1 + arch/powerpc/kernel/setup_64.c | 4 +- arch/powerpc/kernel/sys_ppc32.c | 14 +- arch/powerpc/kernel/syscalls.c | 4 +- arch/powerpc/math-emu/math_efp.c | 1 + arch/powerpc/platforms/powernv/opal.c | 1 + arch/powerpc/platforms/pseries/vas.c | 2 +- arch/powerpc/sysdev/fsl_msi.c | 2 + arch/riscv/Kconfig | 2 +- arch/riscv/Makefile | 2 + arch/riscv/include/asm/io.h | 16 +- arch/riscv/include/asm/mmu.h | 1 - arch/riscv/kernel/setup.c | 4 +- arch/riscv/kernel/smpboot.c | 3 +- arch/riscv/kernel/sys_riscv.c | 3 - arch/riscv/kernel/vdso.c | 13 +- arch/riscv/mm/fault.c | 3 +- arch/sh/include/asm/sections.h | 2 +- arch/sh/kernel/machvec.c | 10 +- arch/um/kernel/um_arch.c | 2 +- arch/x86/Kconfig | 7 +- arch/x86/include/asm/cpu.h | 2 + arch/x86/include/asm/hyperv-tlfs.h | 4 +- arch/x86/include/asm/microcode.h | 1 + arch/x86/include/asm/msr-index.h | 13 + arch/x86/include/asm/paravirt_types.h | 11 +- arch/x86/kernel/apic/apic.c | 44 ++- arch/x86/kernel/cpu/feat_ctl.c | 2 +- arch/x86/kernel/cpu/mce/apei.c | 13 +- arch/x86/kernel/cpu/microcode/amd.c | 3 +- arch/x86/kernel/cpu/resctrl/pseudo_lock.c | 12 +- arch/x86/kvm/emulate.c | 2 +- arch/x86/kvm/vmx/nested.c | 37 ++- arch/x86/kvm/vmx/vmx.c | 12 +- arch/x86/kvm/x86.c | 27 +- arch/x86/net/bpf_jit_comp.c | 16 +- arch/x86/xen/enlighten_pv.c | 3 +- block/bio.c | 2 - block/blk-mq.c | 6 +- block/blk-throttle.c | 28 +- block/blk-throttle.h | 2 +- block/blk-wbt.c | 10 +- block/blk.h | 3 +- block/elevator.c | 4 +- crypto/akcipher.c | 8 + drivers/acpi/acpi_fpdt.c | 22 ++ drivers/acpi/acpi_pcc.c | 28 +- drivers/acpi/acpi_video.c | 16 + drivers/acpi/apei/ghes.c | 2 +- drivers/acpi/x86/utils.c | 19 +- drivers/ata/libahci_platform.c | 14 +- drivers/base/arch_topology.c | 19 ++ drivers/block/nbd.c | 6 +- drivers/bluetooth/btintel.c | 17 +- drivers/bluetooth/btusb.c | 14 + drivers/bluetooth/hci_ldisc.c | 7 +- drivers/bluetooth/hci_serdev.c | 10 +- drivers/char/hw_random/arm_smccc_trng.c | 4 +- drivers/char/hw_random/core.c | 19 +- drivers/char/hw_random/imx-rngc.c | 37 +-- drivers/char/random.c | 4 +- drivers/clk/baikal-t1/ccu-div.c | 65 ++++ drivers/clk/baikal-t1/ccu-div.h | 10 + drivers/clk/baikal-t1/clk-ccu-div.c | 26 +- drivers/clk/bcm/clk-bcm2835.c | 43 ++- drivers/clk/berlin/bg2.c | 5 +- drivers/clk/berlin/bg2q.c | 6 +- drivers/clk/clk-ast2600.c | 2 +- drivers/clk/clk-oxnas.c | 6 +- drivers/clk/clk-qoriq.c | 10 +- drivers/clk/clk-versaclock5.c | 2 +- drivers/clk/imx/clk-imx8mp.c | 2 +- drivers/clk/imx/clk-scu.c | 6 +- drivers/clk/mediatek/clk-mt8183-mfgcfg.c | 6 +- drivers/clk/mediatek/clk-mt8195-infra_ao.c | 13 +- drivers/clk/mediatek/clk-mt8195-mfg.c | 6 +- drivers/clk/mediatek/clk-mt8195-vdo0.c | 7 +- drivers/clk/mediatek/clk-mt8195-vdo1.c | 6 +- drivers/clk/mediatek/clk-mtk.c | 12 +- drivers/clk/meson/meson-aoclk.c | 5 +- drivers/clk/meson/meson-eeclk.c | 5 +- drivers/clk/meson/meson8b.c | 5 +- drivers/clk/qcom/Kconfig | 1 + drivers/clk/qcom/apss-ipq6018.c | 2 +- drivers/clk/qcom/gcc-sdm660.c | 2 +- drivers/clk/qcom/gcc-sm6115.c | 46 ++- drivers/clk/samsung/clk-exynosautov9.c | 20 +- drivers/clk/sprd/common.c | 9 +- drivers/clk/st/clkgen-fsyn.c | 5 +- drivers/clk/st/clkgen-mux.c | 5 +- drivers/clk/tegra/clk-tegra114.c | 1 + drivers/clk/tegra/clk-tegra20.c | 1 + drivers/clk/tegra/clk-tegra210.c | 1 + drivers/clk/ti/clk-dra7-atl.c | 9 +- drivers/clk/ti/clk.c | 5 +- drivers/clk/zynqmp/clkc.c | 7 + drivers/clk/zynqmp/pll.c | 31 +- drivers/clocksource/arm_arch_timer.c | 6 +- drivers/clocksource/timer-gxp.c | 7 +- drivers/cpufreq/amd-pstate.c | 16 +- drivers/cpufreq/intel_pstate.c | 1 + drivers/cpufreq/qcom-cpufreq-hw.c | 10 +- drivers/cpuidle/cpuidle-riscv-sbi.c | 7 +- drivers/crypto/cavium/cpt/cptpf_main.c | 6 +- drivers/crypto/ccp/ccp-dmaengine.c | 6 +- drivers/crypto/ccp/sev-dev.c | 26 +- drivers/crypto/hisilicon/qm.c | 6 +- drivers/crypto/hisilicon/zip/zip_crypto.c | 4 +- drivers/crypto/inside-secure/safexcel_hash.c | 8 +- drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c | 18 +- drivers/crypto/qat/qat_common/adf_gen4_hw_data.h | 2 +- drivers/crypto/qat/qat_common/qat_algs.c | 18 +- drivers/crypto/sahara.c | 18 +- drivers/dma-buf/udmabuf.c | 9 +- drivers/dma/dw-edma/dw-edma-core.c | 12 - drivers/dma/hisi_dma.c | 28 +- drivers/dma/idxd/irq.c | 2 - drivers/dma/ioat/dma.c | 6 +- drivers/dma/mxs-dma.c | 11 +- drivers/dma/qcom/qcom_adm.c | 22 +- drivers/dma/ti/k3-udma.c | 25 +- drivers/firmware/efi/libstub/fdt.c | 8 - drivers/firmware/google/gsmi.c | 9 + drivers/fpga/dfl-pci.c | 18 ++ drivers/fpga/dfl.c | 2 +- drivers/fsi/fsi-core.c | 3 + drivers/fsi/fsi-master-ast-cf.c | 2 + drivers/fsi/fsi-occ.c | 18 +- drivers/gpio/gpio-rockchip.c | 7 + drivers/gpu/drm/Kconfig | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | 7 +- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 14 +- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 5 +- drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c | 9 +- drivers/gpu/drm/amd/amdgpu/mmhub_v3_0.c | 10 +- drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c | 3 +- drivers/gpu/drm/amd/amdgpu/soc21.c | 5 + .../gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 45 ++- drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c | 3 +- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 83 ++--- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c | 8 +- .../drm/amd/display/dc/clk_mgr/dcn314/dcn314_smu.c | 11 +- drivers/gpu/drm/amd/display/dc/core/dc.c | 16 +- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 6 +- drivers/gpu/drm/amd/display/dc/dc_stream.h | 6 +- .../drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 35 +-- .../drm/amd/display/dc/dcn10/dcn10_hw_sequencer.h | 3 +- .../display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c | 6 +- .../drm/amd/display/dc/dcn314/dcn314_resource.c | 4 +- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hubp.c | 1 + drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c | 4 + .../gpu/drm/amd/display/dc/dml/calcs/bw_fixed.c | 6 +- .../gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 1 + .../amd/display/dc/dml/dcn32/display_mode_vba_32.c | 2 + .../gpu/drm/amd/display/dc/dml/dcn321/dcn321_fpu.c | 1 + drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h | 8 +- drivers/gpu/drm/arm/display/komeda/komeda_crtc.c | 4 +- drivers/gpu/drm/arm/display/komeda/komeda_kms.c | 21 +- drivers/gpu/drm/arm/display/komeda/komeda_kms.h | 2 + drivers/gpu/drm/bridge/adv7511/adv7511.h | 5 +- drivers/gpu/drm/bridge/adv7511/adv7511_cec.c | 4 +- drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 5 +- drivers/gpu/drm/bridge/analogix/anx7625.c | 1 + drivers/gpu/drm/bridge/ite-it6505.c | 5 +- drivers/gpu/drm/bridge/lontium-lt9611.c | 3 +- .../drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c | 4 +- drivers/gpu/drm/bridge/parade-ps8640.c | 4 +- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 13 +- drivers/gpu/drm/bridge/tc358767.c | 5 +- drivers/gpu/drm/display/drm_dp_helper.c | 9 - drivers/gpu/drm/display/drm_dp_mst_topology.c | 6 +- drivers/gpu/drm/drm_bridge.c | 4 +- drivers/gpu/drm/drm_ioctl.c | 8 +- drivers/gpu/drm/drm_mipi_dsi.c | 1 + drivers/gpu/drm/drm_panel_orientation_quirks.c | 18 ++ drivers/gpu/drm/i915/display/intel_cdclk.c | 4 +- drivers/gpu/drm/i915/gem/i915_gem_context.c | 8 +- drivers/gpu/drm/i915/gt/gen6_ppgtt.c | 16 +- drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 58 ++-- drivers/gpu/drm/i915/gt/intel_context.c | 5 +- drivers/gpu/drm/i915/gt/intel_context.h | 3 +- drivers/gpu/drm/i915/gt/intel_ggtt.c | 8 +- drivers/gpu/drm/i915/gt/intel_gtt.c | 3 + drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 26 +- drivers/gpu/drm/i915/intel_pm.c | 16 +- drivers/gpu/drm/meson/meson_drv.c | 14 +- drivers/gpu/drm/meson/meson_drv.h | 7 + drivers/gpu/drm/meson/meson_encoder_cvbs.c | 13 + drivers/gpu/drm/meson/meson_encoder_cvbs.h | 1 + drivers/gpu/drm/meson/meson_encoder_hdmi.c | 13 + drivers/gpu/drm/meson/meson_encoder_hdmi.h | 1 + drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 19 +- drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c | 29 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c | 9 +- drivers/gpu/drm/msm/dp/dp_catalog.c | 2 +- drivers/gpu/drm/msm/msm_drv.c | 13 +- drivers/gpu/drm/msm/msm_drv.h | 2 + drivers/gpu/drm/msm/msm_io_utils.c | 22 ++ drivers/gpu/drm/nouveau/nouveau_bo.c | 4 +- drivers/gpu/drm/nouveau/nouveau_connector.c | 3 +- drivers/gpu/drm/nouveau/nouveau_prime.c | 1 - drivers/gpu/drm/omapdrm/dss/dss.c | 3 + drivers/gpu/drm/panel/Kconfig | 4 +- drivers/gpu/drm/pl111/pl111_versatile.c | 1 + drivers/gpu/drm/tests/drm_format_helper_test.c | 23 +- drivers/gpu/drm/tiny/bochs.c | 2 + drivers/gpu/drm/udl/udl_modeset.c | 3 - drivers/gpu/drm/vc4/vc4_drv.c | 14 +- drivers/gpu/drm/vc4/vc4_drv.h | 1 + drivers/gpu/drm/vc4/vc4_vec.c | 4 +- drivers/gpu/drm/virtio/virtgpu_display.c | 2 + drivers/gpu/drm/virtio/virtgpu_gem.c | 4 +- drivers/gpu/drm/virtio/virtgpu_ioctl.c | 4 +- drivers/gpu/drm/virtio/virtgpu_object.c | 3 + drivers/gpu/drm/virtio/virtgpu_plane.c | 6 +- drivers/gpu/drm/virtio/virtgpu_vq.c | 2 +- drivers/gpu/drm/vmwgfx/vmwgfx_msg.c | 1 + drivers/hid/Kconfig | 6 + drivers/hid/Makefile | 1 + drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_init.c | 2 + drivers/hid/hid-ids.h | 3 + drivers/hid/hid-multitouch.c | 8 +- drivers/hid/hid-nintendo.c | 55 ++-- drivers/hid/hid-roccat.c | 4 + drivers/hid/hid-topre.c | 49 +++ drivers/hid/hid-uclogic-core.c | 1 + drivers/hid/hid-uclogic-rdesc.c | 2 +- drivers/hsi/clients/ssi_protocol.c | 1 + drivers/hsi/controllers/omap_ssi_core.c | 1 + drivers/hsi/controllers/omap_ssi_port.c | 8 +- drivers/hwmon/gsc-hwmon.c | 1 + drivers/hwmon/occ/p9_sbe.c | 17 +- drivers/hwmon/pmbus/mp2888.c | 13 +- drivers/hwmon/sht4x.c | 2 +- drivers/i2c/busses/i2c-designware-core.h | 7 +- drivers/i2c/busses/i2c-designware-master.c | 13 + drivers/i2c/busses/i2c-designware-pcidrv.c | 30 +- drivers/i2c/busses/i2c-mlxbf.c | 44 ++- drivers/iio/adc/ad7923.c | 4 +- drivers/iio/adc/at91-sama5d2_adc.c | 28 +- drivers/iio/adc/ltc2497.c | 13 + drivers/iio/dac/ad5593r.c | 46 +-- drivers/iio/industrialio-core.c | 5 + drivers/iio/inkern.c | 8 +- drivers/iio/magnetometer/yamaha-yas530.c | 2 +- drivers/iio/pressure/dps310.c | 262 ++++++++++------ drivers/infiniband/core/cm.c | 14 +- drivers/infiniband/core/uverbs_cmd.c | 5 +- drivers/infiniband/core/verbs.c | 2 + drivers/infiniband/hw/hns/hns_roce_mr.c | 1 - drivers/infiniband/hw/irdma/defs.h | 1 + drivers/infiniband/hw/irdma/hw.c | 51 +-- drivers/infiniband/hw/irdma/type.h | 1 + drivers/infiniband/hw/irdma/user.h | 1 + drivers/infiniband/hw/irdma/utils.c | 3 + drivers/infiniband/hw/irdma/verbs.c | 69 ++++- drivers/infiniband/hw/mlx4/mr.c | 1 - drivers/infiniband/hw/mlx5/main.c | 3 + drivers/infiniband/hw/mlx5/odp.c | 3 +- drivers/infiniband/sw/rxe/rxe_loc.h | 6 +- drivers/infiniband/sw/rxe/rxe_mr.c | 11 +- drivers/infiniband/sw/rxe/rxe_qp.c | 10 +- drivers/infiniband/sw/rxe/rxe_queue.c | 12 +- drivers/infiniband/sw/rxe/rxe_resp.c | 10 +- drivers/infiniband/sw/rxe/rxe_verbs.c | 12 +- drivers/infiniband/sw/siw/siw.h | 1 + drivers/infiniband/sw/siw/siw_qp.c | 2 +- drivers/infiniband/sw/siw/siw_qp_rx.c | 27 +- drivers/infiniband/sw/siw/siw_verbs.c | 3 + drivers/infiniband/ulp/srp/ib_srp.c | 4 +- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 21 ++ drivers/iommu/omap-iommu-debug.c | 6 +- drivers/isdn/mISDN/l1oip.h | 1 + drivers/isdn/mISDN/l1oip_core.c | 13 +- drivers/leds/flash/leds-lm3601x.c | 2 - drivers/mailbox/bcm-flexrm-mailbox.c | 8 +- drivers/mailbox/imx-mailbox.c | 10 +- drivers/mailbox/mailbox-mpfs.c | 25 +- drivers/md/bcache/writeback.c | 73 +++-- drivers/md/dm-verity-loadpin.c | 8 + drivers/md/dm-verity-target.c | 16 + drivers/md/dm-verity.h | 1 + drivers/md/md.c | 1 - drivers/md/raid0.c | 2 +- drivers/md/raid5.c | 15 +- drivers/media/pci/cx88/cx88-vbi.c | 9 +- drivers/media/pci/cx88/cx88-video.c | 43 +-- drivers/media/platform/amlogic/meson-ge2d/ge2d.c | 1 - drivers/media/platform/amphion/vdec.c | 16 +- drivers/media/platform/amphion/venc.c | 2 +- drivers/media/platform/amphion/vpu.h | 1 - drivers/media/platform/amphion/vpu_core.c | 84 ++--- drivers/media/platform/amphion/vpu_core.h | 1 + drivers/media/platform/amphion/vpu_dbg.c | 9 +- drivers/media/platform/amphion/vpu_malone.c | 2 +- .../media/platform/mediatek/jpeg/mtk_jpeg_core.c | 1 - .../platform/mediatek/vcodec/mtk_vcodec_enc.c | 3 +- .../media/platform/samsung/exynos4-is/fimc-is.c | 1 + drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c | 3 +- drivers/media/platform/xilinx/xilinx-vipp.c | 9 +- drivers/media/usb/airspy/airspy.c | 4 + drivers/media/usb/uvc/uvc_ctrl.c | 83 ++--- drivers/media/usb/uvc/uvc_driver.c | 8 +- drivers/memory/of_memory.c | 2 + drivers/memory/pl353-smc.c | 1 + drivers/mfd/da9062-core.c | 1 + drivers/mfd/fsl-imx25-tsadc.c | 34 +- drivers/mfd/intel_soc_pmic_core.c | 1 + drivers/mfd/lp8788-irq.c | 3 + drivers/mfd/lp8788.c | 12 +- drivers/mfd/sm501.c | 7 +- drivers/misc/ocxl/file.c | 2 + drivers/mmc/core/block.c | 6 +- drivers/mmc/core/card.h | 6 + drivers/mmc/core/quirks.h | 6 + drivers/mmc/host/au1xmmc.c | 3 +- drivers/mmc/host/renesas_sdhi_core.c | 21 +- drivers/mmc/host/sdhci-msm.c | 1 + drivers/mmc/host/sdhci-sprd.c | 2 +- drivers/mmc/host/sdhci-tegra.c | 2 +- drivers/mmc/host/wmt-sdmmc.c | 5 +- drivers/mtd/devices/docg3.c | 7 +- drivers/mtd/nand/raw/atmel/nand-controller.c | 1 + drivers/mtd/nand/raw/fsl_elbc_nand.c | 28 +- drivers/mtd/nand/raw/intel-nand-controller.c | 12 +- drivers/mtd/nand/raw/meson_nand.c | 4 +- drivers/net/can/usb/kvaser_usb/kvaser_usb.h | 2 + drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c | 3 +- drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c | 2 +- drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c | 79 +++++ drivers/net/ethernet/atheros/alx/main.c | 5 + drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 1 + drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c | 10 +- drivers/net/ethernet/engleder/tsnep_hw.h | 3 +- drivers/net/ethernet/faraday/ftmac100.h | 12 +- drivers/net/ethernet/freescale/fs_enet/mac-fec.c | 2 +- drivers/net/ethernet/intel/iavf/iavf_main.c | 177 ++++++++--- drivers/net/ethernet/intel/ice/ice_ethtool.c | 1 + drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 1 + drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c | 10 +- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 13 +- .../net/ethernet/marvell/prestera/prestera_acl.c | 8 +- .../net/ethernet/marvell/prestera/prestera_acl.h | 4 +- .../ethernet/marvell/prestera/prestera_flower.c | 6 +- .../net/ethernet/marvell/prestera/prestera_main.c | 36 +-- drivers/net/ethernet/micrel/ks8851_spi.c | 5 +- drivers/net/ethernet/microchip/lan743x_ptp.c | 7 + drivers/net/ethernet/sunplus/spl2sw_driver.c | 2 +- drivers/net/ethernet/ti/Kconfig | 1 + drivers/net/ethernet/ti/davinci_mdio.c | 242 ++++++++++++++- drivers/net/ethernet/xilinx/xilinx_axienet.h | 12 + drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 37 ++- drivers/net/hyperv/hyperv_net.h | 3 +- drivers/net/hyperv/netvsc.c | 4 + drivers/net/hyperv/netvsc_drv.c | 19 ++ drivers/net/thunderbolt.c | 28 +- drivers/net/usb/r8152.c | 4 +- drivers/net/wireless/ath/ath10k/core.c | 16 + drivers/net/wireless/ath/ath10k/htc.c | 11 +- drivers/net/wireless/ath/ath10k/hw.h | 2 + drivers/net/wireless/ath/ath10k/mac.c | 54 ++-- drivers/net/wireless/ath/ath11k/ahb.c | 58 +++- drivers/net/wireless/ath/ath11k/core.c | 2 + drivers/net/wireless/ath/ath11k/dp_rx.c | 3 +- drivers/net/wireless/ath/ath11k/mac.c | 25 +- drivers/net/wireless/ath/ath11k/mhi.c | 17 +- drivers/net/wireless/ath/ath11k/peer.c | 30 +- drivers/net/wireless/ath/ath11k/qmi.c | 38 ++- drivers/net/wireless/ath/ath11k/qmi.h | 10 +- drivers/net/wireless/ath/ath11k/wmi.c | 9 +- drivers/net/wireless/ath/ath11k/wmi.h | 2 +- drivers/net/wireless/ath/ath9k/htc_hst.c | 43 ++- drivers/net/wireless/ath/ath9k/rng.c | 3 +- .../wireless/broadcom/brcm80211/brcmfmac/core.c | 3 +- .../net/wireless/broadcom/brcm80211/brcmfmac/pno.c | 12 +- drivers/net/wireless/mac80211_hwsim.c | 7 +- drivers/net/wireless/marvell/mwifiex/init.c | 9 +- drivers/net/wireless/marvell/mwifiex/main.h | 3 +- drivers/net/wireless/marvell/mwifiex/sta_event.c | 6 +- drivers/net/wireless/mediatek/mt76/mt7615/main.c | 4 + .../net/wireless/mediatek/mt76/mt76_connac_mcu.c | 10 +- .../net/wireless/mediatek/mt76/mt7915/debugfs.c | 6 +- drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 12 +- drivers/net/wireless/mediatek/mt76/mt7915/mcu.c | 10 +- .../net/wireless/mediatek/mt76/mt7921/acpi_sar.c | 5 +- drivers/net/wireless/mediatek/mt76/mt7921/mac.c | 7 +- drivers/net/wireless/mediatek/mt76/mt7921/main.c | 26 +- drivers/net/wireless/mediatek/mt76/mt7921/pci.c | 15 +- drivers/net/wireless/mediatek/mt76/mt7921/sdio.c | 13 +- drivers/net/wireless/mediatek/mt76/mt7921/usb.c | 28 +- drivers/net/wireless/mediatek/mt76/sdio.c | 8 +- drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 34 +- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 6 +- .../net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 96 ++++-- .../net/wireless/realtek/rtlwifi/rtl8192de/phy.c | 9 +- drivers/net/wireless/realtek/rtw88/main.c | 8 +- drivers/net/wireless/realtek/rtw88/phy.c | 21 +- drivers/net/wireless/realtek/rtw89/core.c | 1 + drivers/net/wireless/realtek/rtw89/fw.c | 12 +- drivers/net/wireless/realtek/rtw89/pci.c | 5 +- drivers/net/wireless/realtek/rtw89/ser.c | 3 + drivers/net/wireless/silabs/wfx/main.c | 2 +- drivers/net/wireless/st/cw1200/queue.c | 18 +- drivers/net/wwan/iosm/iosm_ipc_wwan.c | 5 +- drivers/nvme/host/core.c | 20 +- drivers/nvme/host/ioctl.c | 9 +- drivers/nvme/host/multipath.c | 1 + drivers/nvme/host/nvme.h | 4 +- drivers/nvme/target/core.c | 1 + drivers/nvme/target/fabrics-cmd-auth.c | 13 +- drivers/nvme/target/fabrics-cmd.c | 6 +- drivers/nvme/target/nvmet.h | 7 +- drivers/nvme/target/passthru.c | 7 +- drivers/nvme/target/tcp.c | 11 +- drivers/nvmem/core.c | 15 +- drivers/pci/setup-res.c | 11 + drivers/perf/riscv_pmu_sbi.c | 7 +- .../phy/amlogic/phy-meson-axg-mipi-pcie-analog.c | 6 +- drivers/phy/mediatek/phy-mtk-tphy.c | 7 +- drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 32 +- drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c | 23 +- drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 39 ++- drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 30 +- drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 64 ++-- drivers/phy/qualcomm/phy-qcom-usb-hsic.c | 6 +- drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 10 +- drivers/pinctrl/pinctrl-rockchip.c | 13 + drivers/platform/chrome/chromeos_laptop.c | 24 +- drivers/platform/chrome/cros_ec.c | 8 +- drivers/platform/chrome/cros_ec_chardev.c | 3 + drivers/platform/chrome/cros_ec_proto.c | 32 ++ drivers/platform/chrome/cros_ec_typec.c | 5 +- drivers/platform/x86/hp-wmi.c | 11 +- drivers/platform/x86/msi-laptop.c | 14 +- drivers/platform/x86/pmc_atom.c | 2 +- drivers/power/supply/adp5061.c | 6 +- drivers/powercap/intel_rapl_common.c | 4 +- drivers/regulator/core.c | 2 +- drivers/regulator/qcom_rpm-regulator.c | 24 +- drivers/remoteproc/remoteproc_core.c | 5 +- drivers/rpmsg/rpmsg_char.c | 4 +- drivers/scsi/3w-9xxx.c | 2 +- drivers/scsi/iscsi_tcp.c | 73 +++-- drivers/scsi/iscsi_tcp.h | 3 + drivers/scsi/libsas/sas_expander.c | 2 +- drivers/scsi/lpfc/lpfc.h | 14 +- drivers/scsi/lpfc/lpfc_crtn.h | 8 + drivers/scsi/lpfc/lpfc_ct.c | 7 +- drivers/scsi/lpfc/lpfc_debugfs.c | 61 +--- drivers/scsi/lpfc/lpfc_debugfs.h | 2 +- drivers/scsi/lpfc/lpfc_hbadisc.c | 4 +- drivers/scsi/lpfc/lpfc_init.c | 332 ++++++++++---------- drivers/scsi/lpfc/lpfc_mem.c | 9 +- drivers/scsi/lpfc/lpfc_sli.c | 193 +++++++++++- drivers/scsi/lpfc/lpfc_sli4.h | 4 +- drivers/scsi/lpfc/lpfc_vmid.c | 4 +- drivers/scsi/pm8001/pm8001_hwi.c | 4 + drivers/scsi/qedf/qedf_main.c | 21 ++ drivers/slimbus/qcom-ngd-ctrl.c | 22 +- drivers/soc/qcom/smem_state.c | 3 +- drivers/soc/qcom/smsm.c | 20 +- drivers/soc/tegra/Kconfig | 1 - drivers/soc/tegra/fuse/fuse-tegra.c | 1 + drivers/soundwire/cadence_master.c | 9 +- drivers/soundwire/intel.c | 1 - drivers/spi/spi-cadence-quadspi.c | 3 +- drivers/spi/spi-dw-bt1.c | 4 +- drivers/spi/spi-meson-spicc.c | 6 +- drivers/spi/spi-mt7621.c | 8 +- drivers/spi/spi-omap-100k.c | 1 + drivers/spi/spi-qup.c | 21 +- drivers/spi/spi-s3c64xx.c | 9 + drivers/spi/spi.c | 2 + drivers/spmi/spmi-pmic-arb.c | 13 +- drivers/staging/greybus/audio_helper.c | 11 - drivers/staging/media/meson/vdec/vdec_hevc.c | 6 +- drivers/staging/media/sunxi/cedrus/cedrus.c | 4 +- drivers/staging/media/sunxi/cedrus/cedrus_dec.c | 4 +- drivers/staging/media/sunxi/cedrus/cedrus_h265.c | 5 +- drivers/staging/rtl8723bs/core/rtw_cmd.c | 16 +- drivers/staging/rtl8723bs/os_dep/os_intfs.c | 60 ++-- drivers/staging/vt6655/device_main.c | 8 +- drivers/thermal/cpufreq_cooling.c | 10 +- drivers/thermal/intel/intel_powerclamp.c | 6 +- drivers/thermal/qcom/tsens-v0_1.c | 2 +- drivers/thunderbolt/nhi.c | 49 ++- drivers/thunderbolt/switch.c | 24 ++ drivers/thunderbolt/tb.h | 1 + drivers/thunderbolt/tb_regs.h | 1 + drivers/thunderbolt/usb4.c | 20 ++ drivers/tty/serial/8250/8250_core.c | 16 +- drivers/tty/serial/8250/8250_omap.c | 3 + drivers/tty/serial/8250/8250_pci.c | 14 +- drivers/tty/serial/8250/8250_port.c | 30 +- drivers/tty/serial/ar933x_uart.c | 7 + drivers/tty/serial/cpm_uart/cpm_uart_core.c | 22 +- drivers/tty/serial/fsl_lpuart.c | 12 +- drivers/tty/serial/imx.c | 8 +- drivers/tty/serial/jsm/jsm_driver.c | 3 +- drivers/tty/serial/serial_core.c | 36 ++- drivers/tty/serial/stm32-usart.c | 100 +++--- drivers/tty/serial/xilinx_uartps.c | 14 +- drivers/usb/common/debug.c | 96 ++++-- drivers/usb/common/usb-conn-gpio.c | 6 +- drivers/usb/core/quirks.c | 4 + drivers/usb/dwc3/core.c | 83 +++-- drivers/usb/dwc3/core.h | 6 + drivers/usb/gadget/function/f_fs.c | 4 +- drivers/usb/gadget/function/f_printer.c | 12 +- drivers/usb/gadget/function/f_uvc.c | 6 +- drivers/usb/gadget/function/uvc.h | 1 + drivers/usb/gadget/function/uvc_v4l2.c | 2 +- drivers/usb/gadget/function/uvc_video.c | 9 +- drivers/usb/host/xhci-dbgcap.c | 2 +- drivers/usb/host/xhci-mem.c | 7 +- drivers/usb/host/xhci-plat.c | 18 +- drivers/usb/host/xhci.c | 3 +- drivers/usb/host/xhci.h | 1 + drivers/usb/misc/idmouse.c | 8 +- drivers/usb/mtu3/mtu3_core.c | 2 - drivers/usb/mtu3/mtu3_plat.c | 2 + drivers/usb/musb/musb_gadget.c | 3 + drivers/usb/storage/unusual_devs.h | 6 - drivers/usb/typec/anx7411.c | 4 +- drivers/usb/typec/ucsi/ucsi.c | 8 +- drivers/vhost/vsock.c | 2 +- drivers/video/aperture.c | 14 + drivers/video/fbdev/core/fbmem.c | 12 - drivers/video/fbdev/smscufx.c | 14 +- drivers/video/fbdev/stifb.c | 2 +- drivers/xen/gntdev-common.h | 3 +- drivers/xen/gntdev.c | 80 ++--- fs/btrfs/block-group.c | 11 +- fs/btrfs/extent-tree.c | 3 + fs/btrfs/file.c | 59 +++- fs/btrfs/free-space-cache.c | 59 ++-- fs/btrfs/qgroup.c | 15 + fs/btrfs/scrub.c | 69 +++-- fs/btrfs/super.c | 20 +- fs/cifs/cifsproto.h | 2 +- fs/cifs/connect.c | 2 +- fs/cifs/file.c | 9 + fs/cifs/smb2ops.c | 23 +- fs/cifs/smb2pdu.c | 7 +- fs/cifs/smb2transport.c | 10 +- fs/dlm/ast.c | 6 +- fs/dlm/lock.c | 20 +- fs/dlm/lowcomms.c | 4 + fs/erofs/inode.c | 2 +- fs/erofs/super.c | 2 +- fs/eventfd.c | 10 +- fs/ext2/super.c | 22 +- fs/ext4/fast_commit.c | 40 ++- fs/ext4/file.c | 6 + fs/ext4/inode.c | 17 +- fs/ext4/ioctl.c | 4 + fs/ext4/namei.c | 17 +- fs/ext4/resize.c | 2 +- fs/ext4/super.c | 47 +-- fs/ext4/xattr.c | 1 + fs/f2fs/checkpoint.c | 47 ++- fs/f2fs/data.c | 4 +- fs/f2fs/extent_cache.c | 3 +- fs/f2fs/f2fs.h | 16 +- fs/f2fs/gc.c | 22 +- fs/f2fs/recovery.c | 23 +- fs/f2fs/segment.c | 2 +- fs/f2fs/super.c | 15 +- fs/file_table.c | 7 +- fs/fs-writeback.c | 37 ++- fs/internal.h | 10 + fs/iomap/buffered-io.c | 2 +- fs/jbd2/commit.c | 2 +- fs/jbd2/journal.c | 10 +- fs/jbd2/recovery.c | 1 + fs/jbd2/transaction.c | 6 +- fs/ksmbd/server.c | 4 +- fs/ksmbd/smb2pdu.c | 27 +- fs/ksmbd/smb_common.c | 6 +- fs/mbcache.c | 17 +- fs/nfsd/nfs3proc.c | 11 +- fs/nfsd/nfs4proc.c | 19 +- fs/nfsd/nfs4recover.c | 4 +- fs/nfsd/nfs4state.c | 5 + fs/nfsd/nfs4xdr.c | 14 +- fs/nfsd/nfsproc.c | 6 +- fs/nfsd/xdr4.h | 3 +- fs/ntfs3/inode.c | 2 - fs/ntfs3/xattr.c | 102 +----- fs/open.c | 11 +- fs/posix_acl.c | 25 +- fs/quota/quota_tree.c | 38 +++ fs/userfaultfd.c | 4 +- fs/xfs/xfs_super.c | 10 +- include/dt-bindings/clock/samsung,exynosautov9.h | 56 ++-- include/linux/ata.h | 39 +-- include/linux/bio.h | 2 +- include/linux/blk-mq.h | 11 +- include/linux/blk_types.h | 2 +- include/linux/bpf.h | 3 +- include/linux/bpf_verifier.h | 11 + include/linux/dynamic_debug.h | 11 +- include/linux/eventfd.h | 2 +- include/linux/export-internal.h | 6 +- include/linux/filter.h | 5 + include/linux/fortify-string.h | 3 +- include/linux/fs.h | 9 +- include/linux/hugetlb.h | 8 +- include/linux/hw_random.h | 3 + include/linux/iio/iio-opaque.h | 2 + include/linux/iova.h | 2 +- include/linux/mmc/card.h | 1 + include/linux/once.h | 28 ++ include/linux/ring_buffer.h | 2 +- include/linux/sched.h | 2 +- include/linux/serial_8250.h | 1 + include/linux/serial_core.h | 4 +- include/linux/skbuff.h | 2 + include/linux/sunrpc/svc.h | 19 +- include/linux/tcp.h | 2 +- include/linux/trace.h | 36 ++- include/linux/trace_events.h | 1 + include/net/ieee802154_netdev.h | 12 +- include/net/tcp.h | 5 +- include/uapi/linux/bpf.h | 7 +- include/uapi/rdma/mlx5-abi.h | 1 + io_uring/fdinfo.c | 32 +- io_uring/io_uring.c | 29 +- io_uring/io_uring.h | 12 +- io_uring/net.c | 107 ++++--- io_uring/net.h | 9 +- io_uring/opdef.c | 17 +- io_uring/opdef.h | 1 + io_uring/rsrc.c | 1 + io_uring/rw.c | 47 ++- io_uring/rw.h | 1 + ipc/mqueue.c | 1 + kernel/auditsc.c | 4 +- kernel/bpf/bpf_local_storage.c | 4 +- kernel/bpf/bpf_lsm.c | 6 + kernel/bpf/bpf_task_storage.c | 8 +- kernel/bpf/btf.c | 2 +- kernel/bpf/cgroup.c | 28 +- kernel/bpf/core.c | 9 +- kernel/bpf/dispatcher.c | 27 +- kernel/bpf/hashtab.c | 30 +- kernel/bpf/helpers.c | 2 + kernel/bpf/syscall.c | 2 + kernel/bpf/trampoline.c | 8 +- kernel/bpf/verifier.c | 146 +++++---- kernel/cgroup/cgroup.c | 6 +- kernel/cgroup/cpuset.c | 18 +- kernel/livepatch/transition.c | 18 +- kernel/module/tracking.c | 3 + kernel/rcu/tasks.h | 5 +- kernel/rcu/tree.c | 17 +- kernel/rcu/tree_plugin.h | 3 +- kernel/trace/bpf_trace.c | 20 +- kernel/trace/ftrace.c | 34 +- kernel/trace/kprobe_event_gen_test.c | 49 ++- kernel/trace/ring_buffer.c | 87 +++++- kernel/trace/trace.c | 76 ++++- kernel/trace/trace_eprobe.c | 63 +--- kernel/trace/trace_events_synth.c | 23 +- kernel/trace/trace_kprobe.c | 60 +--- kernel/trace/trace_osnoise.c | 3 +- kernel/trace/trace_probe_kernel.h | 115 +++++++ lib/Kconfig.debug | 10 +- lib/dynamic_debug.c | 45 +-- lib/once.c | 30 ++ lib/sbitmap.c | 69 +++-- mm/damon/vaddr.c | 10 + mm/gup.c | 14 +- mm/hugetlb.c | 68 ++-- mm/memory.c | 2 + mm/mmap.c | 5 +- mm/mprotect.c | 2 + net/bluetooth/hci_core.c | 38 ++- net/bluetooth/hci_event.c | 14 + net/bluetooth/hci_sock.c | 3 - net/bluetooth/hci_sync.c | 1 + net/bluetooth/hci_sysfs.c | 3 + net/bluetooth/l2cap_core.c | 17 +- net/bluetooth/mgmt.c | 4 +- net/bluetooth/rfcomm/sock.c | 3 + net/can/bcm.c | 7 +- net/core/flow_dissector.c | 4 +- net/core/skmsg.c | 12 +- net/core/stream.c | 3 +- net/ieee802154/socket.c | 4 + net/ipv4/datagram.c | 2 + net/ipv4/esp4_offload.c | 5 +- net/ipv4/inet_hashtables.c | 4 +- net/ipv4/netfilter/nft_fib_ipv4.c | 3 + net/ipv4/tcp.c | 16 +- net/ipv4/tcp_output.c | 19 +- net/ipv6/esp6_offload.c | 5 +- net/ipv6/netfilter/nft_fib_ipv6.c | 6 +- net/mac80211/cfg.c | 17 +- net/mac80211/mlme.c | 20 +- net/mac80211/sta_info.c | 4 +- net/netfilter/nf_conntrack_core.c | 18 +- net/openvswitch/datapath.c | 18 +- net/rds/tcp.c | 2 +- net/sched/cls_u32.c | 6 +- net/sctp/auth.c | 18 +- net/unix/af_unix.c | 13 +- net/unix/garbage.c | 20 ++ net/vmw_vsock/virtio_transport_common.c | 2 +- net/wireless/reg.c | 4 + net/xdp/xsk.c | 22 +- net/xdp/xsk_queue.h | 22 +- net/xfrm/xfrm_input.c | 18 +- net/xfrm/xfrm_ipcomp.c | 1 + scripts/Kbuild.include | 23 +- scripts/package/mkspec | 4 +- scripts/selinux/install_policy.sh | 2 +- security/integrity/ima/ima_appraise.c | 12 +- security/loadpin/Kconfig | 2 +- sound/core/pcm_dmaengine.c | 8 +- sound/core/rawmidi.c | 2 - sound/core/sound_oss.c | 13 +- sound/hda/intel-dsp-config.c | 5 + sound/pci/hda/hda_beep.c | 15 +- sound/pci/hda/hda_beep.h | 1 + sound/pci/hda/hda_codec.c | 41 ++- sound/pci/hda/patch_hdmi.c | 36 +-- sound/pci/hda/patch_realtek.c | 11 +- sound/pci/hda/patch_sigmatel.c | 25 +- sound/soc/amd/acp/acp-pci.c | 1 + sound/soc/amd/yc/acp6x-mach.c | 14 + sound/soc/codecs/da7219.c | 5 +- sound/soc/codecs/lpass-tx-macro.c | 13 +- sound/soc/codecs/mt6359-accdet.c | 6 +- sound/soc/codecs/mt6660.c | 8 +- sound/soc/codecs/tas2764.c | 78 ++--- sound/soc/codecs/wcd-mbhc-v2.c | 10 +- sound/soc/codecs/wcd9335.c | 2 +- sound/soc/codecs/wcd934x.c | 2 +- sound/soc/codecs/wm5102.c | 6 +- sound/soc/codecs/wm5110.c | 6 +- sound/soc/codecs/wm8997.c | 6 +- sound/soc/codecs/wm_adsp.c | 4 +- sound/soc/fsl/eukrea-tlv320.c | 8 +- sound/soc/mediatek/mt8195/mt8195-mt6359.c | 6 + sound/soc/rockchip/rockchip_i2s.c | 41 +-- sound/soc/sh/rcar/ctu.c | 6 +- sound/soc/sh/rcar/dvc.c | 6 +- sound/soc/sh/rcar/mix.c | 6 +- sound/soc/sh/rcar/src.c | 5 +- sound/soc/sh/rcar/ssi.c | 4 +- sound/soc/soc-pcm.c | 2 +- sound/soc/sof/intel/hda.c | 11 + sound/soc/sof/ipc3-topology.c | 7 + sound/soc/sof/ipc4-topology.c | 9 +- sound/soc/sof/mediatek/mt8195/mt8195.c | 1 + sound/soc/sof/sof-pci-dev.c | 2 +- sound/soc/sof/sof-priv.h | 4 + sound/soc/stm/stm32_adfsdm.c | 8 +- sound/soc/stm/stm32_i2s.c | 4 +- sound/soc/stm/stm32_spdifrx.c | 4 +- sound/soc/sunxi/sun4i-codec.c | 3 + sound/usb/card.c | 32 +- sound/usb/endpoint.c | 17 +- sound/usb/quirks-table.h | 76 +++++ sound/usb/quirks.c | 344 ++++++++++++++++++--- sound/usb/quirks.h | 2 - sound/usb/usbaudio.h | 1 + tools/bpf/bpftool/btf_dumper.c | 2 +- tools/bpf/bpftool/cgroup.c | 54 +++- tools/bpf/bpftool/main.c | 10 + tools/include/uapi/linux/bpf.h | 7 +- tools/lib/bpf/bpf_tracing.h | 14 +- tools/lib/bpf/btf.h | 25 +- tools/lib/bpf/btf_dump.c | 2 +- tools/lib/bpf/libbpf.c | 21 +- tools/lib/bpf/libbpf.h | 4 +- tools/lib/bpf/libbpf_probes.c | 2 +- tools/lib/bpf/nlattr.c | 2 +- tools/lib/bpf/usdt.bpf.h | 4 +- tools/objtool/elf.c | 7 +- tools/perf/arch/x86/util/intel-pt.c | 2 +- tools/perf/util/intel-pt.c | 9 +- tools/perf/util/parse-events.c | 3 + tools/perf/util/pmu.c | 17 + tools/perf/util/pmu.h | 2 + tools/perf/util/pmu.l | 2 - tools/perf/util/pmu.y | 15 +- tools/power/x86/turbostat/turbostat.c | 1 - .../selftests/arm64/signal/testcases/testcases.c | 2 +- .../selftests/bpf/map_tests/array_map_batch_ops.c | 2 + .../selftests/bpf/map_tests/htab_map_batch_ops.c | 2 + .../bpf/map_tests/lpm_trie_map_batch_ops.c | 2 + .../testing/selftests/bpf/prog_tests/cgroup_link.c | 11 +- tools/testing/selftests/bpf/progs/kprobe_multi.c | 4 +- tools/testing/selftests/bpf/test_maps.c | 24 +- tools/testing/selftests/bpf/xsk.c | 6 +- tools/testing/selftests/bpf/xskxceiver.c | 4 + tools/testing/selftests/cpu-hotplug/config | 1 - .../selftests/cpu-hotplug/cpu-on-off-test.sh | 138 +++------ tools/testing/selftests/net/fcnal-test.sh | 30 ++ tools/testing/selftests/net/nettest.c | 16 +- tools/testing/selftests/tpm2/tpm2.py | 4 + 908 files changed, 8789 insertions(+), 4121 deletions(-)
Greg Kroah-Hartman
maintainerPATCH 527/862 phy: qcom-qmp-ufs: fix memleak on probe deferral
In reply to Greg Kroah-HartmanFrom: Johan Hovold <[email protected]>
[ Upstream commit ef74a97f0df8758efe4476b4645961286aa86f0d ]
Switch to using the device-managed of_iomap helper to avoid leaking memory on probe deferral and driver unbind.
Note that this helper checks for already reserved regions and may fail if there are multiple devices claiming the same memory.
--- drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 30 ++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-)
drivers/phy/qualcomm/phy-qcom-qmp-ufs.c +15 -15
@@ -1188,17 +1188,17 @@ int qcom_qmp_phy_ufs_create(struct device *dev, struct device_node *np, int id,* For dual lane PHYs: tx2 -> 3, rx2 -> 4, pcs_misc (optional) -> 5 * For single lane PHYs: pcs_misc (optional) -> 3. */ - qphy->tx =of_iomap (np,0 ); -if (!qphy->tx) -return -ENOMEM ; + qphy->tx =devm_of_iomap (dev, np,0 ,NULL ); +if (IS_ERR (qphy->tx)) +return PTR_ERR (qphy->tx); - qphy->rx =of_iomap (np,1 ); -if (!qphy->rx) -return -ENOMEM ; + qphy->rx =devm_of_iomap (dev, np,1 ,NULL ); +if (IS_ERR (qphy->rx)) +return PTR_ERR (qphy->rx); - qphy->pcs =of_iomap (np,2 ); -if (!qphy->pcs) -return -ENOMEM ; + qphy->pcs =devm_of_iomap (dev, np,2 ,NULL ); +if (IS_ERR (qphy->pcs)) +return PTR_ERR (qphy->pcs);/* * If this is a dual-lane PHY, then there should be registers for the
@@ -1207,9 +1207,9 @@ int qcom_qmp_phy_ufs_create(struct device *dev, struct device_node *np, int id,* offset from the first lane. */ if (cfg->is_dual_lane_phy) { - qphy->tx2 =of_iomap (np,3 ); - qphy->rx2 =of_iomap (np,4 ); -if (!qphy->tx2 || !qphy->rx2) { + qphy->tx2 =devm_of_iomap (dev, np,3 ,NULL ); + qphy->rx2 =devm_of_iomap (dev, np,4 ,NULL ); +if (IS_ERR (qphy->tx2) ||IS_ERR (qphy->rx2)) {dev_warn (dev,"Underspecified device tree, falling back to legacy register regions\n" );
@@ -1219,14 +1219,14 @@ int qcom_qmp_phy_ufs_create(struct device *dev, struct device_node *np, int id, qphy->rx2 = qphy->rx +QMP_PHY_LEGACY_LANE_STRIDE ; }else { - qphy->pcs_misc =of_iomap (np,5 ); + qphy->pcs_misc =devm_of_iomap (dev, np,5 ,NULL ); } }else { - qphy->pcs_misc =of_iomap (np,3 ); + qphy->pcs_misc =devm_of_iomap (dev, np,3 ,NULL ); } -if (!qphy->pcs_misc) +if (IS_ERR (qphy->pcs_misc))dev_vdbg (dev,"PHY pcs_misc-reg not used\n" ); generic_phy =devm_phy_create (dev, np, &qcom_qmp_ufs_ops);
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 165/862 tracing: Fix reading strings from synthetic events
In reply to Greg Kroah-HartmanFrom: Steven Rostedt (Google) <[email protected]>
commit 0934ae9977c27133449b6dd8c6213970e7eece38 upstream.
The follow commands caused a crash:
# cd /sys/kernel/tracing # echo 's:open char file[]' > dynamic_events # echo 'hist:keys=common_pid:file=filename:onchange($file).trace(open,$file)' > events/syscalls/sys_enter_openat/trigger' # echo 1 > events/synthetic/open/enable
BOOM!
The problem is that the synthetic event field "char file[]" will read the value given to it as a string without any memory checks to make sure the address is valid. The above example will pass in the user space address and the sythetic event code will happily call strlen() on it and then strscpy() where either one will cause an oops when accessing user space addresses.
Use the helper functions from trace_kprobe and trace_eprobe that can read strings safely (and actually succeed when the address is from user space and the memory is mapped in).
Now the above can show:
packagekitd-1721 [000] ...2. 104.597170: open: file=/usr/lib/rpm/fileattrs/cmake.attr
in:imjournal-978 [006] ...2. 104.599642: open: file=/var/lib/rsyslog/imjournal.state.tmp
packagekitd-1721 [000] ...2. 104.626308: open: file=/usr/lib/rpm/fileattrs/debuginfo.attr--- kernel/trace/trace_events_synth.c | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-)
kernel/trace/trace_events_synth.c +17 -6
@@ -17,6 +17,8 @@/* for gfp flag names */ #include <linux/trace_events.h> #include <trace/events/mmflags.h> +#include "trace_probe.h" +#include "trace_probe_kernel.h" #include "trace_synth.h"
@@ -409,6 +411,7 @@ static unsigned int trace_string(struct {unsigned int len =0 ;char *str_field; +int ret;if (is_dynamic) {u32 data_offset;
@@ -417,19 +420,27 @@ static unsigned int trace_string(struct data_offset += event->n_u64 *sizeof (u64); data_offset += data_size; - str_field = (char *)entry + data_offset; - - len =strlen (str_val) +1 ; -strscpy (str_field, str_val, len); + len =kern_fetch_store_strlen ((unsigned long )str_val); data_offset |= len <<16 ; *(u32 *)&entry->fields[*n_u64] = data_offset; + ret =kern_fetch_store_string ((unsigned long )str_val, &entry->fields[*n_u64], entry); + (*n_u64)++; }else { str_field = (char *)&entry->fields[*n_u64]; -strscpy (str_field, str_val,STR_VAR_LEN_MAX ); +#ifdef CONFIG_ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE +if ((unsigned long )str_val <TASK_SIZE ) + ret =strncpy_from_user_nofault (str_field, str_val,STR_VAR_LEN_MAX ); + else +#endif + ret =strncpy_from_kernel_nofault (str_field, str_val,STR_VAR_LEN_MAX ); + +if (ret <0 ) +strcpy (str_field,FAULT_STRING ); + (*n_u64) +=STR_VAR_LEN_MAX /sizeof (u64); }
@@ -462,7 +473,7 @@ static notrace void trace_event_raw_even val_idx = var_ref_idx[field_pos]; str_val = (char *)(long )var_ref_vals[val_idx]; - len =strlen (str_val) +1 ; + len =kern_fetch_store_strlen ((unsigned long )str_val); fields_size += len; }
Greg Kroah-Hartman
maintainerPATCH 367/862 ASoC: soc-pcm.c: call __soc_pcm_close() in soc_pcm_close()
In reply to Greg Kroah-HartmanFrom: Kuninori Morimoto <[email protected]>
[ Upstream commit 6bbabd28805f36baf6d0f3eb082db032a638f612 ]
commit b7898396f4bbe16 ("ASoC: soc-pcm: Fix and cleanup DPCM locking") added __soc_pcm_close() for non-lock version of soc_pcm_close(). But soc_pcm_close() is not using it. It is no problem, but confusable.
static int __soc_pcm_close(...)
{
=> return soc_pcm_clean(rtd, substream, 0);
}
static int soc_pcm_close(...)
{
...
snd_soc_dpcm_mutex_lock(rtd);
=> soc_pcm_clean(rtd, substream, 0);
snd_soc_dpcm_mutex_unlock(rtd);
return 0;
}This patch use it.
--- sound/soc/soc-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/soc-pcm.c +1 -1
@@ -723,7 +723,7 @@ static int soc_pcm_close(struct snd_pcm_substream *substream)struct snd_soc_pcm_runtime *rtd =asoc_substream_to_rtd (substream);snd_soc_dpcm_mutex_lock (rtd); -soc_pcm_clean (rtd, substream,0 ); +__soc_pcm_close (rtd, substream);snd_soc_dpcm_mutex_unlock (rtd);return 0 ; }
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 692/862 thunderbolt: Add back Intel Falcon Ridge end-to-end flow control workaround
In reply to Greg Kroah-HartmanFrom: Mika Westerberg <[email protected]>
[ Upstream commit 54669e2f17cb5a4c41ade89427f074dc22cecb17 ]
As we are now enabling full end-to-end flow control to the Thunderbolt networking driver, in order for it to work properly on second generation Thunderbolt hardware (Falcon Ridge), we need to add back the workaround that was removed with commit 53f13319d131 ("thunderbolt: Get rid of E2E workaround"). However, this time we only apply it for Falcon Ridge controllers as a form of an additional quirk. For non-Falcon Ridge this does nothing.
While there fix a typo 'reqister' -> 'register' in the comment.
--- drivers/thunderbolt/nhi.c | 49 +++++++++++++++++++++++++++++++++------ 1 file changed, 42 insertions(+), 7 deletions(-)
drivers/thunderbolt/nhi.c +42 -7
@@ -28,7 +28,11 @@#define RING_TYPE (ring) ((ring)->is_tx ? "TX ring" : "RX ring")#define RING_FIRST_USABLE_HOPID 1 - +/* +* Used with QUIRK_E2E to specify an unused HopID the Rx credits are +* transferred. +*/ +#define RING_E2E_RESERVED_HOPID RING_FIRST_USABLE_HOPID/* * Minimal number of vectors when we use MSI-X. Two for control channel * Rx/Tx and the rest four are for cross domain DMA paths.
@@ -38,7 +42,9 @@#define NHI_MAILBOX_TIMEOUT 500/* ms */ +/* Host interface quirks */ #define QUIRK_AUTO_CLEAR_INT BIT(0) +#define QUIRK_E2E BIT(1)static int ring_interrupt_index (struct tb_ring *ring) {
@@ -458,8 +464,18 @@ static void ring_release_msix(struct tb_ring *ring)static int nhi_alloc_hop (struct tb_nhi *nhi,struct tb_ring *ring) { +unsigned int start_hop =RING_FIRST_USABLE_HOPID ;int ret =0 ; +if (nhi->quirks &QUIRK_E2E ) { + start_hop =RING_FIRST_USABLE_HOPID +1 ; +if (ring->flags &RING_FLAG_E2E && !ring->is_tx) { +dev_dbg (&nhi->pdev->dev,"quirking E2E TX HopID %u -> %u\n" , + ring->e2e_tx_hop,RING_E2E_RESERVED_HOPID ); + ring->e2e_tx_hop =RING_E2E_RESERVED_HOPID ; + } + } +spin_lock_irq (&nhi->lock);if (ring->hop <0 ) {
@@ -469,7 +485,7 @@ static int nhi_alloc_hop(struct tb_nhi *nhi, struct tb_ring *ring)* Automatically allocate HopID from the non-reserved * range 1 .. hop_count - 1. */ -for (i =RING_FIRST_USABLE_HOPID ; i < nhi->hop_count; i++) { +for (i = start_hop; i < nhi->hop_count; i++) {if (ring->is_tx) {if (!nhi->tx_rings[i]) { ring->hop = i;
@@ -484,6 +500,11 @@ static int nhi_alloc_hop(struct tb_nhi *nhi, struct tb_ring *ring) } } +if (ring->hop >0 && ring->hop < start_hop) { +dev_warn (&nhi->pdev->dev,"invalid hop: %d\n" , ring->hop); + ret = -EINVAL ; + goto err_unlock; + }if (ring->hop <0 || ring->hop >= nhi->hop_count) {dev_warn (&nhi->pdev->dev,"invalid hop: %d\n" , ring->hop); ret = -EINVAL ;
@@ -1097,12 +1118,26 @@ static void nhi_shutdown(struct tb_nhi *nhi)static void nhi_check_quirks (struct tb_nhi *nhi) { -/* -* Intel hardware supports auto clear of the interrupt status -* reqister right after interrupt is being issued. -*/ -if (nhi->pdev->vendor ==PCI_VENDOR_ID_INTEL ) +if (nhi->pdev->vendor ==PCI_VENDOR_ID_INTEL ) { +/* +* Intel hardware supports auto clear of the interrupt +* status register right after interrupt is being +* issued. +*/ nhi->quirks |=QUIRK_AUTO_CLEAR_INT ; + +switch (nhi->pdev->device) { +case PCI_DEVICE_ID_INTEL_FALCON_RIDGE_2C_NHI : +case PCI_DEVICE_ID_INTEL_FALCON_RIDGE_4C_NHI : +/* +* Falcon Ridge controller needs the end-to-end +* flow control workaround to avoid losing Rx +* packets when RING_FLAG_E2E is set. +*/ + nhi->quirks |=QUIRK_E2E ; +break ; + } + } }static int nhi_check_iommu_pdev (struct pci_dev *pdev,void *data)
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 690/862 x86/mce: Retrieve poison range from hardware
In reply to Greg Kroah-HartmanFrom: Jane Chu <[email protected]>
[ Upstream commit f9781bb18ed828e7b83b7bac4a4ad7cd497ee7d7 ]
When memory poison consumption machine checks fire, MCE notifier handlers like nfit_handle_mce() record the impacted physical address range which is reported by the hardware in the MCi_MISC MSR. The error information includes data about blast radius, i.e. how many cachelines did the hardware determine are impacted. A recent change
7917f9cdb503 ("acpi/nfit: rely on mce->misc to determine poison granularity")
updated nfit_handle_mce() to stop hard coding the blast radius value of 1 cacheline, and instead rely on the blast radius reported in 'struct mce' which can be up to 4K (64 cachelines).
It turns out that apei_mce_report_mem_error() had a similar problem in that it hard coded a blast radius of 4K rather than reading the blast radius from the error information. Fix apei_mce_report_mem_error() to convey the proper poison granularity.
--- arch/x86/kernel/cpu/mce/apei.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
arch/x86/kernel/cpu/mce/apei.c +12 -1
@@ -29,15 +29,26 @@void apei_mce_report_mem_error (int severity,struct cper_sec_mem_err *mem_err) {struct mce m; +int lsb;if (!(mem_err->validation_bits &CPER_MEM_VALID_PA ))return ; +/* +* Even if the ->validation_bits are set for address mask, +* to be extra safe, check and reject an error radius '0', +* and fall back to the default page size. +*/ +if (mem_err->validation_bits &CPER_MEM_VALID_PA_MASK ) + lsb =find_first_bit ((void *)&mem_err->physical_addr_mask,PAGE_SHIFT ); +else + lsb =PAGE_SHIFT ; +mce_setup (&m); m.bank =-1 ;/* Fake a memory read error with unknown channel */ m.status =MCI_STATUS_VAL |MCI_STATUS_EN |MCI_STATUS_ADDRV |MCI_STATUS_MISCV |0x9f ; - m.misc = (MCI_MISC_ADDR_PHYS <<6 ) |PAGE_SHIFT ; + m.misc = (MCI_MISC_ADDR_PHYS <<6 ) | lsb;if (severity >=GHES_SEV_RECOVERABLE ) m.status |=MCI_STATUS_UC ;
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 672/862 powercap: intel_rapl: fix UBSAN shift-out-of-bounds issue
In reply to Greg Kroah-HartmanFrom: Chao Qin <[email protected]>
[ Upstream commit 2d93540014387d1c73b9ccc4d7895320df66d01b ]
When value < time_unit, the parameter of ilog2() will be zero and the return value is -1. u64(-1) is too large for shift exponent and then will trigger shift-out-of-bounds:
shift exponent 18446744073709551615 is too large for 32-bit type 'int'
Call Trace: rapl_compute_time_window_core rapl_write_data_raw set_time_window store_constraint_time_window_us
--- drivers/powercap/intel_rapl_common.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/powercap/intel_rapl_common.c +3 -0
@@ -994,6 +994,9 @@ static u64 rapl_compute_time_window_core(struct rapl_package *rp, u64 value, y = value &0x1f ; value = (1 << y) * (4 + f) * rp->time_unit /4 ; }else { +if (value < rp->time_unit) +return 0 ; +do_div (value, rp->time_unit); y =ilog2 (value); f =div64_u64 (4 * (value - (1 << y)),1 << y);
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 554/862 usb: gadget: function: fix dangling pnp_string in f_printer.c
In reply to Greg Kroah-HartmanFrom: Albert Briscoe <[email protected]>
[ Upstream commit 24b7ba2f88e04800b54d462f376512e8c41b8a3c ]
When opts->pnp_string is changed with configfs, new memory is allocated for the string. It does not, however, update dev->pnp_string, even though the memory is freed. When rquesting the string, the host then gets old or corrupted data rather than the new string. The ieee 1284 id string should be allowed to change while the device is connected.
The bug was introduced in commit fdc01cc286be ("usb: gadget: printer:
Remove pnp_string static buffer"), which changed opts->pnp_string from a char[] to a char*.
This patch changes dev->pnp_string from a char* to a char** pointing to opts->pnp_string.
--- drivers/usb/gadget/function/f_printer.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/usb/gadget/function/f_printer.c +6 -6
@@ -89,7 +89,7 @@ struct printer_dev {u8 printer_cdev_open;wait_queue_head_t wait;unsigned q_len; -char *pnp_string;/* We don't own memory! */ +char **pnp_string;/* We don't own memory! */ struct usb_function function; };
@@ -1000,16 +1000,16 @@ static int printer_func_setup(struct usb_function *f,if ((wIndex>>8 ) != dev->interface)break ; -if (!dev->pnp_string) { +if (!*dev->pnp_string) { value =0 ;break ; } - value =strlen (dev->pnp_string); + value =strlen (*dev->pnp_string); buf[0 ] = (value >>8 ) &0xFF ; buf[1 ] = value &0xFF ; -memcpy (buf +2 , dev->pnp_string, value); +memcpy (buf +2 , *dev->pnp_string, value);DBG (dev,"1284 PNP String: %x %s\n" , value, - dev->pnp_string); + *dev->pnp_string);break ;case GET_PORT_STATUS :/* Get Port Status */
@@ -1475,7 +1475,7 @@ static struct usb_function *gprinter_alloc(struct usb_function_instance *fi)kref_init (&dev->kref); ++opts->refcnt; dev->minor = opts->minor; - dev->pnp_string = opts->pnp_string; + dev->pnp_string = &opts->pnp_string; dev->q_len = opts->q_len;mutex_unlock (&opts->lock);
Signature · 1 line
2.35.1
Re: [PATCH 6.0 527/862] phy: qcom-qmp-ufs: fix memleak on probe deferral
In reply to Greg Kroah-HartmanQuoted 9 lines · Greg Kroah-Hartman
From: Johan Hovold <[email protected]>
[ Upstream commit
ef74a97f0df8758efe4476b4645961286aa86f0d]Switch to using the device-managed
of_iomaphelper to avoid leaking memory on probe deferral and driver unbind.Note that this helper checks for already reserved regions and may fail if there are multiple devices claiming the same memory.
Again, because of the above, this should not be backported. Please drop.
Quoted 5 lines
Fixes e78f3d15e115 ("phy: qcom-qmp: new qmp phy driver for qcom-chipsets")Signed-off-by Johan Hovold <[email protected]>Signed-off-by Vinod Koul <[email protected]>Signed-off-by Sasha Levin <[email protected]>
Johan
Greg Kroah-Hartman
maintainerPATCH 248/862 esp: choose the correct inner protocol for GSO on inter address family tunnels
In reply to Greg Kroah-HartmanFrom: Sabrina Dubroca <[email protected]>
[ Upstream commit 26dbd66eab8080be51759e48280da04015221e22 ]
Commit 23c7f8d7989e ("net: Fix esp GSO on inter address family tunnels.") is incomplete. It passes to skb_eth_gso_segment the protocol for the outer IP version, instead of the inner IP version, so we end up calling inet_gso_segment on an inner IPv6 packet and ipv6_gso_segment on an inner IPv4 packet and the packets are dropped.
This patch completes the fix by selecting the correct protocol based on the inner mode's family.
--- net/ipv4/esp4_offload.c | 5 ++++- net/ipv6/esp6_offload.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-)
net/ipv4/esp4_offload.c +4 -1
@@ -110,7 +110,10 @@ static struct sk_buff *xfrm4_tunnel_gso_segment(struct xfrm_state *x, struct sk_buff *skb, netdev_features_t features) { - return skb_eth_gso_segment(skb, features, htons(ETH_P_IP)); +__be16 type = x->inner_mode.family ==AF_INET6 ?htons (ETH_P_IPV6 ) + :htons (ETH_P_IP ); + +return skb_eth_gso_segment (skb, features, type); } static struct sk_buff *xfrm4_transport_gso_segment(struct xfrm_state *x,
net/ipv6/esp6_offload.c +4 -1
@@ -145,7 +145,10 @@ static struct sk_buff *xfrm6_tunnel_gso_segment(struct xfrm_state *x, struct sk_buff *skb, netdev_features_t features) { - return skb_eth_gso_segment(skb, features, htons(ETH_P_IPV6)); +__be16 type = x->inner_mode.family ==AF_INET ?htons (ETH_P_IP ) + :htons (ETH_P_IPV6 ); + +return skb_eth_gso_segment (skb, features, type); } static struct sk_buff *xfrm6_transport_gso_segment(struct xfrm_state *x,
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 119/862 btrfs: enhance unsupported compat RO flags handling
In reply to Greg Kroah-HartmanFrom: Qu Wenruo <[email protected]>
commit 81d5d61454c365718655cfc87d8200c84e25d596 upstream.
Currently there are two corner cases not handling compat RO flags correctly:
- Remount
We can still mount the fs RO with compat RO flags, then remount it RW. We should not allow any write into a fs with unsupported RO flags.
- Still try to search block group items
In fact, behavior/on-disk format change to extent tree should not need a full incompat flag.
And since we can ensure fs with unsupported RO flags never got any writes (with above case fixed), then we can even skip block group items search at mount time.
This patch will enhance the unsupported RO compat flags by:
- Reject read-write remount if there are unsupported RO compat flags
- Go dummy block group items directly for unsupported RO compat flags In fact, only changes to chunk/subvolume/root/csum trees should go incompat flags.
The latter part should allow future change to extent tree to be compat RO flags.
Thus this patch also needs to be backported to all stable trees.
--- fs/btrfs/block-group.c | 11 ++++++++++- fs/btrfs/super.c | 9 +++++++++ 2 files changed, 19 insertions(+), 1 deletion(-)
fs/btrfs/block-group.c +10 -1
@@ -2190,7 +2190,16 @@ int btrfs_read_block_groups(struct btrfsint need_clear =0 ;u64 cache_gen; -if (!root) +/* +* Either no extent root (with ibadroots rescue option) or we have +* unsupported RO options. The fs can never be mounted read-write, so no +* need to waste time searching block group items. +* +* This also allows new extent tree related changes to be RO compat, +* no need for a full incompat flag. +*/ +if (!root || (btrfs_super_compat_ro_flags (info->super_copy) & + ~BTRFS_FEATURE_COMPAT_RO_SUPP ))return fill_dummy_bgs (info); key.objectid =0 ;
fs/btrfs/super.c +9 -0
@@ -2112,6 +2112,15 @@ static int btrfs_remount(struct super_bl ret = -EINVAL ; goto restore; } +if (btrfs_super_compat_ro_flags (fs_info->super_copy) & + ~BTRFS_FEATURE_COMPAT_RO_SUPP ) { +btrfs_err (fs_info, +"can not remount read-write due to unsupported optional flags 0x%llx" , +btrfs_super_compat_ro_flags (fs_info->super_copy) & + ~BTRFS_FEATURE_COMPAT_RO_SUPP ); + ret = -EINVAL ; + goto restore; + }if (fs_info->fs_devices->rw_devices ==0 ) { ret = -EACCES ; goto restore;
Greg Kroah-Hartman
maintainerPATCH 285/862 wifi: mt76: connac: fix possible unaligned access in mt76_connac_mcu_add_nested_tlv
In reply to Greg Kroah-HartmanFrom: Lorenzo Bianconi <[email protected]>
[ Upstream commit 0a4860f627f1f2b2b777f54f993de1638a79da9f ]
Fix possible unaligned pointer in mt76_connac_mcu_add_nested_tlv routine.
--- drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c +4 -2
@@ -260,8 +260,10 @@ mt76_connac_mcu_add_nested_tlv(struct sk_buff *skb, int tag, int len, ntlv =le16_to_cpu (ntlv_hdr->tlv_num); ntlv_hdr->tlv_num =cpu_to_le16 (ntlv +1 ); -if (sta_hdr) -le16_add_cpu (&sta_hdr->len, len); +if (sta_hdr) { + len +=le16_to_cpu (sta_hdr->len); + sta_hdr->len =cpu_to_le16 (len); + }return ptlv; }
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 321/862 Bluetooth: hci_core: Fix not handling link timeouts propertly
In reply to Greg Kroah-HartmanFrom: Luiz Augusto von Dentz <[email protected]>
[ Upstream commit 116523c8fac05d1d26f748fee7919a4ec5df67ea ]
Change that introduced the use of __check_timeout did not account for link types properly, it always assumes ACL_LINK is used thus causing hdev->acl_last_tx to be used even in case of LE_LINK and then again uses ACL_LINK with hci_link_tx_to.
To fix this __check_timeout now takes the link type as parameter and then procedure to use the right last_tx based on the link type and pass it to hci_link_tx_to.
--- net/bluetooth/hci_core.c | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-)
net/bluetooth/hci_core.c +23 -11
@@ -3478,15 +3478,27 @@ static inline int __get_blocks(struct hci_dev *hdev, struct sk_buff *skb)return DIV_ROUND_UP (skb->len -HCI_ACL_HDR_SIZE , hdev->block_len); } -static void __check_timeout (struct hci_dev *hdev,unsigned int cnt) +static void __check_timeout (struct hci_dev *hdev,unsigned int cnt,u8 type) { -if (!hci_dev_test_flag (hdev,HCI_UNCONFIGURED )) { -/* ACL tx timeout must be longer than maximum -* link supervision timeout (40.9 seconds) */ -if (!cnt &&time_after (jiffies, hdev->acl_last_tx + -HCI_ACL_TX_TIMEOUT )) -hci_link_tx_to (hdev,ACL_LINK ); +unsigned long last_tx; + +if (hci_dev_test_flag (hdev,HCI_UNCONFIGURED )) +return ; + +switch (type) { +case LE_LINK : + last_tx = hdev->le_last_tx; +break ; +default : + last_tx = hdev->acl_last_tx; +break ; } + +/* tx timeout must be longer than maximum link supervision timeout +* (40.9 seconds) +*/ +if (!cnt &&time_after (jiffies, last_tx +HCI_ACL_TX_TIMEOUT )) +hci_link_tx_to (hdev, type); }/* Schedule SCO */
@@ -3544,7 +3556,7 @@ static void hci_sched_acl_pkt(struct hci_dev *hdev)struct sk_buff *skb;int quote; -__check_timeout (hdev, cnt); +__check_timeout (hdev, cnt,ACL_LINK );while (hdev->acl_cnt && (chan =hci_chan_sent (hdev,ACL_LINK , "e))) {
@@ -3587,8 +3599,6 @@ static void hci_sched_acl_blk(struct hci_dev *hdev)int quote;u8 type; -__check_timeout (hdev, cnt); -BT_DBG ("%s" , hdev->name);if (hdev->dev_type ==HCI_AMP )
@@ -3596,6 +3606,8 @@ static void hci_sched_acl_blk(struct hci_dev *hdev)else type =ACL_LINK ; +__check_timeout (hdev, cnt, type); +while (hdev->block_cnt >0 && (chan =hci_chan_sent (hdev, type, "e))) {u32 priority = (skb_peek (&chan->data_q))->priority;
@@ -3669,7 +3681,7 @@ static void hci_sched_le(struct hci_dev *hdev) cnt = hdev->le_pkts ? hdev->le_cnt : hdev->acl_cnt; -__check_timeout (hdev, cnt); +__check_timeout (hdev, cnt,LE_LINK ); tmp = cnt;while (cnt && (chan =hci_chan_sent (hdev,LE_LINK , "e))) {
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 633/862 cgroup/cpuset: Enable update_tasks_cpumask() on top_cpuset
In reply to Greg Kroah-HartmanFrom: Waiman Long <[email protected]>
[ Upstream commit ec5fbdfb99d18482619ac42605cb80fbb56068ee ]
Previously, update_tasks_cpumask() is not supposed to be called with top cpuset. With cpuset partition that takes CPUs away from the top cpuset, adjusting the cpus_mask of the tasks in the top cpuset is necessary. Percpu kthreads, however, are ignored.
--- kernel/cgroup/cpuset.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-)
kernel/cgroup/cpuset.c +11 -7
@@ -33,6 +33,7 @@#include <linux/interrupt.h> #include <linux/kernel.h> #include <linux/kmod.h> +#include <linux/kthread.h> #include <linux/list.h> #include <linux/mempolicy.h> #include <linux/mm.h>
@@ -1127,10 +1128,18 @@ static void update_tasks_cpumask(struct cpuset *cs) {struct css_task_iter it;struct task_struct *task; +bool top_cs = cs == &top_cpuset;css_task_iter_start (&cs->css,0 , &it); -while ((task =css_task_iter_next (&it))) +while ((task =css_task_iter_next (&it))) { +/* +* Percpu kthreads in top_cpuset are ignored +*/ +if (top_cs && (task->flags &PF_KTHREAD ) && +kthread_is_per_cpu (task)) +continue ;set_cpus_allowed_ptr (task, cs->effective_cpus); + }css_task_iter_end (&it); }
@@ -2092,12 +2101,7 @@ static int update_prstate(struct cpuset *cs, int new_prs)update_flag (CS_CPU_EXCLUSIVE , cs,0 ); } -/* -* Update cpumask of parent's tasks except when it is the top -* cpuset as some system daemons cannot be mapped to other CPUs. -*/ -if (parent != &top_cpuset) -update_tasks_cpumask (parent); +update_tasks_cpumask (parent);if (parent->child_ecpus_count)update_sibling_cpumasks (parent, cs, &tmpmask);
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 603/862 mailbox: mpfs: fix handling of the reg property
In reply to Greg Kroah-HartmanFrom: Conor Dooley <[email protected]>
[ Upstream commit 2e10289d1f304f5082a4dda55a677b72b3bdb581 ]
The "data" region of the PolarFire SoC's system controller mailbox is not one continuous register space - the system controller's QSPI sits between the control and data registers. Split the "data" reg into two
parts: "data" & "control". Optionally get the "data" register address from the 3rd reg property in the devicetree & fall back to using the old base + MAILBOX_REG_OFFSET that the current code uses.
--- drivers/mailbox/mailbox-mpfs.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-)
drivers/mailbox/mailbox-mpfs.c +14 -10
@@ -62,6 +62,7 @@ struct mpfs_mbox {struct mbox_controller controller;struct device *dev;int irq; +void __iomem *ctrl_base;void __iomem *mbox_base;void __iomem *int_reg;struct mbox_chan chans[1 ];
@@ -73,7 +74,7 @@ static bool mpfs_mbox_busy(struct mpfs_mbox *mbox) {u32 status; - status =readl_relaxed (mbox->mbox_base +SERVICES_SR_OFFSET ); + status =readl_relaxed (mbox->ctrl_base +SERVICES_SR_OFFSET );return status &SCB_STATUS_BUSY_MASK ; }
@@ -99,14 +100,13 @@ static int mpfs_mbox_send_data(struct mbox_chan *chan, void *data)for (index =0 ; index < (msg->cmd_data_size /4 ); index++)writel_relaxed (word_buf[index], - mbox->mbox_base +MAILBOX_REG_OFFSET + index *0x4 ); + mbox->mbox_base + index *0x4 );if (extra_bits) {u8 i;u8 byte_off =ALIGN_DOWN (msg->cmd_data_size,4 );u8 *byte_buf = msg->cmd_data + byte_off; - val =readl_relaxed (mbox->mbox_base + -MAILBOX_REG_OFFSET + index *0x4 ); + val =readl_relaxed (mbox->mbox_base + index *0x4 );for (i =0u ; i < extra_bits; i++) { val &= ~(0xffu << (i *8u ));
@@ -114,14 +114,14 @@ static int mpfs_mbox_send_data(struct mbox_chan *chan, void *data) }writel_relaxed (val, - mbox->mbox_base +MAILBOX_REG_OFFSET + index *0x4 ); + mbox->mbox_base + index *0x4 ); } } opt_sel = ((msg->mbox_offset <<7u ) | (msg->cmd_opcode &0x7fu )); tx_trigger = (opt_sel <<SCB_CTRL_POS ) &SCB_CTRL_MASK ; tx_trigger |=SCB_CTRL_REQ_MASK |SCB_STATUS_NOTIFY_MASK ; -writel_relaxed (tx_trigger, mbox->mbox_base +SERVICES_CR_OFFSET ); +writel_relaxed (tx_trigger, mbox->ctrl_base +SERVICES_CR_OFFSET );return 0 ; }
@@ -141,7 +141,7 @@ static void mpfs_mbox_rx_data(struct mbox_chan *chan)if (!mpfs_mbox_busy (mbox)) {for (i =0 ; i < num_words; i++) { response->resp_msg[i] = -readl_relaxed (mbox->mbox_base +MAILBOX_REG_OFFSET +readl_relaxed (mbox->mbox_base + mbox->resp_offset + i *0x4 ); } }
@@ -200,14 +200,18 @@ static int mpfs_mbox_probe(struct platform_device *pdev)if (!mbox)return -ENOMEM ; - mbox->mbox_base =devm_platform_get_and_ioremap_resource (pdev,0 , ®s); -if (IS_ERR (mbox->mbox_base)) -return PTR_ERR (mbox->mbox_base); + mbox->ctrl_base =devm_platform_get_and_ioremap_resource (pdev,0 , ®s); +if (IS_ERR (mbox->ctrl_base)) +return PTR_ERR (mbox->ctrl_base); mbox->int_reg =devm_platform_get_and_ioremap_resource (pdev,1 , ®s);if (IS_ERR (mbox->int_reg))return PTR_ERR (mbox->int_reg); + mbox->mbox_base =devm_platform_get_and_ioremap_resource (pdev,2 , ®s); +if (IS_ERR (mbox->mbox_base))// account for the old dt-binding w/ 2 regs + mbox->mbox_base = mbox->ctrl_base +MAILBOX_REG_OFFSET ; + mbox->irq =platform_get_irq (pdev,0 );if (mbox->irq <0 )return mbox->irq;
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 587/862 dmaengine: ioat: stop mod_timer from resurrecting deleted timer in __cleanup()
In reply to Greg Kroah-HartmanFrom: Dave Jiang <[email protected]>
[ Upstream commit 898ec89dbb55b8294695ad71694a0684e62b2a73 ]
User reports observing timer event report channel halted but no error observed in CHANERR register. The driver finished self-test and released channel resources. Debug shows that __cleanup() can call mod_timer() after the timer has been deleted and thus resurrect the timer. While harmless, it causes suprious error message to be emitted. Use mod_timer_pending() call to prevent deleted timer from being resurrected.
--- drivers/dma/ioat/dma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/dma/ioat/dma.c +3 -3
@@ -656,7 +656,7 @@ static void __cleanup(struct ioatdma_chan *ioat_chan, dma_addr_t phys_complete)if (active - i ==0 ) {dev_dbg (to_dev (ioat_chan),"%s: cancel completion timeout\n" , __func__); -mod_timer (&ioat_chan->timer, jiffies +IDLE_TIMEOUT ); +mod_timer_pending (&ioat_chan->timer, jiffies +IDLE_TIMEOUT ); }/* microsecond delay by sysfs variable per pending descriptor */
@@ -682,7 +682,7 @@ static void ioat_cleanup(struct ioatdma_chan *ioat_chan)if (chanerr & (IOAT_CHANERR_HANDLE_MASK |IOAT_CHANERR_RECOVER_MASK )) { -mod_timer (&ioat_chan->timer, jiffies +IDLE_TIMEOUT ); +mod_timer_pending (&ioat_chan->timer, jiffies +IDLE_TIMEOUT );ioat_eh (ioat_chan); } }
@@ -879,7 +879,7 @@ static void check_active(struct ioatdma_chan *ioat_chan) }if (test_and_clear_bit (IOAT_CHAN_ACTIVE , &ioat_chan->state)) -mod_timer (&ioat_chan->timer, jiffies +IDLE_TIMEOUT ); +mod_timer_pending (&ioat_chan->timer, jiffies +IDLE_TIMEOUT ); }static void ioat_reboot_chan (struct ioatdma_chan *ioat_chan)
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 608/862 powerpc/math_emu/efp: Include module.h
In reply to Greg Kroah-HartmanFrom: Nathan Chancellor <[email protected]>
[ Upstream commit cfe0d370e0788625ce0df3239aad07a2506c1796 ]
When building with a recent version of clang, there are a couple of errors around the call to module_init():
arch/powerpc/math-emu/math_efp.c:927:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] module_init(spe_mathemu_init);
^
int
arch/powerpc/math-emu/math_efp.c:927:13: error: a parameter list without types is only allowed in a function definition
module_init(spe_mathemu_init);
^2 errors generated.
module_init() is a macro, which is not getting expanded because module.h is not included in this file. Add the include so that the macro can expand properly, clearing up the build failure.
--- arch/powerpc/math-emu/math_efp.c | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/math-emu/math_efp.c +1 -0
@@ -17,6 +17,7 @@#include <linux/types.h> #include <linux/prctl.h> +#include <linux/module.h> #include <linux/uaccess.h> #include <asm/reg.h>
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 565/862 scsi: libsas: Fix use-after-free bug in smp_execute_task_sg()
In reply to Greg Kroah-HartmanFrom: Duoming Zhou <[email protected]>
[ Upstream commit 46ba53c30666717cb06c2b3c5d896301cd00d0c0 ]
When executing SMP task failed, the smp_execute_task_sg() calls del_timer() to delete "slow_task->timer". However, if the timer handler sas_task_internal_timedout() is running, the del_timer() in smp_execute_task_sg() will not stop it and a UAF will happen. The process is shown below:
(thread 1) | (thread 2)
smp_execute_task_sg() | sas_task_internal_timedout()
... |
del_timer() |
... | ...
sas_free_task(task) |
kfree(task->slow_task) //FREE|
| task->slow_task->... //USEFix by calling del_timer_sync() in smp_execute_task_sg(), which makes sure the timer handler have finished before the "task->slow_task" is deallocated.
--- drivers/scsi/libsas/sas_expander.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/libsas/sas_expander.c +1 -1
@@ -67,7 +67,7 @@ static int smp_execute_task_sg(struct domain_device *dev, res = i->dft->lldd_execute_task (task,GFP_KERNEL );if (res) { -del_timer (&task->slow_task->timer); +del_timer_sync (&task->slow_task->timer);pr_notice ("executing SMP task failed:%d\n" , res);break ; }
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 579/862 mfd: sm501: Add check for platform_driver_register()
In reply to Greg Kroah-HartmanFrom: Jiasheng Jiang <[email protected]>
[ Upstream commit 8325a6c24ad78b8c1acc3c42b098ee24105d68e5 ]
As platform_driver_register() can return error numbers, it should be better to check platform_driver_register() and deal with the exception.
--- drivers/mfd/sm501.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/mfd/sm501.c +6 -1
@@ -1720,7 +1720,12 @@ static struct platform_driver sm501_plat_driver = {static int __init sm501_base_init (void ) { -platform_driver_register (&sm501_plat_driver); +int ret; + + ret =platform_driver_register (&sm501_plat_driver); +if (ret <0 ) +return ret; +return pci_register_driver (&sm501_pci_driver); }
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 859/862 io_uring/rw: ensure kiocb_end_write() is always called
In reply to Greg Kroah-HartmanFrom: Jens Axboe <[email protected]>
commit 2ec33a6c3cca9fe2465e82050c81f5ffdc508b36 upstream.
A previous commit moved the notifications and end-write handling, but it is now missing a few spots where we also want to call both of those. Without that, we can potentially be missing file notifications, and more importantly, have an imbalance in the super_block writers sem accounting.
--- io_uring/rw.c | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-)
io_uring/rw.c +29 -9
@@ -184,11 +184,34 @@ static void kiocb_end_write(struct io_ki } } +/* +* Trigger the notifications after having done some IO, and finish the write +* accounting, if any. +*/ +static void io_req_io_end (struct io_kiocb *req) +{ + struct io_rw *rw = io_kiocb_to_cmd(req, struct io_rw); + +WARN_ON (!in_task ()); + +if (rw->kiocb.ki_flags &IOCB_WRITE ) { +kiocb_end_write (req); +fsnotify_modify (req->file); + }else { +fsnotify_access (req->file); + } +} +static bool __io_complete_rw_common (struct io_kiocb *req,long res) {if (unlikely (res != req->cqe.res)) {if ((res == -EAGAIN || res == -EOPNOTSUPP ) &&io_rw_should_reissue (req)) { +/* +* Reissue will start accounting again, finish the +* current cycle. +*/ +io_req_io_end (req); req->flags |=REQ_F_REISSUE |REQ_F_PARTIAL_IO ;return true; }
@@ -214,15 +237,7 @@ static inline int io_fixup_rw_res(structstatic void io_req_rw_complete (struct io_kiocb *req,bool *locked) { - struct io_rw *rw = io_kiocb_to_cmd(req, struct io_rw); - -if (rw->kiocb.ki_flags &IOCB_WRITE ) { -kiocb_end_write (req); -fsnotify_modify (req->file); - }else { -fsnotify_access (req->file); - } - +io_req_io_end (req);io_req_task_complete (req, locked); }
@@ -267,6 +282,11 @@ static int kiocb_done(struct io_kiocb *r req->file->f_pos = rw->kiocb.ki_pos;if (ret >=0 && (rw->kiocb.ki_complete == io_complete_rw)) {if (!__io_complete_rw_common (req, ret)) { +/* +* Safe to call io_end from here as we're inline +* from the submission path. +*/ +io_req_io_end (req);io_req_set_res (req, final_ret,io_put_kbuf (req, issue_flags));return IOU_OK ;
Greg Kroah-Hartman
maintainerPATCH 174/862 KVM: x86/emulator: Fix handing of POP SS to correctly set interruptibility
In reply to Greg Kroah-HartmanFrom: Michal Luczaj <[email protected]>
commit 6aa5c47c351b22c21205c87977c84809cd015fcf upstream.
The emulator checks the wrong variable while setting the CPU interruptibility state, the target segment is embedded in the instruction opcode, not the ModR/M register. Fix the condition.
--- arch/x86/kvm/emulate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kvm/emulate.c +1 -1
@@ -1953,7 +1953,7 @@ static int em_pop_sreg(struct x86_emulatif (rc !=X86EMUL_CONTINUE )return rc; -if (ctxt->modrm_reg ==VCPU_SREG_SS ) +if (seg ==VCPU_SREG_SS ) ctxt->interruptibility =KVM_X86_SHADOW_INT_MOV_SS ;if (ctxt->op_bytes >2 )rsp_increment (ctxt, ctxt->op_bytes -2 );
Greg Kroah-Hartman
maintainerPATCH 599/862 clk: ti: Balance of_node_get() calls for of_find_node_by_name()
In reply to Greg Kroah-HartmanFrom: Liang He <[email protected]>
[ Upstream commit 058a3996b888ab60eb1857fb4fd28f1b89a9a95a ]
In ti_find_clock_provider(), of_find_node_by_name() will call of_node_put() for the 'from' argument, possibly putting the node one too many times. Let's maintain the of_node_get() from the previous search and only put when we're exiting the function early. This should avoid a misbalanced reference count on the node.
[[email protected]: Rewrite commit text, maintain reference instead of get again]
--- drivers/clk/ti/clk.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/clk/ti/clk.c +3 -2
@@ -140,11 +140,12 @@ static struct device_node *ti_find_clock_provider(struct device_node *from,break ; } } -of_node_put (from);kfree (tmp); -if (found) +if (found) { +of_node_put (from);return np; + }/* Fall back to using old node name base provider name */ return of_find_node_by_name (from, name);
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 623/862 powerpc/pseries/vas: Pass hw_cpu_id to node associativity HCALL
In reply to Greg Kroah-HartmanFrom: Haren Myneni <[email protected]>
[ Upstream commit f3e5d9e53e74d77e711a2c90a91a8b0836a9e0b3 ]
Generally the hypervisor decides to allocate a window on different VAS instances. But if user space wishes to allocate on the current VAS instance where the process is executing, the kernel has to pass associativity domain IDs to allocate VAS window HCALL.
To determine the associativity domain IDs for the current CPU, smp_processor_id() is passed to node associativity HCALL which may return H_P2 (-55) error during DLPAR CPU event. This is because Linux CPU numbers (smp_processor_id()) are not the same as the hypervisor's view of CPU numbers.
Fix the issue by passing hard_smp_processor_id() with VPHN_FLAG_VCPU flag (PAPR 14.11.6.1 H_HOME_NODE_ASSOCIATIVITY).
--- arch/powerpc/platforms/pseries/vas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/platforms/pseries/vas.c +1 -1
@@ -333,7 +333,7 @@ static struct vas_window *vas_allocate_window(int vas_id, u64 flags,* So no unpacking needs to be done. */ rc =plpar_hcall9 (H_HOME_NODE_ASSOCIATIVITY , domain, -VPHN_FLAG_VCPU ,smp_processor_id ()); +VPHN_FLAG_VCPU ,hard_smp_processor_id ());if (rc !=H_SUCCESS ) {pr_err ("H_HOME_NODE_ASSOCIATIVITY error: %d\n" , rc); goto out;
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 613/862 powerpc: dts: turris1x.dts: Fix NOR partitions labels
In reply to Greg Kroah-HartmanFrom: Pali Rohár <[email protected]>
[ Upstream commit c9986f0aefd1ae22fe9cf794d49699643f1e268b ]
Partition partition@20000 contains generic kernel image and it does not have to be used only for rescue purposes. Partition partition@1c0000 contains bootable rescue system and partition partition@340000 contains factory image/data for restoring to NAND. So change partition labels to better fit their purpose by removing possible misleading substring "rootfs" from these labels.
--- arch/powerpc/boot/dts/turris1x.dts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
arch/powerpc/boot/dts/turris1x.dts +5 -5
@@ -263,21 +263,21 @@ }; partition@20000 { - /* 1.7 MB for Rescue Linux Kernel Image */ + /* 1.7 MB for Linux Kernel Image */ reg = <0x00020000 0x001a0000>; - label = "rescue-kernel"; + label = "kernel"; }; partition@1c0000 { /* 1.5 MB for Rescue JFFS2 Root File System */ reg = <0x001c0000 0x00180000>; - label = "rescue-rootfs"; + label = "rescue"; }; partition@340000 { - /* 11 MB for TAR.XZ Backup with content of NAND Root File System */ + /* 11 MB for TAR.XZ Archive with Factory content of NAND Root File System */ reg = <0x00340000 0x00b00000>; - label = "backup-rootfs"; + label = "factory"; }; partition@e40000 {
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 618/862 powerpc/64/interrupt: Fix false warning in context tracking due to idle state
In reply to Greg Kroah-HartmanFrom: Nicholas Piggin <[email protected]>
[ Upstream commit 56adbb7a8b6cc7fc9b940829c38494e53c9e57d1 ]
Commit 171476775d32 ("context_tracking: Convert state to atomic_t") added a CONTEXT_IDLE state which can be encountered by interrupts from kernel mode in the idle thread, causing a false positive warning.
--- arch/powerpc/include/asm/interrupt.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/powerpc/include/asm/interrupt.h +2 -1
@@ -195,7 +195,8 @@ static inline void interrupt_enter_prepare(struct pt_regs *regs)* so avoid recursion. */ if (TRAP (regs) !=INTERRUPT_PROGRAM ) { -CT_WARN_ON (ct_state () !=CONTEXT_KERNEL ); +CT_WARN_ON (ct_state () !=CONTEXT_KERNEL && +ct_state () !=CONTEXT_IDLE );if (IS_ENABLED (CONFIG_PPC_IRQ_SOFT_MASK_DEBUG ))BUG_ON (is_implicit_soft_masked (regs)); }
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 615/862 powerpc: Fix fallocate and fadvise64_64 compat parameter combination
In reply to Greg Kroah-HartmanFrom: Rohan McLure <[email protected]>
[ Upstream commit 016ff72bd2090903715c0f9422a44afbb966f4ee ]
As reported[1] by Arnd, the arch-specific fadvise64_64 and fallocate compatibility handlers assume parameters are passed with 32-bit big-endian ABI. This affects the assignment of odd-even parameter pairs to the high or low words of a 64-bit syscall parameter.
Fix fadvise64_64 fallocate compat handlers to correctly swap upper/lower 32 bits conditioned on endianness.
A future patch will replace the arch-specific compat fallocate with an asm-generic implementation. This patch is intended for ease of back-port.
[1]: https://lore.kernel.org/all/[email protected]/
--- arch/powerpc/include/asm/syscalls.h | 12 ++++++++++++ arch/powerpc/kernel/sys_ppc32.c | 14 +------------- arch/powerpc/kernel/syscalls.c | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-)
arch/powerpc/include/asm/syscalls.h +12 -0
@@ -8,6 +8,18 @@#include <linux/types.h> #include <linux/compat.h> +/* +* long long munging: +* The 32 bit ABI passes long longs in an odd even register pair. +* High and low parts are swapped depending on endian mode, +* so define a macro (similar to mips linux32) to handle that. +*/ +#ifdef __LITTLE_ENDIAN__ +#define merge_64 (low, high) (((u64)high << 32) | low) +#else +#define merge_64 (high, low) (((u64)high << 32) | low) +#endif +struct rtas_args ; asmlinkage long sys_mmap(unsigned long addr, size_t len,
arch/powerpc/kernel/sys_ppc32.c +1 -13
@@ -56,18 +56,6 @@ unsigned long compat_sys_mmap2(unsigned long addr, size_t len,return sys_mmap (addr, len, prot, flags, fd, pgoff <<12 ); } -/* -* long long munging: -* The 32 bit ABI passes long longs in an odd even register pair. -* High and low parts are swapped depending on endian mode, -* so define a macro (similar to mips linux32) to handle that. -*/ -#ifdef __LITTLE_ENDIAN__ -#define merge_64 (low, high) ((u64)high << 32) | low -#else -#define merge_64 (high, low) ((u64)high << 32) | low -#endif -compat_ssize_t compat_sys_pread64 (unsigned int fd,char __user *ubuf,compat_size_t count,u32 reg6,u32 pos1,u32 pos2) {
@@ -94,7 +82,7 @@ asmlinkage int compat_sys_truncate64(const char __user * path, u32 reg4,asmlinkage long compat_sys_fallocate (int fd,int mode,u32 offset1,u32 offset2,u32 len1,u32 len2) { -return ksys_fallocate (fd, mode, ((loff_t )offset1 <<32 ) | offset2, +return ksys_fallocate (fd, mode,merge_64 (offset1, offset2),merge_64 (len1, len2)); }
arch/powerpc/kernel/syscalls.c +2 -2
@@ -98,8 +98,8 @@ long ppc64_personality(unsigned long personality)long ppc_fadvise64_64 (int fd,int advice,u32 offset_high,u32 offset_low,u32 len_high,u32 len_low) { -return ksys_fadvise64_64 (fd, (u64 )offset_high <<32 | offset_low, - (u64 )len_high <<32 | len_low, advice); +return ksys_fadvise64_64 (fd,merge_64 (offset_high, offset_low), +merge_64 (len_high, len_low), advice); }SYSCALL_DEFINE0 (switch_endian)
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 824/862 staging: rtl8723bs: fix potential memory leak in rtw_init_drv_sw()
In reply to Greg Kroah-HartmanFrom: Xiaoke Wang <[email protected]>
[ Upstream commit 5a5aa9cce621e2c0e25a1e5d72d6be1749167cc0 ]
In rtw_init_drv_sw(), there are various init functions are called to populate the padapter structure and some checks for their return value. However, except for the first one error path, the other five error paths do not properly release the previous allocated resources, which leads to various memory leaks.
This patch fixes them and keeps the success and error separate. Note that these changes keep the form of rtw_init_drv_sw() in "drivers/staging/r8188eu/os_dep/os_intfs.c". As there is no proper device to test with, no runtime testing was performed.
--- drivers/staging/rtl8723bs/os_dep/os_intfs.c | 60 +++++++++++---------- 1 file changed, 31 insertions(+), 29 deletions(-)
drivers/staging/rtl8723bs/os_dep/os_intfs.c +31 -29
@@ -664,51 +664,36 @@ void rtw_reset_drv_sw(struct adapter *padapter)u8 rtw_init_drv_sw (struct adapter *padapter) { -u8 ret8 = _SUCCESS; -rtw_init_default_value (padapter);rtw_init_hal_com_default_value (padapter); -if (rtw_init_cmd_priv (&padapter->cmdpriv)) { - ret8 = _FAIL; - goto exit; - } +if (rtw_init_cmd_priv (&padapter->cmdpriv)) +return _FAIL; padapter->cmdpriv.padapter = padapter; -if (rtw_init_evt_priv (&padapter->evtpriv)) { - ret8 = _FAIL; - goto exit; - } +if (rtw_init_evt_priv (&padapter->evtpriv)) + goto free_cmd_priv; - -if (rtw_init_mlme_priv (padapter) == _FAIL) { - ret8 = _FAIL; - goto exit; - } +if (rtw_init_mlme_priv (padapter) == _FAIL) + goto free_evt_priv;init_mlme_ext_priv (padapter); -if (_rtw_init_xmit_priv (&padapter->xmitpriv, padapter) == _FAIL) { - ret8 = _FAIL; - goto exit; - } +if (_rtw_init_xmit_priv (&padapter->xmitpriv, padapter) == _FAIL) + goto free_mlme_ext; -if (_rtw_init_recv_priv (&padapter->recvpriv, padapter) == _FAIL) { - ret8 = _FAIL; - goto exit; - } +if (_rtw_init_recv_priv (&padapter->recvpriv, padapter) == _FAIL) + goto free_xmit_priv;/* add for CONFIG_IEEE80211W, none 11w also can use */ spin_lock_init (&padapter->security_key_mutex);/* We don't need to memset padapter->XXX to zero, because adapter is allocated by vzalloc(). */ /* memset((unsigned char *)&padapter->securitypriv, 0, sizeof (struct security_priv)); */ -if (_rtw_init_sta_priv (&padapter->stapriv) == _FAIL) { - ret8 = _FAIL; - goto exit; - } +if (_rtw_init_sta_priv (&padapter->stapriv) == _FAIL) + goto free_recv_priv; padapter->stapriv.padapter = padapter; padapter->setband =GHZ24_50 ;
@@ -719,9 +704,26 @@ u8 rtw_init_drv_sw(struct adapter *padapter)rtw_hal_dm_init (padapter); -exit: +return _SUCCESS; + +free_recv_priv: +_rtw_free_recv_priv (&padapter->recvpriv); + +free_xmit_priv: +_rtw_free_xmit_priv (&padapter->xmitpriv); + +free_mlme_ext: +free_mlme_ext_priv (&padapter->mlmeextpriv); -return ret8; +rtw_free_mlme_priv (&padapter->mlmepriv); + +free_evt_priv: +rtw_free_evt_priv (&padapter->evtpriv); + +free_cmd_priv: +rtw_free_cmd_priv (&padapter->cmdpriv); + +return _FAIL; }void rtw_cancel_all_timer (struct adapter *padapter)
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 596/862 clk: bcm2835: fix bcm2835_clock_rate_from_divisor declaration
In reply to Greg Kroah-HartmanFrom: Stefan Wahren <[email protected]>
[ Upstream commit 0b919a3728691c172312dee99ba654055ccd8c84 ]
The return value of bcm2835_clock_rate_from_divisor is always unsigned and also all caller expect this. So fix the declaration accordingly.
--- drivers/clk/bcm/clk-bcm2835.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/clk/bcm/clk-bcm2835.c +3 -3
@@ -966,9 +966,9 @@ static u32 bcm2835_clock_choose_div(struct clk_hw *hw,return div; } -static long bcm2835_clock_rate_from_divisor (struct bcm2835_clock *clock, -unsigned long parent_rate, -u32 div) +static unsigned long bcm2835_clock_rate_from_divisor (struct bcm2835_clock *clock, +unsigned long parent_rate, +u32 div) {const struct bcm2835_clock_data *data = clock->data;u64 temp;
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 566/862 scsi: pm8001: Fix running_req for internal abort commands
In reply to Greg Kroah-HartmanFrom: John Garry <[email protected]>
[ Upstream commit d8c22c4697c11ed28062afe3c2b377025be11a23 ]
Disabling the remote phy for a SATA disk causes a hang:
root@(none)$ more /sys/class/sas_phy/phy-0:0:8/target_port_protocols sata root@(none)$ echo 0 > sys/class/sas_phy/phy-0:0:8/enable root@(none)$ [ 67.855950] sas: ex 500e004aaaaaaa1f phy08 change count has changed [ 67.920585] sd 0:0:2:0: [sdc] Synchronizing SCSI cache [ 67.925780] sd 0:0:2:0: [sdc] Synchronize Cache(10) failed: Result: hostbyte=0x04 driverbyte=DRIVER_OK [ 67.935094] sd 0:0:2:0: [sdc] Stopping disk [ 67.939305] sd 0:0:2:0: [sdc] Start/Stop Unit failed: Result: hostbyte=0x04 driverbyte=DRIVER_OK ... [ 123.998998] INFO: task kworker/u192:1:642 blocked for more than 30 seconds. [ 124.005960] Not tainted 6.0.0-rc1-205202-gf26f8f761e83 #218 [ 124.012049] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 124.019872] task:kworker/u192:1 state:D stack:0 pid: 642 ppid: 2 flags:0x00000008 [ 124.028223] Workqueue: 0000:04:00.0_event_q sas_port_event_worker [ 124.034319] Call trace: [ 124.036758] __switch_to+0x128/0x278 [ 124.040333] __schedule+0x434/0xa58 [ 124.043820] schedule+0x94/0x138 [ 124.047045] schedule_timeout+0x2fc/0x368 [ 124.051052] wait_for_completion+0xdc/0x200 [ 124.055234] __flush_workqueue+0x1a8/0x708 [ 124.059328] sas_porte_broadcast_rcvd+0xa8/0xc0 [ 124.063858] sas_port_event_worker+0x60/0x98 [ 124.068126] process_one_work+0x3f8/0x660 [ 124.072134] worker_thread+0x70/0x700 [ 124.075793] kthread+0x1a4/0x1b8 [ 124.079014] ret_from_fork+0x10/0x20
The issue is that the per-device running_req read in pm8001_dev_gone_notify() never goes to zero and we never make progress. This is caused by missing accounting for running_req for when an internal abort command completes.
In commit 2cbbf489778e ("scsi: pm8001: Use libsas internal abort support") we started to send internal abort commands as a proper sas_task. In this when we deliver a sas_task to HW the per-device running_req is incremented in pm8001_queue_command(). However it is never decremented for internal abort commnds, so decrement in pm8001_mpi_task_abort_resp().
--- drivers/scsi/pm8001/pm8001_hwi.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/scsi/pm8001/pm8001_hwi.c +4 -0
@@ -3612,6 +3612,10 @@ int pm8001_mpi_task_abort_resp(struct pm8001_hba_info *pm8001_ha, void *piomb)pm8001_dbg (pm8001_ha,FAIL ," TASK NULL. RETURNING !!!\n" );return -1 ; } + +if (t->task_proto ==SAS_PROTOCOL_INTERNAL_ABORT ) +atomic_dec (&pm8001_dev->running_req); + ts = &t->task_status;if (status !=0 ) pm8001_dbg(pm8001_ha, FAIL, "task abort failed status 0x%x ,tag = 0x%x, scp= 0x%x\n",
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 822/862 Revert "usb: storage: Add quirk for Samsung Fit flash"
In reply to Greg Kroah-HartmanFrom: sunghwan jung <[email protected]>
[ Upstream commit ad5dbfc123e6ffbbde194e2a4603323e09f741ee ]
This reverts commit 86d92f5465958752481269348d474414dccb1552, which fix the timeout issue for "Samsung Fit Flash".
But the commit affects not only "Samsung Fit Flash" but also other usb storages that use the same controller and causes severe performance regression.
# hdparm -t /dev/sda (without the quirk) Timing buffered disk reads: 622 MB in 3.01 seconds = 206.66 MB/sec
# hdparm -t /dev/sda (with the quirk) Timing buffered disk reads: 220 MB in 3.00 seconds = 73.32 MB/sec
The commit author mentioned that "Issue was reproduced after device has bad block", so this quirk should be applied when we have the timeout issue with a device that has bad blocks.
We revert the commit so that we apply this quirk by adding kernel paramters using a bootloader or other ways when we really need it, without the performance regression with devices that don't have the issue.
--- drivers/usb/storage/unusual_devs.h | 6 ------ 1 file changed, 6 deletions(-)
drivers/usb/storage/unusual_devs.h +0 -6
@@ -1275,12 +1275,6 @@ UNUSUAL_DEV( 0x090a, 0x1200, 0x0000, 0x9999, USB_SC_RBC, USB_PR_BULK, NULL, 0 ), -UNUSUAL_DEV (0x090c ,0x1000 ,0x1100 ,0x1100 , -"Samsung" , -"Flash Drive FIT" , -USB_SC_DEVICE ,USB_PR_DEVICE ,NULL , -US_FL_MAX_SECTORS_64 ), -/* aeb */ UNUSUAL_DEV( 0x090c, 0x1132, 0x0000, 0xffff, "Feiya",
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 857/862 drm/amd/display: Fix build breakage with CONFIG_DEBUG_FS=n
In reply to Greg Kroah-HartmanFrom: Nathan Chancellor <[email protected]>
commit 2130b87b2273389cafe6765bf09ef564cda01407 upstream.
After commit 8799c0be89eb ("drm/amd/display: Fix vblank refcount in vrr transition"), a build with CONFIG_DEBUG_FS=n is broken due to a misplaced brace, along the lines of:
In file included from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_trace.h:39,
from drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:41:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: At top level:
./include/drm/drm_atomic.h:864:9: error: expected identifier or ‘(’ before ‘for’
864 | for ((__i) = 0; \
| ^~~
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:8317:9: note: in expansion of macro ‘for_each_new_crtc_in_state’
8317 | for_each_new_crtc_in_state(state, crtc, new_crtc_state, j)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~Move the brace within the #ifdef so that the file can be built with or without CONFIG_DEBUG_FS.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -1
@@ -8329,8 +8329,8 @@ static void amdgpu_dm_atomic_commit_tail crtc, dm_new_crtc_state, cur_crc_src)) DRM_DEBUG_DRIVER("Failed to configure crc source"); } -#endif } +#endif }for_each_new_crtc_in_state (state, crtc, new_crtc_state, j)
Greg Kroah-Hartman
maintainerPATCH 440/862 arm64: dts: qcom: sm8350-sagami: correct TS pin property
In reply to Greg Kroah-HartmanFrom: Krzysztof Kozlowski <[email protected]>
[ Upstream commit c9c53d1f4329564f98ed0decfe3c377c6639ec5d ]
The pin configuration is selected with "pins", not "pin" property.
--- arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sm8350-sony-xperia-sagami.dtsi +1 -1
@@ -223,7 +223,7 @@ gpio-reserved-ranges = <44 4>; ts_int_default: ts-int-default { - pin = "gpio23"; + pins = "gpio23"; function = "gpio"; drive-strength = <2>; bias-disable;
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 851/862 blk-wbt: fix that rwb->wc is always set to 1 in wbt_init()
In reply to Greg Kroah-HartmanFrom: Yu Kuai <[email protected]>
commit 285febabac4a16655372d23ff43e89ff6f216691 upstream.
commit 8c5035dfbb94 ("blk-wbt: call rq_qos_add() after wb_normal is initialized") moves wbt_set_write_cache() before rq_qos_add(), which is wrong because wbt_rq_qos() is still NULL.
Fix the problem by removing wbt_set_write_cache() and setting 'rwb->wc' directly. Noted that this patch also remove the redundant setting of 'rab->wc'.
--- block/blk-wbt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
block/blk-wbt.c +1 -2
@@ -841,12 +841,11 @@ int wbt_init(struct request_queue *q) rwb->last_comp = rwb->last_issue = jiffies; rwb->win_nsec =RWB_WINDOW_NSEC ; rwb->enable_state =WBT_STATE_ON_DEFAULT ; - rwb->wc =1 ; + rwb->wc =test_bit (QUEUE_FLAG_WC , &q->queue_flags); rwb->rq_depth.default_depth =RWB_DEF_DEPTH ; rwb->min_lat_nsec =wbt_default_latency_nsec (q);wbt_queue_depth_changed (&rwb->rqos); -wbt_set_write_cache (q,test_bit (QUEUE_FLAG_WC , &q->queue_flags));/* * Assign rwb and add the stats callback.
Greg Kroah-Hartman
maintainerPATCH 583/862 clk: mediatek: fix unregister function in mtk_clk_register_dividers cleanup
In reply to Greg Kroah-HartmanFrom: Chen-Yu Tsai <[email protected]>
[ Upstream commit 20f7a0dba9075fb0e3d645495bc24d7025b58de1 ]
When the cleanup paths for the various clk register APIs in the MediaTek clk library were added, the one in the dividers type used the wrong type of unregister function. This would result in incorrect dereferencing of the clk pointer and freeing of invalid pointers.
Fix this by switching to the correct type of clk unregistration call.
--- drivers/clk/mediatek/clk-mtk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/mediatek/clk-mtk.c +1 -1
@@ -393,7 +393,7 @@ int mtk_clk_register_dividers(const struct mtk_clk_divider *mcds, int num,if (IS_ERR_OR_NULL (clk_data->hws[mcd->id]))continue ; -mtk_clk_unregister_composite (clk_data->hws[mcd->id]); +clk_hw_unregister_divider (clk_data->hws[mcd->id]); clk_data->hws[mcd->id] =ERR_PTR (-ENOENT ); }
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 434/862 ARM: dts: turris-omnia: Fix mpp26 pin name and comment
In reply to Greg Kroah-HartmanFrom: Marek Behún <[email protected]>
[ Upstream commit 49e93898f0dc177e645c22d0664813567fd9ec00 ]
There is a bug in Turris Omnia's schematics, whereupon the MPP[26] pin, which is routed to CN11 pin header, is documented as SPI CS1, but MPP[26] pin does not support this function. Instead it controls chip select 2 if in "spi0" mode.
Fix the name of the pin node in pinctrl node and fix the comment in SPI node.
--- arch/arm/boot/dts/armada-385-turris-omnia.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/armada-385-turris-omnia.dts +2 -2
@@ -476,7 +476,7 @@ marvell,function = "spi0"; }; - spi0cs1_pins: spi0cs1-pins { + spi0cs2_pins: spi0cs2-pins { marvell,pins = "mpp26"; marvell,function = "spi0"; };
@@ -511,7 +511,7 @@ }; }; - /* MISO, MOSI, SCLK and CS1 are routed to pin header CN11 */ + /* MISO, MOSI, SCLK and CS2 are routed to pin header CN11 */ }; &uart0 {
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 571/862 RDMA/rxe: Set pd early in mr alloc routines
In reply to Greg Kroah-HartmanFrom: Bob Pearson <[email protected]>
[ Upstream commit 58651bbb30f87dab474eff31ab564391aa6ea1f3 ]
Move setting of pd in mr objects ahead of any possible errors so that it will always be set in rxe_mr_cleanup() to avoid seg faults when rxe_put(mr_pd(mr)) is called.
--- drivers/infiniband/sw/rxe/rxe_loc.h | 6 +++--- drivers/infiniband/sw/rxe/rxe_mr.c | 11 ++++------- drivers/infiniband/sw/rxe/rxe_verbs.c | 12 +++++++----- 3 files changed, 14 insertions(+), 15 deletions(-)
drivers/infiniband/sw/rxe/rxe_loc.h +3 -3
@@ -64,10 +64,10 @@ int rxe_mmap(struct ib_ucontext *context, struct vm_area_struct *vma);/* rxe_mr.c */ u8 rxe_get_next_key (u32 last_key); -void rxe_mr_init_dma (struct rxe_pd *pd,int access,struct rxe_mr *mr); -int rxe_mr_init_user (struct rxe_pd *pd,u64 start,u64 length,u64 iova, +void rxe_mr_init_dma (int access,struct rxe_mr *mr); +int rxe_mr_init_user (struct rxe_dev *rxe,u64 start,u64 length,u64 iova,int access,struct rxe_mr *mr); -int rxe_mr_init_fast (struct rxe_pd *pd,int max_pages,struct rxe_mr *mr); +int rxe_mr_init_fast (int max_pages,struct rxe_mr *mr);int rxe_mr_copy (struct rxe_mr *mr,u64 iova,void *addr,int length,enum rxe_mr_copy_dir dir); int copy_data(struct rxe_pd *pd, int access, struct rxe_dma_info *dma,
drivers/infiniband/sw/rxe/rxe_mr.c +4 -7
@@ -103,17 +103,16 @@ static int rxe_mr_alloc(struct rxe_mr *mr, int num_buf)return -ENOMEM ; } -void rxe_mr_init_dma (struct rxe_pd *pd,int access,struct rxe_mr *mr) +void rxe_mr_init_dma (int access,struct rxe_mr *mr) {rxe_mr_init (access, mr); - mr->ibmr.pd = &pd->ibpd; mr->access = access; mr->state =RXE_MR_STATE_VALID ; mr->type =IB_MR_TYPE_DMA ; } -int rxe_mr_init_user (struct rxe_pd *pd,u64 start,u64 length,u64 iova, +int rxe_mr_init_user (struct rxe_dev *rxe,u64 start,u64 length,u64 iova,int access,struct rxe_mr *mr) {struct rxe_map **map;
@@ -125,7 +124,7 @@ int rxe_mr_init_user(struct rxe_pd *pd, u64 start, u64 length, u64 iova,int err;int i; - umem =ib_umem_get (pd->ibpd.device, start, length, access); + umem =ib_umem_get (&rxe->ib_dev, start, length, access);if (IS_ERR (umem)) {pr_warn ("%s: Unable to pin memory region err = %d\n" , __func__, (int )PTR_ERR (umem));
@@ -175,7 +174,6 @@ int rxe_mr_init_user(struct rxe_pd *pd, u64 start, u64 length, u64 iova, } } - mr->ibmr.pd = &pd->ibpd; mr->umem = umem; mr->access = access; mr->length = length;
@@ -197,7 +195,7 @@ int rxe_mr_init_user(struct rxe_pd *pd, u64 start, u64 length, u64 iova,return err; } -int rxe_mr_init_fast (struct rxe_pd *pd,int max_pages,struct rxe_mr *mr) +int rxe_mr_init_fast (int max_pages,struct rxe_mr *mr) {int err;
@@ -208,7 +206,6 @@ int rxe_mr_init_fast(struct rxe_pd *pd, int max_pages, struct rxe_mr *mr)if (err) goto err1; - mr->ibmr.pd = &pd->ibpd; mr->max_buf = max_pages; mr->state =RXE_MR_STATE_FREE ; mr->type =IB_MR_TYPE_MEM_REG ;
drivers/infiniband/sw/rxe/rxe_verbs.c +7 -5
@@ -903,7 +903,9 @@ static struct ib_mr *rxe_get_dma_mr(struct ib_pd *ibpd, int access)return ERR_PTR (-ENOMEM );rxe_get (pd); -rxe_mr_init_dma (pd, access, mr); + mr->ibmr.pd = ibpd; + +rxe_mr_init_dma (access, mr);rxe_finalize (mr);return &mr->ibmr;
@@ -928,8 +930,9 @@ static struct ib_mr *rxe_reg_user_mr(struct ib_pd *ibpd,rxe_get (pd); + mr->ibmr.pd = ibpd; - err =rxe_mr_init_user (pd, start, length, iova, access, mr); + err =rxe_mr_init_user (rxe, start, length, iova, access, mr);if (err) goto err3;
@@ -938,7 +941,6 @@ static struct ib_mr *rxe_reg_user_mr(struct ib_pd *ibpd,return &mr->ibmr; err3: -rxe_put (pd);rxe_cleanup (mr); err2:return ERR_PTR (err);
@@ -962,8 +964,9 @@ static struct ib_mr *rxe_alloc_mr(struct ib_pd *ibpd, enum ib_mr_type mr_type, }rxe_get (pd); + mr->ibmr.pd = ibpd; - err =rxe_mr_init_fast (pd, max_num_sg, mr); + err =rxe_mr_init_fast (max_num_sg, mr);if (err) goto err2;
@@ -972,7 +975,6 @@ static struct ib_mr *rxe_alloc_mr(struct ib_pd *ibpd, enum ib_mr_type mr_type,return &mr->ibmr; err2: -rxe_put (pd);rxe_cleanup (mr); err1:return ERR_PTR (err);
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 167/862 thunderbolt: Explicitly enable lane adapter hotplug events at startup
In reply to Greg Kroah-HartmanFrom: Mario Limonciello <[email protected]>
commit 5d2569cb4a65c373896ec0217febdf88739ed295 upstream.
Software that has run before the USB4 CM in Linux runs may have disabled hotplug events for a given lane adapter.
Other CMs such as that one distributed with Windows 11 will enable hotplug events. Do the same thing in the Linux CM which fixes hotplug events on "AMD Pink Sardine".
--- drivers/thunderbolt/switch.c | 24 ++++++++++++++++++++++++ drivers/thunderbolt/tb.h | 1 + drivers/thunderbolt/tb_regs.h | 1 + drivers/thunderbolt/usb4.c | 20 ++++++++++++++++++++ 4 files changed, 46 insertions(+)
drivers/thunderbolt/switch.c +24 -0
@@ -2822,6 +2822,26 @@ static void tb_switch_credits_init(structb_sw_info (sw,"failed to determine preferred buffer allocation, using defaults\n" ); } +static int tb_switch_port_hotplug_enable (struct tb_switch *sw) +{ +struct tb_port *port; + +if (tb_switch_is_icm (sw)) +return 0 ; + +tb_switch_for_each_port (sw, port) { +int res; + +if (!port->cap_usb4) +continue ; + + res =usb4_port_hotplug_enable (port); +if (res) +return res; + } +return 0 ; +} +/** * tb_switch_add() - Add a switch to the domain * @sw: Switch to add
@@ -2891,6 +2911,10 @@ int tb_switch_add(struct tb_switch *sw)return ret; } + ret =tb_switch_port_hotplug_enable (sw); +if (ret) +return ret; + ret =device_add (&sw->dev);if (ret) {dev_err (&sw->dev,"failed to add device: %d\n" , ret);
drivers/thunderbolt/tb.h +1 -0
@@ -1174,6 +1174,7 @@ int usb4_switch_add_ports(struct tb_switvoid usb4_switch_remove_ports (struct tb_switch *sw);int usb4_port_unlock (struct tb_port *port); +int usb4_port_hotplug_enable (struct tb_port *port);int usb4_port_configure (struct tb_port *port);void usb4_port_unconfigure (struct tb_port *port);int usb4_port_configure_xdomain (struct tb_port *port);
drivers/thunderbolt/tb_regs.h +1 -0
@@ -308,6 +308,7 @@ struct tb_regs_port_header {#define ADP_CS_5 0x05#define ADP_CS_5_LCA_MASK GENMASK(28, 22)#define ADP_CS_5_LCA_SHIFT 22 +#define ADP_CS_5_DHP BIT(31)/* TMU adapter registers */ #define TMU_ADP_CS_3 0x03
drivers/thunderbolt/usb4.c +20 -0
@@ -1046,6 +1046,26 @@ int usb4_port_unlock(struct tb_port *porreturn tb_port_write (port, &val,TB_CFG_PORT ,ADP_CS_4 ,1 ); } +/** +* usb4_port_hotplug_enable() - Enables hotplug for a port +* @port: USB4 port to operate on +* +* Enables hot plug events on a given port. This is only intended +* to be used on lane, DP-IN, and DP-OUT adapters. +*/ +int usb4_port_hotplug_enable (struct tb_port *port) +{ +int ret; +u32 val; + + ret =tb_port_read (port, &val,TB_CFG_PORT ,ADP_CS_5 ,1 ); +if (ret) +return ret; + + val &= ~ADP_CS_5_DHP ; +return tb_port_write (port, &val,TB_CFG_PORT ,ADP_CS_5 ,1 ); +} +static int usb4_port_set_configured (struct tb_port *port,bool configured) {int ret;
Greg Kroah-Hartman
maintainerPATCH 209/862 sh: machvec: Use char[] for section boundaries
In reply to Greg Kroah-HartmanFrom: Kees Cook <[email protected]>
[ Upstream commit c5783af354688b24abd359f7086c282ec74de993 ]
As done for other sections, define the extern as a character array, which relaxes many of the compiler-time object size checks, which would otherwise assume it's a single long. Solves the following build error:
arch/sh/kernel/machvec.c: error: array subscript 'struct sh_machine_vector[0]' is partly outside array bounds of 'long int[1]' [-Werror=array-bounds]: => 105:33
--- arch/sh/include/asm/sections.h | 2 +- arch/sh/kernel/machvec.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-)
arch/sh/include/asm/sections.h +1 -1
@@ -4,7 +4,7 @@#include <asm-generic/sections.h> -extern long __machvec_start, __machvec_end; +extern char __machvec_start[], __machvec_end[];extern char __uncached_start, __uncached_end;extern char __start_eh_frame[], __stop_eh_frame[];
arch/sh/kernel/machvec.c +5 -5
@@ -20,8 +20,8 @@#define MV_NAME_SIZE 32#define for_each_mv (mv) \ - for ((mv) = (struct sh_machine_vector *)&__machvec_start; \ - (mv) && (unsigned long)(mv) < (unsigned long)&__machvec_end; \ + for ((mv) = (struct sh_machine_vector *)__machvec_start; \ + (mv) && (unsigned long)(mv) < (unsigned long)__machvec_end; \ (mv)++)static struct sh_machine_vector *__init get_mv_byname (const char *name)
@@ -87,8 +87,8 @@ void __init sh_mv_setup(void)if (!machvec_selected) {unsigned long machvec_size; - machvec_size = ((unsigned long )&__machvec_end - - (unsigned long )&__machvec_start); + machvec_size = ((unsigned long )__machvec_end - + (unsigned long )__machvec_start);/* * Sanity check for machvec section alignment. Ensure
@@ -102,7 +102,7 @@ void __init sh_mv_setup(void)* vector (usually the only one) from .machvec.init. */ if (machvec_size >=sizeof (struct sh_machine_vector )) - sh_mv = *(struct sh_machine_vector *)&__machvec_start; + sh_mv = *(struct sh_machine_vector *)__machvec_start; }pr_notice ("Booting machvec: %s\n" ,get_system_type ());
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 78/862 drm/udl: Restore display mode on resume
In reply to Greg Kroah-HartmanFrom: Takashi Iwai <[email protected]>
commit 6d6e732835db92e66c28dbcf258a7e3d3c71420d upstream.
Restore the display mode whne resuming from suspend. Currently, the display remains dark.
On resume, the CRTC's mode does not change, but the 'active' flag changes to 'true'. Taking this into account when considering a mode switch restores the display mode.
The bug is reproducable by using Gnome with udl and observing the adapter's suspend/resume behavior.
Actually, the whole check added in udl_simple_display_pipe_enable() about the crtc_state->mode_changed was bogus. We should drop the whole check and always apply the mode change in this function.
[ tiwai -- Drop the mode_changed check entirely instead, per Daniel's
suggestion ]
--- drivers/gpu/drm/udl/udl_modeset.c | 3 --- 1 file changed, 3 deletions(-)
drivers/gpu/drm/udl/udl_modeset.c +0 -3
@@ -382,9 +382,6 @@ udl_simple_display_pipe_enable(struct drudl_handle_damage (fb, &shadow_plane_state->data[0 ],0 ,0 , fb->width, fb->height); -if (!crtc_state->mode_changed) -return ; -/* enable display */ udl_crtc_write_mode_to_hw (crtc); }
Greg Kroah-Hartman
maintainerPATCH 634/862 iommu/omap: Fix buffer overflow in debugfs
In reply to Greg Kroah-HartmanFrom: Dan Carpenter <[email protected]>
[ Upstream commit 184233a5202786b20220acd2d04ddf909ef18f29 ]
There are two issues here:
1) The "len" variable needs to be checked before the very first write. Otherwise if omap2_iommu_dump_ctx() with "bytes" less than 32 it is a buffer overflow.
2) The snprintf() function returns the number of bytes that *would* have been copied if there were enough space. But we want to know the number of bytes which were *actually* copied so use scnprintf() instead.
--- drivers/iommu/omap-iommu-debug.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/iommu/omap-iommu-debug.c +3 -3
@@ -32,12 +32,12 @@ static inline bool is_omap_iommu_detached(struct omap_iommu *obj)ssize_t bytes; \const char *str ="%20s: %08x\n" ; \const int maxcol =32 ; \ - bytes =snprintf (p, maxcol, str,__stringify (name), \ +if (len < maxcol) \ + goto out; \ + bytes =scnprintf (p, maxcol, str,__stringify (name), \ iommu_read_reg(obj, MMU_##name)); \ p += bytes; \ len -= bytes; \ -if (len < maxcol) \ - goto out; \ }while (0 ) static ssize_t
Signature · 1 line
2.35.1
Re: [PATCH 6.0 524/862] phy: qcom-qmp-pcie: fix memleak on probe deferral
In reply to Greg Kroah-HartmanQuoted 9 lines · Greg Kroah-Hartman
From: Johan Hovold <[email protected]>
[ Upstream commit
4be26f695ffa458b065b7942dbff9393bf0836ea]Switch to using the device-managed
of_iomaphelper to avoid leaking memory on probe deferral and driver unbind.Note that this helper checks for already reserved regions and may fail if there are multiple devices claiming the same memory.
In case of a malformed dts, the above new check can prevent the driver from binding. Fixing tiny memory leaks on driver unbind does not outweigh that risk and, again, the stable tag was left out on purpose.
Please drop.
Quoted 69 lines
Fixes e78f3d15e115 ("phy: qcom-qmp: new qmp phy driver for qcom-chipsets")Signed-off-by Johan Hovold <[email protected]>Signed-off-by Vinod Koul <[email protected]>Signed-off-by Sasha Levin <[email protected]>--- drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 34 ++++++++++++------------ 1 file changed, 17 insertions(+), 17 deletions(-)drivers/phy/qualcomm/phy-qcom-qmp-pcie.c +15
-15@@ -2329,17 +2329,17 @@ int qcom_qmp_phy_pcie_create(struct device *dev, struct device_node *np, int id,* For dual lane PHYs: tx2 -> 3, rx2 -> 4, pcs_misc (optional) -> 5 * For single lane PHYs: pcs_misc (optional) -> 3. */ - qphy->tx =of_iomap (np,0 ); -if (!qphy->tx) -return -ENOMEM ; + qphy->tx =devm_of_iomap (dev, np,0 ,NULL ); +if (IS_ERR (qphy->tx)) +return PTR_ERR (qphy->tx); - qphy->rx =of_iomap (np,1 ); -if (!qphy->rx) -return -ENOMEM ; + qphy->rx =devm_of_iomap (dev, np,1 ,NULL ); +if (IS_ERR (qphy->rx)) +return PTR_ERR (qphy->rx); - qphy->pcs =of_iomap (np,2 ); -if (!qphy->pcs) -return -ENOMEM ; + qphy->pcs =devm_of_iomap (dev, np,2 ,NULL ); +if (IS_ERR (qphy->pcs)) +return PTR_ERR (qphy->pcs);/* * If this is a dual-lane PHY, then there should be registers for the @@ -2348,9 +2348,9 @@ int qcom_qmp_phy_pcie_create(struct device *dev, struct device_node *np, int id,* offset from the first lane. */ if (cfg->is_dual_lane_phy) { - qphy->tx2 =of_iomap (np,3 ); - qphy->rx2 =of_iomap (np,4 ); -if (!qphy->tx2 || !qphy->rx2) { + qphy->tx2 =devm_of_iomap (dev, np,3 ,NULL ); + qphy->rx2 =devm_of_iomap (dev, np,4 ,NULL ); +if (IS_ERR (qphy->tx2) ||IS_ERR (qphy->rx2)) {dev_warn (dev,"Underspecified device tree, falling back to legacy register regions\n" );@@ -2360,20 +2360,20 @@ int qcom_qmp_phy_pcie_create(struct device *dev, struct device_node *np, int id, qphy->rx2 = qphy->rx +QMP_PHY_LEGACY_LANE_STRIDE ; }else { - qphy->pcs_misc =of_iomap (np,5 ); + qphy->pcs_misc =devm_of_iomap (dev, np,5 ,NULL ); } }else { - qphy->pcs_misc =of_iomap (np,3 ); + qphy->pcs_misc =devm_of_iomap (dev, np,3 ,NULL ); } -if (!qphy->pcs_misc && +if (IS_ERR (qphy->pcs_misc) &&of_device_is_compatible (dev->of_node,"qcom,ipq6018-qmp-pcie-phy" ))
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c int qcom_qmp_phy_pcie_create(struct device *dev, struct device_node *np, int id, · line 2379
Quoted 10 lines
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c +2
-2qphy->pcs_misc = qphy->pcs +0x400 ; -if (!qphy->pcs_misc) { +if (IS_ERR (qphy->pcs_misc)) {if (cfg->pcs_misc_tbl || cfg->pcs_misc_tbl_sec) -return -EINVAL ; +return PTR_ERR (qphy->pcs_misc); }snprintf (prop_name,sizeof (prop_name),"pipe%d" , id);
Johan
Greg Kroah-Hartman
maintainerPATCH 407/862 ASoC: stm: Fix PM disable depth imbalance in stm32_i2s_probe
In reply to Greg Kroah-HartmanFrom: Zhang Qilong <[email protected]>
[ Upstream commit 93618e5e05a3ce4aa6750268c5025bdb4cb7dc6e ]
The pm_runtime_enable will increase power disable depth. Thus a pairing decrement is needed on the error handling path to keep it balanced according to context. We fix it by moving pm_runtime_enable to the endding of stm32_i2s_probe.
--- sound/soc/stm/stm32_i2s.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/stm/stm32_i2s.c +2 -2
@@ -1136,8 +1136,6 @@ static int stm32_i2s_probe(struct platform_device *pdev)return dev_err_probe (&pdev->dev,PTR_ERR (i2s->regmap),"Regmap init error\n" ); -pm_runtime_enable (&pdev->dev); - ret =snd_dmaengine_pcm_register (&pdev->dev, &stm32_i2s_pcm_config,0 );if (ret)return dev_err_probe (&pdev->dev, ret,"PCM DMA register error\n" );
@@ -1180,6 +1178,8 @@ static int stm32_i2s_probe(struct platform_device *pdev) FIELD_GET(I2S_VERR_MIN_MASK, val)); } +pm_runtime_enable (&pdev->dev); +return ret; error:
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 532/862 mtd: rawnand: intel: Remove undocumented compatible string
In reply to Greg Kroah-HartmanFrom: Martin Blumenstingl <[email protected]>
[ Upstream commit 68c02ebaa34d41063ccbbc789a352537ddc3cd8a ]
The "intel,nand-controller" compatible string is not part of the dt-bindings. Remove it from the driver as it's not supposed to be used without any documentation for it.
--- drivers/mtd/nand/raw/intel-nand-controller.c | 1 - 1 file changed, 1 deletion(-)
drivers/mtd/nand/raw/intel-nand-controller.c +0 -1
@@ -723,7 +723,6 @@ static int ebu_nand_remove(struct platform_device *pdev) }static const struct of_device_id ebu_nand_match[] = { - { .compatible ="intel,nand-controller" }, { .compatible ="intel,lgm-ebunand" }, {} };
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 529/862 phy: amlogic: phy-meson-axg-mipi-pcie-analog: Hold reference returned by of_get_parent()
In reply to Greg Kroah-HartmanFrom: Liang He <[email protected]>
[ Upstream commit c4c349be07aeec5f397a349046dc5fc0f2657691 ]
As the of_get_parent() will increase the refcount of the node->parent and the reference will be discarded, so we should hold the reference with which we can decrease the refcount when done.
--- drivers/phy/amlogic/phy-meson-axg-mipi-pcie-analog.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/phy/amlogic/phy-meson-axg-mipi-pcie-analog.c +4 -2
@@ -197,7 +197,7 @@ static int phy_axg_mipi_pcie_analog_probe(struct platform_device *pdev)struct phy_provider *phy;struct device *dev = &pdev->dev;struct phy_axg_mipi_pcie_analog_priv *priv; -struct device_node *np = dev->of_node; +struct device_node *np = dev->of_node, *parent_np;struct regmap *map;int ret;
@@ -206,7 +206,9 @@ static int phy_axg_mipi_pcie_analog_probe(struct platform_device *pdev)return -ENOMEM ;/* Get the hhi system controller node */ - map =syscon_node_to_regmap (of_get_parent (dev->of_node)); + parent_np =of_get_parent (dev->of_node); + map =syscon_node_to_regmap (parent_np); +of_node_put (parent_np);if (IS_ERR (map)) {dev_err (dev,"failed to get HHI regmap\n" );
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 427/862 arm64: dts: qcom: sc7280: Cleanup the lpasscc node
In reply to Greg Kroah-HartmanFrom: Satya Priya <[email protected]>
[ Upstream commit 8c7ebabd2e3f33ef24378d3cac00d3e59886cecb ]
Remove "cc" regmap from lpasscc node which is overlapping with the lpass_aon regmap.
--- arch/arm64/boot/dts/qcom/sc7280.dtsi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/qcom/sc7280.dtsi +2 -3
@@ -2168,9 +2168,8 @@ lpasscc: lpasscc@3000000 { compatible = "qcom,sc7280-lpasscc"; reg = <0 0x03000000 0 0x40>, - <0 0x03c04000 0 0x4>, - <0 0x03389000 0 0x24>; - reg-names = "qdsp6ss", "top_cc", "cc"; + <0 0x03c04000 0 0x4>; + reg-names = "qdsp6ss", "top_cc"; clocks = <&gcc GCC_CFG_NOC_LPASS_CLK>; clock-names = "iface"; #clock-cells = <1>;
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 617/862 powerpc/64s: Fix GENERIC_CPU build flags for PPC970 / G5
In reply to Greg Kroah-HartmanFrom: Nicholas Piggin <[email protected]>
[ Upstream commit 58ec7f06b74e0d6e76c4110afce367c8b5f0837d ]
Big-endian GENERIC_CPU supports 970, but builds with -mcpu=power5. POWER5 is ISA v2.02 whereas 970 is v2.01 plus Altivec. 2.02 added the popcntb instruction which a compiler might use.
Use -mcpu=power4.
--- arch/powerpc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/Makefile +1 -1
@@ -152,7 +152,7 @@ CFLAGS-$(CONFIG_GENERIC_CPU) += -mcpu=power8 CFLAGS-$(CONFIG_GENERIC_CPU) += $(call cc-option,-mtune=power9,-mtune=power8) else CFLAGS-$(CONFIG_GENERIC_CPU) += $(call cc-option,-mtune=power7,$(call cc-option,-mtune=power5)) -CFLAGS-$(CONFIG_GENERIC_CPU) += $(call cc-option,-mcpu=power5,-mcpu=power4) +CFLAGS-$(CONFIG_GENERIC_CPU) += -mcpu=power4 endif else ifdef CONFIG_PPC_BOOK3E_64 CFLAGS-$(CONFIG_GENERIC_CPU) += -mcpu=powerpc64
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 637/862 crypto: inside-secure - Change swab to swab32
In reply to Greg Kroah-HartmanFrom: Peter Harliman Liem <[email protected]>
[ Upstream commit 664593407e936b6438fbfaaf98876910fd31cf9a ]
The use of swab() is causing failures in 64-bit arch, as it translates to __swab64() instead of the intended __swab32(). It eventually causes wrong results in xcbcmac & cmac algo.
--- drivers/crypto/inside-secure/safexcel_hash.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/crypto/inside-secure/safexcel_hash.c +4 -4
@@ -383,7 +383,7 @@ static int safexcel_ahash_send_req(struct crypto_async_request *async, int ring,u32 x; x = ipad[i] ^ ipad[i +4 ]; - cache[i] ^=swab (x); + cache[i] ^=swab32 (x); } } cache_len =AES_BLOCK_SIZE ;
@@ -821,7 +821,7 @@ static int safexcel_ahash_final(struct ahash_request *areq)u32 *result = (void *)areq->result;/* K3 */ - result[i] =swab (ctx->base.ipad.word[i +4 ]); + result[i] =swab32 (ctx->base.ipad.word[i +4 ]); } areq->result[0 ] ^=0x80 ;// 10- padding crypto_cipher_encrypt_one (ctx->kaes, areq->result, areq->result);
@@ -2106,7 +2106,7 @@ static int safexcel_xcbcmac_setkey(struct crypto_ahash *tfm, const u8 *key,crypto_cipher_encrypt_one (ctx->kaes, (u8 *)key_tmp +AES_BLOCK_SIZE ,"\x3\x3\x3\x3\x3\x3\x3\x3\x3\x3\x3\x3\x3\x3\x3\x3" );for (i =0 ; i <3 *AES_BLOCK_SIZE /sizeof (u32); i++) - ctx->base.ipad.word[i] =swab (key_tmp[i]); + ctx->base.ipad.word[i] =swab32 (key_tmp[i]);crypto_cipher_clear_flags (ctx->kaes,CRYPTO_TFM_REQ_MASK ); crypto_cipher_set_flags(ctx->kaes, crypto_ahash_get_flags(tfm) &
@@ -2189,7 +2189,7 @@ static int safexcel_cmac_setkey(struct crypto_ahash *tfm, const u8 *key,return ret;for (i =0 ; i < len /sizeof (u32); i++) - ctx->base.ipad.word[i +8 ] =swab (aes.key_enc[i]); + ctx->base.ipad.word[i +8 ] =swab32 (aes.key_enc[i]);/* precompute the CMAC key material */ crypto_cipher_clear_flags (ctx->kaes,CRYPTO_TFM_REQ_MASK );
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 150/862 ftrace: Properly unset FTRACE_HASH_FL_MOD
In reply to Greg Kroah-HartmanFrom: Zheng Yejian <[email protected]>
commit 0ce0638edf5ec83343302b884fa208179580700a upstream.
When executing following commands like what document said, but the log "#### all functions enabled ####" was not shown as expect:
1. Set a 'mod' filter:
$ echo 'write*:mod:ext3' > /sys/kernel/tracing/set_ftrace_filter
2. Invert above filter:
$ echo '!write*:mod:ext3' >> /sys/kernel/tracing/set_ftrace_filter
3. Read the file:
$ cat /sys/kernel/tracing/set_ftrace_filterBy some debugging, I found that flag FTRACE_HASH_FL_MOD was not unset after inversion like above step 2 and then result of ftrace_hash_empty() is incorrect.
--- kernel/trace/ftrace.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
kernel/trace/ftrace.c +6 -2
@@ -6081,8 +6081,12 @@ int ftrace_regex_release(struct inode *iif (filter_hash) { orig_hash = &iter->ops->func_hash->filter_hash; -if (iter->tr && !list_empty (&iter->tr->mod_trace)) - iter->hash->flags |=FTRACE_HASH_FL_MOD ; +if (iter->tr) { +if (list_empty (&iter->tr->mod_trace)) + iter->hash->flags &= ~FTRACE_HASH_FL_MOD ; +else + iter->hash->flags |=FTRACE_HASH_FL_MOD ; + } }else orig_hash = &iter->ops->func_hash->notrace_hash;
Greg Kroah-Hartman
maintainerPATCH 480/862 HID: uclogic: Add missing suffix for digitalizers
In reply to Greg Kroah-HartmanFrom: José Expósito <[email protected]>
[ Upstream commit 0977fda0587cbc5403651ba169e264aa01e8a026 ]
The Pen (0x02) application usage was changed to Digitalizer (0x01) in commit f7d8e387d9ae ("HID: uclogic: Switch to Digitizer usage for styluses"). However, a suffix was not selected for the new usage.
Handle the digitalizer application usage in uclogic_input_configured() and add the required suffix.
--- drivers/hid/hid-uclogic-core.c | 1 + 1 file changed, 1 insertion(+)
drivers/hid/hid-uclogic-core.c +1 -0
@@ -153,6 +153,7 @@ static int uclogic_input_configured(stru suffix ="Pad" ;break ;case HID_DG_PEN : +case HID_DG_DIGITIZER : suffix ="Pen" ;break ;case HID_CP_CONSUMER_CONTROL :
Greg Kroah-Hartman
maintainerPATCH 855/862 net/ieee802154: dont warn zero-sized raw_sendmsg()
In reply to Greg Kroah-HartmanFrom: Tetsuo Handa <[email protected]>
[ Upstream commit b12e924a2f5b960373459c8f8a514f887adf5cac ]
syzbot is hitting skb_assert_len() warning at __dev_queue_xmit() [1], for PF_IEEE802154 socket's zero-sized raw_sendmsg() request is hitting __dev_queue_xmit() with skb->len == 0.
Since PF_IEEE802154 socket's zero-sized raw_sendmsg() request was able to return 0, don't call __dev_queue_xmit() if packet length is 0.
----------
#include <sys/socket.h>
#include <netinet/in.h>
int main(int argc, char *argv[])
{
struct sockaddr_in addr = { .sin_family = AF_INET, .sin_addr.s_addr = htonl(INADDR_LOOPBACK) };
struct iovec iov = { };
struct msghdr hdr = { .msg_name = &addr, .msg_namelen = sizeof(addr), .msg_iov = &iov, .msg_iovlen = 1 };
sendmsg(socket(PF_IEEE802154, SOCK_RAW, 0), &hdr, 0);
return 0;
}
----------Note that this might be a sign that commit fd1894224407c484 ("bpf: Don't redirect packets with invalid pkt_len") should be reverted, for skb->len == 0 was acceptable for at least PF_IEEE802154 socket.
--- net/ieee802154/socket.c | 4 ++++ 1 file changed, 4 insertions(+)
net/ieee802154/socket.c +4 -0
@@ -272,6 +272,10 @@ static int raw_sendmsg(struct sock *sk, err = -EMSGSIZE ; goto out_dev; } +if (!size) { + err =0 ; + goto out_dev; + } hlen =LL_RESERVED_SPACE (dev); tlen = dev->needed_tailroom;
Greg Kroah-Hartman
maintainerPATCH 516/862 dyndbg: drop EXPORTed dynamic_debug_exec_queries
In reply to Greg Kroah-HartmanFrom: Jim Cromie <[email protected]>
[ Upstream commit e26ef3af964acfea311403126acee8c56c89e26b ]
This exported fn is unused, and will not be needed. Lets dump it.
The export was added to let drm control pr_debugs, as part of using them to avoid drm_debug_enabled overheads. But its better to just implement the drm.debug bitmap interface, then its available for everyone.
--- include/linux/dynamic_debug.h | 9 --------- lib/dynamic_debug.c | 29 ----------------------------- 2 files changed, 38 deletions(-)
include/linux/dynamic_debug.h +0 -9
@@ -55,9 +55,6 @@ struct _ddebug {#if defined(CONFIG_DYNAMIC_DEBUG_CORE ) -/* exported for module authors to exercise >control */ -int dynamic_debug_exec_queries (const char *query,const char *modname); -int ddebug_add_module (struct _ddebug *tab,unsigned int n,const char *modname);extern int ddebug_remove_module (const char *mod_name);
@@ -221,12 +218,6 @@ static inline int ddebug_dyndbg_module_param_cb(char *param, char *val, rowsize, groupsize, buf, len, ascii); \ } while (0) -static inline int dynamic_debug_exec_queries(const char *query, const char *modname) -{ -pr_warn ("kernel not built with CONFIG_DYNAMIC_DEBUG_CORE\n" ); -return 0 ; -} -#endif /* !CONFIG_DYNAMIC_DEBUG_CORE */ #endif
lib/dynamic_debug.c +0 -29
@@ -557,35 +557,6 @@ static int ddebug_exec_queries(char *query, const char *modname)return nfound; } -/** -* dynamic_debug_exec_queries - select and change dynamic-debug prints -* @query: query-string described in admin-guide/dynamic-debug-howto -* @modname: string containing module name, usually &module.mod_name -* -* This uses the >/proc/dynamic_debug/control reader, allowing module -* authors to modify their dynamic-debug callsites. The modname is -* canonically struct module.mod_name, but can also be null or a -* module-wildcard, for example: "drm*". -*/ -int dynamic_debug_exec_queries (const char *query,const char *modname) -{ -int rc; -char *qry;/* writable copy of query */ - -if (!query) { -pr_err ("non-null query/command string expected\n" ); -return -EINVAL ; - } - qry =kstrndup (query,PAGE_SIZE ,GFP_KERNEL ); -if (!qry) -return -ENOMEM ; - - rc =ddebug_exec_queries (qry, modname); -kfree (qry); -return rc; -} -EXPORT_SYMBOL_GPL (dynamic_debug_exec_queries); -#define PREFIX_SIZE 64static int remaining (int wrote)
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 423/862 arm64: dts: renesas: r9a07g054: Fix SCI{Rx,Tx} interrupt types
In reply to Greg Kroah-HartmanFrom: Biju Das <[email protected]>
[ Upstream commit 13dec051c7f139eef345c55a60941843e72128f1 ]
As per the RZ/V2L Hardware User's Manual (Rev.1.00 Nov, 2021), the interrupt type of SCI{Rx,Tx} is edge triggered.
--- arch/arm64/boot/dts/renesas/r9a07g054.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/renesas/r9a07g054.dtsi +4 -4
@@ -399,8 +399,8 @@ compatible = "renesas,r9a07g054-sci", "renesas,sci"; reg = <0 0x1004d000 0 0x400>; interrupts = <GIC_SPI 405 IRQ_TYPE_LEVEL_HIGH>, - <GIC_SPI 406 IRQ_TYPE_LEVEL_HIGH>, - <GIC_SPI 407 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 406 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 407 IRQ_TYPE_EDGE_RISING>, <GIC_SPI 408 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "eri", "rxi", "txi", "tei"; clocks = <&cpg CPG_MOD R9A07G054_SCI0_CLKP>;
@@ -414,8 +414,8 @@ compatible = "renesas,r9a07g054-sci", "renesas,sci"; reg = <0 0x1004d400 0 0x400>; interrupts = <GIC_SPI 409 IRQ_TYPE_LEVEL_HIGH>, - <GIC_SPI 410 IRQ_TYPE_LEVEL_HIGH>, - <GIC_SPI 411 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 410 IRQ_TYPE_EDGE_RISING>, + <GIC_SPI 411 IRQ_TYPE_EDGE_RISING>, <GIC_SPI 412 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "eri", "rxi", "txi", "tei"; clocks = <&cpg CPG_MOD R9A07G054_SCI1_CLKP>;
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 428/862 arm64: dts: qcom: sc7280: Update lpasscore node
In reply to Greg Kroah-HartmanFrom: Satya Priya <[email protected]>
[ Upstream commit d9a1e922730389afc425f2250de361b7f07acdbc ]
To maintain consistency with other lpass nodes(lpass_audiocc, lpass_aon and lpass_hm), update lpasscore to lpass_core.
--- arch/arm64/boot/dts/qcom/sc7280.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/sc7280.dtsi +2 -2
@@ -2191,13 +2191,13 @@ reg = <0 0x03380000 0 0x30000>; clocks = <&rpmhcc RPMH_CXO_CLK>, <&rpmhcc RPMH_CXO_CLK_A>, - <&lpasscore LPASS_CORE_CC_CORE_CLK>; + <&lpass_core LPASS_CORE_CC_CORE_CLK>; clock-names = "bi_tcxo", "bi_tcxo_ao", "iface"; #clock-cells = <1>; #power-domain-cells = <1>; }; - lpasscore: clock-controller@3900000 { + lpass_core: clock-controller@3900000 { compatible = "qcom,sc7280-lpasscorecc"; reg = <0 0x03900000 0 0x50000>; clocks = <&rpmhcc RPMH_CXO_CLK>;
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 611/862 powerpc/powernv: add missing of_node_put() in opal_export_attrs()
In reply to Greg Kroah-HartmanFrom: Zheng Yongjun <[email protected]>
[ Upstream commit 71a92e99c47900cc164620948b3863382cec4f1a ]
After using 'np' returned by of_find_node_by_path(), of_node_put() need be called to decrease the refcount.
--- arch/powerpc/platforms/powernv/opal.c | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/platforms/powernv/opal.c +1 -0
@@ -892,6 +892,7 @@ static void opal_export_attrs(void) kobj =kobject_create_and_add ("exports" , opal_kobj);if (!kobj) {pr_warn ("kobject_create_and_add() of exports failed\n" ); +of_node_put (np);return ; }
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 416/862 memory: of: Fix refcount leak bug in of_get_ddr_timings()
In reply to Greg Kroah-HartmanFrom: Liang He <[email protected]>
[ Upstream commit 05215fb32010d4afb68fbdbb4d237df6e2d4567b ]
We should add the of_node_put() when breaking out of for_each_child_of_node() as it will automatically increase and decrease the refcount.
--- drivers/memory/of_memory.c | 1 + 1 file changed, 1 insertion(+)
drivers/memory/of_memory.c +1 -0
@@ -134,6 +134,7 @@ const struct lpddr2_timings *of_get_ddr_timings(struct device_node *np_ddr,for_each_child_of_node (np_ddr, np_tim) {if (of_device_is_compatible (np_tim, tim_compat)) {if (of_do_get_timings (np_tim, &timings[i])) { +of_node_put (np_tim);devm_kfree (dev, timings); goto default_timings; }
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 411/862 ASoC: wm5102: Fix PM disable depth imbalance in wm5102_probe
In reply to Greg Kroah-HartmanFrom: Zhang Qilong <[email protected]>
[ Upstream commit fcbb60820cd3008bb44334a0395e5e57ccb77329 ]
The pm_runtime_enable will increase power disable depth. Thus a pairing decrement is needed on the error handling path to keep it balanced according to context. We fix it by moving pm_runtime_enable to the endding of wm5102_probe.
--- sound/soc/codecs/wm5102.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/wm5102.c +3 -3
@@ -2099,9 +2099,6 @@ static int wm5102_probe(struct platform_device *pdev)regmap_update_bits (arizona->regmap, wm5102_digital_vu[i],WM5102_DIG_VU ,WM5102_DIG_VU ); -pm_runtime_enable (&pdev->dev); -pm_runtime_idle (&pdev->dev); - ret =arizona_request_irq (arizona,ARIZONA_IRQ_DSP_IRQ1 ,"ADSP2 Compressed IRQ" , wm5102_adsp2_irq, wm5102);
@@ -2134,6 +2131,9 @@ static int wm5102_probe(struct platform_device *pdev) goto err_spk_irqs; } +pm_runtime_enable (&pdev->dev); +pm_runtime_idle (&pdev->dev); +return ret; err_spk_irqs:
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 533/862 mtd: rawnand: fsl_elbc: Fix none ECC mode
In reply to Greg Kroah-HartmanFrom: Pali Rohár <[email protected]>
[ Upstream commit 049e43b9fd8fd2966940485da163d67e96ee3fea ]
Commit f6424c22aa36 ("mtd: rawnand: fsl_elbc: Make SW ECC work") added support for specifying ECC mode via DTS and skipping autodetection.
But it broke explicit specification of HW ECC mode in DTS as correct settings for HW ECC mode are applied only when NONE mode or nothing was specified in DTS file.
Also it started aliasing NONE mode to be same as when ECC mode was not specified and disallowed usage of ON_DIE mode.
Fix all these issues. Use autodetection of ECC mode only in case when mode was really not specified in DTS file by checking that ecc value is invalid. Set HW ECC settings either when HW ECC was specified in DTS or it was autodetected. And do not fail when ON_DIE mode is set.
--- drivers/mtd/nand/raw/fsl_elbc_nand.c | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-)
drivers/mtd/nand/raw/fsl_elbc_nand.c +16 -12
@@ -726,36 +726,40 @@ static int fsl_elbc_attach_chip(struct nand_chip *chip)struct fsl_lbc_regs __iomem *lbc = ctrl->regs;unsigned int al; -switch (chip->ecc.engine_type) {/* * if ECC was not chosen in DT, decide whether to use HW or SW ECC from * CS Base Register */ -case NAND_ECC_ENGINE_TYPE_NONE : +if (chip->ecc.engine_type ==NAND_ECC_ENGINE_TYPE_INVALID ) {/* If CS Base Register selects full hardware ECC then use it */ if ((in_be32 (&lbc->bank[priv->bank].br) &BR_DECC ) ==BR_DECC_CHK_GEN ) { - chip->ecc.read_page = fsl_elbc_read_page; - chip->ecc.write_page = fsl_elbc_write_page; - chip->ecc.write_subpage = fsl_elbc_write_subpage; - chip->ecc.engine_type =NAND_ECC_ENGINE_TYPE_ON_HOST ; -mtd_set_ooblayout (mtd, &fsl_elbc_ooblayout_ops); - chip->ecc.size =512 ; - chip->ecc.bytes =3 ; - chip->ecc.strength =1 ; }else {/* otherwise fall back to default software ECC */ chip->ecc.engine_type =NAND_ECC_ENGINE_TYPE_SOFT ; chip->ecc.algo =NAND_ECC_ALGO_HAMMING ; } + } + +switch (chip->ecc.engine_type) { +/* if HW ECC was chosen, setup ecc and oob layout */ +case NAND_ECC_ENGINE_TYPE_ON_HOST : + chip->ecc.read_page = fsl_elbc_read_page; + chip->ecc.write_page = fsl_elbc_write_page; + chip->ecc.write_subpage = fsl_elbc_write_subpage; +mtd_set_ooblayout (mtd, &fsl_elbc_ooblayout_ops); + chip->ecc.size =512 ; + chip->ecc.bytes =3 ; + chip->ecc.strength =1 ;break ; -/* if SW ECC was chosen in DT, we do not need to set anything here */ +/* if none or SW ECC was chosen, we do not need to set anything here */ +case NAND_ECC_ENGINE_TYPE_NONE :case NAND_ECC_ENGINE_TYPE_SOFT : +case NAND_ECC_ENGINE_TYPE_ON_DIE :break ; -/* should we also implement *_ECC_ENGINE_CONTROLLER to do as above? */ default :return -EINVAL ; }
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 512/862 usb: gadget: f_fs: stricter integer overflow checks
In reply to Greg Kroah-HartmanFrom: Dan Carpenter <[email protected]>
[ Upstream commit f57004b9d96755cd6a243b51c267be4016b4563c ]
This from static analysis. The vla_item() takes a size and adds it to the total. It has a built in integer overflow check so if it encounters an integer overflow anywhere then it records the total as SIZE_MAX.
However there is an issue here because the "lang_count*(needed_count+1)" multiplication can overflow. Technically the "lang_count + 1" addition could overflow too, but that would be detected and is harmless. Fix both using the new size_add() and size_mul() functions.
--- drivers/usb/gadget/function/f_fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/gadget/function/f_fs.c +2 -2
@@ -2645,10 +2645,10 @@ static int __ffs_data_got_strings(struct ffs_data *ffs,unsigned i =0 ;vla_group (d); vla_item(d, struct usb_gadget_strings *, stringtabs, - lang_count +1 ); +size_add (lang_count,1 )); vla_item(d, struct usb_gadget_strings, stringtab, lang_count); vla_item(d, struct usb_string, strings, - lang_count*(needed_count+1 )); +size_mul (lang_count, (needed_count +1 )));char *vlabuf =kmalloc (vla_group_size (d),GFP_KERNEL );
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 437/862 arm64: dts: marvell: 98dx25xx: use correct property for i2c gpios
In reply to Greg Kroah-HartmanFrom: Chris Packham <[email protected]>
[ Upstream commit 2b14d382ec97ca5b420239ee6e16da390fab476c ]
Use the correct names for scl-gpios and sda-gpios so that the generic i2c recovery code will find them. While we're here set the GPIO_OPEN_DRAIN flag on the gpios.
--- arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi +4 -4
@@ -117,8 +117,8 @@ pinctrl-names = "default", "gpio"; pinctrl-0 = <&i2c0_pins>; pinctrl-1 = <&i2c0_gpio>; - scl_gpio = <&gpio0 26 GPIO_ACTIVE_HIGH>; - sda_gpio = <&gpio0 27 GPIO_ACTIVE_HIGH>; + scl-gpios = <&gpio0 26 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + sda-gpios = <&gpio0 27 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status = "disabled"; };
@@ -136,8 +136,8 @@ pinctrl-names = "default", "gpio"; pinctrl-0 = <&i2c1_pins>; pinctrl-1 = <&i2c1_gpio>; - scl_gpio = <&gpio0 20 GPIO_ACTIVE_HIGH>; - sda_gpio = <&gpio0 21 GPIO_ACTIVE_HIGH>; + scl-gpios = <&gpio0 20 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; + sda-gpios = <&gpio0 21 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; status = "disabled"; };
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 403/862 ALSA: dmaengine: increment buffer pointer atomically
In reply to Greg Kroah-HartmanFrom: Andreas Pape <[email protected]>
[ Upstream commit d1c442019594692c64a70a86ad88eb5b6db92216 ]
Setting pointer and afterwards checking for wraparound leads to the possibility of returning the inconsistent pointer position.
This patch increments buffer pointer atomically to avoid this issue.
--- sound/core/pcm_dmaengine.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
sound/core/pcm_dmaengine.c +5 -3
@@ -133,12 +133,14 @@ EXPORT_SYMBOL_GPL(snd_dmaengine_pcm_set_config_from_dai_data);static void dmaengine_pcm_dma_complete (void *arg) { +unsigned int new_pos;struct snd_pcm_substream *substream = arg;struct dmaengine_pcm_runtime_data *prtd =substream_to_prtd (substream); - prtd->pos +=snd_pcm_lib_period_bytes (substream); -if (prtd->pos >=snd_pcm_lib_buffer_bytes (substream)) - prtd->pos =0 ; + new_pos = prtd->pos +snd_pcm_lib_period_bytes (substream); +if (new_pos >=snd_pcm_lib_buffer_bytes (substream)) + new_pos =0 ; + prtd->pos = new_pos;snd_pcm_period_elapsed (substream); }
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 513/862 dyndbg: fix static_branch manipulation
In reply to Greg Kroah-HartmanFrom: Jim Cromie <[email protected]>
[ Upstream commit ee879be38bc87f8cedc79ae2742958db6533ca59 ]
In https://lore.kernel.org/lkml/[email protected]/
Vincent's patch commented on, and worked around, a bug toggling static_branch's, when a 2nd PRINTK-ish flag was added. The bug results in a premature static_branch_disable when the 1st of 2 flags was disabled.
The cited commit computed newflags, but then in the JUMP_LABEL block, failed to use that result, instead using just one of the terms in it. Using newflags instead made the code work properly.
This is Vincents test-case, reduced. It needs the 2nd flag to demonstrate the bug, but it's explanatory here.
pt_test() {
echo 5 > /sys/module/dynamic_debug/verbose
site="module tcp" # just one callsite
echo " $site =_ " > /proc/dynamic_debug/control # clear it
# A B ~A ~B
for flg in +T +p "-T #broke here" -p; do
echo " $site $flg " > /proc/dynamic_debug/control
done;
# A B ~B ~A
for flg in +T +p "-p #broke here" -T; do
echo " $site $flg " > /proc/dynamic_debug/control
done
}pt_test
--- lib/dynamic_debug.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
lib/dynamic_debug.c +3 -2
@@ -211,10 +211,11 @@ static int ddebug_change(const struct ddebug_query *query,continue ;#ifdef CONFIG_JUMP_LABEL if (dp->flags & _DPRINTK_FLAGS_PRINT) { -if (!(modifiers->flags & _DPRINTK_FLAGS_PRINT)) +if (!(newflags & _DPRINTK_FLAGS_PRINT))static_branch_disable (&dp->key.dd_key_true); - }else if (modifiers->flags & _DPRINTK_FLAGS_PRINT) + }else if (newflags & _DPRINTK_FLAGS_PRINT) {static_branch_enable (&dp->key.dd_key_true); + }#endif dp->flags = newflags; v4pr_info("changed %s:%d [%s]%s =%s\n",
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 441/862 soc/tegra: fuse: Add missing of_node_put() in tegra_init_fuse()
In reply to Greg Kroah-HartmanFrom: Liang He <[email protected]>
[ Upstream commit e941712cccab8a96f03b5d3274159c1ed338efee ]
In this function, of_find_matching_node() will return a node pointer with refcount incremented. We should use of_node_put() when the "np" pointer is not used anymore.
--- drivers/soc/tegra/fuse/fuse-tegra.c | 1 + 1 file changed, 1 insertion(+)
drivers/soc/tegra/fuse/fuse-tegra.c +1 -0
@@ -568,6 +568,7 @@ static int __init tegra_init_fuse(void) np =of_find_matching_node (NULL , car_match);if (np) {void __iomem *base =of_iomap (np,0 ); +of_node_put (np);if (base) {tegra_enable_fuse_clk (base);iounmap (base);
Greg Kroah-Hartman
maintainerPATCH 607/862 powerpc/configs: Properly enable PAPR_SCM in pseries_defconfig
In reply to Greg Kroah-HartmanFrom: Michael Ellerman <[email protected]>
[ Upstream commit aa398d88aea4ec863bd7aea35d5035a37096dc59 ]
My commit to add PAPR_SCM to pseries_defconfig failed to add the required dependencies, meaning the driver doesn't get built.
Add the required LIBNVDIMM=m.
--- arch/powerpc/configs/pseries_defconfig | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/configs/pseries_defconfig +1 -0
@@ -40,6 +40,7 @@ CONFIG_PPC_SPLPAR=y CONFIG_DTL=y CONFIG_PPC_SMLPAR=y CONFIG_IBMEBUS=y +CONFIG_LIBNVDIMM=m CONFIG_PAPR_SCM=m CONFIG_PPC_SVM=y # CONFIG_PPC_PMAC is not set
Signature · 1 line
2.35.1
Greg Kroah-Hartman
maintainerPATCH 234/862 leds: lm3601x: Dont use mutex after it was destroyed
In reply to Greg Kroah-HartmanFrom: Uwe Kleine-König <[email protected]>
[ Upstream commit 32f7eed0c763a9b89f6b357ec54b48398fc7b99e ]
The mutex might still be in use until the devm cleanup callback devm_led_classdev_flash_release() is called. This only happens some time after lm3601x_remove() completed.
--- drivers/leds/flash/leds-lm3601x.c | 2 -- 1 file changed, 2 deletions(-)
drivers/leds/flash/leds-lm3601x.c +0 -2
@@ -444,8 +444,6 @@ static int lm3601x_remove(struct i2c_client *client) {struct lm3601x_led *led =i2c_get_clientdata (client); -mutex_destroy (&led->lock); -return regmap_update_bits (led->regmap,LM3601X_ENABLE_REG ,LM3601X_ENABLE_MASK ,LM3601X_MODE_STANDBY );
Signature · 1 line
2.35.1