6.5.3-rc1 review
Subsystems (13)
Greg Kroah-Hartman
maintainerPATCH 657/739 XArray: Do not return sibling entries from xa_load()
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Matthew Wilcox (Oracle) <[email protected]>
commit cbc02854331edc6dc22d8b77b6e22e38ebc7dd51 upstream.
It is possible for xa_load() to observe a sibling entry pointing to another sibling entry. An example:
Thread A: Thread B:
xa_store_range(xa, entry, 188, 191, gfp); xa_load(xa, 191); entry = xa_entry(xa, node, 63); [entry is a sibling of 188] xa_store_range(xa, entry, 184, 191, gfp);
if (xa_is_sibling(entry))
offset = xa_to_sibling(entry);
entry = xa_entry(xas->xa, node, offset);
[entry is now a sibling of 184]
It is sufficient to go around this loop until we hit a non-sibling entry. Sibling entries always point earlier in the node, so we are guaranteed to terminate this search.
--- lib/xarray.c | 2 - tools/testing/radix-tree/multiorder.c | 68 +++++++++++++++++++++++++++++++++- 2 files changed, 67 insertions(+), 3 deletions(-)
lib/xarray.c +1 -1
@@ -206,7 +206,7 @@ static void *xas_descend(struct xa_statevoid *entry =xa_entry (xas->xa, node, offset); xas->xa_node = node; -if (xa_is_sibling (entry)) { +while (xa_is_sibling (entry)) { offset =xa_to_sibling (entry); entry =xa_entry (xas->xa, node, offset);if (node->shift &&xa_is_node (entry))
tools/testing/radix-tree/multiorder.c +66 -2
97 lines not on this page · raw message
Greg Kroah-Hartman
maintainerPATCH 658/739 io_uring: fix false positive KASAN warnings
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pavel Begunkov <[email protected]>
commit 569f5308e54352a12181cc0185f848024c5443e8 upstream.
io_req_local_work_add() peeks into the work list, which can be executed in the meanwhile. It's completely fine without KASAN as we're in an RCU read section and it's SLAB_TYPESAFE_BY_RCU. With KASAN though it may trigger a false positive warning because internal io_uring caches are sanitised.
Remove sanitisation from the io_uring request cache for now.
--- io_uring/io_uring.c | 1 - io_uring/io_uring.h | 1 - 2 files changed, 2 deletions(-)
io_uring/io_uring.c +0 -1
@@ -229,7 +229,6 @@ static inline void req_fail_link_node(ststatic inline void io_req_add_to_cache (struct io_kiocb *req,struct io_ring_ctx *ctx) {wq_stack_add_head (&req->comp_list, &ctx->submit_state.free_list); -kasan_poison_object_data (req_cachep, req); }static __cold void io_ring_ctx_ref_free (struct percpu_ref *ref)
io_uring/io_uring.h +0 -1
@@ -354,7 +354,6 @@ static inline struct io_kiocb *io_extracstruct io_kiocb *req; req = container_of(ctx->submit_state.free_list.next, struct io_kiocb, comp_list); -kasan_unpoison_object_data (req_cachep, req);wq_stack_extract (&ctx->submit_state.free_list);return req; }
Greg Kroah-Hartman
maintainerPATCH 659/739 io_uring: break iopolling on signal
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pavel Begunkov <[email protected]>
commit dc314886cb3d0e4ab2858003e8de2917f8a3ccbd upstream.
Don't keep spinning iopoll with a signal set. It'll eventually return back, e.g. by virtue of need_resched(), but it's not a nice user experience.
--- io_uring/io_uring.c | 3 +++ 1 file changed, 3 insertions(+)
io_uring/io_uring.c +3 -0
@@ -1673,6 +1673,9 @@ static int io_iopoll_check(struct io_rinbreak ; nr_events += ret; ret =0 ; + +if (task_sigpending (current)) +return -EINTR ; }while (nr_events < min && !need_resched ());return ret;
Greg Kroah-Hartman
maintainerPATCH 660/739 io_uring/sqpoll: fix io-wq affinity when IORING_SETUP_SQPOLL is used
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jens Axboe <[email protected]>
commit ebdfefc09c6de7897962769bd3e63a2ff443ebf5 upstream.
If we setup the ring with SQPOLL, then that polling thread has its own io-wq setup. This means that if the application uses IORING_REGISTER_IOWQ_AFF to set the io-wq affinity, we should not be setting it for the invoking task, but rather the sqpoll task.
Add an sqpoll helper that parks the thread and updates the affinity, and use that one if we're using SQPOLL.
--- io_uring/io-wq.c | 9 ++++++--- io_uring/io-wq.h | 2 +- io_uring/io_uring.c | 29 ++++++++++++++++++----------- io_uring/sqpoll.c | 15 +++++++++++++++ io_uring/sqpoll.h | 1 + 5 files changed, 41 insertions(+), 15 deletions(-)
io_uring/io-wq.c +6 -3
@@ -1285,13 +1285,16 @@ static int io_wq_cpu_offline(unsigned inreturn __io_wq_cpu_online (wq, cpu, false); } -int io_wq_cpu_affinity (struct io_wq *wq,cpumask_var_t mask) +int io_wq_cpu_affinity (struct io_uring_task *tctx,cpumask_var_t mask) { +if (!tctx || !tctx->io_wq) +return -EINVAL ; +rcu_read_lock ();if (mask) -cpumask_copy (wq->cpu_mask, mask); +cpumask_copy (tctx->io_wq->cpu_mask, mask);else -cpumask_copy (wq->cpu_mask, cpu_possible_mask); +cpumask_copy (tctx->io_wq->cpu_mask, cpu_possible_mask);rcu_read_unlock ();return 0 ;
io_uring/io-wq.h +1 -1
@@ -50,7 +50,7 @@ void io_wq_put_and_exit(struct io_wq *wqvoid io_wq_enqueue (struct io_wq *wq,struct io_wq_work *work);void io_wq_hash_work (struct io_wq_work *work,void *val); -int io_wq_cpu_affinity (struct io_wq *wq,cpumask_var_t mask); +int io_wq_cpu_affinity (struct io_uring_task *tctx,cpumask_var_t mask);int io_wq_max_workers (struct io_wq *wq,int *new_count);static inline bool io_wq_is_hashed (struct io_wq_work *work)
io_uring/io_uring.c +18 -11
@@ -4201,16 +4201,28 @@ static int io_register_enable_rings(strureturn 0 ; } +static __cold int __io_register_iowq_aff (struct io_ring_ctx *ctx, +cpumask_var_t new_mask) +{ +int ret; + +if (!(ctx->flags &IORING_SETUP_SQPOLL )) { + ret =io_wq_cpu_affinity (current->io_uring, new_mask); + }else { +mutex_unlock (&ctx->uring_lock); + ret =io_sqpoll_wq_cpu_affinity (ctx, new_mask); +mutex_lock (&ctx->uring_lock); + } + +return ret; +} +static __cold int io_register_iowq_aff (struct io_ring_ctx *ctx,void __user *arg,unsigned len) { -struct io_uring_task *tctx = current->io_uring;cpumask_var_t new_mask;int ret; -if (!tctx || !tctx->io_wq) -return -EINVAL ; -if (!alloc_cpumask_var (&new_mask,GFP_KERNEL ))return -ENOMEM ;
@@ -4231,19 +4243,14 @@ static __cold int io_register_iowq_aff(sreturn -EFAULT ; } - ret =io_wq_cpu_affinity (tctx->io_wq, new_mask); + ret =__io_register_iowq_aff (ctx, new_mask);free_cpumask_var (new_mask);return ret; }static __cold int io_unregister_iowq_aff (struct io_ring_ctx *ctx) { -struct io_uring_task *tctx = current->io_uring; - -if (!tctx || !tctx->io_wq) -return -EINVAL ; - -return io_wq_cpu_affinity (tctx->io_wq,NULL ); +return __io_register_iowq_aff (ctx,NULL ); } static __cold int io_register_iowq_max_workers(struct io_ring_ctx *ctx,
io_uring/sqpoll.c +15 -0
@@ -421,3 +421,18 @@ err:io_sq_thread_finish (ctx);return ret; } + +__cold int io_sqpoll_wq_cpu_affinity (struct io_ring_ctx *ctx, +cpumask_var_t mask) +{ +struct io_sq_data *sqd = ctx->sq_data; +int ret = -EINVAL ; + +if (sqd) { +io_sq_thread_park (sqd); + ret =io_wq_cpu_affinity (sqd->thread->io_uring, mask); +io_sq_thread_unpark (sqd); + } + +return ret; +}
io_uring/sqpoll.h +1 -0
@@ -27,3 +27,4 @@ void io_sq_thread_park(struct io_sq_datavoid io_sq_thread_unpark (struct io_sq_data *sqd);void io_put_sq_data (struct io_sq_data *sqd);void io_sqpoll_wait_sq (struct io_ring_ctx *ctx); +int io_sqpoll_wq_cpu_affinity (struct io_ring_ctx *ctx,cpumask_var_t mask);
Greg Kroah-Hartman
maintainerPATCH 661/739 io_uring/net: dont overflow multishot recv
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pavel Begunkov <[email protected]>
commit b2e74db55dd93d6db22a813c9a775b5dbf87c560 upstream.
Don't allow overflowing multishot recv CQEs, it might get out of hand, hurt performance, and in the worst case scenario OOM the task.
--- io_uring/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
io_uring/net.c +1 -1
@@ -642,7 +642,7 @@ static inline bool io_recv_finish(structif (!mshot_finished) {if (io_aux_cqe (req, issue_flags &IO_URING_F_COMPLETE_DEFER , - *ret, cflags |IORING_CQE_F_MORE , true)) { + *ret, cflags |IORING_CQE_F_MORE , false)) {io_recv_prep_retry (req);/* Known not-empty or unknown state, retry */ if (cflags & IORING_CQE_F_SOCK_NONEMPTY ||
Greg Kroah-Hartman
maintainerPATCH 662/739 io_uring/net: dont overflow multishot accept
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pavel Begunkov <[email protected]>
commit 1bfed23349716a7811645336a7ce42c4b8f250bc upstream.
Don't allow overflowing multishot accept CQEs, we want to limit the grows of the overflow list.
--- io_uring/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
io_uring/net.c +1 -1
@@ -1367,7 +1367,7 @@ retry:if (ret <0 )return ret;if (io_aux_cqe (req, issue_flags &IO_URING_F_COMPLETE_DEFER , ret, -IORING_CQE_F_MORE , true)) +IORING_CQE_F_MORE , false)) goto retry;return -ECANCELED ;
Greg Kroah-Hartman
maintainerPATCH 663/739 io_uring: break out of iowq iopoll on teardown
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pavel Begunkov <[email protected]>
commit 45500dc4e01c167ee063f3dcc22f51ced5b2b1e9 upstream.
io-wq will retry iopoll even when it failed with -EAGAIN. If that races with task exit, which sets TIF_NOTIFY_SIGNAL for all its workers, such workers might potentially infinitely spin retrying iopoll again and again and each time failing on some allocation / waiting / etc. Don't keep spinning if io-wq is dying.
--- io_uring/io-wq.c | 10 ++++++++++ io_uring/io-wq.h | 1 + io_uring/io_uring.c | 2 ++ 3 files changed, 13 insertions(+)
io_uring/io-wq.c +10 -0
@@ -174,6 +174,16 @@ static void io_worker_ref_put(struct io_complete (&wq->worker_done); } +bool io_wq_worker_stopped (void ) +{ +struct io_worker *worker = current->worker_private; + +if (WARN_ON_ONCE (!io_wq_current_is_worker ())) +return true; + +return test_bit (IO_WQ_BIT_EXIT , &worker->wq->state); +} +static void io_worker_cancel_cb (struct io_worker *worker) {struct io_wq_acct *acct =io_wq_get_acct (worker);
io_uring/io-wq.h +1 -0
@@ -52,6 +52,7 @@ void io_wq_hash_work(struct io_wq_work *int io_wq_cpu_affinity (struct io_uring_task *tctx,cpumask_var_t mask);int io_wq_max_workers (struct io_wq *wq,int *new_count); +bool io_wq_worker_stopped (void );static inline bool io_wq_is_hashed (struct io_wq_work *work) {
io_uring/io_uring.c +2 -0
@@ -1966,6 +1966,8 @@ fail:if (!needs_poll) {if (!(req->ctx->flags &IORING_SETUP_IOPOLL ))break ; +if (io_wq_worker_stopped ()) +break ;cond_resched ();continue ; }
Greg Kroah-Hartman
maintainerPATCH 664/739 backlight/gpio_backlight: Compare against struct fb_info.device
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Thomas Zimmermann <[email protected]>
commit 7b91d017f77c1bda56f27c2f4bbb70de7c6eca08 upstream.
Struct gpio_backlight_platform_data refers to a platform device within the Linux device hierarchy. The test in gpio_backlight_check_fb() compares it against the fbdev device in struct fb_info.dev, which is different. Fix the test by comparing to struct fb_info.device.
Fixes a bug in the backlight driver and prepares fbdev for making struct fb_info.dev optional.
v2:
* move renames into separate patch (Javier, Sam, Michael)
--- drivers/video/backlight/gpio_backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/backlight/gpio_backlight.c +1 -1
@@ -35,7 +35,7 @@ static int gpio_backlight_check_fb(struc {struct gpio_backlight *gbl =bl_get_data (bl); -return gbl->fbdev ==NULL || gbl->fbdev == info->dev; +return gbl->fbdev ==NULL || gbl->fbdev == info->device; }static const struct backlight_ops gpio_backlight_ops = {
Greg Kroah-Hartman
maintainerPATCH 665/739 backlight/bd6107: Compare against struct fb_info.device
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Thomas Zimmermann <[email protected]>
commit 992bdddaabfba19bdc77c1c7a4977b2aa41ec891 upstream.
Struct bd6107_platform_data refers to a platform device within the Linux device hierarchy. The test in bd6107_backlight_check_fb() compares it against the fbdev device in struct fb_info.dev, which is different. Fix the test by comparing to struct fb_info.device.
Fixes a bug in the backlight driver and prepares fbdev for making struct fb_info.dev optional.
v2:
* move renames into separate patch (Javier, Sam, Michael)
--- drivers/video/backlight/bd6107.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/backlight/bd6107.c +1 -1
@@ -104,7 +104,7 @@ static int bd6107_backlight_check_fb(str {struct bd6107 *bd =bl_get_data (backlight); -return bd->pdata->fbdev ==NULL || bd->pdata->fbdev == info->dev; +return bd->pdata->fbdev ==NULL || bd->pdata->fbdev == info->device; }static const struct backlight_ops bd6107_backlight_ops = {
Greg Kroah-Hartman
maintainerPATCH 666/739 backlight/lv5207lp: Compare against struct fb_info.device
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Thomas Zimmermann <[email protected]>
commit 1ca8819320fd84e7d95b04e7668efc5f9fe9fa5c upstream.
Struct lv5207lp_platform_data refers to a platform device within the Linux device hierarchy. The test in lv5207lp_backlight_check_fb() compares it against the fbdev device in struct fb_info.dev, which is different. Fix the test by comparing to struct fb_info.device.
Fixes a bug in the backlight driver and prepares fbdev for making struct fb_info.dev optional.
v2:
* move renames into separate patch (Javier, Sam, Michael)
--- drivers/video/backlight/lv5207lp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/backlight/lv5207lp.c +1 -1
@@ -67,7 +67,7 @@ static int lv5207lp_backlight_check_fb(s {struct lv5207lp *lv =bl_get_data (backlight); -return lv->pdata->fbdev ==NULL || lv->pdata->fbdev == info->dev; +return lv->pdata->fbdev ==NULL || lv->pdata->fbdev == info->device; }static const struct backlight_ops lv5207lp_backlight_ops = {
Greg Kroah-Hartman
maintainerPATCH 667/739 drm/amd/display: register edp_backlight_control() for DCN301
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hamza Mahfooz <[email protected]>
commit 1611917f39bee1abfc01501238db8ac19649042d upstream.
As made mention of in commit 099303e9a9bd ("drm/amd/display: eDP intermittent black screen during PnP"), we need to turn off the display's backlight before powering off an eDP display. Not doing so will result in undefined behaviour according to the eDP spec. So, set DCN301's edp_backlight_control() function pointer to dce110_edp_backlight_control().
--- drivers/gpu/drm/amd/display/dc/dcn301/dcn301_init.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/dc/dcn301/dcn301_init.c +1 -0
@@ -75,6 +75,7 @@ static const struct hw_sequencer_funcs d .get_hw_state = dcn10_get_hw_state, .clear_status_bits = dcn10_clear_status_bits, .wait_for_mpcc_disconnect = dcn10_wait_for_mpcc_disconnect, + .edp_backlight_control = dce110_edp_backlight_control, .edp_power_control = dce110_edp_power_control, .edp_wait_for_hpd_ready = dce110_edp_wait_for_hpd_ready, .set_cursor_position = dcn10_set_cursor_position,
Greg Kroah-Hartman
maintainerPATCH 668/739 xtensa: PMU: fix base address for the newer hardware
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Max Filippov <[email protected]>
commit 687eb3c42f4ad81e7c947c50e2d865f692064291 upstream.
With introduction of ERI access control in RG.0 base address of the PMU unit registers has changed. Add support for the new PMU configuration.
--- arch/xtensa/include/asm/core.h | 9 +++++++++ arch/xtensa/kernel/perf_event.c | 17 +++++++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-)
arch/xtensa/include/asm/core.h +9 -0
@@ -52,4 +52,13 @@#define XTENSA_STACK_ALIGNMENT 16#endif +#ifndef XCHAL_HW_MIN_VERSION +#if defined(XCHAL_HW_MIN_VERSION_MAJOR ) && defined(XCHAL_HW_MIN_VERSION_MINOR ) +#define XCHAL_HW_MIN_VERSION (XCHAL_HW_MIN_VERSION_MAJOR * 100 + \ + XCHAL_HW_MIN_VERSION_MINOR) +#else +#define XCHAL_HW_MIN_VERSION 0 +#endif +#endif +#endif
arch/xtensa/kernel/perf_event.c +13 -4
@@ -13,17 +13,26 @@#include <linux/perf_event.h> #include <linux/platform_device.h> +#include <asm/core.h> #include <asm/processor.h> #include <asm/stacktrace.h> +#define XTENSA_HWVERSION_RG_2015_0 260000 + +#if XCHAL_HW_MIN_VERSION >=XTENSA_HWVERSION_RG_2015_0 +#define XTENSA_PMU_ERI_BASE 0x00101000 +#else +#define XTENSA_PMU_ERI_BASE 0x00001000 +#endif +/* Global control/status for all perf counters */ -#define XTENSA_PMU_PMG 0x1000 +#define XTENSA_PMU_PMG XTENSA_PMU_ERI_BASE/* Perf counter values */ -#define XTENSA_PMU_PM (i) (0x1080 + (i) * 4) +#define XTENSA_PMU_PM (i) (XTENSA_PMU_ERI_BASE + 0x80 + (i) * 4)/* Perf counter control registers */ -#define XTENSA_PMU_PMCTRL (i) (0x1100 + (i) * 4) +#define XTENSA_PMU_PMCTRL (i) (XTENSA_PMU_ERI_BASE + 0x100 + (i) * 4)/* Perf counter status registers */ -#define XTENSA_PMU_PMSTAT (i) (0x1180 + (i) * 4) +#define XTENSA_PMU_PMSTAT (i) (XTENSA_PMU_ERI_BASE + 0x180 + (i) * 4)#define XTENSA_PMU_PMG_PMEN 0x1
Greg Kroah-Hartman
maintainerPATCH 669/739 LoongArch: mm: Add p?d_leaf() definitions
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hongchen Zhang <[email protected]>
commit 303be4b33562a5b689261ced1616bf16ad49efa7 upstream.
When I do LTP test, LTP test case ksm06 caused panic at
break_ksm_pmd_entry -> pmd_leaf (Huge page table but False) -> pte_present (panic)
The reason is pmd_leaf() is not defined, So like commit 501b81046701 ("mips: mm: add p?d_leaf() definitions") add p?d_leaf() definition for LoongArch.
--- arch/loongarch/include/asm/pgtable.h | 3 +++ 1 file changed, 3 insertions(+)
arch/loongarch/include/asm/pgtable.h +3 -0
@@ -593,6 +593,9 @@ static inline long pmd_protnone(pmd_t pm }#endif /* CONFIG_NUMA_BALANCING */ +#define pmd_leaf (pmd) ((pmd_val(pmd) & _PAGE_HUGE) != 0) +#define pud_leaf (pud) ((pud_val(pud) & _PAGE_HUGE) != 0) +/* * We provide our own get_unmapped area to cope with the virtual aliasing * constraints placed on us by the cache architecture.
Greg Kroah-Hartman
maintainerPATCH 670/739 powercap: intel_rapl: Fix invalid setting of Power Limit 4
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Srinivas Pandruvada <[email protected]>
commit 081690e941188acfad41b8dbde2112029a2aa206 upstream.
System runs at minimum performance, once powercap RAPL package domain enabled flag is changed from 1 to 0 to 1.
Setting RAPL package domain enabled flag to 0, results in setting of power limit 4 (PL4) MSR 0x601 to 0. This implies disabling PL4 limit. The PL4 limit controls the peak power. So setting 0, results in some undesirable performance, which depends on hardware implementation.
Even worse, when the enabled flag is set to 1 again. This will set PL4 MSR value to 0x01, which means reduce peak power to 0.125W. This will force system to run at the lowest possible performance on every PL4 supported system.
Setting enabled flag should only affect the "enable" bit, not other bits. Here it is changing power limit.
This is caused by a change which assumes that there is an enable bit in the PL4 MSR like other power limits. Although PL4 enable/disable bit is present with TPMI RAPL interface, it is not present with the MSR interface.
There is a rapl_primitive_info defined for non existent PL4 enable bit and then it is used with the commit 9050a9cd5e4c ("powercap: intel_rapl:
Cleanup Power Limits support") to enable PL4. This is wrong, hence remove this rapl primitive for PL4. Also in the function rapl_detect_powerlimit(), PL_ENABLE is used to check for the presence of power limits. Replace PL_ENABLE with PL_LIMIT, as PL_LIMIT must be present. Without this change, PL4 controls will not be available in the sysfs once rapl primitive for PL4 is removed.
--- drivers/powercap/intel_rapl_common.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/powercap/intel_rapl_common.c +1 -3
@@ -658,8 +658,6 @@ static struct rapl_primitive_info rpi_msr[NR_RAPL_PRIMITIVES] = { RAPL_DOMAIN_REG_LIMIT, ARBITRARY_UNIT, 0), [PL2_CLAMP] = PRIMITIVE_INFO_INIT(PL2_CLAMP, POWER_LIMIT2_CLAMP, 48, RAPL_DOMAIN_REG_LIMIT, ARBITRARY_UNIT, 0), - [PL4_ENABLE ] =PRIMITIVE_INFO_INIT (PL4_ENABLE ,POWER_LIMIT4_MASK ,0 , - RAPL_DOMAIN_REG_PL4, ARBITRARY_UNIT, 0), [TIME_WINDOW1 ] =PRIMITIVE_INFO_INIT (TIME_WINDOW1 ,TIME_WINDOW1_MASK ,17 , RAPL_DOMAIN_REG_LIMIT, TIME_UNIT, 0), [TIME_WINDOW2] = PRIMITIVE_INFO_INIT(TIME_WINDOW2, TIME_WINDOW2_MASK, 49,
@@ -1458,7 +1456,7 @@ static void rapl_detect_powerlimit(struct rapl_domain *rd) } } -if (rapl_read_pl_data (rd, i,PL_ENABLE , false, &val64)) +if (rapl_read_pl_data (rd, i,PL_LIMIT , false, &val64)) rd->rpl[i].name =NULL ; } }
Signature · 1 line
2.42.0
Greg Kroah-Hartman
maintainerPATCH 671/739 powerpc/ftrace: Fix dropping weak symbols with older toolchains
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Naveen N Rao <[email protected]>
commit f6834c8c59a8e977a6f6e4f96c5d28dfa5db8430 upstream.
The minimum level of gcc supported for building the kernel is v5.1. v5.x releases of gcc emitted a three instruction sequence for -mprofile-kernel:
mflr r0 std r0, 16(r1) bl _mcount
It is only with the v6.x releases that gcc started emitting the two instruction sequence for -mprofile-kernel, omitting the second store instruction.
With the older three instruction sequence, the actual ftrace location can be the 5th instruction into a function. Update the allowed offset for ftrace location from 12 to 16 to accommodate the same.
--- arch/powerpc/include/asm/ftrace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/include/asm/ftrace.h +1 -1
@@ -12,7 +12,7 @@/* Ignore unused weak functions which will have larger offsets */ #ifdef CONFIG_MPROFILE_KERNEL -#define FTRACE_MCOUNT_MAX_OFFSET 12 +#define FTRACE_MCOUNT_MAX_OFFSET 16#elif defined(CONFIG_PPC32 )#define FTRACE_MCOUNT_MAX_OFFSET 8#endif
Greg Kroah-Hartman
maintainerPATCH 672/739 i3c: master: svc: fix probe failure when no i3c device exist
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Frank Li <[email protected]>
commit 6e13d6528be2f7e801af63c8153b87293f25d736 upstream.
I3C masters are expected to support hot-join. This means at initialization time we might not yet discover any device and this should not be treated as a fatal error.
During the DAA procedure which happens at probe time, if no device has joined, all CCC will be NACKed (from a bus perspective). This leads to an early return with an error code which fails the probe of the master.
Let's avoid this by just telling the core through an I3C_ERROR_M2 return command code that no device was discovered, which is a valid situation. This way the master will no longer bail out and fail to probe for a wrong reason.
--- drivers/i3c/master/svc-i3c-master.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-)
drivers/i3c/master/svc-i3c-master.c +12 -2
@@ -789,6 +789,10 @@ static int svc_i3c_master_do_daa_locked(*/ break ; }else if (SVC_I3C_MSTATUS_NACKED (reg)) { +/* No I3C devices attached */ +if (dev_nb ==0 ) +break ; +/* * A slave device nacked the address, this is * allowed only once, DAA will be stopped and
@@ -1263,11 +1267,17 @@ static int svc_i3c_master_send_ccc_cmd(s {struct svc_i3c_master *master =to_svc_i3c_master (m);bool broadcast = cmd->id <0x80 ; +int ret;if (broadcast) -return svc_i3c_master_send_bdcast_ccc_cmd (master, cmd); + ret =svc_i3c_master_send_bdcast_ccc_cmd (master, cmd);else -return svc_i3c_master_send_direct_ccc_cmd (master, cmd); + ret =svc_i3c_master_send_direct_ccc_cmd (master, cmd); + +if (ret) + cmd->err =I3C_ERROR_M2 ; + +return ret; } static int svc_i3c_master_priv_xfers(struct i3c_dev_desc *dev,
Greg Kroah-Hartman
maintainerPATCH 673/739 io_uring: Dont set affinity on a dying sqpoll thread
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Gabriel Krisman Bertazi <[email protected]>
commit bd6fc5da4c51107e1e0cec4a3a07963d1dae2c84 upstream.
Syzbot reported a null-ptr-deref of sqd->thread inside io_sqpoll_wq_cpu_affinity. It turns out the sqd->thread can go away from under us during io_uring_register, in case the process gets a fatal signal during io_uring_register.
It is not particularly hard to hit the race, and while I am not sure this is the exact case hit by syzbot, it solves it. Finally, checking ->thread is enough to close the race because we locked sqd while "parking" the thread, thus preventing it from going away.
I reproduced it fairly consistently with a program that does:
int main(void) {
...
io_uring_queue_init(RING_LEN, &ring1, IORING_SETUP_SQPOLL);
while (1) {
io_uring_register_iowq_aff(ring, 1, &mask); }
}
Executed in a loop with timeout to trigger SIGTERM:
while true; do timeout 1 /a.out ; done
This will hit the following BUG() in very few attempts.
BUG: kernel NULL pointer dereference, address: 00000000000007a8 PGD 800000010e949067 P4D 800000010e949067 PUD 10e46e067 PMD 0 Oops: 0000 [#1] PREEMPT SMP PTI CPU: 0 PID: 15715 Comm: dead-sqpoll Not tainted 6.5.0-rc7-next-20230825-g193296236fa0-dirty #23 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 0.0.0 02/06/2015 RIP: 0010:io_sqpoll_wq_cpu_affinity+0x27/0x70 Code: 90 90 90 0f 1f 44 00 00 55 53 48 8b 9f 98 03 00 00 48 85 db 74 4f 48 89 df 48 89 f5 e8 e2 f8 ff ff 48 8b 43 38 48 85 c0 74 22 <48> 8b b8 a8 07 00 00 48 89 ee e8 ba b1 00 00 48 89 df 89 c5 e8 70 RSP: 0018:ffffb04040ea7e70 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff93c010749e40 RCX: 0000000000000001 RDX: 0000000000000000 RSI: ffffffffa7653331 RDI: 00000000ffffffff RBP: ffffb04040ea7eb8 R08: 0000000000000000 R09: c0000000ffffdfff R10: ffff93c01141b600 R11: ffffb04040ea7d18 R12: ffff93c00ea74840 R13: 0000000000000011 R14: 0000000000000000 R15: ffff93c00ea74800 FS: 00007fb7c276ab80(0000) GS:ffff93c36f200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000000007a8 CR3: 0000000111634003 CR4: 0000000000370ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <TASK> ? __die_body+0x1a/0x60 ? page_fault_oops+0x154/0x440 ? do_user_addr_fault+0x174/0x7b0 ? exc_page_fault+0x63/0x140 ? asm_exc_page_fault+0x22/0x30 ? io_sqpoll_wq_cpu_affinity+0x27/0x70 __io_register_iowq_aff+0x2b/0x60 __io_uring_register+0x614/0xa70 __x64_sys_io_uring_register+0xaa/0x1a0 do_syscall_64+0x3a/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 RIP: 0033:0x7fb7c226fec9 Code: 2e 00 b8 ca 00 00 00 0f 05 eb a5 66 0f 1f 44 00 00 48 89 f8 48 89
f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 97 7f 2d 00 f7 d8 64 89 01 48
RSP: 002b:00007ffe2c0674f8 EFLAGS: 00000246 ORIG_RAX: 00000000000001ab
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fb7c226fec9
RDX: 00007ffe2c067530 RSI: 0000000000000011 RDI: 0000000000000003
RBP: 00007ffe2c0675d0 R08: 00007ffe2c067550 R09: 00007ffe2c067550
R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe2c067750 R14: 0000000000000000 R15: 0000000000000000
</TASK> Modules linked in: CR2: 00000000000007a8 ---[ end trace 0000000000000000 ]---
--- io_uring/sqpoll.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
io_uring/sqpoll.c +3 -1
@@ -430,7 +430,9 @@ __cold int io_sqpoll_wq_cpu_affinity(strif (sqd) {io_sq_thread_park (sqd); - ret =io_wq_cpu_affinity (sqd->thread->io_uring, mask); +/* Don't set affinity for a dying thread */ +if (sqd->thread) + ret =io_wq_cpu_affinity (sqd->thread->io_uring, mask);io_sq_thread_unpark (sqd); }
Greg Kroah-Hartman
maintainerPATCH 674/739 arm64: csum: Fix OoB access in IP checksum code for negative lengths
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Will Deacon <[email protected]>
commit 8bd795fedb8450ecbef18eeadbd23ed8fc7630f5 upstream.
Although commit c2c24edb1d9c ("arm64: csum: Fix pathological zero-length calls") added an early return for zero-length input, syzkaller has popped up with an example of a _negative_ length which causes an undefined shift and an out-of-bounds read:
| BUG: KASAN: slab-out-of-bounds in do_csum+0x44/0x254 arch/arm64/lib/csum.c:39 | Read of size 4294966928 at addr ffff0000d7ac0170 by task syz-executor412/5975 | | CPU: 0 PID: 5975 Comm: syz-executor412 Not tainted 6.4.0-rc4-syzkaller-g908f31f2a05b #0 | Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 | Call trace: | dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 | show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 | __dump_stack lib/dump_stack.c:88 [inline] | dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 | print_address_description mm/kasan/report.c:351 [inline] | print_report+0x174/0x514 mm/kasan/report.c:462 | kasan_report+0xd4/0x130 mm/kasan/report.c:572 | kasan_check_range+0x264/0x2a4 mm/kasan/generic.c:187 | __kasan_check_read+0x20/0x30 mm/kasan/shadow.c:31 | do_csum+0x44/0x254 arch/arm64/lib/csum.c:39 | csum_partial+0x30/0x58 lib/checksum.c:128 | gso_make_checksum include/linux/skbuff.h:4928 [inline] | __udp_gso_segment+0xaf4/0x1bc4 net/ipv4/udp_offload.c:332 | udp6_ufo_fragment+0x540/0xca0 net/ipv6/udp_offload.c:47 | ipv6_gso_segment+0x5cc/0x1760 net/ipv6/ip6_offload.c:119 | skb_mac_gso_segment+0x2b4/0x5b0 net/core/gro.c:141 | __skb_gso_segment+0x250/0x3d0 net/core/dev.c:3401 | skb_gso_segment include/linux/netdevice.h:4859 [inline] | validate_xmit_skb+0x364/0xdbc net/core/dev.c:3659 | validate_xmit_skb_list+0x94/0x130 net/core/dev.c:3709 | sch_direct_xmit+0xe8/0x548 net/sched/sch_generic.c:327 | __dev_xmit_skb net/core/dev.c:3805 [inline] | __dev_queue_xmit+0x147c/0x3318 net/core/dev.c:4210 | dev_queue_xmit include/linux/netdevice.h:3085 [inline] | packet_xmit+0x6c/0x318 net/packet/af_packet.c:276 | packet_snd net/packet/af_packet.c:3081 [inline] | packet_sendmsg+0x376c/0x4c98 net/packet/af_packet.c:3113 | sock_sendmsg_nosec net/socket.c:724 [inline] | sock_sendmsg net/socket.c:747 [inline] | __sys_sendto+0x3b4/0x538 net/socket.c:2144
Extend the early return to reject negative lengths as well, aligning our implementation with the generic code in lib/checksum.c
--- arch/arm64/lib/csum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/lib/csum.c +1 -1
@@ -24,7 +24,7 @@ unsigned int __no_sanitize_address do_csconst u64 *ptr;u64 data, sum64 =0 ; -if (unlikely (len ==0 )) +if (unlikely (len <=0 ))return 0 ; offset = (unsigned long )buff &7 ;
Greg Kroah-Hartman
maintainerPATCH 675/739 ALSA: usb-audio: Fix potential memory leaks at error path for UMP open
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Takashi Iwai <[email protected]>
commit b1757fa30ef14f254f4719bf6f7d54a4c8207216 upstream.
The allocation and initialization errors at alloc_midi_urbs() that is called at MIDI 2.0 / UMP device are supposed to be handled at the caller side by invoking free_midi_urbs(). However, free_midi_urbs() loops only for ep->num_urbs entries, and since ep->num_entries wasn't updated yet at the allocation / init error in alloc_midi_urbs(), this entry won't be released.
The intention of free_midi_urbs() is to release the whole elements, so change the loop size to NUM_URBS to scan over all elements for fixing the missed releases.
Also, the call of free_midi_urbs() is missing at snd_usb_midi_v2_open(). Although it'll be released later at reopen/close or disconnection, it's better to release immediately at the error path.
--- sound/usb/midi2.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
sound/usb/midi2.c +5 -2
@@ -265,7 +265,7 @@ static void free_midi_urbs(struct snd_usif (!ep)return ; -for (i =0 ; i < ep->num_urbs; ++i) { +for (i =0 ; i <NUM_URBS ; ++i) { ctx = &ep->urbs[i];if (!ctx->urb)break ;
@@ -279,6 +279,7 @@ static void free_midi_urbs(struct snd_us }/* allocate URBs for an EP */ +/* the callers should handle allocation errors via free_midi_urbs() */ static int alloc_midi_urbs (struct snd_usb_midi2_endpoint *ep) {struct snd_usb_midi2_urb *ctx;
@@ -351,8 +352,10 @@ static int snd_usb_midi_v2_open(struct sreturn -EIO ;if (ep->direction ==STR_OUT ) { err =alloc_midi_urbs (ep); -if (err) +if (err) { +free_midi_urbs (ep);return err; + } }return 0 ; }
Greg Kroah-Hartman
maintainerPATCH 676/739 ALSA: seq: Fix snd_seq_expand_var_event() call to user-space
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Takashi Iwai <[email protected]>
commit 86496fd4a2fabb7c978fdaca2d4b718207a96d36 upstream.
The recent fix to clear the padding bytes at snd_seq_expand_var_event() broke the read to user-space with in_kernel=0 parameter. For user-space address, it has to use clear_user() instead of memset().
--- sound/core/seq/seq_memory.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
sound/core/seq/seq_memory.c +7 -2
@@ -187,8 +187,13 @@ int snd_seq_expand_var_event(const struc err =expand_var_event (event,0 , len, buf, in_kernel);if (err <0 )return err; -if (len != newlen) -memset (buf + len,0 , newlen - len); +if (len != newlen) { +if (in_kernel) +memset (buf + len,0 , newlen - len); +else if (clear_user ((__force void __user *)buf + len, + newlen - len)) +return -EFAULT ; + }return newlen; }EXPORT_SYMBOL (snd_seq_expand_var_event);
Greg Kroah-Hartman
maintainerPATCH 677/739 ALSA: hda/cirrus: Fix broken audio on hardware with two CS42L42 codecs.
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Vitaly Rodionov <[email protected]>
commit 99bf5b0baac941176a6a3d5cef7705b29808de34 upstream.
Recently in v6.3-rc1 there was a change affecting behaviour of hrtimers (commit 0c52310f260014d95c1310364379772cb74cf82d) and causing few issues on platforms with two CS42L42 codecs. Canonical/Dell has reported an issue with Vostro-3910.
We need to increase this value by 15ms.
--- sound/pci/hda/patch_cs8409.c | 2 +- sound/pci/hda/patch_cs8409.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
sound/pci/hda/patch_cs8409.c +1 -1
@@ -888,7 +888,7 @@ static void cs42l42_resume(struct sub_co/* Initialize CS42L42 companion codec */ cs8409_i2c_bulk_write (cs42l42, cs42l42->init_seq, cs42l42->init_seq_num); -usleep_range (30000 ,35000 ); +msleep (CS42L42_INIT_TIMEOUT_MS );/* Clear interrupts, by reading interrupt status registers */ cs8409_i2c_bulk_read (cs42l42, irq_regs,ARRAY_SIZE (irq_regs));
sound/pci/hda/patch_cs8409.h +1 -0
@@ -229,6 +229,7 @@ enum cs8409_coefficient_index_registers#define CS42L42_I2C_SLEEP_US (2000)#define CS42L42_PDN_TIMEOUT_US (250000)#define CS42L42_PDN_SLEEP_US (2000) +#define CS42L42_INIT_TIMEOUT_MS (45)#define CS42L42_FULL_SCALE_VOL_MASK (2)#define CS42L42_FULL_SCALE_VOL_0DB (1)#define CS42L42_FULL_SCALE_VOL_MINUS6DB (0)
Greg Kroah-Hartman
maintainerPATCH 678/739 selftests/landlock: Fix a resource leak
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ding Xiang <[email protected]>
commit 2a2015495142ee0a35711b5dcf7b215c31489f27 upstream.
The opened file should be closed before return, otherwise resource leak will occur.
--- tools/testing/selftests/landlock/fs_test.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
tools/testing/selftests/landlock/fs_test.c +5 -3
@@ -113,7 +113,7 @@ static bool supports_filesystem(const ch {char str[32 ];int len; -bool res; +bool res = true;FILE *const inf =fopen ("/proc/filesystems" ,"r" );/*
@@ -125,14 +125,16 @@ static bool supports_filesystem(const ch/* filesystem can be null for bind mounts. */ if (!filesystem) -return true; + goto out; len =snprintf (str,sizeof (str),"nodev\t%s\n" , filesystem);if (len >=sizeof (str))/* Ignores too-long filesystem names. */ -return true; + goto out; res =fgrep (inf, str); + +out:fclose (inf);return res; }
Greg Kroah-Hartman
maintainerPATCH 679/739 media: dvb: symbol fixup for dvb_attach()
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Greg Kroah-Hartman <[email protected]>
commit 86495af1171e1feec79faa9b64c05c89f46e41d1 upstream.
In commit 9011e49d54dc ("modules: only allow symbol_get of EXPORT_SYMBOL_GPL modules") the use of symbol_get is properly restricted to GPL-only marked symbols. This interacts oddly with the DVB logic which only uses dvb_attach() to load the dvb driver which then uses symbol_get().
Fix this up by properly marking all of the dvb_attach attach symbols as EXPORT_SYMBOL_GPL().
--- drivers/media/dvb-frontends/ascot2e.c | 2 +- drivers/media/dvb-frontends/atbm8830.c | 2 +- drivers/media/dvb-frontends/au8522_dig.c | 2 +- drivers/media/dvb-frontends/bcm3510.c | 2 +- drivers/media/dvb-frontends/cx22700.c | 2 +- drivers/media/dvb-frontends/cx22702.c | 2 +- drivers/media/dvb-frontends/cx24110.c | 2 +- drivers/media/dvb-frontends/cx24113.c | 2 +- drivers/media/dvb-frontends/cx24116.c | 2 +- drivers/media/dvb-frontends/cx24120.c | 2 +- drivers/media/dvb-frontends/cx24123.c | 2 +- drivers/media/dvb-frontends/cxd2820r_core.c | 2 +- drivers/media/dvb-frontends/cxd2841er.c | 4 ++-- drivers/media/dvb-frontends/cxd2880/cxd2880_top.c | 2 +- drivers/media/dvb-frontends/dib0070.c | 2 +- drivers/media/dvb-frontends/dib0090.c | 4 ++-- drivers/media/dvb-frontends/dib3000mb.c | 2 +- drivers/media/dvb-frontends/dib3000mc.c | 2 +- drivers/media/dvb-frontends/dib7000m.c | 2 +- drivers/media/dvb-frontends/dib7000p.c | 2 +- drivers/media/dvb-frontends/dib8000.c | 2 +- drivers/media/dvb-frontends/dib9000.c | 2 +- drivers/media/dvb-frontends/drx39xyj/drxj.c | 2 +- drivers/media/dvb-frontends/drxd_hard.c | 2 +- drivers/media/dvb-frontends/drxk_hard.c | 2 +- drivers/media/dvb-frontends/ds3000.c | 2 +- drivers/media/dvb-frontends/dvb-pll.c | 2 +- drivers/media/dvb-frontends/ec100.c | 2 +- drivers/media/dvb-frontends/helene.c | 4 ++-- drivers/media/dvb-frontends/horus3a.c | 2 +- drivers/media/dvb-frontends/isl6405.c | 2 +- drivers/media/dvb-frontends/isl6421.c | 2 +- drivers/media/dvb-frontends/isl6423.c | 2 +- drivers/media/dvb-frontends/itd1000.c | 2 +- drivers/media/dvb-frontends/ix2505v.c | 2 +- drivers/media/dvb-frontends/l64781.c | 2 +- drivers/media/dvb-frontends/lg2160.c | 2 +- drivers/media/dvb-frontends/lgdt3305.c | 2 +- drivers/media/dvb-frontends/lgdt3306a.c | 2 +- drivers/media/dvb-frontends/lgdt330x.c | 2 +- drivers/media/dvb-frontends/lgs8gxx.c | 2 +- drivers/media/dvb-frontends/lnbh25.c | 2 +- drivers/media/dvb-frontends/lnbp21.c | 4 ++-- drivers/media/dvb-frontends/lnbp22.c | 2 +- drivers/media/dvb-frontends/m88ds3103.c | 2 +- drivers/media/dvb-frontends/m88rs2000.c | 2 +- drivers/media/dvb-frontends/mb86a16.c | 2 +- drivers/media/dvb-frontends/mb86a20s.c | 2 +- drivers/media/dvb-frontends/mt312.c | 2 +- drivers/media/dvb-frontends/mt352.c | 2 +- drivers/media/dvb-frontends/nxt200x.c | 2 +- drivers/media/dvb-frontends/nxt6000.c | 2 +- drivers/media/dvb-frontends/or51132.c | 2 +- drivers/media/dvb-frontends/or51211.c | 2 +- drivers/media/dvb-frontends/s5h1409.c | 2 +- drivers/media/dvb-frontends/s5h1411.c | 2 +- drivers/media/dvb-frontends/s5h1420.c | 2 +- drivers/media/dvb-frontends/s5h1432.c | 2 +- drivers/media/dvb-frontends/s921.c | 2 +- drivers/media/dvb-frontends/si21xx.c | 2 +- drivers/media/dvb-frontends/sp887x.c | 2 +- drivers/media/dvb-frontends/stb0899_drv.c | 2 +- drivers/media/dvb-frontends/stb6000.c | 2 +- drivers/media/dvb-frontends/stb6100.c | 2 +- drivers/media/dvb-frontends/stv0288.c | 2 +- drivers/media/dvb-frontends/stv0297.c | 2 +- drivers/media/dvb-frontends/stv0299.c | 2 +- drivers/media/dvb-frontends/stv0367.c | 6 +++--- drivers/media/dvb-frontends/stv0900_core.c | 2 +- drivers/media/dvb-frontends/stv090x.c | 2 +- drivers/media/dvb-frontends/stv6110.c | 2 +- drivers/media/dvb-frontends/stv6110x.c | 2 +- drivers/media/dvb-frontends/tda10021.c | 2 +- drivers/media/dvb-frontends/tda10023.c | 2 +- drivers/media/dvb-frontends/tda10048.c | 2 +- drivers/media/dvb-frontends/tda1004x.c | 4 ++-- drivers/media/dvb-frontends/tda10086.c | 2 +- drivers/media/dvb-frontends/tda665x.c | 2 +- drivers/media/dvb-frontends/tda8083.c | 2 +- drivers/media/dvb-frontends/tda8261.c | 2 +- drivers/media/dvb-frontends/tda826x.c | 2 +- drivers/media/dvb-frontends/ts2020.c | 2 +- drivers/media/dvb-frontends/tua6100.c | 2 +- drivers/media/dvb-frontends/ves1820.c | 2 +- drivers/media/dvb-frontends/ves1x93.c | 2 +- drivers/media/dvb-frontends/zl10036.c | 2 +- drivers/media/dvb-frontends/zl10039.c | 2 +- drivers/media/dvb-frontends/zl10353.c | 2 +- drivers/media/pci/bt8xx/dst.c | 2 +- drivers/media/pci/bt8xx/dst_ca.c | 2 +- drivers/media/pci/ddbridge/ddbridge-dummy-fe.c | 2 +- drivers/media/tuners/fc0011.c | 2 +- drivers/media/tuners/fc0012.c | 2 +- drivers/media/tuners/fc0013.c | 2 +- drivers/media/tuners/max2165.c | 2 +- drivers/media/tuners/mc44s803.c | 2 +- drivers/media/tuners/mt2060.c | 2 +- drivers/media/tuners/mt2131.c | 2 +- drivers/media/tuners/mt2266.c | 2 +- drivers/media/tuners/mxl5005s.c | 2 +- drivers/media/tuners/qt1010.c | 2 +- drivers/media/tuners/tda18218.c | 2 +- drivers/media/tuners/xc2028.c | 2 +- drivers/media/tuners/xc4000.c | 2 +- drivers/media/tuners/xc5000.c | 2 +- drivers/staging/media/av7110/sp8870.c | 2 +- 106 files changed, 113 insertions(+), 113 deletions(-)
drivers/media/dvb-frontends/ascot2e.c +1 -1
@@ -533,7 +533,7 @@ struct dvb_frontend *ascot2e_attach(stru priv->i2c_address, priv->i2c);return fe; } -EXPORT_SYMBOL (ascot2e_attach); +EXPORT_SYMBOL_GPL (ascot2e_attach);MODULE_DESCRIPTION ("Sony ASCOT2E terr/cab tuner driver" );MODULE_AUTHOR ("[email protected]" );
drivers/media/dvb-frontends/atbm8830.c +1 -1
@@ -489,7 +489,7 @@ error_out:return NULL ; } -EXPORT_SYMBOL (atbm8830_attach); +EXPORT_SYMBOL_GPL (atbm8830_attach);MODULE_DESCRIPTION ("AltoBeam ATBM8830/8831 GB20600 demodulator driver" );MODULE_AUTHOR ("David T. L. Wong <[email protected]>" );
drivers/media/dvb-frontends/au8522_dig.c +1 -1
@@ -879,7 +879,7 @@ error:au8522_release_state (state);return NULL ; } -EXPORT_SYMBOL (au8522_attach); +EXPORT_SYMBOL_GPL (au8522_attach);static const struct dvb_frontend_ops au8522_ops = { .delsys = {SYS_ATSC ,SYS_DVBC_ANNEX_B },
drivers/media/dvb-frontends/bcm3510.c +1 -1
@@ -835,7 +835,7 @@ error:kfree (state);return NULL ; } -EXPORT_SYMBOL (bcm3510_attach); +EXPORT_SYMBOL_GPL (bcm3510_attach);static const struct dvb_frontend_ops bcm3510_ops = { .delsys = {SYS_ATSC ,SYS_DVBC_ANNEX_B },
drivers/media/dvb-frontends/cx22700.c +1 -1
@@ -432,4 +432,4 @@ MODULE_DESCRIPTION("Conexant CX22700 DVBMODULE_AUTHOR ("Holger Waechtler" );MODULE_LICENSE ("GPL" ); -EXPORT_SYMBOL (cx22700_attach); +EXPORT_SYMBOL_GPL (cx22700_attach);
drivers/media/dvb-frontends/cx22702.c +1 -1
@@ -604,7 +604,7 @@ error:kfree (state);return NULL ; } -EXPORT_SYMBOL (cx22702_attach); +EXPORT_SYMBOL_GPL (cx22702_attach);static const struct dvb_frontend_ops cx22702_ops = { .delsys = {SYS_DVBT },
drivers/media/dvb-frontends/cx24110.c +1 -1
@@ -653,4 +653,4 @@ MODULE_DESCRIPTION("Conexant CX24110 DVBMODULE_AUTHOR ("Peter Hettkamp" );MODULE_LICENSE ("GPL" ); -EXPORT_SYMBOL (cx24110_attach); +EXPORT_SYMBOL_GPL (cx24110_attach);
drivers/media/dvb-frontends/cx24113.c +1 -1
@@ -590,7 +590,7 @@ error:return NULL ; } -EXPORT_SYMBOL (cx24113_attach); +EXPORT_SYMBOL_GPL (cx24113_attach);module_param (debug, int,0644 );MODULE_PARM_DESC (debug,"Activates frontend debugging (default:0)" );
drivers/media/dvb-frontends/cx24116.c +1 -1
@@ -1133,7 +1133,7 @@ struct dvb_frontend *cx24116_attach(cons state->frontend.demodulator_priv = state;return &state->frontend; } -EXPORT_SYMBOL (cx24116_attach); +EXPORT_SYMBOL_GPL (cx24116_attach);/* * Initialise or wake up device
drivers/media/dvb-frontends/cx24120.c +1 -1
@@ -305,7 +305,7 @@ error:kfree (state);return NULL ; } -EXPORT_SYMBOL (cx24120_attach); +EXPORT_SYMBOL_GPL (cx24120_attach);static int cx24120_test_rom (struct cx24120_state *state) {
drivers/media/dvb-frontends/cx24123.c +1 -1
@@ -1096,7 +1096,7 @@ error:return NULL ; } -EXPORT_SYMBOL (cx24123_attach); +EXPORT_SYMBOL_GPL (cx24123_attach);static const struct dvb_frontend_ops cx24123_ops = { .delsys = {SYS_DVBS },
drivers/media/dvb-frontends/cxd2820r_core.c +1 -1
@@ -536,7 +536,7 @@ struct dvb_frontend *cxd2820r_attach(conreturn pdata.get_dvb_frontend (client); } -EXPORT_SYMBOL (cxd2820r_attach); +EXPORT_SYMBOL_GPL (cxd2820r_attach);static struct dvb_frontend *cxd2820r_get_dvb_frontend (struct i2c_client *client) {
drivers/media/dvb-frontends/cxd2841er.c +2 -2
@@ -3930,14 +3930,14 @@ struct dvb_frontend *cxd2841er_attach_s( {return cxd2841er_attach (cfg, i2c,SYS_DVBS ); } -EXPORT_SYMBOL (cxd2841er_attach_s); +EXPORT_SYMBOL_GPL (cxd2841er_attach_s);struct dvb_frontend *cxd2841er_attach_t_c (struct cxd2841er_config *cfg,struct i2c_adapter *i2c) {return cxd2841er_attach (cfg, i2c,0 ); } -EXPORT_SYMBOL (cxd2841er_attach_t_c); +EXPORT_SYMBOL_GPL (cxd2841er_attach_t_c);static const struct dvb_frontend_ops cxd2841er_dvbs_s2_ops = { .delsys = {SYS_DVBS ,SYS_DVBS2 },
drivers/media/dvb-frontends/cxd2880/cxd2880_top.c +1 -1
@@ -1950,7 +1950,7 @@ struct dvb_frontend *cxd2880_attach(strureturn fe; } -EXPORT_SYMBOL (cxd2880_attach); +EXPORT_SYMBOL_GPL (cxd2880_attach);MODULE_DESCRIPTION ("Sony CXD2880 DVB-T2/T tuner + demod driver" );MODULE_AUTHOR ("Sony Semiconductor Solutions Corporation" );
drivers/media/dvb-frontends/dib0070.c +1 -1
@@ -762,7 +762,7 @@ free_mem: fe->tuner_priv =NULL ;return NULL ; } -EXPORT_SYMBOL (dib0070_attach); +EXPORT_SYMBOL_GPL (dib0070_attach);MODULE_AUTHOR ("Patrick Boettcher <[email protected]>" );MODULE_DESCRIPTION ("Driver for the DiBcom 0070 base-band RF Tuner" );
drivers/media/dvb-frontends/dib0090.c +2 -2
@@ -2634,7 +2634,7 @@ struct dvb_frontend *dib0090_register(streturn NULL ; } -EXPORT_SYMBOL (dib0090_register); +EXPORT_SYMBOL_GPL (dib0090_register);struct dvb_frontend *dib0090_fw_register (struct dvb_frontend *fe,struct i2c_adapter *i2c,const struct dib0090_config *config) {
@@ -2660,7 +2660,7 @@ free_mem: fe->tuner_priv =NULL ;return NULL ; } -EXPORT_SYMBOL (dib0090_fw_register); +EXPORT_SYMBOL_GPL (dib0090_fw_register);MODULE_AUTHOR ("Patrick Boettcher <[email protected]>" );MODULE_AUTHOR ("Olivier Grenie <[email protected]>" );
drivers/media/dvb-frontends/dib3000mb.c +1 -1
@@ -815,4 +815,4 @@ MODULE_AUTHOR(DRIVER_AUTHOR);MODULE_DESCRIPTION (DRIVER_DESC );MODULE_LICENSE ("GPL" ); -EXPORT_SYMBOL (dib3000mb_attach); +EXPORT_SYMBOL_GPL (dib3000mb_attach);
drivers/media/dvb-frontends/dib3000mc.c +1 -1
@@ -935,7 +935,7 @@ error:kfree (st);return NULL ; } -EXPORT_SYMBOL (dib3000mc_attach); +EXPORT_SYMBOL_GPL (dib3000mc_attach);static const struct dvb_frontend_ops dib3000mc_ops = { .delsys = {SYS_DVBT },
drivers/media/dvb-frontends/dib7000m.c +1 -1
@@ -1434,7 +1434,7 @@ error:kfree (st);return NULL ; } -EXPORT_SYMBOL (dib7000m_attach); +EXPORT_SYMBOL_GPL (dib7000m_attach);static const struct dvb_frontend_ops dib7000m_ops = { .delsys = {SYS_DVBT },
drivers/media/dvb-frontends/dib7000p.c +1 -1
@@ -2822,7 +2822,7 @@ void *dib7000p_attach(struct dib7000p_opreturn ops; } -EXPORT_SYMBOL (dib7000p_attach); +EXPORT_SYMBOL_GPL (dib7000p_attach);static const struct dvb_frontend_ops dib7000p_ops = { .delsys = {SYS_DVBT },
drivers/media/dvb-frontends/dib8000.c +1 -1
@@ -4527,7 +4527,7 @@ void *dib8000_attach(struct dib8000_opsreturn ops; } -EXPORT_SYMBOL (dib8000_attach); +EXPORT_SYMBOL_GPL (dib8000_attach);MODULE_AUTHOR ("Olivier Grenie <[email protected], Patrick Boettcher <[email protected]>" );MODULE_DESCRIPTION ("Driver for the DiBcom 8000 ISDB-T demodulator" );
drivers/media/dvb-frontends/dib9000.c +1 -1
@@ -2546,7 +2546,7 @@ error:kfree (st);return NULL ; } -EXPORT_SYMBOL (dib9000_attach); +EXPORT_SYMBOL_GPL (dib9000_attach);static const struct dvb_frontend_ops dib9000_ops = { .delsys = {SYS_DVBT },
drivers/media/dvb-frontends/drx39xyj/drxj.c +1 -1
@@ -12372,7 +12372,7 @@ error:return NULL ; } -EXPORT_SYMBOL (drx39xxj_attach); +EXPORT_SYMBOL_GPL (drx39xxj_attach);static const struct dvb_frontend_ops drx39xxj_ops = { .delsys = {SYS_ATSC ,SYS_DVBC_ANNEX_B },
drivers/media/dvb-frontends/drxd_hard.c +1 -1
@@ -2939,7 +2939,7 @@ error:kfree (state);return NULL ; } -EXPORT_SYMBOL (drxd_attach); +EXPORT_SYMBOL_GPL (drxd_attach);MODULE_DESCRIPTION ("DRXD driver" );MODULE_AUTHOR ("Micronas" );
drivers/media/dvb-frontends/drxk_hard.c +1 -1
@@ -6833,7 +6833,7 @@ error:kfree (state);return NULL ; } -EXPORT_SYMBOL (drxk_attach); +EXPORT_SYMBOL_GPL (drxk_attach);MODULE_DESCRIPTION ("DRX-K driver" );MODULE_AUTHOR ("Ralph Metzler" );
drivers/media/dvb-frontends/ds3000.c +1 -1
@@ -859,7 +859,7 @@ struct dvb_frontend *ds3000_attach(constds3000_set_voltage (&state->frontend,SEC_VOLTAGE_OFF );return &state->frontend; } -EXPORT_SYMBOL (ds3000_attach); +EXPORT_SYMBOL_GPL (ds3000_attach);static int ds3000_set_carrier_offset (struct dvb_frontend *fe,s32 carrier_offset_khz)
drivers/media/dvb-frontends/dvb-pll.c +1 -1
@@ -866,7 +866,7 @@ out:return NULL ; } -EXPORT_SYMBOL (dvb_pll_attach); +EXPORT_SYMBOL_GPL (dvb_pll_attach); static int
drivers/media/dvb-frontends/ec100.c +1 -1
@@ -299,7 +299,7 @@ error:kfree (state);return NULL ; } -EXPORT_SYMBOL (ec100_attach); +EXPORT_SYMBOL_GPL (ec100_attach);static const struct dvb_frontend_ops ec100_ops = { .delsys = {SYS_DVBT },
drivers/media/dvb-frontends/helene.c +2 -2
@@ -1025,7 +1025,7 @@ struct dvb_frontend *helene_attach_s(str priv->i2c_address, priv->i2c);return fe; } -EXPORT_SYMBOL (helene_attach_s); +EXPORT_SYMBOL_GPL (helene_attach_s); struct dvb_frontend *helene_attach(struct dvb_frontend *fe, const struct helene_config *config,
@@ -1061,7 +1061,7 @@ struct dvb_frontend *helene_attach(struc priv->i2c_address, priv->i2c);return fe; } -EXPORT_SYMBOL (helene_attach); +EXPORT_SYMBOL_GPL (helene_attach);static int helene_probe (struct i2c_client *client) {
drivers/media/dvb-frontends/horus3a.c +1 -1
@@ -395,7 +395,7 @@ struct dvb_frontend *horus3a_attach(stru priv->i2c_address, priv->i2c);return fe; } -EXPORT_SYMBOL (horus3a_attach); +EXPORT_SYMBOL_GPL (horus3a_attach);MODULE_DESCRIPTION ("Sony HORUS3A satellite tuner driver" );MODULE_AUTHOR ("Sergey Kozlov <[email protected]>" );
drivers/media/dvb-frontends/isl6405.c +1 -1
@@ -141,7 +141,7 @@ struct dvb_frontend *isl6405_attach(strureturn fe; } -EXPORT_SYMBOL (isl6405_attach); +EXPORT_SYMBOL_GPL (isl6405_attach);MODULE_DESCRIPTION ("Driver for lnb supply and control ic isl6405" );MODULE_AUTHOR ("Hartmut Hackmann & Oliver Endriss" );
drivers/media/dvb-frontends/isl6421.c +1 -1
@@ -213,7 +213,7 @@ struct dvb_frontend *isl6421_attach(strureturn fe; } -EXPORT_SYMBOL (isl6421_attach); +EXPORT_SYMBOL_GPL (isl6421_attach);MODULE_DESCRIPTION ("Driver for lnb supply and control ic isl6421" );MODULE_AUTHOR ("Andrew de Quincey & Oliver Endriss" );
drivers/media/dvb-frontends/isl6423.c +1 -1
@@ -289,7 +289,7 @@ exit: fe->sec_priv =NULL ;return NULL ; } -EXPORT_SYMBOL (isl6423_attach); +EXPORT_SYMBOL_GPL (isl6423_attach);MODULE_DESCRIPTION ("ISL6423 SEC" );MODULE_AUTHOR ("Manu Abraham" );
drivers/media/dvb-frontends/itd1000.c +1 -1
@@ -389,7 +389,7 @@ struct dvb_frontend *itd1000_attach(strureturn fe; } -EXPORT_SYMBOL (itd1000_attach); +EXPORT_SYMBOL_GPL (itd1000_attach);MODULE_AUTHOR ("Patrick Boettcher <[email protected]>" );MODULE_DESCRIPTION ("Integrant ITD1000 driver" );
drivers/media/dvb-frontends/ix2505v.c +1 -1
@@ -302,7 +302,7 @@ error:kfree (state);return NULL ; } -EXPORT_SYMBOL (ix2505v_attach); +EXPORT_SYMBOL_GPL (ix2505v_attach);module_param_named (debug, ix2505v_debug, int,0644 );MODULE_PARM_DESC (debug,"Turn on/off frontend debugging (default:off)." );
drivers/media/dvb-frontends/l64781.c +1 -1
@@ -593,4 +593,4 @@ MODULE_DESCRIPTION("LSI L64781 DVB-T DemMODULE_AUTHOR ("Holger Waechtler, Marko Kohtala" );MODULE_LICENSE ("GPL" ); -EXPORT_SYMBOL (l64781_attach); +EXPORT_SYMBOL_GPL (l64781_attach);
drivers/media/dvb-frontends/lg2160.c +1 -1
@@ -1426,7 +1426,7 @@ struct dvb_frontend *lg2160_attach(constreturn &state->frontend; } -EXPORT_SYMBOL (lg2160_attach); +EXPORT_SYMBOL_GPL (lg2160_attach);MODULE_DESCRIPTION ("LG Electronics LG216x ATSC/MH Demodulator Driver" );MODULE_AUTHOR ("Michael Krufky <[email protected]>" );
drivers/media/dvb-frontends/lgdt3305.c +1 -1
@@ -1148,7 +1148,7 @@ fail:kfree (state);return NULL ; } -EXPORT_SYMBOL (lgdt3305_attach); +EXPORT_SYMBOL_GPL (lgdt3305_attach);static const struct dvb_frontend_ops lgdt3304_ops = { .delsys = {SYS_ATSC ,SYS_DVBC_ANNEX_B },
drivers/media/dvb-frontends/lgdt3306a.c +1 -1
@@ -1859,7 +1859,7 @@ fail:kfree (state);return NULL ; } -EXPORT_SYMBOL (lgdt3306a_attach); +EXPORT_SYMBOL_GPL (lgdt3306a_attach);#ifdef DBG_DUMP
drivers/media/dvb-frontends/lgdt330x.c +1 -1
@@ -927,7 +927,7 @@ struct dvb_frontend *lgdt330x_attach(conreturn lgdt330x_get_dvb_frontend (client); } -EXPORT_SYMBOL (lgdt330x_attach); +EXPORT_SYMBOL_GPL (lgdt330x_attach);static const struct dvb_frontend_ops lgdt3302_ops = { .delsys = {SYS_ATSC ,SYS_DVBC_ANNEX_B },
drivers/media/dvb-frontends/lgs8gxx.c +1 -1
@@ -1043,7 +1043,7 @@ error_out:return NULL ; } -EXPORT_SYMBOL (lgs8gxx_attach); +EXPORT_SYMBOL_GPL (lgs8gxx_attach);MODULE_DESCRIPTION ("Legend Silicon LGS8913/LGS8GXX DMB-TH demodulator driver" );MODULE_AUTHOR ("David T. L. Wong <[email protected]>" );
drivers/media/dvb-frontends/lnbh25.c +1 -1
@@ -173,7 +173,7 @@ struct dvb_frontend *lnbh25_attach(struc __func__, priv->i2c_address);return fe; } -EXPORT_SYMBOL (lnbh25_attach); +EXPORT_SYMBOL_GPL (lnbh25_attach);MODULE_DESCRIPTION ("ST LNBH25 driver" );MODULE_AUTHOR ("[email protected]" );
drivers/media/dvb-frontends/lnbp21.c +2 -2
@@ -155,7 +155,7 @@ struct dvb_frontend *lnbh24_attach(strucreturn lnbx2x_attach (fe, i2c, override_set, override_clear, i2c_addr,LNBH24_TTX ); } -EXPORT_SYMBOL (lnbh24_attach); +EXPORT_SYMBOL_GPL (lnbh24_attach); struct dvb_frontend *lnbp21_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, u8 override_set,
@@ -164,7 +164,7 @@ struct dvb_frontend *lnbp21_attach(strucreturn lnbx2x_attach (fe, i2c, override_set, override_clear,0x08 ,LNBP21_ISEL ); } -EXPORT_SYMBOL (lnbp21_attach); +EXPORT_SYMBOL_GPL (lnbp21_attach);MODULE_DESCRIPTION ("Driver for lnb supply and control ic lnbp21, lnbh24" );MODULE_AUTHOR ("Oliver Endriss, Igor M. Liplianin" );
drivers/media/dvb-frontends/lnbp22.c +1 -1
@@ -125,7 +125,7 @@ struct dvb_frontend *lnbp22_attach(strucreturn fe; } -EXPORT_SYMBOL (lnbp22_attach); +EXPORT_SYMBOL_GPL (lnbp22_attach);MODULE_DESCRIPTION ("Driver for lnb supply and control ic lnbp22" );MODULE_AUTHOR ("Dominik Kuhlen" );
drivers/media/dvb-frontends/m88ds3103.c +1 -1
@@ -1695,7 +1695,7 @@ struct dvb_frontend *m88ds3103_attach(co *tuner_i2c_adapter = pdata.get_i2c_adapter (client);return pdata.get_dvb_frontend (client); } -EXPORT_SYMBOL (m88ds3103_attach); +EXPORT_SYMBOL_GPL (m88ds3103_attach);static const struct dvb_frontend_ops m88ds3103_ops = { .delsys = {SYS_DVBS ,SYS_DVBS2 },
drivers/media/dvb-frontends/m88rs2000.c +1 -1
@@ -808,7 +808,7 @@ error:return NULL ; } -EXPORT_SYMBOL (m88rs2000_attach); +EXPORT_SYMBOL_GPL (m88rs2000_attach);MODULE_DESCRIPTION ("M88RS2000 DVB-S Demodulator driver" );MODULE_AUTHOR ("Malcolm Priestley [email protected]" );
drivers/media/dvb-frontends/mb86a16.c +1 -1
@@ -1851,6 +1851,6 @@ error:kfree (state);return NULL ; } -EXPORT_SYMBOL (mb86a16_attach); +EXPORT_SYMBOL_GPL (mb86a16_attach);MODULE_LICENSE ("GPL" );MODULE_AUTHOR ("Manu Abraham" );
drivers/media/dvb-frontends/mb86a20s.c +1 -1
@@ -2078,7 +2078,7 @@ struct dvb_frontend *mb86a20s_attach(condev_info (&i2c->dev,"Detected a Fujitsu mb86a20s frontend\n" );return &state->frontend; } -EXPORT_SYMBOL (mb86a20s_attach); +EXPORT_SYMBOL_GPL (mb86a20s_attach);static const struct dvb_frontend_ops mb86a20s_ops = { .delsys = {SYS_ISDBT },
drivers/media/dvb-frontends/mt312.c +1 -1
@@ -827,7 +827,7 @@ error:kfree (state);return NULL ; } -EXPORT_SYMBOL (mt312_attach); +EXPORT_SYMBOL_GPL (mt312_attach);module_param (debug, int,0644 );MODULE_PARM_DESC (debug,"Turn on/off frontend debugging (default:off)." );
drivers/media/dvb-frontends/mt352.c +1 -1
@@ -593,4 +593,4 @@ MODULE_DESCRIPTION("Zarlink MT352 DVB-TMODULE_AUTHOR ("Holger Waechtler, Daniel Mack, Antonio Mancuso" );MODULE_LICENSE ("GPL" ); -EXPORT_SYMBOL (mt352_attach); +EXPORT_SYMBOL_GPL (mt352_attach);
drivers/media/dvb-frontends/nxt200x.c +1 -1
@@ -1216,5 +1216,5 @@ MODULE_DESCRIPTION("NXT200X (ATSC 8VSB &MODULE_AUTHOR ("Kirk Lapray, Michael Krufky, Jean-Francois Thibert, and Taylor Jacob" );MODULE_LICENSE ("GPL" ); -EXPORT_SYMBOL (nxt200x_attach); +EXPORT_SYMBOL_GPL (nxt200x_attach);
drivers/media/dvb-frontends/nxt6000.c +1 -1
@@ -621,4 +621,4 @@ MODULE_DESCRIPTION("NxtWave NXT6000 DVB-MODULE_AUTHOR ("Florian Schirmer" );MODULE_LICENSE ("GPL" ); -EXPORT_SYMBOL (nxt6000_attach); +EXPORT_SYMBOL_GPL (nxt6000_attach);
drivers/media/dvb-frontends/or51132.c +1 -1
@@ -605,4 +605,4 @@ MODULE_AUTHOR("Kirk Lapray");MODULE_AUTHOR ("Trent Piepho" );MODULE_LICENSE ("GPL" ); -EXPORT_SYMBOL (or51132_attach); +EXPORT_SYMBOL_GPL (or51132_attach);
drivers/media/dvb-frontends/or51211.c +1 -1
@@ -551,5 +551,5 @@ MODULE_DESCRIPTION("Oren OR51211 VSB [pcMODULE_AUTHOR ("Kirk Lapray" );MODULE_LICENSE ("GPL" ); -EXPORT_SYMBOL (or51211_attach); +EXPORT_SYMBOL_GPL (or51211_attach);
drivers/media/dvb-frontends/s5h1409.c +1 -1
@@ -981,7 +981,7 @@ error:kfree (state);return NULL ; } -EXPORT_SYMBOL (s5h1409_attach); +EXPORT_SYMBOL_GPL (s5h1409_attach);static const struct dvb_frontend_ops s5h1409_ops = { .delsys = {SYS_ATSC ,SYS_DVBC_ANNEX_B },
drivers/media/dvb-frontends/s5h1411.c +1 -1
@@ -900,7 +900,7 @@ error:kfree (state);return NULL ; } -EXPORT_SYMBOL (s5h1411_attach); +EXPORT_SYMBOL_GPL (s5h1411_attach);static const struct dvb_frontend_ops s5h1411_ops = { .delsys = {SYS_ATSC ,SYS_DVBC_ANNEX_B },
drivers/media/dvb-frontends/s5h1420.c +1 -1
@@ -918,7 +918,7 @@ error:kfree (state);return NULL ; } -EXPORT_SYMBOL (s5h1420_attach); +EXPORT_SYMBOL_GPL (s5h1420_attach);static const struct dvb_frontend_ops s5h1420_ops = { .delsys = {SYS_DVBS },
drivers/media/dvb-frontends/s5h1432.c +1 -1
@@ -355,7 +355,7 @@ struct dvb_frontend *s5h1432_attach(consreturn &state->frontend; } -EXPORT_SYMBOL (s5h1432_attach); +EXPORT_SYMBOL_GPL (s5h1432_attach);static const struct dvb_frontend_ops s5h1432_ops = { .delsys = {SYS_DVBT },
drivers/media/dvb-frontends/s921.c +1 -1
@@ -495,7 +495,7 @@ struct dvb_frontend *s921_attach(const sreturn &state->frontend; } -EXPORT_SYMBOL (s921_attach); +EXPORT_SYMBOL_GPL (s921_attach);static const struct dvb_frontend_ops s921_ops = { .delsys = {SYS_ISDBT },
drivers/media/dvb-frontends/si21xx.c +1 -1
@@ -937,7 +937,7 @@ error:kfree (state);return NULL ; } -EXPORT_SYMBOL (si21xx_attach); +EXPORT_SYMBOL_GPL (si21xx_attach);module_param (debug, int,0644 );MODULE_PARM_DESC (debug,"Turn on/off frontend debugging (default:off)." );
drivers/media/dvb-frontends/sp887x.c +1 -1
@@ -624,4 +624,4 @@ MODULE_PARM_DESC(debug, "Turn on/off froMODULE_DESCRIPTION ("Spase sp887x DVB-T demodulator driver" );MODULE_LICENSE ("GPL" ); -EXPORT_SYMBOL (sp887x_attach); +EXPORT_SYMBOL_GPL (sp887x_attach);
drivers/media/dvb-frontends/stb0899_drv.c +1 -1
@@ -1638,7 +1638,7 @@ error:kfree (state);return NULL ; } -EXPORT_SYMBOL (stb0899_attach); +EXPORT_SYMBOL_GPL (stb0899_attach);MODULE_PARM_DESC (verbose,"Set Verbosity level" );MODULE_AUTHOR ("Manu Abraham" );MODULE_DESCRIPTION ("STB0899 Multi-Std frontend" );
drivers/media/dvb-frontends/stb6000.c +1 -1
@@ -232,7 +232,7 @@ struct dvb_frontend *stb6000_attach(strureturn fe; } -EXPORT_SYMBOL (stb6000_attach); +EXPORT_SYMBOL_GPL (stb6000_attach);module_param (debug, int,0644 );MODULE_PARM_DESC (debug,"Turn on/off frontend debugging (default:off)." );
drivers/media/dvb-frontends/stb6100.c +1 -1
@@ -557,7 +557,7 @@ static void stb6100_release(struct dvb_fkfree (state); } -EXPORT_SYMBOL (stb6100_attach); +EXPORT_SYMBOL_GPL (stb6100_attach);MODULE_PARM_DESC (verbose,"Set Verbosity level" );MODULE_AUTHOR ("Manu Abraham" );
drivers/media/dvb-frontends/stv0288.c +1 -1
@@ -590,7 +590,7 @@ error:return NULL ; } -EXPORT_SYMBOL (stv0288_attach); +EXPORT_SYMBOL_GPL (stv0288_attach);module_param (debug_legacy_dish_switch, int,0444 ); MODULE_PARM_DESC(debug_legacy_dish_switch,
drivers/media/dvb-frontends/stv0297.c +1 -1
@@ -710,4 +710,4 @@ MODULE_DESCRIPTION("ST STV0297 DVB-C DemMODULE_AUTHOR ("Dennis Noermann and Andrew de Quincey" );MODULE_LICENSE ("GPL" ); -EXPORT_SYMBOL (stv0297_attach); +EXPORT_SYMBOL_GPL (stv0297_attach);
drivers/media/dvb-frontends/stv0299.c +1 -1
@@ -752,4 +752,4 @@ MODULE_DESCRIPTION("ST STV0299 DVB DemodMODULE_AUTHOR ("Ralph Metzler, Holger Waechtler, Peter Schildmann, Felix Domke, Andreas Oberritter, Andrew de Quincey, Kenneth Aafly" );MODULE_LICENSE ("GPL" ); -EXPORT_SYMBOL (stv0299_attach); +EXPORT_SYMBOL_GPL (stv0299_attach);
drivers/media/dvb-frontends/stv0367.c +3 -3
@@ -1750,7 +1750,7 @@ error:kfree (state);return NULL ; } -EXPORT_SYMBOL (stv0367ter_attach); +EXPORT_SYMBOL_GPL (stv0367ter_attach);static int stv0367cab_gate_ctrl (struct dvb_frontend *fe,int enable) {
@@ -2919,7 +2919,7 @@ error:kfree (state);return NULL ; } -EXPORT_SYMBOL (stv0367cab_attach); +EXPORT_SYMBOL_GPL (stv0367cab_attach);/* * Functions for operation on Digital Devices hardware
@@ -3340,7 +3340,7 @@ error:kfree (state);return NULL ; } -EXPORT_SYMBOL (stv0367ddb_attach); +EXPORT_SYMBOL_GPL (stv0367ddb_attach);MODULE_PARM_DESC (debug,"Set debug" );MODULE_PARM_DESC (i2c_debug,"Set i2c debug" );
drivers/media/dvb-frontends/stv0900_core.c +1 -1
@@ -1957,7 +1957,7 @@ error:kfree (state);return NULL ; } -EXPORT_SYMBOL (stv0900_attach); +EXPORT_SYMBOL_GPL (stv0900_attach);MODULE_PARM_DESC (debug,"Set debug" );
drivers/media/dvb-frontends/stv090x.c +1 -1
@@ -5071,7 +5071,7 @@ error:kfree (state);return NULL ; } -EXPORT_SYMBOL (stv090x_attach); +EXPORT_SYMBOL_GPL (stv090x_attach);static const struct i2c_device_id stv090x_id_table[] = { {"stv090x" ,0 },
drivers/media/dvb-frontends/stv6110.c +1 -1
@@ -427,7 +427,7 @@ struct dvb_frontend *stv6110_attach(strureturn fe; } -EXPORT_SYMBOL (stv6110_attach); +EXPORT_SYMBOL_GPL (stv6110_attach);module_param (debug, int,0644 );MODULE_PARM_DESC (debug,"Turn on/off frontend debugging (default:off)." );
drivers/media/dvb-frontends/stv6110x.c +1 -1
@@ -467,7 +467,7 @@ const struct stv6110x_devctl *stv6110x_adev_info (&stv6110x->i2c->dev,"Attaching STV6110x\n" );return stv6110x->devctl; } -EXPORT_SYMBOL (stv6110x_attach); +EXPORT_SYMBOL_GPL (stv6110x_attach);static const struct i2c_device_id stv6110x_id_table[] = { {"stv6110x" ,0 },
drivers/media/dvb-frontends/tda10021.c +1 -1
@@ -523,4 +523,4 @@ MODULE_DESCRIPTION("Philips TDA10021 DVBMODULE_AUTHOR ("Ralph Metzler, Holger Waechtler, Markus Schulz" );MODULE_LICENSE ("GPL" ); -EXPORT_SYMBOL (tda10021_attach); +EXPORT_SYMBOL_GPL (tda10021_attach);
drivers/media/dvb-frontends/tda10023.c +1 -1
@@ -594,4 +594,4 @@ MODULE_DESCRIPTION("Philips TDA10023 DVBMODULE_AUTHOR ("Georg Acher, Hartmut Birr" );MODULE_LICENSE ("GPL" ); -EXPORT_SYMBOL (tda10023_attach); +EXPORT_SYMBOL_GPL (tda10023_attach);
drivers/media/dvb-frontends/tda10048.c +1 -1
@@ -1138,7 +1138,7 @@ error:kfree (state);return NULL ; } -EXPORT_SYMBOL (tda10048_attach); +EXPORT_SYMBOL_GPL (tda10048_attach);static const struct dvb_frontend_ops tda10048_ops = { .delsys = {SYS_DVBT },
drivers/media/dvb-frontends/tda1004x.c +2 -2
@@ -1378,5 +1378,5 @@ MODULE_DESCRIPTION("Philips TDA10045H &MODULE_AUTHOR ("Andrew de Quincey & Robert Schlabbach" );MODULE_LICENSE ("GPL" ); -EXPORT_SYMBOL (tda10045_attach); -EXPORT_SYMBOL (tda10046_attach); +EXPORT_SYMBOL_GPL (tda10045_attach); +EXPORT_SYMBOL_GPL (tda10046_attach);
drivers/media/dvb-frontends/tda10086.c +1 -1
@@ -764,4 +764,4 @@ MODULE_DESCRIPTION("Philips TDA10086 DVBMODULE_AUTHOR ("Andrew de Quincey" );MODULE_LICENSE ("GPL" ); -EXPORT_SYMBOL (tda10086_attach); +EXPORT_SYMBOL_GPL (tda10086_attach);
drivers/media/dvb-frontends/tda665x.c +1 -1
@@ -227,7 +227,7 @@ struct dvb_frontend *tda665x_attach(strureturn fe; } -EXPORT_SYMBOL (tda665x_attach); +EXPORT_SYMBOL_GPL (tda665x_attach);MODULE_DESCRIPTION ("TDA665x driver" );MODULE_AUTHOR ("Manu Abraham" );
drivers/media/dvb-frontends/tda8083.c +1 -1
@@ -481,4 +481,4 @@ MODULE_DESCRIPTION("Philips TDA8083 DVB-MODULE_AUTHOR ("Ralph Metzler, Holger Waechtler" );MODULE_LICENSE ("GPL" ); -EXPORT_SYMBOL (tda8083_attach); +EXPORT_SYMBOL_GPL (tda8083_attach);
drivers/media/dvb-frontends/tda8261.c +1 -1
@@ -188,7 +188,7 @@ exit:return NULL ; } -EXPORT_SYMBOL (tda8261_attach); +EXPORT_SYMBOL_GPL (tda8261_attach);MODULE_AUTHOR ("Manu Abraham" );MODULE_DESCRIPTION ("TDA8261 8PSK/QPSK Tuner" );
drivers/media/dvb-frontends/tda826x.c +1 -1
@@ -164,7 +164,7 @@ struct dvb_frontend *tda826x_attach(strureturn fe; } -EXPORT_SYMBOL (tda826x_attach); +EXPORT_SYMBOL_GPL (tda826x_attach);module_param (debug, int,0644 );MODULE_PARM_DESC (debug,"Turn on/off frontend debugging (default:off)." );
drivers/media/dvb-frontends/ts2020.c +1 -1
@@ -525,7 +525,7 @@ struct dvb_frontend *ts2020_attach(strucreturn fe; } -EXPORT_SYMBOL (ts2020_attach); +EXPORT_SYMBOL_GPL (ts2020_attach);/* * We implement own regmap locking due to legacy DVB attach which uses frontend
drivers/media/dvb-frontends/tua6100.c +1 -1
@@ -186,7 +186,7 @@ struct dvb_frontend *tua6100_attach(stru fe->tuner_priv = priv;return fe; } -EXPORT_SYMBOL (tua6100_attach); +EXPORT_SYMBOL_GPL (tua6100_attach);MODULE_DESCRIPTION ("DVB tua6100 driver" );MODULE_AUTHOR ("Andrew de Quincey" );
drivers/media/dvb-frontends/ves1820.c +1 -1
@@ -434,4 +434,4 @@ MODULE_DESCRIPTION("VLSI VES1820 DVB-C DMODULE_AUTHOR ("Ralph Metzler, Holger Waechtler" );MODULE_LICENSE ("GPL" ); -EXPORT_SYMBOL (ves1820_attach); +EXPORT_SYMBOL_GPL (ves1820_attach);
drivers/media/dvb-frontends/ves1x93.c +1 -1
@@ -540,4 +540,4 @@ MODULE_DESCRIPTION("VLSI VES1x93 DVB-S DMODULE_AUTHOR ("Ralph Metzler" );MODULE_LICENSE ("GPL" ); -EXPORT_SYMBOL (ves1x93_attach); +EXPORT_SYMBOL_GPL (ves1x93_attach);
drivers/media/dvb-frontends/zl10036.c +1 -1
@@ -496,7 +496,7 @@ error:kfree (state);return NULL ; } -EXPORT_SYMBOL (zl10036_attach); +EXPORT_SYMBOL_GPL (zl10036_attach);module_param_named (debug, zl10036_debug, int,0644 );MODULE_PARM_DESC (debug,"Turn on/off frontend debugging (default:off)." );
drivers/media/dvb-frontends/zl10039.c +1 -1
@@ -295,7 +295,7 @@ error:kfree (state);return NULL ; } -EXPORT_SYMBOL (zl10039_attach); +EXPORT_SYMBOL_GPL (zl10039_attach);module_param (debug, int,0644 );MODULE_PARM_DESC (debug,"Turn on/off frontend debugging (default:off)." );
drivers/media/dvb-frontends/zl10353.c +1 -1
@@ -665,4 +665,4 @@ MODULE_DESCRIPTION("Zarlink ZL10353 DVB-MODULE_AUTHOR ("Chris Pascoe" );MODULE_LICENSE ("GPL" ); -EXPORT_SYMBOL (zl10353_attach); +EXPORT_SYMBOL_GPL (zl10353_attach);
drivers/media/pci/bt8xx/dst.c +1 -1
@@ -1722,7 +1722,7 @@ struct dst_state *dst_attach(struct dst_return state;/* Manu (DST is a card not a frontend) */ } -EXPORT_SYMBOL (dst_attach); +EXPORT_SYMBOL_GPL (dst_attach);static const struct dvb_frontend_ops dst_dvbt_ops = { .delsys = {SYS_DVBT },
drivers/media/pci/bt8xx/dst_ca.c +1 -1
@@ -668,7 +668,7 @@ struct dvb_device *dst_ca_attach(structreturn NULL ; } -EXPORT_SYMBOL (dst_ca_attach); +EXPORT_SYMBOL_GPL (dst_ca_attach);MODULE_DESCRIPTION ("DST DVB-S/T/C Combo CA driver" );MODULE_AUTHOR ("Manu Abraham" );
drivers/media/pci/ddbridge/ddbridge-dummy-fe.c +1 -1
@@ -112,7 +112,7 @@ struct dvb_frontend *ddbridge_dummy_fe_q state->frontend.demodulator_priv = state;return &state->frontend; } -EXPORT_SYMBOL (ddbridge_dummy_fe_qam_attach); +EXPORT_SYMBOL_GPL (ddbridge_dummy_fe_qam_attach);static const struct dvb_frontend_ops ddbridge_dummy_fe_qam_ops = { .delsys = {SYS_DVBC_ANNEX_A },
drivers/media/tuners/fc0011.c +1 -1
@@ -499,7 +499,7 @@ struct dvb_frontend *fc0011_attach(strucreturn fe; } -EXPORT_SYMBOL (fc0011_attach); +EXPORT_SYMBOL_GPL (fc0011_attach);MODULE_DESCRIPTION ("Fitipower FC0011 silicon tuner driver" );MODULE_AUTHOR ("Michael Buesch <[email protected]>" );
drivers/media/tuners/fc0012.c +1 -1
@@ -495,7 +495,7 @@ err:return fe; } -EXPORT_SYMBOL (fc0012_attach); +EXPORT_SYMBOL_GPL (fc0012_attach);MODULE_DESCRIPTION ("Fitipower FC0012 silicon tuner driver" );MODULE_AUTHOR ("Hans-Frieder Vogt <[email protected]>" );
drivers/media/tuners/fc0013.c +1 -1
@@ -608,7 +608,7 @@ struct dvb_frontend *fc0013_attach(strucreturn fe; } -EXPORT_SYMBOL (fc0013_attach); +EXPORT_SYMBOL_GPL (fc0013_attach);MODULE_DESCRIPTION ("Fitipower FC0013 silicon tuner driver" );MODULE_AUTHOR ("Hans-Frieder Vogt <[email protected]>" );
drivers/media/tuners/max2165.c +1 -1
@@ -410,7 +410,7 @@ struct dvb_frontend *max2165_attach(strureturn fe; } -EXPORT_SYMBOL (max2165_attach); +EXPORT_SYMBOL_GPL (max2165_attach);MODULE_AUTHOR ("David T. L. Wong <[email protected]>" );MODULE_DESCRIPTION ("Maxim MAX2165 silicon tuner driver" );
drivers/media/tuners/mc44s803.c +1 -1
@@ -356,7 +356,7 @@ error:kfree (priv);return NULL ; } -EXPORT_SYMBOL (mc44s803_attach); +EXPORT_SYMBOL_GPL (mc44s803_attach);MODULE_AUTHOR ("Jochen Friedrich" );MODULE_DESCRIPTION ("Freescale MC44S803 silicon tuner driver" );
drivers/media/tuners/mt2060.c +1 -1
@@ -440,7 +440,7 @@ struct dvb_frontend * mt2060_attach(strureturn fe; } -EXPORT_SYMBOL (mt2060_attach); +EXPORT_SYMBOL_GPL (mt2060_attach);static int mt2060_probe (struct i2c_client *client) {
drivers/media/tuners/mt2131.c +1 -1
@@ -274,7 +274,7 @@ struct dvb_frontend * mt2131_attach(stru fe->tuner_priv = priv;return fe; } -EXPORT_SYMBOL (mt2131_attach); +EXPORT_SYMBOL_GPL (mt2131_attach);MODULE_AUTHOR ("Steven Toth" );MODULE_DESCRIPTION ("Microtune MT2131 silicon tuner driver" );
drivers/media/tuners/mt2266.c +1 -1
@@ -336,7 +336,7 @@ struct dvb_frontend * mt2266_attach(strumt2266_calibrate (priv);return fe; } -EXPORT_SYMBOL (mt2266_attach); +EXPORT_SYMBOL_GPL (mt2266_attach);MODULE_AUTHOR ("Olivier DANET" );MODULE_DESCRIPTION ("Microtune MT2266 silicon tuner driver" );
drivers/media/tuners/mxl5005s.c +1 -1
@@ -4120,7 +4120,7 @@ struct dvb_frontend *mxl5005s_attach(str fe->tuner_priv = state;return fe; } -EXPORT_SYMBOL (mxl5005s_attach); +EXPORT_SYMBOL_GPL (mxl5005s_attach);MODULE_DESCRIPTION ("MaxLinear MXL5005S silicon tuner driver" );MODULE_AUTHOR ("Steven Toth" );
drivers/media/tuners/qt1010.c +1 -1
@@ -440,7 +440,7 @@ struct dvb_frontend * qt1010_attach(stru fe->tuner_priv = priv;return fe; } -EXPORT_SYMBOL (qt1010_attach); +EXPORT_SYMBOL_GPL (qt1010_attach);MODULE_DESCRIPTION ("Quantek QT1010 silicon tuner driver" );MODULE_AUTHOR ("Antti Palosaari <[email protected]>" );
drivers/media/tuners/tda18218.c +1 -1
@@ -336,7 +336,7 @@ struct dvb_frontend *tda18218_attach(strreturn fe; } -EXPORT_SYMBOL (tda18218_attach); +EXPORT_SYMBOL_GPL (tda18218_attach);MODULE_DESCRIPTION ("NXP TDA18218HN silicon tuner driver" );MODULE_AUTHOR ("Antti Palosaari <[email protected]>" );
drivers/media/tuners/xc2028.c +1 -1
@@ -1512,7 +1512,7 @@ fail:return NULL ; } -EXPORT_SYMBOL (xc2028_attach); +EXPORT_SYMBOL_GPL (xc2028_attach);MODULE_DESCRIPTION ("Xceive xc2028/xc3028 tuner driver" );MODULE_AUTHOR ("Michel Ludwig <[email protected]>" );
drivers/media/tuners/xc4000.c +1 -1
@@ -1742,7 +1742,7 @@ fail2:xc4000_release (fe);return NULL ; } -EXPORT_SYMBOL (xc4000_attach); +EXPORT_SYMBOL_GPL (xc4000_attach);MODULE_AUTHOR ("Steven Toth, Davide Ferri" );MODULE_DESCRIPTION ("Xceive xc4000 silicon tuner driver" );
drivers/media/tuners/xc5000.c +1 -1
@@ -1460,7 +1460,7 @@ fail:xc5000_release (fe);return NULL ; } -EXPORT_SYMBOL (xc5000_attach); +EXPORT_SYMBOL_GPL (xc5000_attach);MODULE_AUTHOR ("Steven Toth" );MODULE_DESCRIPTION ("Xceive xc5000 silicon tuner driver" );
drivers/staging/media/av7110/sp8870.c +1 -1
@@ -606,4 +606,4 @@ MODULE_DESCRIPTION("Spase SP8870 DVB-T DMODULE_AUTHOR ("Juergen Peitz" );MODULE_LICENSE ("GPL" ); -EXPORT_SYMBOL (sp8870_attach); +EXPORT_SYMBOL_GPL (sp8870_attach);
Greg Kroah-Hartman
maintainerPATCH 680/739 media: venus: hfi_venus: Write to VIDC_CTRL_INIT after unmasking interrupts
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Konrad Dybcio <[email protected]>
commit d74e481609808330b4625b3691cf01e1f56e255e upstream.
The startup procedure shouldn't be started with interrupts masked, as that may entail silent failures.
Kick off initialization only after the interrupts are unmasked.
--- drivers/media/platform/qcom/venus/hfi_venus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/qcom/venus/hfi_venus.c +1 -1
@@ -453,7 +453,6 @@ static int venus_boot_core(struct venus_void __iomem *wrapper_base = hdev->core->wrapper_base;int ret =0 ; -writel (BIT (VIDC_CTRL_INIT_CTRL_SHIFT ), cpu_cs_base +VIDC_CTRL_INIT );if (IS_V6 (hdev->core)) { mask_val =readl (wrapper_base +WRAPPER_INTR_MASK ); mask_val &= ~(WRAPPER_INTR_MASK_A2HWD_BASK_V6 |
@@ -464,6 +463,7 @@ static int venus_boot_core(struct venus_writel (mask_val, wrapper_base +WRAPPER_INTR_MASK );writel (1 , cpu_cs_base +CPU_CS_SCIACMDARG3 ); +writel (BIT (VIDC_CTRL_INIT_CTRL_SHIFT ), cpu_cs_base +VIDC_CTRL_INIT );while (!ctrl_status && count < max_tries) { ctrl_status =readl (cpu_cs_base +CPU_CS_SCIACMDARG0 );if ((ctrl_status &CPU_CS_SCIACMDARG0_ERROR_STATUS_MASK ) ==4 ) {
Greg Kroah-Hartman
maintainerPATCH 681/739 media: nxp: Fix wrong return pointer check in mxc_isi_crossbar_init()
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yang Yingliang <[email protected]>
commit 4b60db99babad0254129ddc58e0927ffa9e93e35 upstream.
It should check 'xbar->inputs', when allocate memory for it.
--- drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/nxp/imx8-isi/imx8-isi-crossbar.c +1 -1
@@ -483,7 +483,7 @@ int mxc_isi_crossbar_init(struct mxc_isi xbar->inputs =kcalloc (xbar->num_sinks,sizeof (*xbar->inputs),GFP_KERNEL ); -if (!xbar->pads) { +if (!xbar->inputs) { ret = -ENOMEM ; goto err_free; }
Greg Kroah-Hartman
maintainerPATCH 682/739 Revert "scsi: qla2xxx: Fix buffer overrun"
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Nilesh Javali <[email protected]>
commit 641671d97b9199f1ba35ccc2222d4b189a6a5de5 upstream.
Revert due to Get PLOGI Template failed.
This reverts commit b68710a8094fdffe8dd4f7a82c82649f479bb453.
--- drivers/scsi/qla2xxx/qla_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/qla2xxx/qla_init.c +1 -1
@@ -5549,7 +5549,7 @@ static void qla_get_login_template(scsi___be32 *q;memset (ha->init_cb,0 , ha->init_cb_size); - sz =min_t (int,sizeof (struct fc_els_csp ), ha->init_cb_size); + sz =min_t (int,sizeof (struct fc_els_flogi ), ha->init_cb_size); rval =qla24xx_get_port_login_templ (vha, ha->init_cb_dma, ha->init_cb, sz);if (rval !=QLA_SUCCESS ) {
Greg Kroah-Hartman
maintainerPATCH 683/739 scsi: mpt3sas: Perform additional retries if doorbell read returns 0
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ranjan Kumar <[email protected]>
commit 4ca10f3e31745d35249a727ecd108eb58f0a8c5e upstream.
The driver retries certain register reads 3 times if the returned value is
0. This was done because the controller could return 0 for certain registers if other registers were being accessed concurrently by the BMC.
In certain systems with increased BMC interactions, the register values returned can be 0 for longer than 3 retries. Change the retry count from 3 to 30 for the affected registers to prevent problems with out-of-band management.
--- drivers/scsi/mpt3sas/mpt3sas_base.c | 46 +++++++++++++++++++++++++----------- drivers/scsi/mpt3sas/mpt3sas_base.h | 1 2 files changed, 34 insertions(+), 13 deletions(-)
drivers/scsi/mpt3sas/mpt3sas_base.c +33 -13
@@ -138,6 +138,9 @@ _base_get_ioc_facts(struct MPT3SAS_ADAPTstatic void _base_clear_outstanding_commands (struct MPT3SAS_ADAPTER *ioc); +static u32 +_base_readl_ext_retry (const volatile void __iomem *addr); +/** * mpt3sas_base_check_cmd_timeout - Function * to check timeout and command termination due
@@ -213,6 +216,20 @@ _base_readl_aero(const volatile void __ireturn ret_val; } +static u32 +_base_readl_ext_retry (const volatile void __iomem *addr) +{ +u32 i, ret_val; + +for (i =0 ; i <30 ; i++) { + ret_val =readl (addr); +if (ret_val ==0 ) +continue ; + } + +return ret_val; +} +static inline u32 _base_readl (const volatile void __iomem *addr) {
@@ -940,7 +957,7 @@ mpt3sas_halt_firmware(struct MPT3SAS_ADAdump_stack (); - doorbell = ioc->base_readl (&ioc->chip->Doorbell); + doorbell = ioc->base_readl_ext_retry (&ioc->chip->Doorbell);if ((doorbell &MPI2_IOC_STATE_MASK ) ==MPI2_IOC_STATE_FAULT ) {mpt3sas_print_fault_code (ioc, doorbell &MPI2_DOORBELL_DATA_MASK );
@@ -6686,7 +6703,7 @@ mpt3sas_base_get_iocstate(struct MPT3SAS {u32 s, sc; - s = ioc->base_readl (&ioc->chip->Doorbell); + s = ioc->base_readl_ext_retry (&ioc->chip->Doorbell); sc = s &MPI2_IOC_STATE_MASK ;return cooked ? sc : s; }
@@ -6831,7 +6848,7 @@ _base_wait_for_doorbell_ack(struct MPT3S __func__, count, timeout));return 0 ; }else if (int_status &MPI2_HIS_IOC2SYS_DB_STATUS ) { - doorbell = ioc->base_readl (&ioc->chip->Doorbell); + doorbell = ioc->base_readl_ext_retry (&ioc->chip->Doorbell);if ((doorbell &MPI2_IOC_STATE_MASK ) ==MPI2_IOC_STATE_FAULT ) {mpt3sas_print_fault_code (ioc, doorbell);
@@ -6871,7 +6888,7 @@ _base_wait_for_doorbell_not_used(struct count =0 ; cntdn =1000 * timeout; do { - doorbell_reg = ioc->base_readl(&ioc->chip->Doorbell); + doorbell_reg = ioc->base_readl_ext_retry(&ioc->chip->Doorbell); if (!(doorbell_reg & MPI2_DOORBELL_USED)) { dhsprintk(ioc, ioc_info(ioc, "%s: successful count(%d), timeout(%d)\n",
@@ -7019,7 +7036,7 @@ _base_handshake_req_reply_wait(struct MP__le32 *mfp;/* make sure doorbell is not in use */ -if ((ioc->base_readl (&ioc->chip->Doorbell) &MPI2_DOORBELL_USED )) { +if ((ioc->base_readl_ext_retry (&ioc->chip->Doorbell) &MPI2_DOORBELL_USED )) {ioc_err (ioc,"doorbell is in use (line=%d)\n" , __LINE__);return -EFAULT ; }
@@ -7068,7 +7085,7 @@ _base_handshake_req_reply_wait(struct MP }/* read the first two 16-bits, it gives the total length of the reply */ - reply[0 ] =le16_to_cpu (ioc->base_readl (&ioc->chip->Doorbell) + reply[0 ] =le16_to_cpu (ioc->base_readl_ext_retry (&ioc->chip->Doorbell) &MPI2_DOORBELL_DATA_MASK );writel (0 , &ioc->chip->HostInterruptStatus);if ((_base_wait_for_doorbell_int (ioc,5 ))) {
@@ -7076,7 +7093,7 @@ _base_handshake_req_reply_wait(struct MP __LINE__);return -EFAULT ; } - reply[1 ] =le16_to_cpu (ioc->base_readl (&ioc->chip->Doorbell) + reply[1 ] =le16_to_cpu (ioc->base_readl_ext_retry (&ioc->chip->Doorbell) &MPI2_DOORBELL_DATA_MASK );writel (0 , &ioc->chip->HostInterruptStatus);
@@ -7087,10 +7104,10 @@ _base_handshake_req_reply_wait(struct MPreturn -EFAULT ; }if (i >= reply_bytes/2 )/* overflow case */ - ioc->base_readl (&ioc->chip->Doorbell); + ioc->base_readl_ext_retry (&ioc->chip->Doorbell);else reply[i] =le16_to_cpu ( - ioc->base_readl (&ioc->chip->Doorbell) + ioc->base_readl_ext_retry (&ioc->chip->Doorbell) &MPI2_DOORBELL_DATA_MASK );writel (0 , &ioc->chip->HostInterruptStatus); }
@@ -7949,7 +7966,7 @@ _base_diag_reset(struct MPT3SAS_ADAPTER goto out; } - host_diagnostic = ioc->base_readl (&ioc->chip->HostDiagnostic); + host_diagnostic = ioc->base_readl_ext_retry (&ioc->chip->HostDiagnostic);drsprintk (ioc,ioc_info (ioc,"wrote magic sequence: count(%d), host_diagnostic(0x%08x)\n" , count, host_diagnostic));
@@ -7969,7 +7986,7 @@ _base_diag_reset(struct MPT3SAS_ADAPTERfor (count =0 ; count < (300000000 /MPI2_HARD_RESET_PCIE_SECOND_READ_DELAY_MICRO_SEC ); count++) { - host_diagnostic = ioc->base_readl (&ioc->chip->HostDiagnostic); + host_diagnostic = ioc->base_readl_ext_retry (&ioc->chip->HostDiagnostic);if (host_diagnostic ==0xFFFFFFFF ) { ioc_info(ioc,
@@ -8359,10 +8376,13 @@ mpt3sas_base_attach(struct MPT3SAS_ADAPT ioc->rdpq_array_enable_assigned =0 ; ioc->use_32bit_dma = false; ioc->dma_mask =64 ; -if (ioc->is_aero_ioc) +if (ioc->is_aero_ioc) { ioc->base_readl = &_base_readl_aero; -else + ioc->base_readl_ext_retry = &_base_readl_ext_retry; + }else { ioc->base_readl = &_base_readl; + ioc->base_readl_ext_retry = &_base_readl; + } r =mpt3sas_base_map_resources (ioc);if (r) goto out_free_resources;
drivers/scsi/mpt3sas/mpt3sas_base.h +1 -0
@@ -1618,6 +1618,7 @@ struct MPT3SAS_ADAPTER {u8 diag_trigger_active;u8 atomic_desc_capable;BASE_READ_REG base_readl; +BASE_READ_REG base_readl_ext_retry;struct SL_WH_MASTER_TRIGGER_T diag_trigger_master;struct SL_WH_EVENT_TRIGGERS_T diag_trigger_event;struct SL_WH_SCSI_TRIGGERS_T diag_trigger_scsi;
Greg Kroah-Hartman
maintainerPATCH 684/739 PCI: Free released resource after coalescing
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ross Lagerwall <[email protected]>
commit 8ec9c1d5d0a5a4744516adb483b97a238892f9d5 upstream.
release_resource() doesn't actually free the resource or resource list entry so free the resource list entry to avoid a leak.
--- drivers/pci/probe.c | 1 + 1 file changed, 1 insertion(+)
drivers/pci/probe.c +1 -0
@@ -998,6 +998,7 @@ static int pci_register_host_bridge(stru res = window->res;if (!res->flags && !res->start && !res->end) {release_resource (res); +resource_list_destroy_entry (window);continue ; }
Greg Kroah-Hartman
maintainerPATCH 685/739 PCI: hv: Fix a crash in hv_pci_restore_msi_msg() during hibernation
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Dexuan Cui <[email protected]>
commit 04bbe863241a9be7d57fb4cf217ee4a72f480e70 upstream.
When a Linux VM with an assigned PCI device runs on Hyper-V, if the PCI device driver is not loaded yet (i.e. MSI-X/MSI is not enabled on the device yet), doing a VM hibernation triggers a panic in hv_pci_restore_msi_msg() -> msi_lock_descs(&pdev->dev), because pdev->dev.msi.data is still NULL.
Avoid the panic by checking if MSI-X/MSI is enabled.
--- drivers/pci/controller/pci-hyperv.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/pci/controller/pci-hyperv.c +3 -0
@@ -3983,6 +3983,9 @@ static int hv_pci_restore_msi_msg(structstruct msi_desc *entry;int ret =0 ; +if (!pdev->msi_enabled && !pdev->msix_enabled) +return 0 ; +msi_lock_descs (&pdev->dev);msi_for_each_desc (entry, &pdev->dev,MSI_DESC_ASSOCIATED ) { irq_data =irq_get_irq_data (entry->irq);
Greg Kroah-Hartman
maintainerPATCH 686/739 PCI/PM: Only read PCI_PM_CTRL register when available
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Feiyang Chen <[email protected]>
commit 5694ba13b004eea683c6d4faeb6d6e7a9636bda0 upstream.
For a device with no Power Management Capability, pci_power_up() previously returned 0 (success) if the platform was able to put the device in D0, which led to pci_set_full_power_state() trying to read PCI_PM_CTRL, even though it doesn't exist.
Since dev->pm_cap == 0 in this case, pci_set_full_power_state() actually read the wrong register, interpreted it as PCI_PM_CTRL, and corrupted dev->current_state. This led to messages like this in some cases:
pci 0000:01:00.0: Refused to change power state from D3hot to D0
To prevent this, make pci_power_up() always return a negative failure code if the device lacks a Power Management Capability, even if non-PCI platform power management has been able to put the device in D0. The failure will prevent pci_set_full_power_state() from trying to access PCI_PM_CTRL.
--- drivers/pci/pci.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-)
drivers/pci/pci.c +9 -4
@@ -1226,6 +1226,10 @@ static int pci_dev_wait(struct pci_dev ** * On success, return 0 or 1, depending on whether or not it is necessary to * restore the device's BARs subsequently (1 is returned in that case). +* +* On failure, return a negative error code. Always return failure if @dev +* lacks a Power Management Capability, even if the platform was able to +* put the device in D0 via non-PCI means. */ int pci_power_up (struct pci_dev *dev) {
@@ -1242,9 +1246,6 @@ int pci_power_up(struct pci_dev *dev)else dev->current_state = state; -if (state ==PCI_D0 ) -return 0 ; -return -EIO ; }
@@ -1302,8 +1303,12 @@ static int pci_set_full_power_state(struint ret; ret =pci_power_up (dev); -if (ret <0 ) +if (ret <0 ) { +if (dev->current_state ==PCI_D0 ) +return 0 ; +return ret; + }pci_read_config_word (dev, dev->pm_cap +PCI_PM_CTRL , &pmcsr); dev->current_state = pmcsr &PCI_PM_CTRL_STATE_MASK ;
Greg Kroah-Hartman
maintainerPATCH 687/739 dt-bindings: PCI: qcom: Fix SDX65 compatible
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Krzysztof Kozlowski <[email protected]>
commit 15d63a897f79f465d71fb55cc11c6b7e20c19391 upstream.
Commit c0aba9f32801 ("dt-bindings: PCI: qcom: Add SDX65 SoC") adding SDX65 was never tested and is clearly bogus. The qcom,sdx65-pcie-ep compatible is followed by a fallback in DTS, and there is no driver matched by this compatible. Driver matches by its fallback qcom,sdx55-pcie-ep. This also fixes dtbs_check warnings like:
qcom-sdx65-mtp.dtb: pcie-ep@1c00000: compatible: ['qcom,sdx65-pcie-ep', 'qcom,sdx55-pcie-ep'] is too long
--- .../devicetree/bindings/pci/qcom,pcie-ep.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/pci/qcom,pcie-ep.yaml +7 -5
@@ -11,10 +11,13 @@ maintainers: properties: compatible: - enum: - - qcom,sdx55-pcie-ep - - qcom,sdx65-pcie-ep - - qcom,sm8450-pcie-ep + oneOf: + - enum: + - qcom,sdx55-pcie-ep + - qcom,sm8450-pcie-ep + - items: + - const: qcom,sdx65-pcie-ep + - const: qcom,sdx55-pcie-ep reg: items:
@@ -110,7 +113,6 @@ allOf: contains: enum: - qcom,sdx55-pcie-ep - - qcom,sdx65-pcie-ep then: properties: clocks:
Signature · 1 line
2.42.0
Greg Kroah-Hartman
maintainerPATCH 688/739 ntb: Drop packets when qp link is down
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Dave Jiang <[email protected]>
commit f195a1a6fe416882984f8bd6c61afc1383171860 upstream.
Currently when the transport receive packets after netdev has closed the transport returns error and triggers tx errors to be incremented and carrier to be stopped. There is no reason to return error if the device is already closed. Drop the packet and return 0.
--- drivers/ntb/ntb_transport.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/ntb/ntb_transport.c +5 -1
@@ -2276,9 +2276,13 @@ int ntb_transport_tx_enqueue(struct ntb_struct ntb_queue_entry *entry;int rc; -if (!qp || !qp->link_is_up || !len) +if (!qp || !len)return -EINVAL ; +/* If the qp link is down already, just ignore. */ +if (!qp->link_is_up) +return 0 ; + entry =ntb_list_rm (&qp->ntb_tx_free_q_lock, &qp->tx_free_q);if (!entry) { qp->tx_err_no_buf++;
Greg Kroah-Hartman
maintainerPATCH 689/739 ntb: Clean up tx tail index on link down
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Dave Jiang <[email protected]>
commit cc79bd2738c2d40aba58b2be6ce47dc0e471df0e upstream.
The tx tail index is not reset when the link goes down. This causes the tail index to go out of sync when the link goes down and comes back up. Refactor the ntb_qp_link_down_reset() and reset the tail index as well.
--- drivers/ntb/ntb_transport.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
drivers/ntb/ntb_transport.c +9 -2
@@ -909,7 +909,7 @@ static int ntb_set_mw(struct ntb_transporeturn 0 ; } -static void ntb_qp_link_down_reset (struct ntb_transport_qp *qp) +static void ntb_qp_link_context_reset (struct ntb_transport_qp *qp) { qp->link_is_up = false; qp->active = false;
@@ -932,6 +932,13 @@ static void ntb_qp_link_down_reset(struc qp->tx_async =0 ; } +static void ntb_qp_link_down_reset (struct ntb_transport_qp *qp) +{ +ntb_qp_link_context_reset (qp); +if (qp->remote_rx_info) + qp->remote_rx_info->entry = qp->rx_max_entry -1 ; +} +static void ntb_qp_link_cleanup (struct ntb_transport_qp *qp) {struct ntb_transport_ctx *nt = qp->transport;
@@ -1174,7 +1181,7 @@ static int ntb_transport_init_queue(stru qp->ndev = nt->ndev; qp->client_ready = false; qp->event_handler =NULL ; -ntb_qp_link_down_reset (qp); +ntb_qp_link_context_reset (qp);if (mw_num < qp_count % mw_count) num_qps_mw = qp_count / mw_count +1 ;
Greg Kroah-Hartman
maintainerPATCH 690/739 ntb: Fix calculation ntb_transport_tx_free_entry()
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Dave Jiang <[email protected]>
commit 5a7693e6bbf19b22fd6c1d2c4b7beb0a03969e2c upstream.
ntb_transport_tx_free_entry() never returns 0 with the current calculation. If head == tail, then it would return qp->tx_max_entry. Change compare to tail >= head and when they are equal, a 0 would be returned.
--- drivers/ntb/ntb_transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ntb/ntb_transport.c +1 -1
@@ -2429,7 +2429,7 @@ unsigned int ntb_transport_tx_free_entryunsigned int head = qp->tx_index;unsigned int tail = qp->remote_rx_info->entry; -return tail > head ? tail - head : qp->tx_max_entry + tail - head; +return tail >= head ? tail - head : qp->tx_max_entry + tail - head; }EXPORT_SYMBOL_GPL (ntb_transport_tx_free_entry);
Greg Kroah-Hartman
maintainerPATCH 691/739 Revert "PCI: Mark NVIDIA T4 GPUs to avoid bus reset"
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Bjorn Helgaas <[email protected]>
commit 5260bd6d36c83c5b269c33baaaf8c78e520908b0 upstream.
This reverts commit d5af729dc2071273f14cbb94abbc60608142fd83.
d5af729dc207 ("PCI: Mark NVIDIA T4 GPUs to avoid bus reset") avoided Secondary Bus Reset on the T4 because the reset seemed to not work when the T4 was directly attached to a Root Port.
But NVIDIA thinks the issue is probably related to some issue with the Root Port, not with the T4. The T4 provides neither PM nor FLR reset, so masking bus reset compromises this device for assignment scenarios.
Revert d5af729dc207 as requested by Wu Zongyong. This will leave SBR broken in the specific configuration Wu tested, as it was in v6.5, so Wu will debug that further.
--- drivers/pci/quirks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/quirks.c +1 -1
@@ -3724,7 +3724,7 @@ static void quirk_no_bus_reset(struct pc*/ static void quirk_nvidia_no_bus_reset (struct pci_dev *dev) { -if ((dev->device &0xffc0 ) ==0x2340 || dev->device ==0x1eb8 ) +if ((dev->device &0xffc0 ) ==0x2340 )quirk_no_bus_reset (dev); } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NVIDIA, PCI_ANY_ID,
Greg Kroah-Hartman
maintainerPATCH 692/739 block: fix pin count management when merging same-page segments
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Christoph Hellwig <[email protected]>
commit 5905afc2c7bb713d52c7c7585565feecbb686b44 upstream.
There is no need to unpin the added page when adding it to the bio fails as that is done by the loop below. Instead we want to unpin it when adding a single page to the bio more than once as bio_release_pages will only unpin it once.
--- block/blk-map.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
block/blk-map.c +3 -4
@@ -315,12 +315,11 @@ static int bio_map_user_iov(struct reque n = bytes;if (!bio_add_hw_page (rq->q, bio, page, n, offs, - max_sectors, &same_page)) { -if (same_page) -bio_release_page (bio, page); + max_sectors, &same_page))break ; - } +if (same_page) +bio_release_page (bio, page); bytes -= n; offs =0 ; }
Greg Kroah-Hartman
maintainerPATCH 693/739 block: dont add or resize partition on the disk with GENHD_FL_NO_PART
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Li Lingfeng <[email protected]>
commit 1a721de8489fa559ff4471f73c58bb74ac5580d3 upstream.
Commit a33df75c6328 ("block: use an xarray for disk->part_tbl") remove disk_expand_part_tbl() in add_partition(), which means all kinds of devices will support extended dynamic dev_t.
However, some devices with GENHD_FL_NO_PART are not expected to add or resize partition.
Fix this by adding check of GENHD_FL_NO_PART before add or resize partition.
--- block/ioctl.c | 2 ++ 1 file changed, 2 insertions(+)
block/ioctl.c +2 -0
@@ -20,6 +20,8 @@ static int blkpg_do_ioctl(struct block_dstruct blkpg_partition p;long long start, length; +if (disk->flags &GENHD_FL_NO_PART ) +return -EINVAL ;if (!capable (CAP_SYS_ADMIN ))return -EACCES ;if (copy_from_user (&p, upart,sizeof (struct blkpg_partition )))
Greg Kroah-Hartman
maintainerPATCH 694/739 procfs: block chmod on /proc/thread-self/comm
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Aleksa Sarai <[email protected]>
commit ccf61486fe1e1a48e18c638d1813cda77b3c0737 upstream.
Due to an oversight in commit 1b3044e39a89 ("procfs: fix pthread cross-thread naming if !PR_DUMPABLE") in switching from REG to NOD, chmod operations on /proc/thread-self/comm were no longer blocked as they are on almost all other procfs files.
A very similar situation with /proc/self/environ was used to as a root exploit a long time ago, but procfs has SB_I_NOEXEC so this is simply a correctness issue.
Ref: https://lwn.net/Articles/191954/
Ref: 6d76fa58b050 ("Don't allow chmod() on the /proc/<pid>/ files")
Message-Id: <[email protected]>
--- fs/proc/base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
fs/proc/base.c +2 -1
@@ -3583,7 +3583,8 @@ static int proc_tid_comm_permission(stru }static const struct inode_operations proc_tid_comm_inode_operations = { - .permission = proc_tid_comm_permission, + .setattr = proc_setattr, + .permission = proc_tid_comm_permission, };/*
Greg Kroah-Hartman
maintainerPATCH 695/739 parisc: Fix /proc/cpuinfo output for lscpu
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Helge Deller <[email protected]>
commit 9f5ba4b3e1b3c123eeca5d2d09161e8720048b5c upstream.
The lscpu command is broken since commit cab56b51ec0e ("parisc: Fix device names in /proc/iomem") added the PA pathname to all PA devices, includig the CPUs.
lscpu parses /proc/cpuinfo and now believes it found different CPU types since every CPU is listed with an unique identifier (PA pathname).
Fix this problem by simply dropping the PA pathname when listing the CPUs in /proc/cpuinfo. There is no need to show the pathname in this procfs file.
--- arch/parisc/kernel/processor.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-)
arch/parisc/kernel/processor.c +10 -3
@@ -378,10 +378,18 @@ int show_cpuinfo (struct seq_file *m, void *v) { unsigned long cpu; +char cpu_name[60 ], *p; + +/* strip PA path from CPU name to not confuse lscpu */ +strlcpy (cpu_name,per_cpu (cpu_data,0 ).dev->name,sizeof (cpu_name)); + p =strrchr (cpu_name,'[' ); +if (p) + *(--p) =0 ;for_each_online_cpu (cpu) { -const struct cpuinfo_parisc *cpuinfo = &per_cpu (cpu_data, cpu);#ifdef CONFIG_SMP +const struct cpuinfo_parisc *cpuinfo = &per_cpu (cpu_data, cpu); +if (0 == cpuinfo->hpa)continue ;#endif
@@ -426,8 +434,7 @@ show_cpuinfo (struct seq_file *m, void *seq_printf (m,"model\t\t: %s - %s\n" , boot_cpu_data.pdc.sys_model_name, - cpuinfo->dev ? - cpuinfo->dev->name :"Unknown" ); + cpu_name); seq_printf(m, "hversion\t: 0x%08x\n" "sversion\t: 0x%08x\n",
Greg Kroah-Hartman
maintainerPATCH 696/739 misc: fastrpc: Pass proper scm arguments for static process init
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ekansh Gupta <[email protected]>
commit fe6518d547fc52ba74201018dc9aeb364072ac78 upstream.
Memory is allocated for dynamic loading when audio daemon is trying to attach to audioPD on DSP side. This memory is allocated from reserved CMA memory region and needs ownership assignment to new VMID in order to use it from audioPD.
In the current implementation, arguments are not correctly passed to the scm call which might result in failure of dynamic loading on audioPD. Added changes to pass correct arguments during daemon attach request.
--- drivers/misc/fastrpc.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-)
drivers/misc/fastrpc.c +9 -4
@@ -1322,13 +1322,18 @@ static int fastrpc_init_create_static_prreturn 0 ; err_invoke:if (fl->cctx->vmcount) { -struct qcom_scm_vmperm perm; +u64 src_perms =0 ; +struct qcom_scm_vmperm dst_perms; +u32 i; - perm.vmid =QCOM_SCM_VMID_HLOS ; - perm.perm =QCOM_SCM_PERM_RWX ; +for (i =0 ; i < fl->cctx->vmcount; i++) + src_perms |=BIT (fl->cctx->vmperms[i].vmid); + + dst_perms.vmid =QCOM_SCM_VMID_HLOS ; + dst_perms.perm =QCOM_SCM_PERM_RWX ; err =qcom_scm_assign_mem (fl->cctx->remote_heap->phys, (u64 )fl->cctx->remote_heap->size, - &fl->cctx->perms, &perm,1 ); + &src_perms, &dst_perms,1 );if (err)dev_err (fl->sctx->dev,"Failed to assign memory phys 0x%llx size 0x%llx err %d" , fl->cctx->remote_heap->phys, fl->cctx->remote_heap->size, err);
Greg Kroah-Hartman
maintainerPATCH 697/739 drm/amd/display: Add smu write msg id fail retry process
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Fudong Wang <[email protected]>
commit 72105dcfa3d12b5af49311f857e3490baa225135 upstream.
A benchmark stress test (12-40 machines x 48hours) found that DCN315 has cases where DC writes to an indirect register to set the smu clock msg id, but when we go to read the same indirect register the returned msg id doesn't match with what we just set it to. So, to fix this retry the write until the register's value matches with the requested value.
--- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_smu.c | 20 ++++++++++--- 1 file changed, 16 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_smu.c +16 -4
@@ -32,6 +32,7 @@#define MAX_INSTANCE 6#define MAX_SEGMENT 6 +#define SMU_REGISTER_WRITE_RETRY_COUNT 5struct IP_BASE_INSTANCE {
@@ -134,6 +135,8 @@ static int dcn315_smu_send_msg_with_para unsigned int msg_id, unsigned int param) { uint32_t result; +uint32_t i =0 ; +uint32_t read_back_data; result =dcn315_smu_wait_for_response (clk_mgr,10 ,200000 );
@@ -150,10 +153,19 @@ static int dcn315_smu_send_msg_with_para/* Set the parameter register for the SMU message, unit is Mhz */ REG_WRITE (MP1_SMN_C2PMSG_37 , param); -/* Trigger the message transaction by writing the message ID */ -generic_write_indirect_reg (CTX , -REG_NBIO (RSMU_INDEX ),REG_NBIO (RSMU_DATA ), - mmMP1_C2PMSG_3, msg_id); +for (i =0 ; i <SMU_REGISTER_WRITE_RETRY_COUNT ; i++) { +/* Trigger the message transaction by writing the message ID */ +generic_write_indirect_reg (CTX , +REG_NBIO (RSMU_INDEX ),REG_NBIO (RSMU_DATA ), + mmMP1_C2PMSG_3, msg_id); + read_back_data =generic_read_indirect_reg (CTX , +REG_NBIO (RSMU_INDEX ),REG_NBIO (RSMU_DATA ), + mmMP1_C2PMSG_3); +if (read_back_data == msg_id) +break ; +udelay (2 ); +smu_print ("SMU msg id write fail %x times. \n" , i +1 ); + } result =dcn315_smu_wait_for_response (clk_mgr,10 ,200000 );
Greg Kroah-Hartman
maintainerPATCH 698/739 bpf: Fix issue in verifying allow_ptr_leaks
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yafang Shao <[email protected]>
commit d75e30dddf73449bc2d10bb8e2f1a2c446bc67a2 upstream.
After we converted the capabilities of our networking-bpf program from cap_sys_admin to cap_net_admin+cap_bpf, our networking-bpf program failed to start. Because it failed the bpf verifier, and the error log is "R3 pointer comparison prohibited".
A simple reproducer as follows,
SEC("cls-ingress")
int ingress(struct __sk_buff *skb)
{
struct iphdr *iph = (void *)(long)skb->data + sizeof(struct ethhdr);
if ((long)(iph + 1) > (long)skb->data_end)
return TC_ACT_STOLEN;
return TC_ACT_OK;
}Per discussion with Yonghong and Alexei [1], comparison of two packet pointers is not a pointer leak. This patch fixes it.
Our local kernel is 6.1.y and we expect this fix to be backported to 6.1.y, so stable is CCed.
[1]. https://lore.kernel.org/bpf/CAADnVQ+Nmspr7Si+pxWn8zkE7hX-7s93ugwC+94aXSy4uQ9vBg@mail.gmail.com/
--- kernel/bpf/verifier.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-)
kernel/bpf/verifier.c +9 -8
@@ -13816,6 +13816,12 @@ static int check_cond_jmp_op(struct bpf_return -EINVAL ; } +/* check src2 operand */ + err =check_reg_arg (env, insn->dst_reg,SRC_OP ); +if (err) +return err; + + dst_reg = ®s[insn->dst_reg];if (BPF_SRC (insn->code) ==BPF_X ) {if (insn->imm !=0 ) {verbose (env,"BPF_JMP/JMP32 uses reserved fields\n" );
@@ -13827,12 +13833,13 @@ static int check_cond_jmp_op(struct bpf_if (err)return err; -if (is_pointer_value (env, insn->src_reg)) { + src_reg = ®s[insn->src_reg]; +if (!(reg_is_pkt_pointer_any (dst_reg) &®_is_pkt_pointer_any (src_reg)) && +is_pointer_value (env, insn->src_reg)) {verbose (env,"R%d pointer comparison prohibited\n" , insn->src_reg);return -EACCES ; } - src_reg = ®s[insn->src_reg]; }else {if (insn->src_reg !=BPF_REG_0 ) {verbose (env,"BPF_JMP/JMP32 uses reserved fields\n" );
@@ -13840,12 +13847,6 @@ static int check_cond_jmp_op(struct bpf_ } } -/* check src2 operand */ - err =check_reg_arg (env, insn->dst_reg,SRC_OP ); -if (err) -return err; - - dst_reg = ®s[insn->dst_reg]; is_jmp32 =BPF_CLASS (insn->code) ==BPF_JMP32 ;if (BPF_SRC (insn->code) ==BPF_K ) {
Greg Kroah-Hartman
maintainerPATCH 699/739 dlm: fix plock lookup when using multiple lockspaces
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Alexander Aring <[email protected]>
commit 7c53e847ff5e97f033fdd31f71949807633d506b upstream.
All posix lock ops, for all lockspaces (gfs2 file systems) are sent to userspace (dlm_controld) through a single misc device. The dlm_controld daemon reads the ops from the misc device and sends them to other cluster nodes using separate, per-lockspace cluster api communication channels. The ops for a single lockspace are ordered at this level, so that the results are received in the same sequence that the requests were sent. When the results are sent back to the kernel via the misc device, they are again funneled through the single misc device for all lockspaces. When the dlm code in the kernel processes the results from the misc device, these results will be returned in the same sequence that the requests were sent, on a per-lockspace basis. A recent change in this request/reply matching code missed the "per-lockspace" check (fsid comparison) when matching request and reply, so replies could be incorrectly matched to requests from other lockspaces.
--- fs/dlm/plock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
fs/dlm/plock.c +3 -3
@@ -456,7 +456,8 @@ static ssize_t dev_write(struct file *fi } }else {list_for_each_entry (iter, &recv_list, list) { -if (!iter->info.wait) { +if (!iter->info.wait && + iter->info.fsid == info.fsid) { op = iter;break ; }
@@ -468,8 +469,7 @@ static ssize_t dev_write(struct file *fiif (info.wait)WARN_ON (op->info.optype !=DLM_PLOCK_OP_LOCK );else -WARN_ON (op->info.fsid != info.fsid || - op->info.number != info.number || +WARN_ON (op->info.number != info.number || op->info.owner != info.owner || op->info.optype != info.optype);
Greg Kroah-Hartman
maintainerPATCH 700/739 dccp: Fix out of bounds access in DCCP error handler
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jann Horn <[email protected]>
commit 977ad86c2a1bcaf58f01ab98df5cc145083c489c upstream.
There was a previous attempt to fix an out-of-bounds access in the DCCP error handlers, but that fix assumed that the error handlers only want to access the first 8 bytes of the DCCP header. Actually, they also look at the DCCP sequence number, which is stored beyond 8 bytes, so an explicit pskb_may_pull() is required.
--- net/dccp/ipv4.c | 13 +++++++++---- net/dccp/ipv6.c | 15 ++++++++++----- 2 files changed, 19 insertions(+), 9 deletions(-)
net/dccp/ipv4.c +9 -4
@@ -255,12 +255,17 @@ static int dccp_v4_err(struct sk_buff *sint err;struct net *net =dev_net (skb->dev); -/* Only need dccph_dport & dccph_sport which are the first -* 4 bytes in dccp header. +/* For the first __dccp_basic_hdr_len() check, we only need dh->dccph_x, +* which is in byte 7 of the dccp header. * Our caller (icmp_socket_deliver()) already pulled 8 bytes for us. +* +* Later on, we want to access the sequence number fields, which are +* beyond 8 bytes, so we have to pskb_may_pull() ourselves. */ - BUILD_BUG_ON(offsetofend(struct dccp_hdr, dccph_sport) > 8); - BUILD_BUG_ON(offsetofend(struct dccp_hdr, dccph_dport) > 8); + dh = (struct dccp_hdr *)(skb->data + offset); +if (!pskb_may_pull (skb, offset +__dccp_basic_hdr_len (dh))) +return -EINVAL ; + iph = (struct iphdr *)skb->data; dh = (struct dccp_hdr *)(skb->data + offset); sk = __inet_lookup_established(net, &dccp_hashinfo,
net/dccp/ipv6.c +10 -5
@@ -74,7 +74,7 @@ static inline __u64 dccp_v6_init_sequencstatic int dccp_v6_err (struct sk_buff *skb,struct inet6_skb_parm *opt,u8 type,u8 code,int offset,__be32 info) { -const struct ipv6hdr *hdr = (const struct ipv6hdr *)skb->data; +const struct ipv6hdr *hdr;const struct dccp_hdr *dh;struct dccp_sock *dp;struct ipv6_pinfo *np;
@@ -83,12 +83,17 @@ static int dccp_v6_err(struct sk_buff *s__u64 seq;struct net *net =dev_net (skb->dev); -/* Only need dccph_dport & dccph_sport which are the first -* 4 bytes in dccp header. +/* For the first __dccp_basic_hdr_len() check, we only need dh->dccph_x, +* which is in byte 7 of the dccp header. * Our caller (icmpv6_notify()) already pulled 8 bytes for us. +* +* Later on, we want to access the sequence number fields, which are +* beyond 8 bytes, so we have to pskb_may_pull() ourselves. */ - BUILD_BUG_ON(offsetofend(struct dccp_hdr, dccph_sport) > 8); - BUILD_BUG_ON(offsetofend(struct dccp_hdr, dccph_dport) > 8); + dh = (struct dccp_hdr *)(skb->data + offset); +if (!pskb_may_pull (skb, offset +__dccp_basic_hdr_len (dh))) +return -EINVAL ; + hdr = (const struct ipv6hdr *)skb->data; dh = (struct dccp_hdr *)(skb->data + offset); sk = __inet6_lookup_established(net, &dccp_hashinfo,
Greg Kroah-Hartman
maintainerPATCH 701/739 x86/sev: Make enc_dec_hypercall() accept a size instead of npages
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Steve Rutherford <[email protected]>
commit ac3f9c9f1b37edaa7d1a9b908bc79d843955a1a2 upstream.
enc_dec_hypercall() accepted a page count instead of a size, which forced its callers to round up. As a result, non-page aligned vaddrs caused pages to be spuriously marked as decrypted via the encryption status hypercall, which in turn caused consistent corruption of pages during live migration. Live migration requires accurate encryption status information to avoid migrating pages from the wrong perspective.
--- arch/x86/include/asm/mem_encrypt.h | 6 +++--- arch/x86/kernel/kvm.c | 4 +--- arch/x86/mm/mem_encrypt_amd.c | 13 ++++++------- 3 files changed, 10 insertions(+), 13 deletions(-)
arch/x86/include/asm/mem_encrypt.h +3 -3
@@ -50,8 +50,8 @@ void __init sme_enable(struct boot_paramint __init early_set_memory_decrypted (unsigned long vaddr,unsigned long size);int __init early_set_memory_encrypted (unsigned long vaddr,unsigned long size); -void __init early_set_mem_enc_dec_hypercall (unsigned long vaddr,int npages, -bool enc); +void __init early_set_mem_enc_dec_hypercall (unsigned long vaddr, +unsigned long size,bool enc);void __init mem_encrypt_free_decrypted_mem (void );
@@ -85,7 +85,7 @@ early_set_memory_decrypted(unsigned longstatic inline int __init early_set_memory_encrypted (unsigned long vaddr,unsigned long size) {return 0 ; }static inline void __init -early_set_mem_enc_dec_hypercall (unsigned long vaddr,int npages,bool enc) {} +early_set_mem_enc_dec_hypercall (unsigned long vaddr,unsigned long size,bool enc) {}static inline void mem_encrypt_free_decrypted_mem (void ) { }
arch/x86/kernel/kvm.c +1 -3
@@ -966,10 +966,8 @@ static void __init kvm_init_platform(voi* Ensure that _bss_decrypted section is marked as decrypted in the * shared pages list. */ - nr_pages =DIV_ROUND_UP (__end_bss_decrypted - __start_bss_decrypted, -PAGE_SIZE );early_set_mem_enc_dec_hypercall ((unsigned long )__start_bss_decrypted, - nr_pages,0 ); + __end_bss_decrypted - __start_bss_decrypted,0 );/* * If not booted using EFI, enable Live migration support.
arch/x86/mm/mem_encrypt_amd.c +6 -7
@@ -288,11 +288,10 @@ static bool amd_enc_cache_flush_requiredreturn !cpu_feature_enabled (X86_FEATURE_SME_COHERENT ); } -static void enc_dec_hypercall (unsigned long vaddr,int npages,bool enc) +static void enc_dec_hypercall (unsigned long vaddr,unsigned long size,bool enc) {#ifdef CONFIG_PARAVIRT -unsigned long sz = npages <<PAGE_SHIFT ; -unsigned long vaddr_end = vaddr + sz; +unsigned long vaddr_end = vaddr + size;while (vaddr < vaddr_end) {int psize, pmask, level;
@@ -342,7 +341,7 @@ static bool amd_enc_status_change_finishsnp_set_memory_private (vaddr, npages);if (!cc_platform_has (CC_ATTR_HOST_MEM_ENCRYPT )) -enc_dec_hypercall (vaddr, npages, enc); +enc_dec_hypercall (vaddr, npages <<PAGE_SHIFT , enc);return true; }
@@ -466,7 +465,7 @@ static int __init early_set_memory_enc_d ret =0 ; -early_set_mem_enc_dec_hypercall (start,PAGE_ALIGN (size) >>PAGE_SHIFT , enc); +early_set_mem_enc_dec_hypercall (start, size, enc); out:__flush_tlb_all ();return ret;
@@ -482,9 +481,9 @@ int __init early_set_memory_encrypted(unreturn early_set_memory_enc_dec (vaddr, size, true); } -void __init early_set_mem_enc_dec_hypercall (unsigned long vaddr,int npages,bool enc) +void __init early_set_mem_enc_dec_hypercall (unsigned long vaddr,unsigned long size,bool enc) { -enc_dec_hypercall (vaddr, npages, enc); +enc_dec_hypercall (vaddr, size, enc); }void __init sme_early_init (void )
Greg Kroah-Hartman
maintainerPATCH 702/739 r8169: fix ASPM-related issues on a number of systems with NIC version from RTL8168h
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Heiner Kallweit <[email protected]>
commit 90ca51e8c654699b672ba61aeaa418dfb3252e5e upstream.
This effectively reverts 4b5f82f6aaef. On a number of systems ASPM L1 causes tx timeouts with RTL8168h, see referenced bug report.
--- drivers/net/ethernet/realtek/r8169_main.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/net/ethernet/realtek/r8169_main.c +0 -4
@@ -5239,13 +5239,9 @@ static int rtl_init_one(struct pci_dev */* Disable ASPM L1 as that cause random device stop working * problems as well as full system hangs for some PCIe devices users. -* Chips from RTL8168h partially have issues with L1.2, but seem -* to work fine with L1 and L1.1. */ if (rtl_aspm_is_safe (tp)) rc =0 ; -else if (tp->mac_version >=RTL_GIGA_MAC_VER_46 ) - rc =pci_disable_link_state (pdev,PCIE_LINK_STATE_L1_2 );else rc =pci_disable_link_state (pdev,PCIE_LINK_STATE_L1 ); tp->aspm_manageable = !rc;
Greg Kroah-Hartman
maintainerPATCH 703/739 X.509: if signature is unsupported skip validation
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Thore Sommer <[email protected]>
commit ef5b52a631f8c18353e80ccab8408b963305510c upstream.
When the hash algorithm for the signature is not available the digest size is 0 and the signature in the certificate is marked as unsupported.
When validating a self-signed certificate, this needs to be checked, because otherwise trying to validate the signature will fail with an warning:
Loading compiled-in X.509 certificates
WARNING: CPU: 0 PID: 1 at crypto/rsa-pkcs1pad.c:537 \ pkcs1pad_verify+0x46/0x12c
...
Problem loading in-kernel X.509 certificate (-22)
--- crypto/asymmetric_keys/x509_public_key.c | 5 +++++ 1 file changed, 5 insertions(+)
crypto/asymmetric_keys/x509_public_key.c +5 -0
@@ -130,6 +130,11 @@ int x509_check_for_self_signed(struct x5 goto out; } +if (cert->unsupported_sig) { + ret =0 ; + goto out; + } + ret =public_key_verify_signature (cert->pub, cert->sig);if (ret <0 ) {if (ret == -ENOPKG ) {
Greg Kroah-Hartman
maintainerPATCH 704/739 net: handle ARPHRD_PPP in dev_is_mac_header_xmit()
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Nicolas Dichtel <[email protected]>
commit a4f39c9f14a634e4cd35fcd338c239d11fcc73fc upstream.
The goal is to support a bpf_redirect() from an ethernet device (ingress) to a ppp device (egress).
The l2 header is added automatically by the ppp driver, thus the ethernet header should be removed.
--- include/linux/if_arp.h | 4 ++++ 1 file changed, 4 insertions(+)
include/linux/if_arp.h +4 -0
@@ -53,6 +53,10 @@ static inline bool dev_is_mac_header_xmicase ARPHRD_NONE :case ARPHRD_RAWIP :case ARPHRD_PIMREG : +/* PPP adds its l2 header automatically in ppp_start_xmit(). +* This makes it look like an l3 device to __bpf_redirect() and tcf_mirred_init(). +*/ +case ARPHRD_PPP :return false;default :return true;
Greg Kroah-Hartman
maintainerPATCH 705/739 fsverity: skip PKCS#7 parser when keyring is empty
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Eric Biggers <[email protected]>
commit 919dc320956ea353a7fb2d84265195ad5ef525ac upstream.
If an fsverity builtin signature is given for a file but the ".fs-verity" keyring is empty, there's no real reason to run the PKCS#7 parser. Skip this to avoid the PKCS#7 attack surface when builtin signature support is configured into the kernel but is not being used.
This is a hardening improvement, not a fix per se, but I've added Fixes and Cc stable to get it out to more users.
--- fs/verity/signature.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
fs/verity/signature.c +16 -0
@@ -62,6 +62,22 @@ int fsverity_verify_signature(const strureturn 0 ; } +if (fsverity_keyring->keys.nr_leaves_on_tree ==0 ) { +/* +* The ".fs-verity" keyring is empty, due to builtin signatures +* being supported by the kernel but not actually being used. +* In this case, verify_pkcs7_signature() would always return an +* error, usually ENOKEY. It could also be EBADMSG if the +* PKCS#7 is malformed, but that isn't very important to +* distinguish. So, just skip to ENOKEY to avoid the attack +* surface of the PKCS#7 parser, which would otherwise be +* reachable by any task able to execute FS_IOC_ENABLE_VERITY. +*/ +fsverity_err (inode, +"fs-verity keyring is empty, rejecting signed file!" ); +return -ENOKEY ; + } + d =kzalloc (sizeof (*d) + hash_alg->digest_size,GFP_KERNEL );if (!d)return -ENOMEM ;
Greg Kroah-Hartman
maintainerPATCH 706/739 x86/MCE: Always save CS register on AMD Zen IF Poison errors
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yazen Ghannam <[email protected]>
commit 4240e2ebe67941ce2c4f5c866c3af4b5ac7a0c67 upstream.
The Instruction Fetch (IF) units on current AMD Zen-based systems do not guarantee a synchronous #MC is delivered for poison consumption errors. Therefore, MCG_STATUS[EIPV|RIPV] will not be set. However, the microarchitecture does guarantee that the exception is delivered within the same context. In other words, the exact rIP is not known, but the context is known to not have changed.
There is no architecturally-defined method to determine this behavior.
The Code Segment (CS) register is always valid on such IF unit poison errors regardless of the value of MCG_STATUS[EIPV|RIPV].
Add a quirk to save the CS register for poison consumption from the IF unit banks.
This is needed to properly determine the context of the error. Otherwise, the severity grading function will assume the context is IN_KERNEL due to the m->cs value being 0 (the initialized value). This leads to unnecessary kernel panics on data poison errors due to the kernel believing the poison consumption occurred in kernel context.
--- arch/x86/kernel/cpu/mce/core.c | 26 ++++++++++++++++++++++++++ arch/x86/kernel/cpu/mce/internal.h | 5 ++++- 2 files changed, 30 insertions(+), 1 deletion(-)
arch/x86/kernel/cpu/mce/core.c +26 -0
@@ -843,6 +843,26 @@ static noinstr bool quirk_skylake_repmov }/* +* Some Zen-based Instruction Fetch Units set EIPV=RIPV=0 on poison consumption +* errors. This means mce_gather_info() will not save the "ip" and "cs" registers. +* +* However, the context is still valid, so save the "cs" register for later use. +* +* The "ip" register is truly unknown, so don't save it or fixup EIPV/RIPV. +* +* The Instruction Fetch Unit is at MCA bank 1 for all affected systems. +*/ +static __always_inline void quirk_zen_ifu(int bank, struct mce *m, struct pt_regs *regs) +{ +if (bank !=1 ) +return ; +if (!(m->status &MCI_STATUS_POISON )) +return ; + + m->cs = regs->cs; +} + +/* * Do a quick check if any of the events requires a panic. * This decides if we keep the events around or clear them. */
@@ -861,6 +881,9 @@ static __always_inline int mce_no_way_ouif (mce_flags.snb_ifu_quirk)quirk_sandybridge_ifu (i, m, regs); +if (mce_flags.zen_ifu_quirk) +quirk_zen_ifu (i, m, regs); + m->bank = i;if (mce_severity (m, regs, &tmp, true) >=MCE_PANIC_SEVERITY ) {mce_read_aux (m, i);
@@ -1842,6 +1865,9 @@ static int __mcheck_cpu_apply_quirks(strif (c->x86 ==0x15 && c->x86_model <=0xf ) mce_flags.overflow_recov =1 ; +if (c->x86 >=0x17 && c->x86 <=0x1A ) + mce_flags.zen_ifu_quirk =1 ; + }if (c->x86_vendor ==X86_VENDOR_INTEL ) {
arch/x86/kernel/cpu/mce/internal.h +4 -1
@@ -157,6 +157,9 @@ struct mce_vendor_flags {*/ smca : 1, + /* Zen IFU quirk */ + zen_ifu_quirk : 1, + /* AMD-style error thresholding banks present. */ amd_threshold : 1,
@@ -172,7 +175,7 @@ struct mce_vendor_flags {/* Skylake, Cascade Lake, Cooper Lake REP;MOVS* quirk */ skx_repmov_quirk :1 , - __reserved_0 : 56; + __reserved_0 : 55; };extern struct mce_vendor_flags mce_flags;
Greg Kroah-Hartman
maintainerPATCH 707/739 crypto: af_alg - Decrement struct key.usage in alg_set_by_key_serial()
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Frederick Lawler <[email protected]>
commit 6b4b53ca0b7300ba2af98a49dbce22054bf034fe upstream.
Calls to lookup_user_key() require a corresponding key_put() to decrement the usage counter. Once it reaches zero, we schedule key GC. Therefore decrement struct key.usage in alg_set_by_key_serial().
--- crypto/af_alg.c | 3 +++ 1 file changed, 3 insertions(+)
crypto/af_alg.c +3 -0
@@ -320,18 +320,21 @@ static int alg_setkey_by_key_serial(struif (IS_ERR (ret)) {up_read (&key->sem); +key_put (key);return PTR_ERR (ret); } key_data =sock_kmalloc (&ask->sk, key_datalen,GFP_KERNEL );if (!key_data) {up_read (&key->sem); +key_put (key);return -ENOMEM ; }memcpy (key_data, ret, key_datalen);up_read (&key->sem); +key_put (key); err = type->setkey (ask->private, key_data, key_datalen);
Greg Kroah-Hartman
maintainerPATCH 708/739 platform/chrome: chromeos_acpi: print hex string for ACPI_TYPE_BUFFER
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tzung-Bi Shih <[email protected]>
commit 0820debb7d489e9eb1f68b7bb69e6ae210699b3f upstream.
element->buffer.pointer should be binary blob. %s doesn't work perfect for them.
Print hex string for ACPI_TYPE_BUFFER. Also update the documentation to reflect this.
--- Documentation/ABI/testing/sysfs-driver-chromeos-acpi | 2 - drivers/platform/chrome/chromeos_acpi.c | 31 ++++++++++++++++++- 2 files changed, 31 insertions(+), 2 deletions(-)
Documentation/ABI/testing/sysfs-driver-chromeos-acpi +1 -1
@@ -134,4 +134,4 @@ KernelVersion: 5.19 Description: Returns the verified boot data block shared between the firmware verification step and the kernel verification step - (binary). + (hex dump).
drivers/platform/chrome/chromeos_acpi.c +30 -1
@@ -90,7 +90,36 @@ static int chromeos_acpi_handle_package(case ACPI_TYPE_STRING :return sysfs_emit (buf,"%s\n" , element->string.pointer);case ACPI_TYPE_BUFFER : -return sysfs_emit (buf,"%s\n" , element->buffer.pointer); + { +int i, r, at, room_left; +const int byte_per_line =16 ; + + at =0 ; + room_left =PAGE_SIZE -1 ; +for (i =0 ; i < element->buffer.length && room_left; i += byte_per_line) { + r =hex_dump_to_buffer (element->buffer.pointer + i, + element->buffer.length - i, + byte_per_line,1 , buf + at, room_left, + false); +if (r > room_left) + goto truncating; + at += r; + room_left -= r; + + r =sysfs_emit_at (buf, at,"\n" ); +if (!r) + goto truncating; + at += r; + room_left -= r; + } + + buf[at] =0 ; +return at; +truncating: +dev_info_once (dev,"truncating sysfs content for %s\n" , name); +sysfs_emit_at (buf,PAGE_SIZE -4 ,"..\n" ); +return PAGE_SIZE -1 ; + }default :dev_err (dev,"element type %d not supported\n" , element->type);return -EINVAL ;
Greg Kroah-Hartman
maintainerPATCH 709/739 mmc: renesas_sdhi: register irqs before registering controller
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Wolfram Sang <[email protected]>
commit 74f45de394d979cc7770271f92fafa53e1ed3119 upstream.
IRQs should be ready to serve when we call mmc_add_host() via tmio_mmc_host_probe(). To achieve that, ensure that all irqs are masked before registering the handlers.
--- drivers/mmc/host/renesas_sdhi_core.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
drivers/mmc/host/renesas_sdhi_core.c +7 -3
@@ -1006,6 +1006,8 @@ int renesas_sdhi_probe(struct platform_d host->sdcard_irq_setbit_mask =TMIO_STAT_ALWAYS_SET_27 ; host->sdcard_irq_mask_all =TMIO_MASK_ALL_RCAR2 ; host->reset = renesas_sdhi_reset; + }else { + host->sdcard_irq_mask_all =TMIO_MASK_ALL ; }/* Orginally registers were 16 bit apart, could be 32 or 64 nowadays */
@@ -1100,9 +1102,7 @@ int renesas_sdhi_probe(struct platform_d host->ops.hs400_complete = renesas_sdhi_hs400_complete; } - ret =tmio_mmc_host_probe (host); -if (ret <0 ) - goto edisclk; +sd_ctrl_write32_as_16_and_16 (host,CTL_IRQ_MASK , host->sdcard_irq_mask_all); num_irqs =platform_irq_count (pdev);if (num_irqs <0 ) {
@@ -1129,6 +1129,10 @@ int renesas_sdhi_probe(struct platform_d goto eirq; } + ret =tmio_mmc_host_probe (host); +if (ret <0 ) + goto edisclk; +dev_info (&pdev->dev,"%s base at %pa, max clock rate %u MHz\n" ,mmc_hostname (host->mmc), &res->start, host->mmc->f_max /1000000 );
Greg Kroah-Hartman
maintainerPATCH 710/739 pstore/ram: Check start of empty przs during init
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Enlin Mu <[email protected]>
commit fe8c3623ab06603eb760444a032d426542212021 upstream.
After commit 30696378f68a ("pstore/ram: Do not treat empty buffers as valid"), initialization would assume a prz was valid after seeing that the buffer_size is zero (regardless of the buffer start position). This unchecked start value means it could be outside the bounds of the buffer, leading to future access panics when written to:
sysdump_panic_event+0x3b4/0x5b8 atomic_notifier_call_chain+0x54/0x90 panic+0x1c8/0x42c die+0x29c/0x2a8 die_kernel_fault+0x68/0x78 __do_kernel_fault+0x1c4/0x1e0 do_bad_area+0x40/0x100 do_translation_fault+0x68/0x80 do_mem_abort+0x68/0xf8 el1_da+0x1c/0xc0 __raw_writeb+0x38/0x174 __memcpy_toio+0x40/0xac persistent_ram_update+0x44/0x12c persistent_ram_write+0x1a8/0x1b8 ramoops_pstore_write+0x198/0x1e8 pstore_console_write+0x94/0xe0 ...
To avoid this, also check if the prz start is 0 during the initialization phase. If not, the next prz sanity check case will discover it (start > size) and zap the buffer back to a sane state.
--- fs/pstore/ram_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/pstore/ram_core.c +1 -1
@@ -519,7 +519,7 @@ static int persistent_ram_post_init(stru sig ^=PERSISTENT_RAM_SIG ;if (prz->buffer->sig == sig) { -if (buffer_size (prz) ==0 ) { +if (buffer_size (prz) ==0 &&buffer_start (prz) ==0 ) {pr_debug ("found existing empty buffer\n" );return 0 ; }
Greg Kroah-Hartman
maintainerPATCH 711/739 arm64: sdei: abort running SDEI handlers during crash
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: D Scott Phillips <[email protected]>
commit 5cd474e57368f0957c343bb21e309cf82826b1ef upstream.
Interrupts are blocked in SDEI context, per the SDEI spec: "The client interrupts cannot preempt the event handler." If we crashed in the SDEI handler-running context (as with ACPI's AGDI) then we need to clean up the SDEI state before proceeding to the crash kernel so that the crash kernel can have working interrupts.
Track the active SDEI handler per-cpu so that we can COMPLETE_AND_RESUME the handler, discarding the interrupted context.
--- arch/arm64/include/asm/sdei.h | 6 ++++++ arch/arm64/kernel/entry.S | 27 +++++++++++++++++++++++++-- arch/arm64/kernel/sdei.c | 3 +++ arch/arm64/kernel/smp.c | 8 ++++---- drivers/firmware/arm_sdei.c | 19 +++++++++++++++++++ include/linux/arm_sdei.h | 2 ++ 6 files changed, 59 insertions(+), 6 deletions(-)
arch/arm64/include/asm/sdei.h +6 -0
@@ -17,6 +17,9 @@#include <asm/virt.h> +DECLARE_PER_CPU(struct sdei_registered_event *, sdei_active_normal_event); +DECLARE_PER_CPU(struct sdei_registered_event *, sdei_active_critical_event); +extern unsigned long sdei_exit_mode;/* Software Delegated Exception entry point from firmware*/
@@ -29,6 +32,9 @@ asmlinkage void __sdei_asm_entry_trampolunsigned long pc, unsigned long pstate); +/* Abort a running handler. Context is discarded. */ +void __sdei_handler_abort (void ); +/* * The above entry point does the minimum to call C code. This function does * anything else, before calling the driver.
arch/arm64/kernel/entry.S +25 -2
@@ -986,9 +986,13 @@ SYM_CODE_START(__sdei_asm_handler) mov x19, x1 -#if defined(CONFIG_VMAP_STACK) || defined(CONFIG_SHADOW_CALL_STACK) + /* Store the registered-event for crash_smp_send_stop() */ ldrb w4, [x19, #SDEI_EVENT_PRIORITY] -#endif + cbnz w4, 1f + adr_this_cpu dst=x5, sym=sdei_active_normal_event, tmp=x6 + b 2f +1: adr_this_cpu dst=x5, sym=sdei_active_critical_event, tmp=x6 +2: str x19, [x5] #ifdef CONFIG_VMAP_STACK /*
@@ -1055,6 +1059,14 @@ SYM_CODE_START(__sdei_asm_handler) ldr_l x2, sdei_exit_mode + /* Clear the registered-event seen by crash_smp_send_stop() */ + ldrb w3, [x4, #SDEI_EVENT_PRIORITY] + cbnz w3, 1f + adr_this_cpu dst=x5, sym=sdei_active_normal_event, tmp=x6 + b 2f +1: adr_this_cpu dst=x5, sym=sdei_active_critical_event, tmp=x6 +2: str xzr, [x5] + alternative_if_not ARM64_UNMAP_KERNEL_AT_EL0 sdei_handler_exit exit_mode=x2 alternative_else_nop_endif
@@ -1065,4 +1077,15 @@ alternative_else_nop_endif #endif SYM_CODE_END(__sdei_asm_handler) NOKPROBE(__sdei_asm_handler) + +SYM_CODE_START(__sdei_handler_abort) + mov_q x0, SDEI_1_0_FN_SDEI_EVENT_COMPLETE_AND_RESUME + adr x1, 1f + ldr_l x2, sdei_exit_mode + sdei_handler_exit exit_mode=x2 + // exit the handler and jump to the next instruction. + // Exit will stomp x0-x17, PSTATE, ELR_ELx, and SPSR_ELx. +1: ret +SYM_CODE_END(__sdei_handler_abort) +NOKPROBE(__sdei_handler_abort) #endif /* CONFIG_ARM_SDE_INTERFACE */
arch/arm64/kernel/sdei.c +3 -0
@@ -47,6 +47,9 @@ DEFINE_PER_CPU(unsigned long *, sdei_sha DEFINE_PER_CPU(unsigned long *, sdei_shadow_call_stack_critical_ptr);#endif +DEFINE_PER_CPU(struct sdei_registered_event *, sdei_active_normal_event); +DEFINE_PER_CPU(struct sdei_registered_event *, sdei_active_critical_event); +static void _free_sdei_stack (unsigned long *__percpu *ptr,int cpu) {unsigned long *p;
arch/arm64/kernel/smp.c +4 -4
@@ -1044,10 +1044,8 @@ void crash_smp_send_stop(void)* If this cpu is the only one alive at this point in time, online or * not, there are no stop messages to be sent around, so just back out. */ -if (num_other_online_cpus () ==0 ) { -sdei_mask_local_cpu (); -return ; - } +if (num_other_online_cpus () ==0 ) + goto skip_ipi;cpumask_copy (&mask, cpu_online_mask);cpumask_clear_cpu (smp_processor_id (), &mask);
@@ -1066,7 +1064,9 @@ void crash_smp_send_stop(void)pr_warn ("SMP: failed to stop secondary CPUs %*pbl\n" ,cpumask_pr_args (&mask)); +skip_ipi:sdei_mask_local_cpu (); +sdei_handler_abort (); }bool smp_crash_stop_failed (void )
drivers/firmware/arm_sdei.c +19 -0
@@ -1095,3 +1095,22 @@ int sdei_event_handler(struct pt_regs *rreturn err; }NOKPROBE_SYMBOL (sdei_event_handler); + +void sdei_handler_abort (void ) +{ +/* +* If the crash happened in an SDEI event handler then we need to +* finish the handler with the firmware so that we can have working +* interrupts in the crash kernel. +*/ +if (__this_cpu_read (sdei_active_critical_event)) { +pr_warn ("still in SDEI critical event context, attempting to finish handler.\n" ); +__sdei_handler_abort (); +__this_cpu_write (sdei_active_critical_event,NULL ); + } +if (__this_cpu_read (sdei_active_normal_event)) { +pr_warn ("still in SDEI normal event context, attempting to finish handler.\n" ); +__sdei_handler_abort (); +__this_cpu_write (sdei_active_normal_event,NULL ); + } +}
include/linux/arm_sdei.h +2 -0
@@ -47,10 +47,12 @@ int sdei_unregister_ghes(struct ghes *ghint sdei_mask_local_cpu (void );int sdei_unmask_local_cpu (void );void __init sdei_init (void ); +void sdei_handler_abort (void );#else static inline int sdei_mask_local_cpu (void ) {return 0 ; }static inline int sdei_unmask_local_cpu (void ) {return 0 ; }static inline void sdei_init (void ) { } +static inline void sdei_handler_abort (void ) { }#endif /* CONFIG_ARM_SDE_INTERFACE */
Greg Kroah-Hartman
maintainerPATCH 712/739 regulator: dt-bindings: qcom,rpm: fix pattern for children
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Krzysztof Kozlowski <[email protected]>
commit 75d9bf03e2fa38242b35e941ce7c7cdabe479961 upstream.
The "or" (|) in regular expression must be within parentheses, otherwise it is not really an "or" and it matches supplies:
qcom-apq8060-dragonboard.dtb: regulators-1: vdd_ncp-supply: [[34]] is not of type 'object'
--- Documentation/devicetree/bindings/regulator/qcom,rpm-regulator.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/regulator/qcom,rpm-regulator.yaml +1 -1
@@ -49,7 +49,7 @@ patternProperties: ".*-supply$": description: Input supply phandle(s) for this node - "^((s|l|lvs)[0-9]*)|(s[1-2][a-b])|(ncp)|(mvs)|(usb-switch)|(hdmi-switch)$": + "^((s|l|lvs)[0-9]*|s[1-2][a-b]|ncp|mvs|usb-switch|hdmi-switch)$": description: List of regulators and its properties $ref: regulator.yaml# unevaluatedProperties: false
Greg Kroah-Hartman
maintainerPATCH 713/739 iov_iter: Fix iov_iter_extract_pages() with zero-sized entries
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Howells <[email protected]>
commit f741bd7178c95abd7aeac5a9d933ee542f9a5509 upstream.
iov_iter_extract_pages() doesn't correctly handle skipping over initial zero-length entries in ITER_KVEC and ITER_BVEC-type iterators.
The problem is that it accidentally reduces maxsize to 0 when it skipping and thus runs to the end of the array and returns 0.
Fix this by sticking the calculated size-to-copy in a new variable rather than back in maxsize.
--- lib/iov_iter.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-)
lib/iov_iter.c +15 -15
@@ -1640,14 +1640,14 @@ static ssize_t iov_iter_extract_bvec_pag size_t *offset0) {struct page **p, *page; -size_t skip = i->iov_offset, offset; +size_t skip = i->iov_offset, offset, size;int k;for (;;) {if (i->nr_segs ==0 )return 0 ; - maxsize =min (maxsize, i->bvec->bv_len - skip); -if (maxsize) + size =min (maxsize, i->bvec->bv_len - skip); +if (size)break ; i->iov_offset =0 ; i->nr_segs--;
@@ -1660,16 +1660,16 @@ static ssize_t iov_iter_extract_bvec_pag offset = skip %PAGE_SIZE ; *offset0 = offset; - maxpages =want_pages_array (pages, maxsize, offset, maxpages); + maxpages =want_pages_array (pages, size, offset, maxpages);if (!maxpages)return -ENOMEM ; p = *pages;for (k =0 ; k < maxpages; k++) p[k] = page + k; - maxsize =min_t (size_t, maxsize, maxpages *PAGE_SIZE - offset); -iov_iter_advance (i, maxsize); -return maxsize; + size =min_t (size_t, size, maxpages *PAGE_SIZE - offset); +iov_iter_advance (i, size); +return size; }/*
@@ -1684,14 +1684,14 @@ static ssize_t iov_iter_extract_kvec_pag {struct page **p, *page;const void *kaddr; -size_t skip = i->iov_offset, offset, len; +size_t skip = i->iov_offset, offset, len, size;int k;for (;;) {if (i->nr_segs ==0 )return 0 ; - maxsize =min (maxsize, i->kvec->iov_len - skip); -if (maxsize) + size =min (maxsize, i->kvec->iov_len - skip); +if (size)break ; i->iov_offset =0 ; i->nr_segs--;
@@ -1703,13 +1703,13 @@ static ssize_t iov_iter_extract_kvec_pag offset = (unsigned long )kaddr & ~PAGE_MASK ; *offset0 = offset; - maxpages =want_pages_array (pages, maxsize, offset, maxpages); + maxpages =want_pages_array (pages, size, offset, maxpages);if (!maxpages)return -ENOMEM ; p = *pages; kaddr -= offset; - len = offset + maxsize; + len = offset + size;for (k =0 ; k < maxpages; k++) {size_t seg =min_t (size_t, len,PAGE_SIZE );
@@ -1723,9 +1723,9 @@ static ssize_t iov_iter_extract_kvec_pag kaddr +=PAGE_SIZE ; } - maxsize =min_t (size_t, maxsize, maxpages *PAGE_SIZE - offset); -iov_iter_advance (i, maxsize); -return maxsize; + size =min_t (size_t, size, maxpages *PAGE_SIZE - offset); +iov_iter_advance (i, size); +return size; }/*
Greg Kroah-Hartman
maintainerPATCH 714/739 RISC-V: Add ptrace support for vectors
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Andy Chiu <[email protected]>
commit 9300f00439743c4a34d735e1a27118eb68a1504e upstream.
This patch add back the ptrace support with the following fix:
- Define NT_RISCV_CSR and re-number NT_RISCV_VECTOR to prevent conflicting with gdb's NT_RISCV_CSR.
- Use struct __riscv_v_regset_state to handle ptrace requests
Since gdb does not directly include the note description header in Linux and has already defined NT_RISCV_CSR as 0x900, we decide to sync with gdb and renumber NT_RISCV_VECTOR to solve and prevent future conflicts.
--- arch/riscv/include/uapi/asm/ptrace.h | 13 +++-- arch/riscv/kernel/ptrace.c | 79 ++++++++++++++++++++++++++++ include/uapi/linux/elf.h | 2 + 3 files changed, 90 insertions(+), 4 deletions(-)
arch/riscv/include/uapi/asm/ptrace.h +9 -4
@@ -103,13 +103,18 @@ struct __riscv_v_ext_state {* In signal handler, datap will be set a correct user stack offset * and vector registers will be copied to the address of datap * pointer. -* -* In ptrace syscall, datap will be set to zero and the vector -* registers will be copied to the address right after this -* structure. */ }; +struct __riscv_v_regset_state { +unsigned long vstart; +unsigned long vl; +unsigned long vtype; +unsigned long vcsr; +unsigned long vlenb; +char vreg[]; +}; +/* * According to spec: The number of bits in a single vector register, * VLEN >= ELEN, which must be a power of 2, and must be no greater than
arch/riscv/kernel/ptrace.c +79 -0
97 lines not on this page · raw message
include/uapi/linux/elf.h +2 -0
@@ -443,6 +443,8 @@ typedef struct elf64_shdr {#define NT_MIPS_DSP 0x800/* MIPS DSP ASE registers */ #define NT_MIPS_FP_MODE 0x801/* MIPS floating-point mode */ #define NT_MIPS_MSA 0x802/* MIPS SIMD registers */ +#define NT_RISCV_CSR 0x900/* RISC-V Control and Status Registers */ +#define NT_RISCV_VECTOR 0x901/* RISC-V vector registers */ #define NT_LOONGARCH_CPUCFG 0xa00/* LoongArch CPU config registers */ #define NT_LOONGARCH_CSR 0xa01/* LoongArch control and status registers */ #define NT_LOONGARCH_LSX 0xa02/* LoongArch Loongson SIMD Extension registers */
Signature · 1 line
2.42.0
Greg Kroah-Hartman
maintainerPATCH 715/739 s390/dcssblk: fix kernel crash with list_add corruption
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Gerald Schaefer <[email protected]>
commit c8f40a0bccefd613748d080147469a4652d6e74c upstream.
Commit fb08a1908cb1 ("dax: simplify the dax_device <-> gendisk association") introduced new logic for gendisk association, requiring drivers to explicitly call dax_add_host() and dax_remove_host().
For dcssblk driver, some dax_remove_host() calls were missing, e.g. in device remove path. The commit also broke error handling for out_dax case in device add path, resulting in an extra put_device() w/o the previous get_device() in that case.
This lead to stale xarray entries after device add / remove cycles. In the case when a previously used struct gendisk pointer (xarray index) would be used again, because blk_alloc_disk() happened to return such a pointer, the xa_insert() in dax_add_host() would fail and go to out_dax, doing the extra put_device() in the error path. In combination with an already flawed error handling in dcssblk (device_register() cleanup), which needs to be addressed in a separate patch, this resulted in a missing device_del() / klist_del(), and eventually in the kernel crash with list_add corruption on a subsequent device_add() / klist_add().
Fix this by adding the missing dax_remove_host() calls, and also move the put_device() in the error path to restore the previous logic.
--- drivers/s390/block/dcssblk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/s390/block/dcssblk.c +3 -1
@@ -412,6 +412,7 @@ removeseg: }list_del (&dev_info->lh); +dax_remove_host (dev_info->gd);kill_dax (dev_info->dax_dev);put_dax (dev_info->dax_dev);del_gendisk (dev_info->gd);
@@ -707,9 +708,9 @@ dcssblk_add_store(struct device *dev, st goto out; out_dax_host: +put_device (&dev_info->dev);dax_remove_host (dev_info->gd); out_dax: -put_device (&dev_info->dev);kill_dax (dev_info->dax_dev);put_dax (dev_info->dax_dev); put_dev:
@@ -789,6 +790,7 @@ dcssblk_remove_store(struct device *dev, }list_del (&dev_info->lh); +dax_remove_host (dev_info->gd);kill_dax (dev_info->dax_dev);put_dax (dev_info->dax_dev);del_gendisk (dev_info->gd);
Greg Kroah-Hartman
maintainerPATCH 716/739 s390/ipl: add missing secure/has_secure file to ipl type unknown
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Sven Schnelle <[email protected]>
commit ea5717cb13468323a7c3dd394748301802991f39 upstream.
OS installers are relying on /sys/firmware/ipl/has_secure to be present on machines supporting secure boot. This file is present for all IPL types, but not the unknown type, which prevents a secure installation when an LPAR is booted in HMC via FTP(s), because this is an unknown IPL type in linux. While at it, also add the secure file.
--- arch/s390/kernel/ipl.c | 2 ++ 1 file changed, 2 insertions(+)
arch/s390/kernel/ipl.c +2 -0
@@ -640,6 +640,8 @@ static struct attribute_group ipl_ccw_atstatic struct attribute *ipl_unknown_attrs[] = { &sys_ipl_type_attr.attr, + &sys_ipl_secure_attr.attr, + &sys_ipl_has_secure_attr.attr,NULL , };
Greg Kroah-Hartman
maintainerPATCH 717/739 s390/dasd: fix string length handling
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Heiko Carstens <[email protected]>
commit f7cf22424665043787a96a66a048ff6b2cfd473c upstream.
Building dasd_eckd.o with latest clang reveals this bug:
CC drivers/s390/block/dasd_eckd.o
drivers/s390/block/dasd_eckd.c:1082:3: warning: 'snprintf' will always be truncated; specified size is 1, but format string expands to at least 11 [-Wfortify-source]
1082 | snprintf(print_uid, sizeof(*print_uid),
| ^
drivers/s390/block/dasd_eckd.c:1087:3: warning: 'snprintf' will always be truncated; specified size is 1, but format string expands to at least 10 [-Wfortify-source]
1087 | snprintf(print_uid, sizeof(*print_uid),
| ^
Fix this by moving and using the existing UID_STRLEN for the arrays that are being written to. Also rename UID_STRLEN to DASD_UID_STRLEN to clarify its scope.
--- drivers/s390/block/dasd_devmap.c | 6 +----- drivers/s390/block/dasd_eckd.c | 10 +++++----- drivers/s390/block/dasd_int.h | 4 ++++ 3 files changed, 10 insertions(+), 10 deletions(-)
drivers/s390/block/dasd_devmap.c +1 -5
@@ -1378,16 +1378,12 @@ static ssize_t dasd_vendor_show(struct d static DEVICE_ATTR(vendor, 0444, dasd_vendor_show, NULL); -#define UID_STRLEN ( /* vendor */ 3 + 1 + /* serial */ 14 + 1 +\ - /* SSID */ 4 + 1 + /* unit addr */ 2 + 1 +\ - /* vduit */ 32 + 1) -static ssize_t dasd_uid_show (struct device *dev,struct device_attribute *attr,char *buf) { +char uid_string[DASD_UID_STRLEN ];struct dasd_device *device;struct dasd_uid uid; -char uid_string[UID_STRLEN ];char ua_string[3 ]; device =dasd_device_from_cdev (to_ccwdev (dev));
drivers/s390/block/dasd_eckd.c +5 -5
@@ -1079,12 +1079,12 @@ static void dasd_eckd_get_uid_string(strcreate_uid (conf, &uid);if (strlen (uid.vduit) >0 ) -snprintf (print_uid,sizeof (*print_uid), +snprintf (print_uid,DASD_UID_STRLEN ,"%s.%s.%04x.%02x.%s" , uid.vendor, uid.serial, uid.ssid, uid.real_unit_addr, uid.vduit);else -snprintf (print_uid,sizeof (*print_uid), +snprintf (print_uid,DASD_UID_STRLEN ,"%s.%s.%04x.%02x" , uid.vendor, uid.serial, uid.ssid, uid.real_unit_addr);
@@ -1093,8 +1093,8 @@ static void dasd_eckd_get_uid_string(strstatic int dasd_eckd_check_cabling (struct dasd_device *device,void *conf_data,__u8 lpm) { +char print_path_uid[DASD_UID_STRLEN ], print_device_uid[DASD_UID_STRLEN ];struct dasd_eckd_private *private = device->private; -char print_path_uid[60 ], print_device_uid[60 ];struct dasd_conf path_conf; path_conf.data = conf_data;
@@ -1293,9 +1293,9 @@ static void dasd_eckd_path_available_act__u8 path_rcd_buf[DASD_ECKD_RCD_DATA_SIZE ];__u8 lpm, opm, npm, ppm, epm, hpfpm, cablepm;struct dasd_conf_data *conf_data; +char print_uid[DASD_UID_STRLEN ];struct dasd_conf path_conf;unsigned long flags; -char print_uid[60 ];int rc, pos; opm =0 ;
@@ -5855,8 +5855,8 @@ static void dasd_eckd_dump_sense(structstatic int dasd_eckd_reload_device (struct dasd_device *device) {struct dasd_eckd_private *private = device->private; +char print_uid[DASD_UID_STRLEN ];int rc, old_base; -char print_uid[60 ];struct dasd_uid uid;unsigned long flags;
drivers/s390/block/dasd_int.h +4 -0
@@ -259,6 +259,10 @@ struct dasd_uid {char vduit[33 ]; }; +#define DASD_UID_STRLEN (/* vendor */ 3 +1 +/* serial */ 14 +1 + \ +/* SSID */ 4 +1 +/* unit addr */ 2 +1 + \ + /* vduit */ 32 + 1) +/* * PPRC Status data */
Greg Kroah-Hartman
maintainerPATCH 718/739 HID: logitech-hidpp: rework one more time the retries attempts
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Benjamin Tissoires <[email protected]>
commit 60165ab774cb0c509680a73cf826d0e158454653 upstream.
Extract the internal code inside a helper function, fix the initialization of the parameters used in the helper function (hidpp->answer_available was not reset and *response wasn't either), and use a do {...} while(); loop.
--- drivers/hid/hid-logitech-hidpp.c | 115 +++++++++++++++++++++++++-------------- 1 file changed, 75 insertions(+), 40 deletions(-)
drivers/hid/hid-logitech-hidpp.c +75 -40
@@ -275,21 +275,22 @@ static int __hidpp_send_report(struct hi }/* -* hidpp_send_message_sync() returns 0 in case of success, and something else -* in case of a failure. -* - If ' something else' is positive, that means that an error has been raised -* by the protocol itself. -* - If ' something else' is negative, that means that we had a classic error -* (-ENOMEM, -EPIPE, etc...) +* Effectively send the message to the device, waiting for its answer. +* +* Must be called with hidpp->send_mutex locked +* +* Same return protocol than hidpp_send_message_sync(): +* - success on 0 +* - negative error means transport error +* - positive value means protocol error */ -static int hidpp_send_message_sync (struct hidpp_device *hidpp, +static int __do_hidpp_send_message_sync (struct hidpp_device *hidpp,struct hidpp_report *message,struct hidpp_report *response) { -int ret =-1 ; -int max_retries =3 ; +int ret; -mutex_lock (&hidpp->send_mutex); +__must_hold (&hidpp->send_mutex); hidpp->send_receive_buf = response; hidpp->answer_available = false;
@@ -300,47 +301,74 @@ static int hidpp_send_message_sync(struc*/ *response = *message; -for (; max_retries !=0 && ret; max_retries--) { - ret =__hidpp_send_report (hidpp->hid_dev, message); + ret =__hidpp_send_report (hidpp->hid_dev, message); +if (ret) { +dbg_hid ("__hidpp_send_report returned err: %d\n" , ret); +memset (response,0 ,sizeof (struct hidpp_report )); +return ret; + } -if (ret) { -dbg_hid ("__hidpp_send_report returned err: %d\n" , ret); -memset (response,0 ,sizeof (struct hidpp_report )); -break ; - } +if (!wait_event_timeout (hidpp->wait, hidpp->answer_available, +5 *HZ )) { +dbg_hid ("%s:timeout waiting for response\n" , __func__); +memset (response,0 ,sizeof (struct hidpp_report )); +return -ETIMEDOUT ; + } -if (!wait_event_timeout (hidpp->wait, hidpp->answer_available, -5 *HZ )) { -dbg_hid ("%s:timeout waiting for response\n" , __func__); -memset (response,0 ,sizeof (struct hidpp_report )); - ret = -ETIMEDOUT ; -break ; - } +if (response->report_id ==REPORT_ID_HIDPP_SHORT && + response->rap.sub_id ==HIDPP_ERROR ) { + ret = response->rap.params[1 ]; +dbg_hid ("%s:got hidpp error %02X\n" , __func__, ret); +return ret; + } -if (response->report_id ==REPORT_ID_HIDPP_SHORT && - response->rap.sub_id ==HIDPP_ERROR ) { - ret = response->rap.params[1 ]; -dbg_hid ("%s:got hidpp error %02X\n" , __func__, ret); +if ((response->report_id ==REPORT_ID_HIDPP_LONG || + response->report_id ==REPORT_ID_HIDPP_VERY_LONG ) && + response->fap.feature_index ==HIDPP20_ERROR ) { + ret = response->fap.params[1 ]; +dbg_hid ("%s:got hidpp 2.0 error %02X\n" , __func__, ret); +return ret; + } + +return 0 ; +} + +/* +* hidpp_send_message_sync() returns 0 in case of success, and something else +* in case of a failure. +* +* See __do_hidpp_send_message_sync() for a detailed explanation of the returned +* value. +*/ +static int hidpp_send_message_sync (struct hidpp_device *hidpp, +struct hidpp_report *message, +struct hidpp_report *response) +{ +int ret; +int max_retries =3 ; + +mutex_lock (&hidpp->send_mutex); + +do { + ret =__do_hidpp_send_message_sync (hidpp, message, response); +if (ret !=HIDPP20_ERROR_BUSY )break ; - } -if ((response->report_id ==REPORT_ID_HIDPP_LONG || - response->report_id ==REPORT_ID_HIDPP_VERY_LONG ) && - response->fap.feature_index ==HIDPP20_ERROR ) { - ret = response->fap.params[1 ]; -if (ret !=HIDPP20_ERROR_BUSY ) { -dbg_hid ("%s:got hidpp 2.0 error %02X\n" , __func__, ret); -break ; - } -dbg_hid ("%s:got busy hidpp 2.0 error %02X, retrying\n" , __func__, ret); - } - } +dbg_hid ("%s:got busy hidpp 2.0 error %02X, retrying\n" , __func__, ret); + }while (--max_retries);mutex_unlock (&hidpp->send_mutex);return ret; } +/* +* hidpp_send_fap_command_sync() returns 0 in case of success, and something else +* in case of a failure. +* +* See __do_hidpp_send_message_sync() for a detailed explanation of the returned +* value. +*/ static int hidpp_send_fap_command_sync (struct hidpp_device *hidpp,u8 feat_index,u8 funcindex_clientid,u8 *params,int param_count,struct hidpp_report *response)
@@ -373,6 +401,13 @@ static int hidpp_send_fap_command_sync(sreturn ret; } +/* +* hidpp_send_rap_command_sync() returns 0 in case of success, and something else +* in case of a failure. +* +* See __do_hidpp_send_message_sync() for a detailed explanation of the returned +* value. +*/ static int hidpp_send_rap_command_sync (struct hidpp_device *hidpp_dev,u8 report_id,u8 sub_id,u8 reg_address,u8 *params,int param_count,struct hidpp_report *response)
Greg Kroah-Hartman
maintainerPATCH 719/739 crypto: stm32 - fix loop iterating through scatterlist for DMA
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Thomas Bourgoin <[email protected]>
commit d9c83f71eeceed2cb54bb78be84f2d4055fd9a1f upstream.
We were reading the length of the scatterlist sg after copying value of tsg inside.
So we are using the size of the previous scatterlist and for the first one we are using an unitialised value.
Fix this by copying tsg in sg[0] before reading the size.
--- drivers/crypto/stm32/stm32-hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/stm32/stm32-hash.c +1 -1
@@ -627,9 +627,9 @@ static int stm32_hash_dma_send(struct st }for_each_sg (rctx->sg, tsg, rctx->nents, i) { + sg[0 ] = *tsg; len = sg->length; - sg[0 ] = *tsg;if (sg_is_last (sg)) {if (hdev->dma_mode ==1 ) { len = (ALIGN (sg->length,16 ) -16 );
Greg Kroah-Hartman
maintainerPATCH 720/739 crypto: stm32 - fix MDMAT condition
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Thomas Bourgoin <[email protected]>
commit a4adfbc2544933ac12e7fbd50708290265546dbc upstream.
If IP has MDMAT support, set or reset the bit MDMAT in Control Register.
--- drivers/crypto/stm32/stm32-hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/stm32/stm32-hash.c +1 -1
@@ -492,7 +492,7 @@ static int stm32_hash_xmit_dma(struct st reg =stm32_hash_read (hdev,HASH_CR ); -if (!hdev->pdata->has_mdmat) { +if (hdev->pdata->has_mdmat) {if (mdma) reg |=HASH_CR_MDMAT ;else
Greg Kroah-Hartman
maintainerPATCH 721/739 cpufreq: brcmstb-avs-cpufreq: Fix -Warray-bounds bug
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Gustavo A. R. Silva <[email protected]>
commit e520d0b6be950ce3738cf4b9bd3b392be818f1dc upstream.
Allocate extra space for terminating element at:
drivers/cpufreq/brcmstb-avs-cpufreq.c:
449 table[i].frequency = CPUFREQ_TABLE_END;
and add code comment to make this clear.
This fixes the following -Warray-bounds warning seen after building
ARM with multi_v7_defconfig (GCC 13):
In function 'brcm_avs_get_freq_table',
inlined from 'brcm_avs_cpufreq_init' at drivers/cpufreq/brcmstb-avs-cpufreq.c:623:15:drivers/cpufreq/brcmstb-avs-cpufreq.c:449:28: warning: array subscript 5 is outside array bounds of 'void[60]' [-Warray-bounds=]
449 | table[i].frequency = CPUFREQ_TABLE_END;
In file included from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/cpufreq.h:12,
from drivers/cpufreq/brcmstb-avs-cpufreq.c:44:
In function 'devm_kmalloc_array',
inlined from 'devm_kcalloc' at include/linux/device.h:328:9,
inlined from 'brcm_avs_get_freq_table' at drivers/cpufreq/brcmstb-avs-cpufreq.c:437:10,
inlined from 'brcm_avs_cpufreq_init' at drivers/cpufreq/brcmstb-avs-cpufreq.c:623:15:include/linux/device.h:323:16: note: at offset 60 into object of size 60 allocated by 'devm_kmalloc'
323 | return devm_kmalloc(dev, bytes, flags);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~This helps with the ongoing efforts to tighten the FORTIFY_SOURCE routines on memcpy() and help us make progress towards globally enabling -Warray-bounds.
--- drivers/cpufreq/brcmstb-avs-cpufreq.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/cpufreq/brcmstb-avs-cpufreq.c +5 -1
@@ -434,7 +434,11 @@ brcm_avs_get_freq_table(struct device *dif (ret)return ERR_PTR (ret); - table =devm_kcalloc (dev,AVS_PSTATE_MAX +1 ,sizeof (*table), +/* +* We allocate space for the 5 different P-STATES AVS, +* plus extra space for a terminating element. +*/ + table =devm_kcalloc (dev,AVS_PSTATE_MAX +1 +1 ,sizeof (*table),GFP_KERNEL );if (!table)return ERR_PTR (-ENOMEM );
Greg Kroah-Hartman
maintainerPATCH 722/739 of: property: fw_devlink: Add a devlink for panel followers
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Douglas Anderson <[email protected]>
commit fbf0ea2da3c7cd0b33ed7ae53a67ab1c24838cba upstream.
Inform fw_devlink of the fact that a panel follower (like a touchscreen) is effectively a consumer of the panel from the purposes of fw_devlink.
NOTE: this patch isn't required for correctness but instead optimizes probe order / helps avoid deferrals.
--- drivers/of/property.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/of/property.c +2 -0
@@ -1266,6 +1266,7 @@ DEFINE_SIMPLE_PROP(pwms, "pwms", "#pwm-c DEFINE_SIMPLE_PROP(resets, "resets", "#reset-cells") DEFINE_SIMPLE_PROP(leds, "leds", NULL) DEFINE_SIMPLE_PROP(backlight, "backlight", NULL) +DEFINE_SIMPLE_PROP(panel, "panel", NULL) DEFINE_SUFFIX_PROP(regulators, "-supply", NULL)DEFINE_SUFFIX_PROP (gpio,"-gpio" ,"#gpio-cells" )
@@ -1354,6 +1355,7 @@ static const struct supplier_bindings of { .parse_prop = parse_resets, }, { .parse_prop = parse_leds, }, { .parse_prop = parse_backlight, }, + { .parse_prop = parse_panel, }, { .parse_prop = parse_gpio_compat, }, { .parse_prop = parse_interrupts, }, { .parse_prop = parse_regulators, },
Greg Kroah-Hartman
maintainerPATCH 723/739 USB: core: Fix oversight in SuperSpeed initialization
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Alan Stern <[email protected]>
commit 59cf445754566984fd55af19ba7146c76e6627bc upstream.
Commit 85d07c556216 ("USB: core: Unite old scheme and new scheme descriptor reads") altered the way USB devices are enumerated following detection, and in the process it messed up the initialization of SuperSpeed (or faster) devices:
[ 31.650759] usb 2-1: new SuperSpeed Plus Gen 2x1 USB device number 2 using xhci_hcd [ 31.663107] usb 2-1: device descriptor read/8, error -71 [ 31.952697] usb 2-1: new SuperSpeed Plus Gen 2x1 USB device number 3 using xhci_hcd [ 31.965122] usb 2-1: device descriptor read/8, error -71 [ 32.080991] usb usb2-port1: attempt power cycle
...
The problem was caused by the commit forgetting that in SuperSpeed or faster devices, the device descriptor uses a logarithmic encoding of the bMaxPacketSize0 value. (For some reason I thought the 255 case in the switch statement was meant for these devices, but it isn't -- it was meant for Wireless USB and is no longer needed.)
We can fix the oversight by testing for buf->bMaxPacketSize0 = 9 (meaning 512, the actual maxpacket size for ep0 on all SuperSpeed devices) and straightening out the logic that checks and adjusts our initial guesses of the maxpacket value.
--- drivers/usb/core/hub.c | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-)
drivers/usb/core/hub.c +24 -12
@@ -4757,7 +4757,7 @@ static int get_bMaxPacketSize0(struct us buf, size, initial_descriptor_timeout);switch (buf->bMaxPacketSize0) { -case 8 :case 16 :case 32 :case 64 :case 255 : +case 8 :case 16 :case 32 :case 64 :case 9 :if (buf->bDescriptorType ==USB_DT_DEVICE ) { rc = buf->bMaxPacketSize0;break ;
@@ -5056,23 +5056,35 @@ hub_port_init(struct usb_hub *hub, strucif (retval) goto fail; -if (maxp0 ==0xff || udev->speed >=USB_SPEED_SUPER ) - i =512 ; -else - i = maxp0; -if (usb_endpoint_maxp (&udev->ep0.desc) != i) { -if (udev->speed ==USB_SPEED_LOW || - !(i ==8 || i ==16 || i ==32 || i ==64 )) { -dev_err (&udev->dev,"Invalid ep0 maxpacket: %d\n" , i); - retval = -EMSGSIZE ; - goto fail; - } +/* +* Check the ep0 maxpacket guess and correct it if necessary. +* maxp0 is the value stored in the device descriptor; +* i is the value it encodes (logarithmic for SuperSpeed or greater). +*/ + i = maxp0; +if (udev->speed >=USB_SPEED_SUPER ) { +if (maxp0 <=16 ) + i =1 << maxp0; +else + i =0 ;/* Invalid */ + } +if (usb_endpoint_maxp (&udev->ep0.desc) == i) { + ;/* Initial ep0 maxpacket guess is right */ + }else if ((udev->speed ==USB_SPEED_FULL || + udev->speed ==USB_SPEED_HIGH ) && + (i ==8 || i ==16 || i ==32 || i ==64 )) { +/* Initial guess is wrong; use the descriptor's value */ if (udev->speed ==USB_SPEED_FULL )dev_dbg (&udev->dev,"ep0 maxpacket = %d\n" , i);else dev_warn (&udev->dev,"Using ep0 maxpacket: %d\n" , i); udev->ep0.desc.wMaxPacketSize =cpu_to_le16 (i);usb_ep0_reinit (udev); + }else { +/* Initial guess is wrong and descriptor's value is invalid */ +dev_err (&udev->dev,"Invalid ep0 maxpacket: %d\n" , maxp0); + retval = -EMSGSIZE ; + goto fail; } descr =usb_get_device_descriptor (udev);
Greg Kroah-Hartman
maintainerPATCH 724/739 x86/smp: Dont send INIT to non-present and non-booted CPUs
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Thomas Gleixner <[email protected]>
commit 3f874c9b2aae8e30463efc1872bea4baa9ed25dc upstream.
Vasant reported that kexec() can hang or reset the machine when it tries to park CPUs via INIT. This happens when the kernel is using extended APIC, but the present mask has APIC IDs >= 0x100 enumerated.
As extended APIC can only handle 8 bit of APIC ID sending INIT to APIC ID 0x100 sends INIT to APIC ID 0x0. That's the boot CPU which is special on x86 and INIT causes the system to hang or resets the machine.
Prevent this by sending INIT only to those CPUs which have been booted once.
--- arch/x86/kernel/smpboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/smpboot.c +1 -1
@@ -1356,7 +1356,7 @@ bool smp_park_other_cpus_in_init(void)if (this_cpu)return false; -for_each_present_cpu (cpu) { +for_each_cpu_and (cpu, &cpus_booted_once_mask, cpu_present_mask) {if (cpu == this_cpu)continue ; apicid = apic->cpu_present_to_apicid (cpu);
Greg Kroah-Hartman
maintainerPATCH 725/739 x86/sgx: Break up long non-preemptible delays in sgx_vepc_release()
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jack Wang <[email protected]>
commit 3d7d72a34e05b23e21bafc8bfb861e73c86b31f3 upstream.
On large enclaves we hit the softlockup warning with following call trace:
xa_erase() sgx_vepc_release() __fput() task_work_run() do_exit()
The latency issue is similar to the one fixed in:
8795359e35bc ("x86/sgx: Silence softlockup detection when releasing large enclaves")
The test system has 64GB of enclave memory, and all is assigned to a single VM. Release of 'vepc' takes a longer time and causes long latencies, which triggers the softlockup warning.
Add cond_resched() to give other tasks a chance to run and reduce latencies, which also avoids the softlockup detector.
[ mingo: Rewrote the changelog. ]
--- arch/x86/kernel/cpu/sgx/virt.c | 3 +++ 1 file changed, 3 insertions(+)
arch/x86/kernel/cpu/sgx/virt.c +3 -0
@@ -204,6 +204,7 @@ static int sgx_vepc_release(struct inodecontinue ;xa_erase (&vepc->page_array, index); +cond_resched (); }/*
@@ -222,6 +223,7 @@ static int sgx_vepc_release(struct inodelist_add_tail (&epc_page->list, &secs_pages);xa_erase (&vepc->page_array, index); +cond_resched (); }/*
@@ -243,6 +245,7 @@ static int sgx_vepc_release(struct inodeif (sgx_vepc_free_page (epc_page))list_add_tail (&epc_page->list, &secs_pages); +cond_resched (); }if (!list_empty (&secs_pages))
Greg Kroah-Hartman
maintainerPATCH 726/739 x86/build: Fix linker fill bytes quirk/incompatibility for ld.lld
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Song Liu <[email protected]>
commit 65e710899fd19f435f40268f3a92dfaa11f14470 upstream.
With ":text =0xcccc", ld.lld fills unused text area with 0xcccc0000. Example objdump -D output:
ffffffff82b04203: 00 00 add %al,(%rax) ffffffff82b04205: cc int3 ffffffff82b04206: cc int3 ffffffff82b04207: 00 00 add %al,(%rax) ffffffff82b04209: cc int3 ffffffff82b0420a: cc int3
Replace it with ":text =0xcccccccc", so we get the following instead:
ffffffff82b04203: cc int3 ffffffff82b04204: cc int3 ffffffff82b04205: cc int3 ffffffff82b04206: cc int3 ffffffff82b04207: cc int3 ffffffff82b04208: cc int3
gcc/ld doesn't seem to have the same issue. The generated code stays the same for gcc/ld.
--- arch/x86/kernel/vmlinux.lds.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/vmlinux.lds.S +1 -1
@@ -156,7 +156,7 @@ SECTIONS ALIGN_ENTRY_TEXT_END *(.gnu.warning) - } :text =0xcccc + } :text = 0xcccccccc /* End of text section, which should occupy whole number of pages */ _etext = .;
Greg Kroah-Hartman
maintainerPATCH 727/739 perf/x86/uncore: Correct the number of CHAs on EMR
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kan Liang <[email protected]>
commit 6f7f984fa85b305799076a1bcec941b9377587de upstream.
Starting from SPR, the basic uncore PMON information is retrieved from the discovery table (resides in an MMIO space populated by BIOS). It is called the discovery method. The existing value of the type->num_boxes is from the discovery table.
On some SPR variants, there is a firmware bug that makes the value from the discovery table incorrect. We use the value from the SPR_MSR_UNC_CBO_CONFIG MSR to replace the one from the discovery table:
38776cc45eb7 ("perf/x86/uncore: Correct the number of CHAs on SPR")
Unfortunately, the SPR_MSR_UNC_CBO_CONFIG isn't available for the EMR XCC (Always returns 0), but the above firmware bug doesn't impact the EMR XCC.
Don't let the value from the MSR replace the existing value from the discovery table.
--- arch/x86/events/intel/uncore_snbep.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)
arch/x86/events/intel/uncore_snbep.c +11 -1
@@ -6474,8 +6474,18 @@ void spr_uncore_cpu_init(void) type =uncore_find_type_by_id (uncore_msr_uncores,UNCORE_SPR_CHA );if (type) { +/* +* The value from the discovery table (stored in the type->num_boxes +* of UNCORE_SPR_CHA) is incorrect on some SPR variants because of a +* firmware bug. Using the value from SPR_MSR_UNC_CBO_CONFIG to replace it. +*/ rdmsrl (SPR_MSR_UNC_CBO_CONFIG , num_cbo); - type->num_boxes = num_cbo; +/* +* The MSR doesn't work on the EMR XCC, but the firmware bug doesn't impact +* the EMR XCC. Don't let the value from the MSR replace the existing value. +*/ +if (num_cbo) + type->num_boxes = num_cbo; } spr_uncore_iio_free_running.num_boxes =uncore_type_max_boxes (uncore_msr_uncores,UNCORE_SPR_IIO ); }
Greg Kroah-Hartman
maintainerPATCH 728/739 media: ipu3-cio2: allow ipu_bridge to be a module again
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Arnd Bergmann <[email protected]>
commit 2545a2c02ba1da9cfb9ec218623c71b00eb4a555 upstream.
This code was previously part of the VIDEO_IPU3_CIO2 driver, which could be built-in or a loadable module, but after the move it turned into a builtin-only driver. This fails to link when the I2C subsystem is a module:
x86_64-linux-ld: drivers/media/pci/intel/ipu-bridge.o: in function `ipu_bridge_unregister_sensors':
ipu-bridge.c:(.text+0x50): undefined reference to `i2c_unregister_device'
x86_64-linux-ld: drivers/media/pci/intel/ipu-bridge.o: in function `ipu_bridge_init':
ipu-bridge.c:(.text+0x9c9): undefined reference to `i2c_acpi_new_device_by_fwnode'
In general, drivers should not have to be built-in, so change the option to a tristate with the corresponding dependency. This in turn opens a new problem with the dependency, as the IPU bridge can be a loadable module while the ipu3 driver itself is built-in, producing a new link failure:
86_64-linux-ld: drivers/media/pci/intel/ipu3/ipu3-cio2.o: in function `cio2_pci_probe':
ipu3-cio2.c:(.text+0x197e): undefined reference to `ipu_bridge_init'
In order to fix this, restore the old Kconfig option that controlled the ipu bridge driver before it was split out, but make it select a hidden symbol that now corresponds to the bridge driver.
When other drivers get added that share ipu-bridge, this should cover all corner cases, and allow any combination of them to be built-in or modular.
--- drivers/media/pci/intel/Kconfig | 21 +++++---------------- drivers/media/pci/intel/ipu-bridge.c | 3 +++ drivers/media/pci/intel/ipu3/Kconfig | 20 ++++++++++++++++++++ 3 files changed, 28 insertions(+), 16 deletions(-)
drivers/media/pci/intel/Kconfig +5 -16
@@ -1,21 +1,10 @@ # SPDX-License-Identifier: GPL-2.0-only config IPU_BRIDGE - bool "Intel IPU Sensors Bridge" - depends on VIDEO_IPU3_CIO2 && ACPI - depends on I2C + tristate + depends on I2C && ACPI help - This extension provides an API for the Intel IPU driver to create - connections to cameras that are hidden in the SSDB buffer in ACPI. - It can be used to enable support for cameras in detachable / hybrid - devices that ship with Windows. - - Say Y here if your device is a detachable / hybrid laptop that comes - with Windows installed by the OEM, for example: - - - Microsoft Surface models (except Surface Pro 3) - - The Lenovo Miix line (for example the 510, 520, 710 and 720) - - Dell 7285 - - If in doubt, say N here. + This is a helper module for the IPU bridge, which can be + used by ipu3 and other drivers. In order to handle module + dependencies, this is selected by each driver that needs it. source "drivers/media/pci/intel/ipu3/Kconfig"
drivers/media/pci/intel/ipu-bridge.c +3 -0
@@ -497,3 +497,6 @@ err_free_bridge:return ret; }EXPORT_SYMBOL_NS_GPL (ipu_bridge_init,INTEL_IPU_BRIDGE ); + +MODULE_LICENSE ("GPL" ); +MODULE_DESCRIPTION ("Intel IPU Sensors Bridge driver" );
drivers/media/pci/intel/ipu3/Kconfig +20 -0
@@ -8,6 +8,7 @@ config VIDEO_IPU3_CIO2 select VIDEO_V4L2_SUBDEV_API select V4L2_FWNODE select VIDEOBUF2_DMA_SG + select IPU_BRIDGE if CIO2_BRIDGE help This is the Intel IPU3 CIO2 CSI-2 receiver unit, found in Intel
@@ -17,3 +18,22 @@ config VIDEO_IPU3_CIO2 Say Y or M here if you have a Skylake/Kaby Lake SoC with MIPI CSI-2 connected camera. The module will be called ipu3-cio2. + +config CIO2_BRIDGE + bool "IPU3 CIO2 Sensors Bridge" + depends on VIDEO_IPU3_CIO2 && ACPI + depends on I2C + help + This extension provides an API for the ipu3-cio2 driver to create + connections to cameras that are hidden in the SSDB buffer in ACPI. + It can be used to enable support for cameras in detachable / hybrid + devices that ship with Windows. + + Say Y here if your device is a detachable / hybrid laptop that comes + with Windows installed by the OEM, for example: + + - Microsoft Surface models (except Surface Pro 3) + - The Lenovo Miix line (for example the 510, 520, 710 and 720) + - Dell 7285 + + If in doubt, say N here.
Greg Kroah-Hartman
maintainerPATCH 729/739 Bluetooth: msft: Extended monitor tracking by address filter
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hilda Wu <[email protected]>
[ Upstream commit 9e14606d8f38ea52a38c27692a9c1513c987a5da ]
Since limited tracking device per condition, this feature is to support tracking multiple devices concurrently.
When a pattern monitor detects the device, this feature issues an address monitor for tracking that device. Let pattern monitor can keep monitor new devices.
This feature adds an address filter when receiving a LE monitor device event which monitor handle is for a pattern, and the controller started monitoring the device. And this feature also has cancelled the monitor advertisement from address filters when receiving a LE monitor device event when the controller stopped monitoring the device specified by an address and monitor handle.
Below is an example to know the feature adds the address filter.
//Add MSFT pattern monitor
< HCI Command: Vendor (0x3f|0x00f0) plen 14 #142 [hci0] 55.552420
03 b8 a4 03 ff 01 01 06 09 05 5f 52 45 46 .........._REF
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 6 #143 [hci0] 55.653960
Vendor (0x3f|0x00f0) ncmd 2
Status: Success (0x00)
03 00//Got event from the pattern monitor
Quoted 1 line
HCI Event: Vendor (
0xff) plen 18 #148 [hci0] 58.384953
23 79 54 33 77 88 97 68 02 00 fb c1 29 eb 27 b8 #yT3w..h....).'.
00 01 ..
//Add MSFT address monitor (Sample address: B8:27:EB:29:C1:FB)
< HCI Command: Vendor (0x3f|0x00f0) plen 13 #149 [hci0] 58.385067
03 b8 a4 03 ff 04 00 fb c1 29 eb 27 b8 .........).'.
//Report to userspace about found device (ADV Monitor Device Found)
@ MGMT Event: Unknown (0x002f) plen 38 {0x0003} [hci0] 58.680042
01 00 fb c1 29 eb 27 b8 01 ce 00 00 00 00 16 00 ....).'.........
0a 09 4b 45 59 42 44 5f 52 45 46 02 01 06 03 19 ..KEYBD_REF.....
c1 03 03 03 12 18 ......//Got event from address monitor
Quoted 1 line
HCI Event: Vendor (
0xff) plen 18 #152 [hci0] 58.672956
23 79 54 33 77 88 97 68 02 00 fb c1 29 eb 27 b8 #yT3w..h....).'.
01 01Stable-dep-of: 253f3399f4c0 ("Bluetooth: HCI: Introduce HCI_QUIRK_BROKEN_LE_CODED")
--- drivers/bluetooth/btrtl.c | 4 + include/net/bluetooth/hci.h | 10 + net/bluetooth/msft.c | 412 ++++++++++++++++++++++++++++++++++-- 3 files changed, 411 insertions(+), 15 deletions(-)
drivers/bluetooth/btrtl.c +4 -0
@@ -1199,6 +1199,10 @@ void btrtl_set_quirks(struct hci_dev *hdev, struct btrtl_device_info *btrtl_dev)if (btrtl_dev->project_id ==CHIP_ID_8852C )btrealtek_set_flag (hdev,REALTEK_ALT6_CONTINUOUS_TX_CHIP ); +if (btrtl_dev->project_id ==CHIP_ID_8852A || + btrtl_dev->project_id ==CHIP_ID_8852C ) +set_bit (HCI_QUIRK_USE_MSFT_EXT_ADDRESS_FILTER , &hdev->quirks); +hci_set_aosp_capable (hdev);break ;default :
include/net/bluetooth/hci.h +10 -0
@@ -309,6 +309,16 @@ enum {* to support it. */ HCI_QUIRK_BROKEN_SET_RPA_TIMEOUT , + +/* When this quirk is set, MSFT extension monitor tracking by +* address filter is supported. Since tracking quantity of each +* pattern is limited, this feature supports tracking multiple +* devices concurrently if controller supports multiple +* address filters. +* +* This quirk must be set before hci_register_dev is called. +*/ + HCI_QUIRK_USE_MSFT_EXT_ADDRESS_FILTER, };/* HCI device flags */
net/bluetooth/msft.c +397 -15
545 lines not on this page · raw message
Signature · 1 line
2.40.1
Greg Kroah-Hartman
maintainerPATCH 730/739 Bluetooth: HCI: Introduce HCI_QUIRK_BROKEN_LE_CODED
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Luiz Augusto von Dentz <[email protected]>
[ Upstream commit 253f3399f4c09ce6f4e67350f839be0361b4d5ff ]
This introduces HCI_QUIRK_BROKEN_LE_CODED which is used to indicate that LE Coded PHY shall not be used, it is then set for some Intel models that claim to support it but when used causes many problems.
--- drivers/bluetooth/btintel.c | 6 ++++++ include/net/bluetooth/hci.h | 10 ++++++++++ include/net/bluetooth/hci_core.h | 4 +++- net/bluetooth/hci_sync.c | 5 ++++- 4 files changed, 23 insertions(+), 2 deletions(-)
drivers/bluetooth/btintel.c +6 -0
@@ -2658,6 +2658,9 @@ static int btintel_setup_combined(struct hci_dev *hdev)set_bit (HCI_QUIRK_WIDEBAND_SPEECH_SUPPORTED , &hdev->quirks); +/* These variants don't seem to support LE Coded PHY */ +set_bit (HCI_QUIRK_BROKEN_LE_CODED , &hdev->quirks); +/* Setup MSFT Extension support */ btintel_set_msft_opcode (hdev, ver.hw_variant);
@@ -2729,6 +2732,9 @@ static int btintel_setup_combined(struct hci_dev *hdev)*/ set_bit (HCI_QUIRK_WIDEBAND_SPEECH_SUPPORTED , &hdev->quirks); +/* These variants don't seem to support LE Coded PHY */ +set_bit (HCI_QUIRK_BROKEN_LE_CODED , &hdev->quirks); +/* Set Valid LE States quirk */ set_bit (HCI_QUIRK_VALID_LE_STATES , &hdev->quirks);
include/net/bluetooth/hci.h +10 -0
@@ -319,6 +319,16 @@ enum {* This quirk must be set before hci_register_dev is called. */ HCI_QUIRK_USE_MSFT_EXT_ADDRESS_FILTER , + +/* +* When this quirk is set, LE Coded PHY shall not be used. This is +* required for some Intel controllers which erroneously claim to +* support it but it causes problems with extended scanning. +* +* This quirk can be set before hci_register_dev is called or +* during the hdev->setup vendor callback. +*/ + HCI_QUIRK_BROKEN_LE_CODED, };/* HCI device flags */
include/net/bluetooth/hci_core.h +3 -1
@@ -1770,7 +1770,9 @@ void hci_conn_del_sysfs(struct hci_conn *conn);#define scan_2m (dev) (((dev)->le_tx_def_phys & HCI_LE_SET_PHY_2M) || \ ((dev)->le_rx_def_phys & HCI_LE_SET_PHY_2M)) -#define le_coded_capable (dev) (((dev)->le_features[1] & HCI_LE_PHY_CODED)) +#define le_coded_capable (dev) (((dev)->le_features[1] & HCI_LE_PHY_CODED) && \ + !test_bit(HCI_QUIRK_BROKEN_LE_CODED, \ + &(dev)->quirks))#define scan_coded (dev) (((dev)->le_tx_def_phys & HCI_LE_SET_PHY_CODED) || \ ((dev)->le_rx_def_phys & HCI_LE_SET_PHY_CODED))
net/bluetooth/hci_sync.c +4 -1
@@ -4684,7 +4684,10 @@ static const struct { "advertised, but not supported."),HCI_QUIRK_BROKEN (SET_RPA_TIMEOUT ,"HCI LE Set Random Private Address Timeout command is " - "advertised, but not supported.") +"advertised, but not supported." ), +HCI_QUIRK_BROKEN (LE_CODED , +"HCI LE Coded PHY feature bit is set, " + "but its usage is not supported.") };/* This function handles hdev setup stage:
Signature · 1 line
2.40.1
Greg Kroah-Hartman
maintainerPATCH 731/739 serial: sc16is7xx: remove obsolete out_thread label
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hugo Villeneuve <[email protected]>
[ Upstream commit dabc54a45711fe77674a6c0348231e00e66bd567 ]
Commit c8f71b49ee4d ("serial: sc16is7xx: setup GPIO controller later in probe") moved GPIO setup code later in probe function. Doing so also required to move ports cleanup code (out_ports label) after the GPIO cleanup code.
After these moves, the out_thread label becomes misplaced and makes part of the cleanup code illogical.
This patch remove the now obsolete out_thread label and make GPIO setup code jump to out_ports label if it fails.
Stable-dep-of: 049994292834 ("serial: sc16is7xx: fix regression with GPIO configuration")
--- drivers/tty/serial/sc16is7xx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/tty/serial/sc16is7xx.c +1 -3
@@ -1529,7 +1529,7 @@ static int sc16is7xx_probe(struct device *dev, s->gpio.can_sleep =1 ; ret =gpiochip_add_data (&s->gpio, s);if (ret) - goto out_thread; + goto out_ports; }#endif
@@ -1555,8 +1555,6 @@ static int sc16is7xx_probe(struct device *dev,#ifdef CONFIG_GPIOLIB if (devtype->nr_gpio)gpiochip_remove (&s->gpio); - -out_thread:#endif out_ports:
Signature · 1 line
2.40.1
Greg Kroah-Hartman
maintainerPATCH 732/739 serial: sc16is7xx: fix regression with GPIO configuration
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hugo Villeneuve <[email protected]>
[ Upstream commit 0499942928341d572a42199580433c2b0725211e ]
Commit 679875d1d880 ("sc16is7xx: Separate GPIOs from modem control lines") and commit 21144bab4f11 ("sc16is7xx: Handle modem status lines") changed the function of the GPIOs pins to act as modem control lines without any possibility of selecting GPIO function.
As a consequence, applications that depends on GPIO lines configured by default as GPIO pins no longer work as expected.
Also, the change to select modem control lines function was done only for channel A of dual UART variants (752/762). This was not documented in the log message.
Allow to specify GPIO or modem control line function in the device tree, and for each of the ports (A or B).
Do so by using the new device-tree property named "nxp,modem-control-line-ports" (property added in separate patch).
When registering GPIO chip controller, mask-out GPIO pins declared as modem control lines according to this new DT property.
--- drivers/tty/serial/sc16is7xx.c | 143 +++++++++++++++++++++++++-------- 1 file changed, 108 insertions(+), 35 deletions(-)
drivers/tty/serial/sc16is7xx.c +108 -35
@@ -236,7 +236,8 @@/* IOControl register bits (Only 750/760) */ #define SC16IS7XX_IOCONTROL_LATCH_BIT (1 << 0)/* Enable input latching */ -#define SC16IS7XX_IOCONTROL_MODEM_BIT (1 << 1)/* Enable GPIO[7:4] as modem pins */ +#define SC16IS7XX_IOCONTROL_MODEM_A_BIT (1 << 1)/* Enable GPIO[7:4] as modem A pins */ +#define SC16IS7XX_IOCONTROL_MODEM_B_BIT (1 << 2)/* Enable GPIO[3:0] as modem B pins */ #define SC16IS7XX_IOCONTROL_SRESET_BIT (1 << 3)/* Software Reset */ /* EFCR register bits */
@@ -301,12 +302,12 @@/* Misc definitions */ #define SC16IS7XX_FIFO_SIZE (64)#define SC16IS7XX_REG_SHIFT 2 +#define SC16IS7XX_GPIOS_PER_BANK 4struct sc16is7xx_devtype {char name[10 ];int nr_gpio;int nr_uart; -int has_mctrl; };#define SC16IS7XX_RECONF_MD (1 << 0)
@@ -336,7 +337,9 @@ struct sc16is7xx_port {struct clk *clk;#ifdef CONFIG_GPIOLIB struct gpio_chip gpio; +unsigned long gpio_valid_mask;#endif +u8 mctrl_mask;unsigned char buf[SC16IS7XX_FIFO_SIZE ];struct kthread_worker kworker;struct task_struct *kworker_task;
@@ -447,35 +450,30 @@ static const struct sc16is7xx_devtype sc16is74x_devtype = { .name = "SC16IS74X", .nr_gpio = 0, .nr_uart = 1, - .has_mctrl = 0, };static const struct sc16is7xx_devtype sc16is750_devtype = { .name ="SC16IS750" , - .nr_gpio =4 , + .nr_gpio =8 , .nr_uart =1 , - .has_mctrl =1 , };static const struct sc16is7xx_devtype sc16is752_devtype = { .name ="SC16IS752" , - .nr_gpio =0 , + .nr_gpio =8 , .nr_uart =2 , - .has_mctrl =1 , };static const struct sc16is7xx_devtype sc16is760_devtype = { .name ="SC16IS760" , - .nr_gpio =4 , + .nr_gpio =8 , .nr_uart =1 , - .has_mctrl =1 , };static const struct sc16is7xx_devtype sc16is762_devtype = { .name ="SC16IS762" , - .nr_gpio =0 , + .nr_gpio =8 , .nr_uart =2 , - .has_mctrl =1 , };static bool sc16is7xx_regmap_volatile (struct device *dev,unsigned int reg)
@@ -1357,8 +1355,98 @@ static int sc16is7xx_gpio_direction_output(struct gpio_chip *chip,return 0 ; } + +static int sc16is7xx_gpio_init_valid_mask (struct gpio_chip *chip, +unsigned long *valid_mask, +unsigned int ngpios) +{ +struct sc16is7xx_port *s =gpiochip_get_data (chip); + + *valid_mask = s->gpio_valid_mask; + +return 0 ; +} + +static int sc16is7xx_setup_gpio_chip (struct sc16is7xx_port *s) +{ +struct device *dev = s->p[0 ].port.dev; + +if (!s->devtype->nr_gpio) +return 0 ; + +switch (s->mctrl_mask) { +case 0 : + s->gpio_valid_mask =GENMASK (7 ,0 ); +break ; +case SC16IS7XX_IOCONTROL_MODEM_A_BIT : + s->gpio_valid_mask =GENMASK (3 ,0 ); +break ; +case SC16IS7XX_IOCONTROL_MODEM_B_BIT : + s->gpio_valid_mask =GENMASK (7 ,4 ); +break ; +default : +break ; + } + +if (s->gpio_valid_mask ==0 ) +return 0 ; + + s->gpio.owner =THIS_MODULE ; + s->gpio.parent = dev; + s->gpio.label =dev_name (dev); + s->gpio.init_valid_mask = sc16is7xx_gpio_init_valid_mask; + s->gpio.direction_input = sc16is7xx_gpio_direction_input; + s->gpio.get = sc16is7xx_gpio_get; + s->gpio.direction_output = sc16is7xx_gpio_direction_output; + s->gpio.set = sc16is7xx_gpio_set; + s->gpio.base =-1 ; + s->gpio.ngpio = s->devtype->nr_gpio; + s->gpio.can_sleep =1 ; + +return gpiochip_add_data (&s->gpio, s); +}#endif +/* +* Configure ports designated to operate as modem control lines. +*/ +static int sc16is7xx_setup_mctrl_ports (struct sc16is7xx_port *s) +{ +int i; +int ret; +int count; +u32 mctrl_port[2 ]; +struct device *dev = s->p[0 ].port.dev; + + count =device_property_count_u32 (dev,"nxp,modem-control-line-ports" ); +if (count <0 || count >ARRAY_SIZE (mctrl_port)) +return 0 ; + + ret =device_property_read_u32_array (dev,"nxp,modem-control-line-ports" , + mctrl_port, count); +if (ret) +return ret; + + s->mctrl_mask =0 ; + +for (i =0 ; i < count; i++) { +/* Use GPIO lines as modem control lines */ +if (mctrl_port[i] ==0 ) + s->mctrl_mask |=SC16IS7XX_IOCONTROL_MODEM_A_BIT ; +else if (mctrl_port[i] ==1 ) + s->mctrl_mask |=SC16IS7XX_IOCONTROL_MODEM_B_BIT ; + } + +if (s->mctrl_mask) +regmap_update_bits ( + s->regmap, +SC16IS7XX_IOCONTROL_REG <<SC16IS7XX_REG_SHIFT , +SC16IS7XX_IOCONTROL_MODEM_A_BIT | +SC16IS7XX_IOCONTROL_MODEM_B_BIT , s->mctrl_mask); + +return 0 ; +} +static const struct serial_rs485 sc16is7xx_rs485_supported = { .flags =SER_RS485_ENABLED |SER_RS485_RTS_AFTER_SEND , .delay_rts_before_send =1 ,
@@ -1471,12 +1559,6 @@ static int sc16is7xx_probe(struct device *dev,SC16IS7XX_EFCR_RXDISABLE_BIT | SC16IS7XX_EFCR_TXDISABLE_BIT); -/* Use GPIO lines as modem status registers */ -if (devtype->has_mctrl) -sc16is7xx_port_write (&s->p[i].port, -SC16IS7XX_IOCONTROL_REG , -SC16IS7XX_IOCONTROL_MODEM_BIT ); -/* Initialize kthread work structs */ kthread_init_work (&s->p[i].tx_work, sc16is7xx_tx_proc);kthread_init_work (&s->p[i].reg_work, sc16is7xx_reg_proc);
@@ -1514,23 +1596,14 @@ static int sc16is7xx_probe(struct device *dev, s->p[u].irda_mode = true; } + ret =sc16is7xx_setup_mctrl_ports (s); +if (ret) + goto out_ports; +#ifdef CONFIG_GPIOLIB -if (devtype->nr_gpio) { -/* Setup GPIO cotroller */ - s->gpio.owner =THIS_MODULE ; - s->gpio.parent = dev; - s->gpio.label =dev_name (dev); - s->gpio.direction_input = sc16is7xx_gpio_direction_input; - s->gpio.get = sc16is7xx_gpio_get; - s->gpio.direction_output = sc16is7xx_gpio_direction_output; - s->gpio.set = sc16is7xx_gpio_set; - s->gpio.base =-1 ; - s->gpio.ngpio = devtype->nr_gpio; - s->gpio.can_sleep =1 ; - ret =gpiochip_add_data (&s->gpio, s); -if (ret) - goto out_ports; - } + ret =sc16is7xx_setup_gpio_chip (s); +if (ret) + goto out_ports;#endif /*
@@ -1553,7 +1626,7 @@ static int sc16is7xx_probe(struct device *dev,return 0 ;#ifdef CONFIG_GPIOLIB -if (devtype->nr_gpio) +if (s->gpio_valid_mask)gpiochip_remove (&s->gpio);#endif
@@ -1577,7 +1650,7 @@ static void sc16is7xx_remove(struct device *dev)int i;#ifdef CONFIG_GPIOLIB -if (s->devtype->nr_gpio) +if (s->gpio_valid_mask)gpiochip_remove (&s->gpio);#endif
Signature · 1 line
2.40.1
Greg Kroah-Hartman
maintainerPATCH 733/739 mm/memfd: sysctl: fix MEMFD_NOEXEC_SCOPE_NOEXEC_ENFORCED
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jeff Xu <[email protected]>
[ Upstream commit 72de259130229412ca49871e70ffaf17dc9fba98 ]
Patch series "mm/memfd: fix sysctl MEMFD_NOEXEC_SCOPE_NOEXEC_ENFORCED", v2.
When sysctl vm.memfd_noexec is 2 (MEMFD_NOEXEC_SCOPE_NOEXEC_ENFORCED), memfd_create(.., MFD_EXEC) should fail.
This complies with how MEMFD_NOEXEC_SCOPE_NOEXEC_ENFORCED is defined - "memfd_create() without MFD_NOEXEC_SEAL will be rejected"
Thanks to Dominique Martinet <[email protected]> who reported the bug. see [1] for context.
This patch (of 2):
When vm.memfd_noexec is 2 (MEMFD_NOEXEC_SCOPE_NOEXEC_ENFORCED), memfd_create(.., MFD_EXEC) should fail.
This complies with how MEMFD_NOEXEC_SCOPE_NOEXEC_ENFORCED is defined - "memfd_create() without MFD_NOEXEC_SEAL will be rejected"
Stable-dep-of: 202e14222fad ("memfd: do not -EACCES old memfd_create() users with vm.memfd_noexec=2")
--- mm/memfd.c | 57 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 33 insertions(+), 24 deletions(-)
mm/memfd.c +33 -24
@@ -268,6 +268,36 @@ long memfd_fcntl(struct file *file, unsigned int cmd, unsigned int arg)#define MFD_ALL_FLAGS (MFD_CLOEXEC | MFD_ALLOW_SEALING | MFD_HUGETLB | MFD_NOEXEC_SEAL | MFD_EXEC) +static int check_sysctl_memfd_noexec (unsigned int *flags) +{ +#ifdef CONFIG_SYSCTL +char comm[TASK_COMM_LEN ]; +int sysctl =MEMFD_NOEXEC_SCOPE_EXEC ; +struct pid_namespace *ns; + + ns =task_active_pid_ns (current); +if (ns) + sysctl = ns->memfd_noexec_scope; + +if (!(*flags & (MFD_EXEC |MFD_NOEXEC_SEAL ))) { +if (sysctl ==MEMFD_NOEXEC_SCOPE_NOEXEC_SEAL ) + *flags |=MFD_NOEXEC_SEAL ; +else + *flags |=MFD_EXEC ; + } + +if (*flags &MFD_EXEC && sysctl >=MEMFD_NOEXEC_SCOPE_NOEXEC_ENFORCED ) { +pr_warn_once ( +"memfd_create(): MFD_NOEXEC_SEAL is enforced, pid=%d '%s'\n" , +task_pid_nr (current),get_task_comm (comm, current)); + +return -EACCES ; + } +#endif + +return 0 ; +} +SYSCALL_DEFINE2 (memfd_create, const char __user *, uname, unsigned int, flags)
@@ -294,35 +324,14 @@ SYSCALL_DEFINE2(memfd_create,return -EINVAL ;if (!(flags & (MFD_EXEC |MFD_NOEXEC_SEAL ))) { -#ifdef CONFIG_SYSCTL -int sysctl =MEMFD_NOEXEC_SCOPE_EXEC ; -struct pid_namespace *ns; - - ns =task_active_pid_ns (current); -if (ns) - sysctl = ns->memfd_noexec_scope; - -switch (sysctl) { -case MEMFD_NOEXEC_SCOPE_EXEC : - flags |=MFD_EXEC ; -break ; -case MEMFD_NOEXEC_SCOPE_NOEXEC_SEAL : - flags |=MFD_NOEXEC_SEAL ; -break ; -default : -pr_warn_once ( -"memfd_create(): MFD_NOEXEC_SEAL is enforced, pid=%d '%s'\n" , -task_pid_nr (current),get_task_comm (comm, current)); -return -EINVAL ; - } -#else - flags |=MFD_EXEC ; -#endif pr_warn_once ("memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=%d '%s'\n" ,task_pid_nr (current),get_task_comm (comm, current)); } +if (check_sysctl_memfd_noexec (&flags) <0 ) +return -EACCES ; +/* length includes terminating zero */ len =strnlen_user (uname,MFD_NAME_MAX_LEN +1 );if (len <=0 )
Signature · 1 line
2.40.1
Greg Kroah-Hartman
maintainerPATCH 734/739 selftests/memfd: sysctl: fix MEMFD_NOEXEC_SCOPE_NOEXEC_ENFORCED
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jeff Xu <[email protected]>
[ Upstream commit badbbcd76545c58eff64bb1548f7f834a30dc52a ]
Add selftest for sysctl vm.memfd_noexec is 2
(MEMFD_NOEXEC_SCOPE_NOEXEC_ENFORCED)
memfd_create(.., MFD_EXEC) should fail in this case.
Stable-dep-of: 202e14222fad ("memfd: do not -EACCES old memfd_create() users with vm.memfd_noexec=2")
--- tools/testing/selftests/memfd/memfd_test.c | 5 +++++ 1 file changed, 5 insertions(+)
tools/testing/selftests/memfd/memfd_test.c +5 -0
@@ -1147,6 +1147,11 @@ static void test_sysctl_child(void)sysctl_assert_write ("2" );mfd_fail_new ("kern_memfd_sysctl_2" ,MFD_CLOEXEC |MFD_ALLOW_SEALING ); +mfd_fail_new ("kern_memfd_sysctl_2_MFD_EXEC" , +MFD_CLOEXEC |MFD_EXEC ); + fd =mfd_assert_new ("" ,0 ,MFD_NOEXEC_SEAL ); +close (fd); +sysctl_fail_write ("0" );sysctl_fail_write ("1" ); }
Signature · 1 line
2.40.1
Greg Kroah-Hartman
maintainerPATCH 735/739 memfd: do not -EACCES old memfd_create() users with vm.memfd_noexec=2
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Aleksa Sarai <[email protected]>
[ Upstream commit 202e14222fadb246dfdf182e67de1518e86a1e20 ]
Given the difficulty of auditing all of userspace to figure out whether every memfd_create() user has switched to passing MFD_EXEC and MFD_NOEXEC_SEAL flags, it seems far less distruptive to make it possible for older programs that don't make use of executable memfds to run under vm.memfd_noexec=2. Otherwise, a small dependency change can result in spurious errors. For programs that don't use executable memfds, passing MFD_NOEXEC_SEAL is functionally a no-op and thus having the same
In addition, every failure under vm.memfd_noexec=2 needs to print to the kernel log so that userspace can figure out where the error came from. The concerns about pr_warn_ratelimited() spam that caused the switch to pr_warn_once()[1,2] do not apply to the vm.memfd_noexec=2 case.
This is a user-visible API change, but as it allows programs to do something that would be blocked before, and the sysctl itself was broken and recently released, it seems unlikely this will cause any issues.
[1]: https://lore.kernel.org/Y5yS8wCnuYGLHMj4@x1n/
[2]: https://lore.kernel.org/202212161233.85C9783FB@keescook/
--- include/linux/pid_namespace.h | 16 +++--------- mm/memfd.c | 30 ++++++++-------------- tools/testing/selftests/memfd/memfd_test.c | 22 ++++++++++++---- 3 files changed, 32 insertions(+), 36 deletions(-)
include/linux/pid_namespace.h +4 -12
@@ -17,18 +17,10 @@struct fs_pin ;#if defined(CONFIG_SYSCTL ) && defined(CONFIG_MEMFD_CREATE ) -/* -* sysctl for vm.memfd_noexec -* 0: memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL -* acts like MFD_EXEC was set. -* 1: memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL -* acts like MFD_NOEXEC_SEAL was set. -* 2: memfd_create() without MFD_NOEXEC_SEAL will be -* rejected. -*/ -#define MEMFD_NOEXEC_SCOPE_EXEC 0 -#define MEMFD_NOEXEC_SCOPE_NOEXEC_SEAL 1 -#define MEMFD_NOEXEC_SCOPE_NOEXEC_ENFORCED 2 +/* modes for vm.memfd_noexec sysctl */ +#define MEMFD_NOEXEC_SCOPE_EXEC 0/* MFD_EXEC implied if unset */ +#define MEMFD_NOEXEC_SCOPE_NOEXEC_SEAL 1/* MFD_NOEXEC_SEAL implied if unset */ +#define MEMFD_NOEXEC_SCOPE_NOEXEC_ENFORCED 2/* same as 1, except MFD_EXEC rejected */ #endif struct pid_namespace {
mm/memfd.c +11 -19
@@ -271,30 +271,22 @@ long memfd_fcntl(struct file *file, unsigned int cmd, unsigned int arg)static int check_sysctl_memfd_noexec (unsigned int *flags) {#ifdef CONFIG_SYSCTL -char comm[TASK_COMM_LEN ]; -int sysctl =MEMFD_NOEXEC_SCOPE_EXEC ; -struct pid_namespace *ns; - - ns =task_active_pid_ns (current); -if (ns) - sysctl = ns->memfd_noexec_scope; +int sysctl =task_active_pid_ns (current)->memfd_noexec_scope;if (!(*flags & (MFD_EXEC |MFD_NOEXEC_SEAL ))) { -if (sysctl ==MEMFD_NOEXEC_SCOPE_NOEXEC_SEAL ) +if (sysctl >=MEMFD_NOEXEC_SCOPE_NOEXEC_SEAL ) *flags |=MFD_NOEXEC_SEAL ;else *flags |=MFD_EXEC ; } -if (*flags &MFD_EXEC && sysctl >=MEMFD_NOEXEC_SCOPE_NOEXEC_ENFORCED ) { -pr_warn_once ( -"memfd_create(): MFD_NOEXEC_SEAL is enforced, pid=%d '%s'\n" , -task_pid_nr (current),get_task_comm (comm, current)); - +if (!(*flags &MFD_NOEXEC_SEAL ) && sysctl >=MEMFD_NOEXEC_SCOPE_NOEXEC_ENFORCED ) { +pr_err_ratelimited ( +"%s[%d]: memfd_create() requires MFD_NOEXEC_SEAL with vm.memfd_noexec=%d\n" , + current->comm,task_pid_nr (current), sysctl);return -EACCES ; }#endif -return 0 ; }
@@ -302,7 +294,6 @@ SYSCALL_DEFINE2(memfd_create, const char __user *, uname, unsigned int, flags) { - char comm[TASK_COMM_LEN]; unsigned int *file_seals;struct file *file;int fd, error;
@@ -325,12 +316,13 @@ SYSCALL_DEFINE2(memfd_create,if (!(flags & (MFD_EXEC |MFD_NOEXEC_SEAL ))) {pr_warn_once ( -"memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=%d '%s'\n" , -task_pid_nr (current),get_task_comm (comm, current)); +"%s[%d]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set\n" , + current->comm,task_pid_nr (current)); } -if (check_sysctl_memfd_noexec (&flags) <0 ) -return -EACCES ; + error =check_sysctl_memfd_noexec (&flags); +if (error <0 ) +return error;/* length includes terminating zero */ len =strnlen_user (uname,MFD_NAME_MAX_LEN +1 );
tools/testing/selftests/memfd/memfd_test.c +17 -5
@@ -1145,11 +1145,23 @@ static void test_sysctl_child(void)printf ("%s sysctl 2\n" , memfd_str);sysctl_assert_write ("2" ); -mfd_fail_new ("kern_memfd_sysctl_2" , -MFD_CLOEXEC |MFD_ALLOW_SEALING ); -mfd_fail_new ("kern_memfd_sysctl_2_MFD_EXEC" , -MFD_CLOEXEC |MFD_EXEC ); - fd =mfd_assert_new ("" ,0 ,MFD_NOEXEC_SEAL ); +mfd_fail_new ("kern_memfd_sysctl_2_exec" , +MFD_EXEC |MFD_CLOEXEC |MFD_ALLOW_SEALING ); + + fd =mfd_assert_new ("kern_memfd_sysctl_2_dfl" , + mfd_def_size, +MFD_CLOEXEC |MFD_ALLOW_SEALING ); +mfd_assert_mode (fd,0666 ); +mfd_assert_has_seals (fd,F_SEAL_EXEC ); +mfd_fail_chmod (fd,0777 ); +close (fd); + + fd =mfd_assert_new ("kern_memfd_sysctl_2_noexec_seal" , + mfd_def_size, +MFD_NOEXEC_SEAL |MFD_CLOEXEC |MFD_ALLOW_SEALING ); +mfd_assert_mode (fd,0666 ); +mfd_assert_has_seals (fd,F_SEAL_EXEC ); +mfd_fail_chmod (fd,0777 );close (fd);sysctl_fail_write ("0" );
Signature · 1 line
2.40.1
Greg Kroah-Hartman
maintainerPATCH 736/739 memfd: replace ratcheting feature from vm.memfd_noexec with hierarchy
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Aleksa Sarai <[email protected]>
[ Upstream commit 9876cfe8ec1cb3c88de31f4d58d57b0e7e22bcc4 ]
This sysctl has the very unusual behaviour of not allowing any user (even CAP_SYS_ADMIN) to reduce the restriction setting, meaning that if you were to set this sysctl to a more restrictive option in the host pidns you would need to reboot your machine in order to reset it.
The justification given in [1] is that this is a security feature and thus it should not be possible to disable. Aside from the fact that we have plenty of security-related sysctls that can be disabled after being enabled (fs.protected_symlinks for instance), the protection provided by the sysctl is to stop users from being able to create a binary and then execute it. A user with CAP_SYS_ADMIN can trivially do this without memfd_create(2):
% cat mount-memfd.c #include <fcntl.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <linux/mount.h>
#define SHELLCODE "#!/bin/echo this file was executed from this totally private tmpfs:"
int main(void)
{
int fsfd = fsopen("tmpfs", FSOPEN_CLOEXEC);
assert(fsfd >= 0);
assert(!fsconfig(fsfd, FSCONFIG_CMD_CREATE, NULL, NULL, 2));
int dfd = fsmount(fsfd, FSMOUNT_CLOEXEC, 0);
assert(dfd >= 0);
int execfd = openat(dfd, "exe", O_CREAT | O_RDWR | O_CLOEXEC, 0782);
assert(execfd >= 0);
assert(write(execfd, SHELLCODE, strlen(SHELLCODE)) == strlen(SHELLCODE));
assert(!close(execfd));
char *execpath = NULL;
char *argv[] = { "bad-exe", NULL }, *envp[] = { NULL };
execfd = openat(dfd, "exe", O_PATH | O_CLOEXEC);
assert(execfd >= 0);
assert(asprintf(&execpath, "/proc/self/fd/%d", execfd) > 0);
assert(!execve(execpath, argv, envp));
}
% ./mount-memfd
this file was executed from this totally private tmpfs: /proc/self/fd/5
%Given that it is possible for CAP_SYS_ADMIN users to create executable binaries without memfd_create(2) and without touching the host filesystem (not to mention the many other things a CAP_SYS_ADMIN process would be able to do that would be equivalent or worse), it seems strange to cause a fair amount of headache to admins when there doesn't appear to be an actual security benefit to blocking this. There appear to be concerns about confused-deputy-esque attacks[2] but a confused deputy that can write to arbitrary sysctls is a bigger security issue than executable memfds.
/* New API */
The primary requirement from the original author appears to be more based on the need to be able to restrict an entire system in a hierarchical manner[3], such that child namespaces cannot re-enable executable memfds.
So, implement that behaviour explicitly -- the vm.memfd_noexec scope is evaluated up the pidns tree to &init_pid_ns and you have the most restrictive value applied to you. The new lower limit you can set vm.memfd_noexec is whatever limit applies to your parent.
Note that a pidns will inherit a copy of the parent pidns's effective vm.memfd_noexec setting at unshare() time. This matches the existing behaviour, and it also ensures that a pidns will never have its vm.memfd_noexec setting *lowered* behind its back (but it will be raised if the parent raises theirs).
/* Backwards Compatibility */
As the previous version of the sysctl didn't allow you to lower the setting at all, there are no backwards compatibility issues with this aspect of the change.
However it should be noted that now that the setting is completely hierarchical. Previously, a cloned pidns would just copy the current pidns setting, meaning that if the parent's vm.memfd_noexec was changed it wouldn't propoagate to existing pid namespaces. Now, the restriction applies recursively. This is a uAPI change, however:
* The sysctl is very new, having been merged in 6.3.
* Several aspects of the sysctl were broken up until this patchset and the other patchset by Jeff Xu last month.
And thus it seems incredibly unlikely that any real users would run into this issue. In the worst case, if this causes userspace isues we could make it so that modifying the setting follows the hierarchical rules but the restriction checking uses the cached copy.
[1]: https://lore.kernel.org/CABi2SkWnAgHK1i6iqSqPMYuNEhtHBkO8jUuCvmG3RmUB5TKHJw@mail.gmail.com/
[2]: https://lore.kernel.org/CALmYWFs_dNCzw_pW1yRAo4bGCPEtykroEQaowNULp7svwMLjOg@mail.gmail.com/
[3]: https://lore.kernel.org/CALmYWFuahdUF7cT4cm7_TGLqPanuHXJ-hVSfZt7vpTnc18DPrw@mail.gmail.com/
--- include/linux/pid_namespace.h | 23 ++++++++++++++++++++++- kernel/pid.c | 3 +++ kernel/pid_namespace.c | 6 +++--- kernel/pid_sysctl.h | 28 ++++++++++++---------------- mm/memfd.c | 3 ++- 5 files changed, 42 insertions(+), 21 deletions(-)
include/linux/pid_namespace.h +22 -1
@@ -39,7 +39,6 @@ struct pid_namespace {int reboot;/* group exit code if this pidns was rebooted */ struct ns_common ns;#if defined(CONFIG_SYSCTL ) && defined(CONFIG_MEMFD_CREATE ) -/* sysctl for vm.memfd_noexec */ int memfd_noexec_scope;#endif } __randomize_layout;
@@ -56,6 +55,23 @@ static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns)return ns; } +#if defined(CONFIG_SYSCTL ) && defined(CONFIG_MEMFD_CREATE ) +static inline int pidns_memfd_noexec_scope (struct pid_namespace *ns) +{ +int scope =MEMFD_NOEXEC_SCOPE_EXEC ; + +for (; ns; ns = ns->parent) + scope =max (scope,READ_ONCE (ns->memfd_noexec_scope)); + +return scope; +} +#else +static inline int pidns_memfd_noexec_scope (struct pid_namespace *ns) +{ +return 0 ; +} +#endif +extern struct pid_namespace *copy_pid_ns (unsigned long flags,struct user_namespace *user_ns,struct pid_namespace *ns);extern void zap_pid_ns_processes (struct pid_namespace *pid_ns);
@@ -70,6 +86,11 @@ static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns)return ns; } +static inline int pidns_memfd_noexec_scope (struct pid_namespace *ns) +{ +return 0 ; +} +static inline struct pid_namespace *copy_pid_ns (unsigned long flags,struct user_namespace *user_ns,struct pid_namespace *ns) {
kernel/pid.c +3 -0
@@ -83,6 +83,9 @@ struct pid_namespace init_pid_ns = {#ifdef CONFIG_PID_NS .ns.ops = &pidns_operations,#endif +#if defined(CONFIG_SYSCTL ) && defined(CONFIG_MEMFD_CREATE ) + .memfd_noexec_scope = MEMFD_NOEXEC_SCOPE_EXEC, +#endif };EXPORT_SYMBOL_GPL (init_pid_ns);
kernel/pid_namespace.c +3 -3
@@ -110,9 +110,9 @@ static struct pid_namespace *create_pid_namespace(struct user_namespace *user_ns ns->user_ns =get_user_ns (user_ns); ns->ucounts = ucounts; ns->pid_allocated =PIDNS_ADDING ; - -initialize_memfd_noexec_scope (ns); - +#if defined(CONFIG_SYSCTL ) && defined(CONFIG_MEMFD_CREATE ) + ns->memfd_noexec_scope =pidns_memfd_noexec_scope (parent_pid_ns); +#endif return ns; out_free_idr:
kernel/pid_sysctl.h +12 -16
@@ -5,33 +5,30 @@#include <linux/pid_namespace.h> #if defined(CONFIG_SYSCTL ) && defined(CONFIG_MEMFD_CREATE ) -static inline void initialize_memfd_noexec_scope (struct pid_namespace *ns) -{ - ns->memfd_noexec_scope = -task_active_pid_ns (current)->memfd_noexec_scope; -} -static int pid_mfd_noexec_dointvec_minmax (struct ctl_table *table,int write,void *buf,size_t *lenp,loff_t *ppos) {struct pid_namespace *ns =task_active_pid_ns (current);struct ctl_table table_copy; +int err, scope, parent_scope;if (write && !ns_capable (ns->user_ns,CAP_SYS_ADMIN ))return -EPERM ; table_copy = *table; -if (ns != &init_pid_ns) - table_copy.data = &ns->memfd_noexec_scope; -/* -* set minimum to current value, the effect is only bigger -* value is accepted. -*/ -if (*(int *)table_copy.data > *(int *)table_copy.extra1) - table_copy.extra1 = table_copy.data; +/* You cannot set a lower enforcement value than your parent. */ + parent_scope =pidns_memfd_noexec_scope (ns->parent); +/* Equivalent to pidns_memfd_noexec_scope(ns). */ + scope =max (READ_ONCE (ns->memfd_noexec_scope), parent_scope); + + table_copy.data = &scope; + table_copy.extra1 = &parent_scope; -return proc_dointvec_minmax (&table_copy, write, buf, lenp, ppos); + err =proc_dointvec_minmax (&table_copy, write, buf, lenp, ppos); +if (!err && write) +WRITE_ONCE (ns->memfd_noexec_scope, scope); +return err; } static struct ctl_table pid_ns_ctl_table_vm[] = {
@@ -51,7 +48,6 @@ static inline void register_pid_ns_sysctl_table_vm(void) register_sysctl("vm", pid_ns_ctl_table_vm); }#else -static inline void initialize_memfd_noexec_scope (struct pid_namespace *ns) {}static inline void register_pid_ns_sysctl_table_vm (void ) {}#endif
mm/memfd.c +2 -1
@@ -271,7 +271,8 @@ long memfd_fcntl(struct file *file, unsigned int cmd, unsigned int arg)static int check_sysctl_memfd_noexec (unsigned int *flags) {#ifdef CONFIG_SYSCTL -int sysctl =task_active_pid_ns (current)->memfd_noexec_scope; +struct pid_namespace *ns =task_active_pid_ns (current); +int sysctl =pidns_memfd_noexec_scope (ns);if (!(*flags & (MFD_EXEC |MFD_NOEXEC_SEAL ))) {if (sysctl >=MEMFD_NOEXEC_SCOPE_NOEXEC_SEAL )
Signature · 1 line
2.40.1
Greg Kroah-Hartman
maintainerPATCH 737/739 memfd: improve userspace warnings for missing exec-related flags
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Aleksa Sarai <[email protected]>
[ Upstream commit 434ed3350f57c03a9654fe0619755cc137a58935 ]
In order to incentivise userspace to switch to passing MFD_EXEC and MFD_NOEXEC_SEAL, we need to provide a warning on each attempt to call memfd_create() without the new flags. pr_warn_once() is not useful because on most systems the one warning is burned up during the boot process (on my system, systemd does this within the first second of boot) and thus userspace will in practice never see the warnings to push them to switch to the new flags.
The original patchset[1] used pr_warn_ratelimited(), however there were concerns about the degree of spam in the kernel log[2,3]. The resulting inability to detect every case was flagged as an issue at the time[4].
While we could come up with an alternative rate-limiting scheme such as only outputting the message if vm.memfd_noexec has been modified, or only outputting the message once for a given task, these alternatives have downsides that don't make sense given how low-stakes a single kernel warning message is. Switching to pr_info_ratelimited() instead should be fine -- it's possible some monitoring tool will be unhappy with a stream of warning-level messages but there's already plenty of info-level message spam in dmesg.
[1]: https://lore.kernel.org/[email protected]/
[2]: https://lore.kernel.org/202212161233.85C9783FB@keescook/
[3]: https://lore.kernel.org/Y5yS8wCnuYGLHMj4@x1n/
[4]: https://lore.kernel.org/[email protected]/
--- mm/memfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memfd.c +1 -1
@@ -316,7 +316,7 @@ SYSCALL_DEFINE2(memfd_create,return -EINVAL ;if (!(flags & (MFD_EXEC |MFD_NOEXEC_SEAL ))) { -pr_warn_once ( +pr_info_ratelimited ("%s[%d]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set\n" , current->comm,task_pid_nr (current)); }
Signature · 1 line
2.40.1
Greg Kroah-Hartman
maintainerPATCH 738/739 revert "memfd: improve userspace warnings for missing exec-related flags".
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Andrew Morton <[email protected]>
commit 2562d67b1bdf91c7395b0225d60fdeb26b4bc5a0 upstream.
This warning is telling userspace developers to pass MFD_EXEC and MFD_NOEXEC_SEAL to memfd_create(). Commit 434ed3350f57 ("memfd: improve userspace warnings for missing exec-related flags") made the warning more frequent and visible in the hope that this would accelerate the fixing of errant userspace.
But the overall effect is to generate far too much dmesg noise.
--- mm/memfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memfd.c +1 -1
@@ -316,7 +316,7 @@ SYSCALL_DEFINE2(memfd_create,return -EINVAL ;if (!(flags & (MFD_EXEC |MFD_NOEXEC_SEAL ))) { -pr_info_ratelimited ( +pr_warn_once ("%s[%d]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set\n" , current->comm,task_pid_nr (current)); }
Greg Kroah-Hartman
maintainerPATCH 739/739 net: remove duplicate INDIRECT_CALLABLE_DECLARE of udp[6]_ehashfn
In reply to Greg Kroah-Hartman6.5-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lorenz Bauer <[email protected]>
commit 74bdfab4fd7c641e55f7fe9d1be9687eeb01df67 upstream.
There are already INDIRECT_CALLABLE_DECLARE in the hashtable headers, no need to declare them again.
--- net/ipv4/inet_hashtables.c | 2 -- net/ipv6/inet6_hashtables.c | 2 -- 2 files changed, 4 deletions(-)
net/ipv4/inet_hashtables.c +0 -2
@@ -333,8 +333,6 @@ static inline int compute_score(struct sreturn score; } -INDIRECT_CALLABLE_DECLARE(inet_ehashfn_t udp_ehashfn); - struct sock *inet_lookup_reuseport(struct net *net, struct sock *sk, struct sk_buff *skb, int doff, __be32 saddr, __be16 sport,
net/ipv6/inet6_hashtables.c +0 -2
@@ -112,8 +112,6 @@ static inline int compute_score(struct sreturn score; } -INDIRECT_CALLABLE_DECLARE(inet6_ehashfn_t udp6_ehashfn); - struct sock *inet6_lookup_reuseport(struct net *net, struct sock *sk, struct sk_buff *skb, int doff, const struct in6_addr *saddr,
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.5.3 release. There are 739 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 Wed, 13 Sep 2023 13:44:56 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 9 lines
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.5.3-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.5.y
and the diffstat can be found below.thanks,
greg k-h
Compiled and booted on my test system. No dmesg regressions.
thanks,
-- Shuah
Quoted 5 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.5.3 release. There are 739 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.
Successfully compiled and installed bindeb-pkgs on my computer (Acer Aspire E15, Intel Core i3 Haswell). No noticeable regressions.
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Quoted 10 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.5.3 release. There are 739 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 Wed, 13 Sep 2023 13:44:56 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.5.3-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.5.y
and the diffstat can be found below.thanks,
greg k-h
Results from Linaro’s test farm.
No regressions on arm64, arm, x86_64, and i386.
NOTE:
Kernel crash noticed on Linux stable-rc 6.5.3-rc1 on qemu-arm64 while
running LTP sched tests cases have been reported on other threads.
Since this crash is not always reproducible it is hard to bisect.
Link:
- https://lore.kernel.org/ltp/CA+G9fYvHhiiGKhNd=L9+xYFVwv0Q8k6gUBeFQGWCWw1cWhb50Q@mail.gmail.com/T/#u
## Build
* kernel: 6.5.3-rc1
* git: https://gitlab.com/Linaro/lkft/mirrors/stable/linux-stable-rc
* git branch: linux-6.5.y
* git commit: 7bfd1316ceae2dc3bf962695aafe5f1d0f5bb4a5
* git describe: v6.5.2-740-g7bfd1316ceae
* test details:
https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.5.y/build/v6.5.2-740-g7bfd1316ceae
## Test Regressions (compared to v6.5.2)
## Metric Regressions (compared to v6.5.2)
## Test Fixes (compared to v6.5.2)
## Metric Fixes (compared to v6.5.2)
## Test result summary
total: 138096, pass: 119333, fail: 2020, skip: 16565, xfail: 178
## Build Summary
* arc: 5 total, 5 passed, 0 failed
* arm: 142 total, 140 passed, 2 failed
* arm64: 52 total, 49 passed, 3 failed
* i386: 41 total, 39 passed, 2 failed
* mips: 29 total, 27 passed, 2 failed
* parisc: 4 total, 4 passed, 0 failed
* powerpc: 38 total, 36 passed, 2 failed
* riscv: 26 total, 23 passed, 3 failed
* s390: 16 total, 13 passed, 3 failed
* sh: 14 total, 12 passed, 2 failed
* sparc: 8 total, 8 passed, 0 failed
* x86_64: 45 total, 41 passed, 4 failed
## Test suites summary
* boot
* kselftest-android
* kselftest-arm64
* kselftest-breakpoints
* kselftest-capabilities
* kselftest-cgroup
* kselftest-clone3
* kselftest-core
* kselftest-cpu-hotplug
* kselftest-cpufreq
* kselftest-drivers-dma-buf
* kselftest-efivarfs
* kselftest-exec
* kselftest-filesystems
* kselftest-filesystems-binderfs
* kselftest-filesystems-epoll
* kselftest-firmware
* kselftest-fpu
* kselftest-ftrace
* kselftest-futex
* kselftest-gpio
* kselftest-intel_pstate
* kselftest-ipc
* kselftest-ir
* kselftest-kcmp
* kselftest-kexec
* kselftest-kvm
* kselftest-lib
* kselftest-livepatch
* kselftest-membarrier
* kselftest-memfd
* kselftest-memory-hotplug
* kselftest-mincore
* kselftest-mount
* kselftest-mqueue
* kselftest-net
* kselftest-net-forwarding
* kselftest-net-mptcp
* kselftest-netfilter
* kselftest-nsfs
* kselftest-openat2
* kselftest-pid_namespace
* kselftest-pidfd
* kselftest-proc
* kselftest-pstore
* kselftest-ptrace
* kselftest-rseq
* kselftest-rtc
* kselftest-seccomp
* kselftest-sigaltstack
* kselftest-size
* kselftest-splice
* kselftest-static_keys
* kselftest-sync
* kselftest-sysctl
* kselftest-tc-testing
* kselftest-timens
* kselftest-timers
* kselftest-tmpfs
* kselftest-tpm2
* kselftest-user
* kselftest-user_events
* kselftest-vDSO
* kselftest-vm
* kselftest-watchdog
* kselftest-x86
* kselftest-zram
* kunit
* kvm-unit-tests
* libgpiod
* libhugetlbfs
* log-parser-boot
* log-parser-test
* ltp-cap_bounds
* ltp-commands
* ltp-containers
* ltp-controllers
* ltp-cpuhotplug
* ltp-crypto
* ltp-cve
* ltp-dio
* ltp-fcntl-locktests
* ltp-filecaps
* ltp-fs
* ltp-fs_bind
* ltp-fs_perms_simple
* ltp-fsx
* ltp-hugetlb
* ltp-io
* ltp-ipc
* ltp-math
* ltp-mm
* ltp-nptl
* ltp-pty
* ltp-sched
* ltp-securebits
* ltp-smoke
* ltp-syscalls
* ltp-tracing
* network-basic-tests
* perf
* rcutorture
* v4l2-compliance
--
Linaro LKFT
https://lkft.linaro.org
Allen Pais
Tested-byQuoted 15 lines
Quoted 15 lines
This is the start of the stable review cycle for the 6.5.3 release. There are 739 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 Wed, 13 Sep 2023 13:44:56 +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.5.3-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.5.y
and the diffstat can be found below.
Quoted 3 lines
Quoted 3 lines
thanks,
greg k-h
Compiled and booted on my x86_64 and ARM64 test systems. No errors or regressions.
Thanks.
Hi Greg,
Quoted 4 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.5.3 release. There are 739 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.
Build test (gcc version 13.2.1 20230827):
mips: 52 configs -> no failure
arm: 70 configs -> no failure
arm64: 3 configs -> no failurex86_64: 4 configs -> no failure
alpha allmodconfig -> no failure
csky allmodconfig -> no failure
powerpc allmodconfig -> no failure
riscv allmodconfig -> no failure
s390 allmodconfig -> no failure
xtensa allmodconfig -> no failure
Boot test:x86_64: Booted on my test laptop. No regression.x86_64: Booted on qemu. No regression. [1]
arm64: Booted on rpi4b (4GB model). No regression. [2]
mips: Booted on ci20 board. No regression. [3]
[1]. https://openqa.qa.codethink.co.uk/tests/5005
[2]. https://openqa.qa.codethink.co.uk/tests/5007
[3]. https://openqa.qa.codethink.co.uk/tests/5006
Signature · 2 lines
Regards Sudip
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.5.3 release. There are 739 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 Wed, 13 Sep 2023 13:44:56 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.5.3-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.5.y
and the diffstat can be found below.thanks,
greg k-h
Tested rc1 against the Fedora build system (aarch64, ppc64le, s390x, x86_64), and boot tested x86_64. No regressions noted.
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.5.3 release. There are 739 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 Wed, 13 Sep 2023 13:44:56 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.5.3-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.5.y
and the diffstat can be found below.thanks,
greg k-h
Built and booted successfully on RISC-V RV64 (HiFive Unmatched).
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.5.3 release. There are 739 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 Wed, 13 Sep 2023 13:44:56 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.5.3-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.5.y
and the diffstat can be found below.thanks,
greg k-h
All tests passing for Tegra ...
Test results for stable-v6.5:
11 builds: 11 pass, 0 fail
28 boots: 28 pass, 0 fail
130 tests: 130 pass, 0 failLinux version: 6.5.3-rc1-g7bfd1316ceae
Boards tested: tegra124-jetson-tk1, tegra186-p2771-0000,
tegra194-p2972-0000, tegra194-p3509-0000+p3668-0000,
tegra20-ventana, tegra210-p2371-2180,
tegra210-p3450-0000, tegra30-cardhu-a04Jon
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.5.3 release. There are 739 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 Wed, 13 Sep 2023 13:44:56 +0000. Anything received after that time might be too late.
Build results:
total: 157 pass: 157 fail: 0 Qemu test results: total: 530 pass: 530 fail: 0
Guenter
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.5.3 release. There are 739 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 Wed, 13 Sep 2023 13:44:56 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.5.3-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.5.y
and the diffstat can be found below.thanks,
greg k-h
On ARCH_BRCMSTB using 32-bit and 64-bit ARM kernels, build tested on BMIPS_GENERIC:
Signature · 1 line
Florian
Quoted 4 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.5.3 release. There are 739 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.
Thanks,
Conor.
Quoted 5 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.5.3 release. There are 739 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.
Quoted 8 lines
Responses should be made by Wed, 13 Sep 2023 13:44:56 +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.5.3-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.5.y
and the diffstat can be found below.
For RCU,
thanks,
- Joel
Quoted 3,125 lines
thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:Greg Kroah-Hartman <[email protected]>
Linux 6.5.3-rc1Lorenz Bauer <[email protected]>
net: remove duplicateINDIRECT_CALLABLE_DECLAREof udp[6]_ehashfnAndrew Morton <[email protected]>
revert "memfd: improve userspace warnings for missing exec-related flags".Aleksa Sarai <[email protected]>
memfd: improve userspace warnings for missing exec-related flagsAleksa Sarai <[email protected]>
memfd: replace ratcheting feature from vm.memfd_noexec with hierarchyAleksa Sarai <[email protected]>
memfd: do not-EACCESoldmemfd_create()users with vm.memfd_noexec=2Jeff Xu <[email protected]>
selftests/memfd: sysctl: fixMEMFD_NOEXEC_SCOPE_NOEXEC_ENFORCEDJeff Xu <[email protected]>
mm/memfd: sysctl: fixMEMFD_NOEXEC_SCOPE_NOEXEC_ENFORCEDHugo Villeneuve <[email protected]>
serial: sc16is7xx: fix regression with GPIO configurationHugo Villeneuve <[email protected]>
serial: sc16is7xx: remove obsoleteout_threadlabelLuiz Augusto von Dentz <[email protected]>
Bluetooth: HCI: IntroduceHCI_QUIRK_BROKEN_LE_CODEDHilda Wu <[email protected]>
Bluetooth: msft: Extended monitor tracking by address filterArnd Bergmann <[email protected]>
media: ipu3-cio2: allowipu_bridgeto be a module againKan Liang <[email protected]>
perf/x86/uncore: Correct the number of CHAs on EMRSong Liu <[email protected]>
x86/build: Fix linker fill bytes quirk/incompatibility for ld.lldJack Wang <[email protected]>
x86/sgx: Break up long non-preemptible delays insgx_vepc_release()Thomas Gleixner <[email protected]>
x86/smp: Don't send INIT to non-present and non-booted CPUsAlan Stern <[email protected]>
USB: core: Fix oversight in SuperSpeed initializationDouglas Anderson <[email protected]>
of: property:fw_devlink: Add a devlink for panel followersGustavo A. R. Silva <[email protected]>
cpufreq: brcmstb-avs-cpufreq: Fix -Warray-bounds bugThomas Bourgoin <[email protected]>
crypto: stm32 - fix MDMAT conditionThomas Bourgoin <[email protected]>
crypto: stm32 - fix loop iterating through scatterlist for DMABenjamin Tissoires <[email protected]>
HID: logitech-hidpp: rework one more time the retries attemptsHeiko Carstens <[email protected]>
s390/dasd: fix string length handlingSven Schnelle <[email protected]>
s390/ipl: add missing secure/has_secure file to ipl type 'unknown'Gerald Schaefer <[email protected]>
s390/dcssblk: fix kernel crash withlist_addcorruptionAndy Chiu <[email protected]>
RISC-V: Add ptrace support for vectorsDavid Howells <[email protected]>
iov_iter: Fixiov_iter_extract_pages()with zero-sized entriesKrzysztof Kozlowski <[email protected]>
regulator: dt-bindings: qcom,rpm: fix pattern for childrenD Scott Phillips <[email protected]>
arm64: sdei: abort running SDEI handlers during crashEnlin Mu <[email protected]>
pstore/ram: Check start of empty przs during initWolfram Sang <[email protected]>
mmc:renesas_sdhi: register irqs before registering controllerTzung-Bi Shih <[email protected]>
platform/chrome:chromeos_acpi: print hex string forACPI_TYPE_BUFFERFrederick Lawler <[email protected]>
crypto:af_alg- Decrement struct key.usage inalg_set_by_key_serial()Yazen Ghannam <[email protected]>
x86/MCE: Always save CS register on AMD Zen IF Poison errorsEric Biggers <[email protected]>
fsverity: skip PKCS#7 parser when keyring is emptyNicolas Dichtel <[email protected]>
net: handleARPHRD_PPPindev_is_mac_header_xmit()Thore Sommer <[email protected]>
X.509: if signature is unsupported skip validationHeiner Kallweit <[email protected]>
r8169: fix ASPM-related issues on a number of systems with NIC version from RTL8168hSteve Rutherford <[email protected]>
x86/sev: Makeenc_dec_hypercall()accept a size instead of npagesJann Horn <[email protected]>
dccp: Fix out of bounds access in DCCP error handlerAlexander Aring <[email protected]>
dlm: fix plock lookup when using multiple lockspacesYafang Shao <[email protected]>
bpf: Fix issue in verifyingallow_ptr_leaksFudong Wang <[email protected]>
drm/amd/display: Add smu write msg id fail retry processEkansh Gupta <[email protected]>
misc: fastrpc: Pass proper scm arguments for static process initHelge Deller <[email protected]>
parisc: Fix/proc/cpuinfooutput for lscpuAleksa Sarai <[email protected]>
procfs: block chmod on/proc/thread-self/commLi Lingfeng <[email protected]>
block: don't add or resize partition on the disk withGENHD_FL_NO_PARTChristoph Hellwig <[email protected]>
block: fix pin count management when merging same-page segmentsBjorn Helgaas <[email protected]>
Revert "PCI: Mark NVIDIA T4 GPUs to avoid bus reset"Dave Jiang <[email protected]>
ntb: Fix calculationntb_transport_tx_free_entry()Dave Jiang <[email protected]>
ntb: Clean up tx tail index on link downDave Jiang <[email protected]>
ntb: Drop packets when qp link is downKrzysztof Kozlowski <[email protected]>
dt-bindings: PCI: qcom: Fix SDX65 compatibleFeiyang Chen <[email protected]>
PCI/PM: Only readPCI_PM_CTRLregister when availableDexuan Cui <[email protected]>
PCI: hv: Fix a crash inhv_pci_restore_msi_msg()during hibernationRoss Lagerwall <[email protected]>
PCI: Free released resource after coalescingRanjan Kumar <[email protected]>
scsi: mpt3sas: Perform additional retries if doorbell read returns 0Nilesh Javali <[email protected]>
Revert "scsi: qla2xxx: Fix buffer overrun"Yang Yingliang <[email protected]>
media: nxp: Fix wrong return pointer check inmxc_isi_crossbar_init()Konrad Dybcio <[email protected]>
media: venus:hfi_venus: Write toVIDC_CTRL_INITafter unmasking interruptsGreg Kroah-Hartman <[email protected]>
media: dvb: symbol fixup fordvb_attach()Ding Xiang <[email protected]>
selftests/landlock: Fix a resource leakVitaly Rodionov <[email protected]>
ALSA: hda/cirrus: Fix broken audio on hardware with two CS42L42 codecs.Takashi Iwai <[email protected]>
ALSA: seq: Fixsnd_seq_expand_var_event()call to user-spaceTakashi Iwai <[email protected]>
ALSA: usb-audio: Fix potential memory leaks at error path for UMP openWill Deacon <[email protected]>
arm64: csum: Fix OoB access in IP checksum code for negative lengthsGabriel Krisman Bertazi <[email protected]>
io_uring: Don't set affinity on a dying sqpoll threadFrank Li <[email protected]>
i3c: master: svc: fix probe failure when no i3c device existNaveen N Rao <[email protected]>
powerpc/ftrace: Fix dropping weak symbols with older toolchainsSrinivas Pandruvada <[email protected]>
powercap:intel_rapl: Fix invalid setting of Power Limit 4Hongchen Zhang <[email protected]>
LoongArch: mm: Add p?d_leaf() definitionsMax Filippov <[email protected]>
xtensa: PMU: fix base address for the newer hardwareHamza Mahfooz <[email protected]>
drm/amd/display: registeredp_backlight_control()for DCN301Thomas Zimmermann <[email protected]>
backlight/lv5207lp: Compare against struct fb_info.deviceThomas Zimmermann <[email protected]>
backlight/bd6107: Compare against struct fb_info.deviceThomas Zimmermann <[email protected]>
backlight/gpio_backlight: Compare against struct fb_info.devicePavel Begunkov <[email protected]>
io_uring: break out of iowq iopoll on teardownPavel Begunkov <[email protected]>
io_uring/net: don't overflow multishot acceptPavel Begunkov <[email protected]>
io_uring/net: don't overflow multishot recvJens Axboe <[email protected]>
io_uring/sqpoll: fix io-wq affinity whenIORING_SETUP_SQPOLLis usedPavel Begunkov <[email protected]>
io_uring: break iopolling on signalPavel Begunkov <[email protected]>
io_uring: fix false positive KASAN warningsMatthew Wilcox (Oracle) <[email protected]>
XArray: Do not return sibling entries fromxa_load()Alexandre Ghiti <[email protected]>
riscv: Mark KASAN tmp* page tables variables as staticAlexandre Ghiti <[email protected]>
riscv: Movecreate_tmp_mapping()to init sectionsGustavo A. R. Silva <[email protected]>
ARM: OMAP2+: Fix -Warray-bounds warning in_pwrdm_state_switch()Yi Yang <[email protected]>
ipmi_si: fix a memleak intry_smi_init()Rick Wertenbroek <[email protected]>
PCI: rockchip: Use 64-bit mask on MSI 64-bit PCI addressSakari Ailus <[email protected]>
media: i2c: Add a camera sensor top level menuSakari Ailus <[email protected]>
media: i2c: ccs: Check rules is non-NULLThomas Gleixner <[email protected]>
cpu/hotplug: Prevent self deadlock on CPU hot-unplugJoel Fernandes (Google) <[email protected]>
mm/vmalloc: add a safer version offind_vm_area()for debugBart Van Assche <[email protected]>
scsi: core: Fix thescsi_set_resid()documentationKees Cook <[email protected]>
printk: ringbuffer: Fix truncating buffer sizemin_tcastZqiang <[email protected]>
rcu: dump vmalloc memory info safelyHou Tao <[email protected]>
virtio_pmem: add the missingREQ_OP_WRITEfor flush bioTakashi Iwai <[email protected]>
ALSA: pcm: Fix missing fixup call in compathw_refineioctlKalesh Singh <[email protected]>
Multi-gen LRU: fix per-zone reclaimBoris Brezillon <[email protected]>
PM / devfreq: Fix leak indevfreq_dev_release()Helge Deller <[email protected]>
parisc: ccio-dma: Create private runway procfs root entryRadoslaw Tyl <[email protected]>
igb: set max size RX buffer when store bad packet is enabledDaniel Mack <[email protected]>
gpio: zynq: restore zynq_gpio_irq_reqres/zynq_gpio_irq_relres callbacksChristoph Böhmwalder <[email protected]>
drbd: swapbvec_set_pagelen and offsetMohamed Khalfella <[email protected]>
skbuff:skb_segment, Call zero copy functions before using skbuff fragsWander Lairson Costa <[email protected]>
netfilter:xt_sctp: validate theflag_infocountWander Lairson Costa <[email protected]>
netfilter:xt_u32: validate user space inputXiao Liang <[email protected]>
netfilter:nft_exthdr: Fix non-linear header modificationKyle Zeng <[email protected]>
netfilter: ipset: add the missingIP_SET_HASH_WITH_NET0macro forip_set_hash_netportnet.cEric Dumazet <[email protected]>
igmp: limitigmpv3_newpack()packet size toIP_MAX_MTUEric Dumazet <[email protected]>
net: deal with integer overflows inkmalloc_reserve()Yuan Yao <[email protected]>
virtio_ring: fixavail_wrap_counterinvirtqueue_add_packedJason Wang <[email protected]>
virtio_vdpa: build affinity masks conditionallyLiao Chang <[email protected]>
cpufreq: Fix the race condition while updating thetransition_taskof policyVincent Whitchurch <[email protected]>
um: virt-pci: fix missing declaration warningMaciej S. Szmigiero <[email protected]>
Drivers: hv: vmbus: Don't dereference ACPI root object handleArnd Bergmann <[email protected]>
remoteproc: stm32: fix incorrect optional pointersFenghua Yu <[email protected]>
dmaengine: idxd: Fix issues with PRS disable sysfs knobFenghua Yu <[email protected]>
dmaengine: idxd: Allow ATS disable update only for configurable devicesFenghua Yu <[email protected]>
dmaengine: idxd: Expose ATS disable knob only when WQ ATS is supportedFenghua Yu <[email protected]>
dmaengine: idxd: Simplify WQ attribute visibility checksruanjinjie <[email protected]>
dmaengine:ste_dma40: Add missing IRQ check ind40_probeRandy Dunlap <[email protected]>
um: Fix hostaudio build errorsArnd Bergmann <[email protected]>
mfd: rz-mtu3: Link time dependenciesGeert Uytterhoeven <[email protected]>
mfd: rk808: MakeMFD_RK8XXtristateYi Yang <[email protected]>
mtd: rawnand: fsmc: handle clk prepare error infsmc_nand_resume()Hsin-Yi Wang <[email protected]>
mtd: spi-nor: Check bus width while setting QE bitMarek Behún <[email protected]>
leds: trigger: tty: Do not use LED_ON/OFF constants, useled_blink_set_oneshotinsteadMarek Behún <[email protected]>
leds: FixBUG_ONcheck forLED_COLOR_ID_MULTIthat is always falseMarek Behún <[email protected]>
leds: multicolor: Use rounded division when calculating color componentsAhmad Fatoum <[email protected]>
thermal/drivers/imx8mm: Suppress log message on probe deferralNícolas F. R. A. Prado <[email protected]>
thermal/drivers/mediatek/lvts_thermal: Manage threshold between sensorsNícolas F. R. A. Prado <[email protected]>
thermal/drivers/mediatek/lvts_thermal: Don't leave threshold zeroedNícolas F. R. A. Prado <[email protected]>
thermal/drivers/mediatek/lvts_thermal: Disable undesired interruptsNícolas F. R. A. Prado <[email protected]>
thermal/drivers/mediatek/lvts_thermal: Use offset threshold for IRQNícolas F. R. A. Prado <[email protected]>
thermal/drivers/mediatek/lvts_thermal: Honor sensors in immediate modeNícolas F. R. A. Prado <[email protected]>
thermal/drivers/mediatek/lvts_thermal: Handle IRQ on all controllersDan Carpenter <[email protected]>
leds: pwm: Fix error code inled_pwm_create_fwnode()Arnd Bergmann <[email protected]>
leds: simatic-ipc-leds-gpio: RestoreLEDS_CLASSdependencyDan Carpenter <[email protected]>
leds: aw200xx: Fix error code in probe()Jiasheng Jiang <[email protected]>
rpmsg: glink: Add check for kstrdupJonas Karlman <[email protected]>
phy/rockchip: inno-hdmi: do not power on rk3328 post pll on reg writeZheng Yang <[email protected]>
phy/rockchip: inno-hdmi: round fractal pixclock in rk3328recalc_rateJonas Karlman <[email protected]>
phy/rockchip: inno-hdmi: use correctvco_div_5macro on rk3328Rex Zhang <[email protected]>
dmaengine: idxd: Modify the dependence of attributepasid_enabledWilliam Zhang <[email protected]>
mtd: rawnand: brcmnand: Fix mtd oobsizeHugh Dickins <[email protected]>
mm/pagewalk: fix bootstopping regression from extrapte_unmap()Zheng Yejian <[email protected]>
tracing: Fix race issue between cpu buffer write and swapMikhail Kobuk <[email protected]>
tracing: Remove extra space at the end of hwlat_detector/modeDave Hansen <[email protected]>
x86/speculation: Mark all Skylake CPUs as vulnerable to GDSPaul Gortmaker <[email protected]>
tick/rcu: Fix false positive "softirq work is pending" messagesMirsad Goran Todorovac <[email protected]>
workqueue: fix data race with the pwq->stats[] incrementMario Limonciello <[email protected]>
platform/x86/amd/pmf: Fix a missing cleanup pathRahul Rameshbabu <[email protected]>
HID: nvidia-shield: Referencehid_devicedevm allocation ofinput_devnameRahul Rameshbabu <[email protected]>
HID: multitouch: Correct devm device reference for hidinputinput_devnameRahul Rameshbabu <[email protected]>
HID: uclogic: Correct devm device reference for hidinputinput_devnameChao Yu <[email protected]>
f2fs: compress: fix to assigncompress_levelfor lz4 correctlyBjörn Töpel <[email protected]>
riscv: RequireFRAME_POINTERfor some configurationsMiquel Raynal <[email protected]>
nvmem: core: Return NULL when no nvmem layout is foundNikita Zhandarovich <[email protected]>
HID: logitech-dj: Fix error handling inlogi_dj_recv_switch_to_dj_mode()Yonatan Nachum <[email protected]>
RDMA/efa: Fix wrong resources deallocation orderGuoqing Jiang <[email protected]>
RDMA/siw: Correct wrong debug messageGuoqing Jiang <[email protected]>
RDMA/siw: Balance the reference of cep->kref in the error pathLeon Romanovsky <[email protected]>
Revert "IB/isert: Fix incorrect release of isert connection"Peng Fan <[email protected]>
amba: bus: fix refcount leakChristophe Leroy <[email protected]>
Documentation: devices.txt: Fix minors for ttyCPM*Christophe Leroy <[email protected]>
Documentation: devices.txt: Remove ttySIOC*Christophe Leroy <[email protected]>
Documentation: devices.txt: Remove ttyIOC*Yi Yang <[email protected]>
serial: tegra: handle clk prepare error integra_uart_hw_init()Sam Protsenko <[email protected]>
dt-bindings: usb: samsung,exynos-dwc3: Fix Exynos5433 compatibleKrzysztof Kozlowski <[email protected]>
dt-bindings: usb: samsung,exynos-dwc3: fix order of clocks on Exynos5433Konrad Dybcio <[email protected]>
interconnect: qcom: bcm-voter: Useenable_maksfor keepalive votingKonrad Dybcio <[email protected]>
interconnect: qcom: bcm-voter: Improveenable_maskhandlingKonrad Dybcio <[email protected]>
interconnect: qcom: sm8450: Enablesync_stateChengfeng Ye <[email protected]>
scsi: fcoe: Fix potential deadlock on &fip->ctlr_lockTony Battersby <[email protected]>
scsi: core: Use 32-bit hostnum inscsi_host_lookup()Christopher Bednarz <[email protected]>
RDMA/irdma: Prevent zero-length STAG registrationChao Yu <[email protected]>
Revert "f2fs: do not issue small discard commands during checkpoint"Junhao He <[email protected]>
coresight: trbe: Fix TRBE potential sleep in atomic contextJunhao He <[email protected]>
coresight: Fix memory leak in acpi_buffer->pointerSuzuki K Poulose <[email protected]>
coresight: platform: acpi: Ignore the absence of graphSuzuki K Poulose <[email protected]>
coresight: trbe: Allocate platform data per deviceLu Jialin <[email protected]>
cgroup:namespace: Remove unusedcgroup_namespaces_init()Chao Yu <[email protected]>
f2fs: fix to account cp stats correctlyChao Yu <[email protected]>
f2fs: fix to account gc stats correctlyChao Yu <[email protected]>
Revert "f2fs: fix to do sanity check on extent cache correctly"Chunhai Guo <[email protected]>
f2fs: Only lfs mode is allowed with zoned block device featureShin'ichiro Kawasaki <[email protected]>
f2fs: check zone type before sending async reset zone commandChristoph Hellwig <[email protected]>
f2fs: don't reopen the main block device inf2fs_scan_devicesChao Yu <[email protected]>
f2fs: fix to avoid mmap vsset_compress_optioncaseRandy Dunlap <[email protected]>
f2fs: fix spelling in ABI documentationJacopo Mondi <[email protected]>
media: i2c: rdacm21: Fix uninitialized valueHans de Goede <[email protected]>
media: ov2680: Fix regulators being left enabled onov2680_power_on()errorsHans de Goede <[email protected]>
media: ov2680: Fix ov2680_set_fmt() which == V4L2_SUBDEV_FORMAT_TRY not workingHans de Goede <[email protected]>
media: ov2680: Add ov2680_fill_format() helper functionHans de Goede <[email protected]>
media: ov2680: Don't take the lock fortry_fmtcallsHans de Goede <[email protected]>
media: ov2680: RemoveVIDEO_V4L2_SUBDEV_APIifdef-sHans de Goede <[email protected]>
media: ov2680: Fix vflip / hflip set functionsHans de Goede <[email protected]>
media: ov2680: Fix ov2680_bayer_order()Hans de Goede <[email protected]>
media: ov2680: Remove auto-gain and auto-exposure controlsTomi Valkeinen <[email protected]>
media: Documentation: Fix [GS]_ROUTING documentationMarek Vasut <[email protected]>
media: ov5640: Fix initial RESETB state and annotate timingsMarek Vasut <[email protected]>
media: ov5640: Enable MIPI interface inov5640_set_power_mipi()Rahul Rameshbabu <[email protected]>
HID: nvidia-shield: Removeled_classdev_unregisterinthunderstrike_createIllia Ostapyshyn <[email protected]>
HID: input: Support devices sending Eraser without InvertDavid Gow <[email protected]>
drivers: base: Free devm resources when unregistering a deviceAlan Stern <[email protected]>
USB: gadget:f_mass_storage: Fix unused variable warningAlan Stern <[email protected]>
USB: gadget: core: Add missing kerneldoc forvbus_workRandy Dunlap <[email protected]>
docs: ABI: fix spelling/grammar in SBEFIFO timeout interfaceHans de Goede <[email protected]>
media: ipu-bridge: Do not use on stack memory for software_node.name fieldBingbu Cao <[email protected]>
media: ipu3-cio2: rename cio2 bridge to ipu bridge and move out of ipu3Hans de Goede <[email protected]>
media: ipu-bridge: Fix null pointer deref on SSDB/PLD parsing warningsLaurent Pinchart <[email protected]>
arm64: defconfig: DropCONFIG_VIDEO_IMX_MEDIAKonrad Dybcio <[email protected]>
media: venus:hfi_venus: Only considersys_idle_indicatoron V1Colin Ian King <[email protected]>
media: go7007: Remove redundant if statementHans Verkuil <[email protected]>
media: cec: core: addadap_unconfigured()callbackHans Verkuil <[email protected]>
media: cec: core: addadap_nb_transmit_canceled()callbackArmin Wolf <[email protected]>
platform/x86: dell-sysman: Fix reference leakYanfei Xu <[email protected]>
iommu/vt-d: Fix to flush cache of PASID directory tableVijaya Krishna Nivarthi <[email protected]>
tty: serial: qcom-geni-serial: Poll primary sequencer irq status aftercancel_txAngeloGioacchino Del Regno <[email protected]>
iommu/qcom: Disable and reset context bank before programmingEddie James <[email protected]>
fsi: aspeed: Reset master errors after CFAM resetXiang Yang <[email protected]>
IB/uverbs: Fix an potential error pointer dereferenceChengchang Tang <[email protected]>
RDMA/hns: Fix CQ and QP cache affinityJunxian Huang <[email protected]>
RDMA/hns: Fix inaccurate error label name in init instanceJunxian Huang <[email protected]>
RDMA/hns: Fix incorrect post-send with direct wqe of wr-listChengchang Tang <[email protected]>
RDMA/hns: Fix port active speedKalesh AP <[email protected]>
RDMA/bnxt_re: Remove a redundant flagKalesh AP <[email protected]>
RDMA/bnxt_re: Fixmax_qpcount for virtual functionsChandramohan Akula <[email protected]>
RDMA/bnxt_re: Initialize Doorbell pacing featureChandramohan Akula <[email protected]>
bnxt_en: Share the bar0 address with the RoCE driverChandramohan Akula <[email protected]>
bnxt_en: Update HW interface headersZhu Wang <[email protected]>
iommu: Remove kernel-doc warningsJason Gunthorpe <[email protected]>
iommu/sprd: Add missingforce_apertureChengci.Xu <[email protected]>
iommu/mediatek: Fix two IOMMU share pagetable issueArnd Bergmann <[email protected]>
extcon:cht_wc: addPOWER_SUPPLYdependencyArnd Bergmann <[email protected]>
kernfs: add stub helper forkernfs_generic_poll()Jason Gunthorpe <[email protected]>
driver core: Calldma_cleanup()on thetest_removepathDan Carpenter <[email protected]>
driver core:test_async: fix an error codeRob Clark <[email protected]>
dma-buf/sync_file: Fix docs syntaxKonrad Dybcio <[email protected]>
interconnect: qcom: qcm2290: Enable sync stateRuidong Tian <[email protected]>
coresight: tmc: Explicit type conversions to prevent integer overflowGustavo A. R. Silva <[email protected]>
RDMA/irdma: Replace one-element array with flexible-array memberOleksandr Natalenko <[email protected]>
scsi: qedf: Do not touch__userpointer inqedf_dbg_fp_int_cmd_read()directlyOleksandr Natalenko <[email protected]>
scsi: qedf: Do not touch__userpointer inqedf_dbg_debug_cmd_read()directlyOleksandr Natalenko <[email protected]>
scsi: qedf: Do not touch__userpointer inqedf_dbg_stop_io_on_error_cmd_read()directlyBob Pearson <[email protected]>
RDMA/rxe: Fix incomplete state save inrxe_requesterBob Pearson <[email protected]>
RDMA/rxe: Fixrxe_modify_srqBob Pearson <[email protected]>
RDMA/rxe: Fix unsafe drain work queue codeBob Pearson <[email protected]>
RDMA/rxe: Move work queue code to subroutinesRandy Dunlap <[email protected]>
x86/APM: drop the duplicateAPM_MINOR_DEVmacroChunyan Zhang <[email protected]>
serial: sprd: Fix DMA buffer leak issueChunyan Zhang <[email protected]>
serial: sprd: Assignsprd_portafter initialized to avoid wrong accessBiju Das <[email protected]>
iio: accel: adxl313: Fix adxl313_i2c_id[] tableLin Ma <[email protected]>
scsi: qla4xxx: Add length check when parsing nlattrsLin Ma <[email protected]>
scsi: be2iscsi: Add length check when parsing nlattrsLin Ma <[email protected]>
scsi: iscsi: Addstrlen()check in iscsi_if_set{_host}_param()Lin Ma <[email protected]>
scsi: iscsi: Add length check for nlattr payloadBart Van Assche <[email protected]>
scsi: ufs: Fix residual handlingBart Van Assche <[email protected]>
scsi: RDMA/srp: Fix residual handlingXu Yang <[email protected]>
usb: phy: mxs: fix getting wrong state withmxs_phy_is_otg_host()Dan Carpenter <[email protected]>
media: mediatek: vcodec: fix resource leaks invdec_msg_queue_init()Dan Carpenter <[email protected]>
media: mediatek: vcodec: fix potential double freeIrui Wang <[email protected]>
media: mediatek: vcodec: Return NULL if novdec_fbis foundXiaoyong Lu <[email protected]>
media: mediatek: vcodec: fix AV1 decode fail for 36bit iovaMing Qian <[email protected]>
media: amphion: ensure the bitops don't cross boundariesMing Qian <[email protected]>
media: amphion: fixUNUSED_VALUEissue reported by coverityMing Qian <[email protected]>
media: amphion: fix UNINIT issues reported by coverityMing Qian <[email protected]>
media: amphion: fixREVERSE_INULLissues reported by coverityMing Qian <[email protected]>
media: amphion: fixCHECKED_RETURNissues reported by coverityBenjamin Gaignard <[email protected]>
media: rkvdec: increase max supported height for H.264Ming Qian <[email protected]>
media: amphion: decoder support display delay for all formatsZheng Wang <[email protected]>
media: mtk-jpeg: Fix use after free bug due to uncanceled workMichael Tretter <[email protected]>
media: verisilicon: FixTRY_FMTon encoder OUTPUTMing Qian <[email protected]>
media: amphion: add helper function to get id nameMing Qian <[email protected]>
media: amphion: reinit vpu if reqbufs output 0Krzysztof Kozlowski <[email protected]>
dt-bindings: extcon: maxim,max77843: restrict connector propertiesXingui Yang <[email protected]>
scsi:hisi_sas: Fix normally completed I/O analysed as failedChuck Lever <[email protected]>
RDMA/siw: Fabricate a GID on tun and loopback devicesDaniil Dulov <[email protected]>
media: cx24120: Add retval check for cx24120_message_send()Christophe JAILLET <[email protected]>
media: dvb-usb: m920x: Fix a potential memory leak in m920x_i2c_xfer()Daniil Dulov <[email protected]>
media: dib7000p: Fix potential division by zeroDongliang Mu <[email protected]>
drivers: usb: smsusb: fix error handling code insmsusb_init_deviceJonas Karlman <[email protected]>
iommu: rockchip: Fix directory table address encodingDaniel Marcovitch <[email protected]>
iommu/amd/iommu_v2: Fixpasid_staterefcount dec hit 0 warning on pasid unbindChristophe JAILLET <[email protected]>
media: v4l2-core: Fix a potential resource leak inv4l2_fwnode_parse_link()Claudiu Beznea <[email protected]>
media: i2c: tvp5150: check return value ofdevm_kasprintf()Hans de Goede <[email protected]>
media: ad5820: Drop unsupported ad5823 fromi2c_andof_device_idtablesTommaso Merciai <[email protected]>
media: i2c: imx290: drop format param fromimx290_ctrl_updateGuoniu.zhou <[email protected]>
media: ov5640: fix low resolution image abnormal issueMinjie Du <[email protected]>
RDMA/qedr: Remove a duplicate assignment inirdma_query_ah()Waiman Long <[email protected]>
cgroup/cpuset: Inherit parent's load balance state in v2Anna Schumaker <[email protected]>
pNFS: Fix assignment of xprtdata.credOlga Kornievskaia <[email protected]>
NFSv4.2: fix handling of COPYERR_OFFLOAD_NO_REQBenjamin Coddington <[email protected]>
NFS: Guard against READDIR loop when entry names exceed MAXNAMELENNathan Chancellor <[email protected]>
clk: qcom: FixSM_GPUCC_8450dependenciesChuck Lever <[email protected]>
NFSD:da_addr_bodyfield missing in some GETDEVICEINFO repliesSu Hui <[email protected]>
fs: lockd: avoid possible wrong NULL parameterChuck Lever <[email protected]>
SUNRPC: Fix the recentbv_offsetfixAlexei Filippov <[email protected]>
jfs: validate max amount of blocks before allocation.Zhihao Cheng <[email protected]>
ext4: fix unttached inode after power cut with orphan file feature enabledRussell Currey <[email protected]>
powerpc/iommu: Fix notifiers being shared by PCI and VIO busesLiang He <[email protected]>
powerpc/mpc5xxx: Add missingfwnode_handle_put()Nicholas Piggin <[email protected]>
powerpc/pseries: Fix hcall tracepoints with JUMP_LABEL=nDan Carpenter <[email protected]>
nfs/blocklayout: Use the passed in gfp flagsRussell Currey <[email protected]>
powerpc/pseries: Reworklppaca_shared_proc()to avoidDEBUG_PREEMPTMichael Ellerman <[email protected]>
powerpc: Don't includelppaca.hinpaca.hXiaowei Bao <[email protected]>
PCI: layerscape: Add workaround for lost link capabilities during resetAnna Schumaker <[email protected]>
NFSv4.2: Rework scratch handling forREAD_PLUS(again)Anna Schumaker <[email protected]>
NFSv4.2: FixREAD_PLUSsize calculationsAnna Schumaker <[email protected]>
NFSv4.2: FixREAD_PLUSsmatch warningsIlpo Järvinen <[email protected]>
wifi: ath10k: Use RMW accessors for changing LNKCTLIlpo Järvinen <[email protected]>
wifi: ath12k: Use RMW accessors for changing LNKCTLIlpo Järvinen <[email protected]>
wifi: ath11k: Use RMW accessors for changing LNKCTLIlpo Järvinen <[email protected]>
net/mlx5: Use RMW accessors for changing LNKCTLIlpo Järvinen <[email protected]>
drm/radeon: Use RMW accessors for changing LNKCTLIlpo Järvinen <[email protected]>
drm/amdgpu: Use RMW accessors for changing LNKCTLDaniel Golle <[email protected]>
pinctrl: mediatek: assign functions to configure pin bias on MT7986Daniel Golle <[email protected]>
pinctrl: mediatek: fixpull_typedata for MT7981Christophe Leroy <[email protected]>
powerpc/perf: Convertfsl_embnotifier to state machine callbacksSourabh Jain <[email protected]>
powerpc/fadump: reset dump area size if fadump memory reserve failsKonstantin Meskhidze <[email protected]>
nvdimm: Fix dereference after free inregister_nvdimm_pmu()Konstantin Meskhidze <[email protected]>
nvdimm: Fix memleak of pmuattr_groupsinunregister_nvdimm_pmu()Stefan Hajnoczi <[email protected]>
vfio/type1: fixcap_migrationinformation leakChristophe Leroy <[email protected]>
powerpc/radix: Move some functions into #ifdefCONFIG_KVM_BOOK3S_HV_POSSIBLEAhmad Fatoum <[email protected]>
clk: imx: composite-8m: fix clock pauses whenset_ratewould be a no-opMarco Felsch <[email protected]>
clk: imx8mp: fix sai4 clockPeng Fan <[email protected]>
clk: imx: imx8ulp: update SPLL2 typeYe Li <[email protected]>
clk: imx: pllv4: Fix SPLL2 MULT rangeImran Shaik <[email protected]>
clk: qcom: gcc-qdu1000: Fix clkref clocks handlingImran Shaik <[email protected]>
clk: qcom: gcc-qdu1000: Fixgcc_pcie_0_pipe_clk_srcclock handlingKonrad Dybcio <[email protected]>
clk: qcom: gcc-sm8450: Use floor ops for SDCC RCGsIlpo Järvinen <[email protected]>
PCI/ASPM: Use RMW accessors for changing LNKCTLIlpo Järvinen <[email protected]>
PCI: pciehp: Use RMW accessors for changing LNKCTLIlpo Järvinen <[email protected]>
PCI: Make link retraining use RMW accessors for changing LNKCTLIlpo Järvinen <[email protected]>
PCI: Add locking to RMW PCI Express Capability Register accessorsClaudiu Beznea <[email protected]>
pinctrl: mcp23s08: check return value ofdevm_kasprintf()Wu Zongyong <[email protected]>
PCI: Mark NVIDIA T4 GPUs to avoid bus resetDaire McNamara <[email protected]>
PCI: microchip: Correct the DED and SEC interrupt bit offsetsLuca Weiss <[email protected]>
clk: qcom: gcc-sm6350: Fix gcc_sdcc2_apps_clk_srcKonrad Dybcio <[email protected]>
clk: qcom: reset: Use the correct type of sleep/delay based on lengthDmitry Torokhov <[email protected]>
kvm/vfio: ensure kvg instance stays around inkvm_vfio_group_add()Yi Liu <[email protected]>
kvm/vfio: Prepare for accepting vfio device fdArnd Bergmann <[email protected]>
clk: qcom: fix someKconfigcorner casesPatrick Whewell <[email protected]>
clk: qcom: gcc-sm8250: Fix gcc_sdcc2_apps_clk_srcKemeng Shi <[email protected]>
ext4: avoid potential data overflow innext_linear_groupKemeng Shi <[email protected]>
ext4: correct grp validation inext4_mb_good_groupQiuxu Zhuo <[email protected]>
EDAC/igen6: Fix the issue of no error eventsDavid Wronek <[email protected]>
clk: qcom: gcc-sc7180: Fix upgcc_sdcc2_apps_clk_srcZhang Jianhua <[email protected]>
clk: sunxi-ng: Modify mismatched function nameKonrad Dybcio <[email protected]>
clk: qcom: dispcc-sc8280xp: Use ret registers on GDSCsIra Weiny <[email protected]>
PCI/DOE: Fixdestroy_work_on_stack()raceJason Gunthorpe <[email protected]>
iommufd: Fix locking around hwpt allocationQiuxu Zhuo <[email protected]>
EDAC/i10nm: Skip the absent memory controllersMinjie Du <[email protected]>
drivers: clk: keystone: Fix parameter judgment in_of_pll_clk_init()Johan Hovold <[email protected]>
clk: qcom: gcc-sc8280xp: fix runtime PM imbalance on probe errorsManivannan Sadhasivam <[email protected]>
PCI: qcom-ep: Switch MHI bus master clock off during L1SSSven Peter <[email protected]>
PCI: apple: Initialize pcie->nvecs before useAlibek Omarov <[email protected]>
clk: rockchip: rk3568: Fix PLL rate setting for 78.75MHzDanila Tikhonov <[email protected]>
clk: qcom: gcc-sm7150: AddCLK_OPS_PARENT_ENABLEto sdcc2 rcgKonrad Dybcio <[email protected]>
clk: qcom: gcc-sc8280xp: Add missing GDSCsKonrad Dybcio <[email protected]>
dt-bindings: clock: qcom,gcc-sc8280xp: Add missing GDSCsKonrad Dybcio <[email protected]>
clk: qcom: gcc-sc8280xp: Add missing GDSC flagsKonrad Dybcio <[email protected]>
clk: qcom: gpucc-sm6350: Fix clock source namesKonrad Dybcio <[email protected]>
clk: qcom: gpucc-sm6350: Introduce index-based clk lookupCorey Minyard <[email protected]>
ipmi:ssif: Fix a memory leak when scanning for an adapterJiasheng Jiang <[email protected]>
ipmi:ssif: Add check for kstrdupTakashi Iwai <[email protected]>
ALSA: ump: Fix -Wformat-truncation warningsTakashi Iwai <[email protected]>
ALSA: ump: Don't create unused substreams for static blocksTakashi Iwai <[email protected]>
ALSA: ump: Fill group names for legacy rawmidi substreamsTakashi Iwai <[email protected]>
ALSA: usb-audio: Attach legacy rawmidi after probing all UMP EPsSu Hui <[email protected]>
ALSA: ac97: Fix possible error value of *rac97Geert Uytterhoeven <[email protected]>
of: unittest: Fix overlay type in apply/revert checkGeert Uytterhoeven <[email protected]>
of: overlay: Callof_changeset_init()earlyVijendar Mukunda <[email protected]>
ASoC: SOF: amd: clear dsp to host interrupt statusKuninori Morimoto <[email protected]>
ASoC: fsl: merge DAI call back functions into opsKuninori Morimoto <[email protected]>
ASoC:soc-dai.h: merge DAI call back functions into opsKuninori Morimoto <[email protected]>
ASoC: pxa: merge DAI call back functions into opsDavid Jeffery <[email protected]>
md: raid0: account for split bio in iostat accountingJan Kara <[email protected]>
md/raid0: Fix performance regression for large sequential writesJan Kara <[email protected]>
md/raid0: Factor out helper for mapping and submitting a bioXueshi Hu <[email protected]>
md/raid1: hold the barrier untilhandle_read_error()finishesXueshi Hu <[email protected]>
md/raid1: free the r1bio before waiting for blocked rdevTejun Heo <[email protected]>
blk-cgroup: Fix NULL deref caused byblkg_policy_databeing installed before initVlad Karpovich <[email protected]>
firmware:cs_dsp: Fix new control name checkYu Kuai <[email protected]>
md/raid5-cache: fix null-ptr-deref forr5l_flush_stripe_to_raid()Yu Kuai <[email protected]>
md/raid5-cache: fix a deadlock inr5l_exit_log()Damien Le Moal <[email protected]>
block: uapi: Fix compilation errors usingioprio.hwith C++Tony Lindgren <[email protected]>
bus: ti-sysc: Fix cast to enum warningRob Clark <[email protected]>
drm/msm/a690: Switch to a660_gmu.binKonrad Dybcio <[email protected]>
arm64: dts: qcom: sc8280xp-x13s: Unreserve NC pinsDavid Wronek <[email protected]>
arm64: dts: qcom: msm8996: Fix dsi1 interruptsRohit Agarwal <[email protected]>
ARM: dts: qcom: sdx65-mtp: Update the pmic used in sdx65Konrad Dybcio <[email protected]>
arm64: dts: qcom: msm8998: Add missing power domain to MMSS SMMUKonrad Dybcio <[email protected]>
arm64: dts: qcom: msm8998: Drop bus clock reference from MMSS SMMUBryan O'Donoghue <[email protected]>
arm64: dts: qcom: apq8016-sbc: Rename ov5640 enable-gpios to powerdown-gpiosBryan O'Donoghue <[email protected]>
arm64: dts: qcom: apq8016-sbc: Fix ov5640 regulator supply namesJason-JH.Lin <[email protected]>
drm/mediatek: Fix void-pointer-to-enum-cast warningSui Jingfeng <[email protected]>
drm/mediatek: Fix potential memory leak ifvmap()failAradhya Bhatia <[email protected]>
arm64: dts: ti: k3-am62x-sk-common: Update main-i2c1 frequencyRobert Marko <[email protected]>
ARM: dts: qcom: ipq4019: correct SDHCI XO clockMarco Felsch <[email protected]>
arm64: dts: imx8mp-debix: remove unused fec pinctrl nodeJason-JH.Lin <[email protected]>
drm/mediatek: Add cnt checking for coverity issueJason-JH.Lin <[email protected]>
drm/mediatek: Remove freeing not dynamic allocated memoryTony Lindgren <[email protected]>
bus: ti-sysc: Fix build warning for 64-bit buildApelete Seketeli <[email protected]>
arm64: dts: ti: k3-j784s4: Fix interrupt ranges for wkup & main gpioUdit Kumar <[email protected]>
arm64: dts: ti: k3-j784s4-evm: Correct Pin mux offset for ADCAngeloGioacchino Del Regno <[email protected]>
drm/mediatek: dp: Add missing error checks inmtk_dp_parse_capabilitiesJinyoung Choi <[email protected]>
bio-integrity: create multi-page bvecs inbio_integrity_add_page()Jinyoung Choi <[email protected]>
block: makebvec_try_merge_hw_page()non-staticChristoph Hellwig <[email protected]>
block: don't pass a bio tobio_try_merge_hw_segChristoph Hellwig <[email protected]>
block: move thebi_sizeupdate out of__bio_try_merge_pageChristoph Hellwig <[email protected]>
block: move thebi_sizeoverflow check in__bio_try_merge_pageChristoph Hellwig <[email protected]>
block: move thebi_vcntcheck out of__bio_try_merge_pageChristoph Hellwig <[email protected]>
block: move theBIO_CLONEDchecks out of__bio_try_merge_pagePavel Begunkov <[email protected]>
io_uring: fix drain stalls by invalid SQEZhiguo Niu <[email protected]>
block/mq-deadline: use correct way to throttling write requestsGaosheng Cui <[email protected]>
audit: fix possible soft lockup in__audit_inode_child()Nancy.Lin <[email protected]>
drm/mediatek: Fix uninitialized symbolPierre-Louis Bossart <[email protected]>
ASoC: SOF: Intel: fix u16/32 confusion in LSDIIDPierre-Louis Bossart <[email protected]>
ASoC: SOF: Intel: hda-mlink: fix off-by-one errorRob Clark <[email protected]>
drm/msm/a6xx: Fix GMU lockdep splatFabio Estevam <[email protected]>
drm/msm/a2xx: Calladreno_gpu_init()earlierYang Wang <[email protected]>
drm/amd/pm: fix variable dereferenced issue inamdgpu_device_attr_create()Srinivasan Shanmugam <[email protected]>
drm/amdgpu: Move vram, gtt & flash defines toamdgpu_ttm &_psp.hSrinivasan Shanmugam <[email protected]>
drm/amdgpu: Sort the includes inamdgpu/amdgpu_drv.cDan Carpenter <[email protected]>
smackfs: Prevent underflow insmk_set_cipso()Udit Kumar <[email protected]>
arm64: dts: ti: k3-j721s2: correct pinmux offset for ospiUdit Kumar <[email protected]>
arm64: dts: ti: k3-j784s4-evm: Correct Pin mux offset for ospiDmitry Baryshkov <[email protected]>
drm/msm/dpu: fix the irq index indpu_encoder_phys_wb_wait_for_commit_doneZhang Shurong <[email protected]>
firmware:meson_sm: fix to avoid potential NULL pointer dereferenceDaniel Vetter <[email protected]>
drm/msm/mdp5: Don't leak some plane stateChen Jiahao <[email protected]>
soc: qcom: smem: Fix incompatible types in comparisonAbel Vesa <[email protected]>
arm64: dts: qcom: sm8550-mtp: Add missing supply for L1B regulatorDmitry Baryshkov <[email protected]>
drm/msm/dpu: fix DSC 1.2 enc subblock lengthRyan McCann <[email protected]>
drm/msm/dpu: Define names for unnamed sblksKonrad Dybcio <[email protected]>
drm/msm/dpu1: Rename sm8150_dspp_blk to sdm845_dspp_blkDmitry Baryshkov <[email protected]>
drm/msm/dpu: fix DSC 1.2 block lengthsDmitry Baryshkov <[email protected]>
drm/msm/dpu: inlineDSC_BLKandDSC_BLK_1_2macrosJonathan Marek <[email protected]>
drm/msm/dpu: increase memtype count to 16 for sm8550Jiasheng Jiang <[email protected]>
drm: xlnx:zynqmp_dpsub: Add missing check fordma_set_maskNayna Jain <[email protected]>
ima: Remove deprecatedIMA_TRUSTED_KEYRINGKconfigMarek Vasut <[email protected]>
drm/panel: simple: Add missing connector type and pixel format for AUO T215HVN01Geert Uytterhoeven <[email protected]>
drm/repaper: Reduce temporary buffer size inrepaper_fb_dirty()Geert Uytterhoeven <[email protected]>
drm/armada: Fix off-by-one error inarmada_overlay_get_property()Rafał Miłecki <[email protected]>
ARM: dts: BCM53573: Fix Tenda AC9 switch CPU portJocelyn Falempe <[email protected]>
drm/ast: report connection status on Display Port.Zeyan Li <[email protected]>
arm64: dts: qcom: sm8150: Fix the I2C7 interruptRuan Jinjie <[email protected]>
of: unittest: fix null pointer dereferencing inof_unittest_find_node_by_name()Yangtao Li <[email protected]>
drm/tegra: dpaux: Fix incorrect return value ofplatform_get_irqRyan McCann <[email protected]>
drm/msm: Update dev core dump to not print backwardsYu Kuai <[email protected]>
md/md-bitmap: hold 'reconfig_mutex' inbacklog_store()Yu Kuai <[email protected]>
md/md-bitmap: remove unnecessary local variable inbacklog_store()Li Nan <[email protected]>
md/raid10: usedereference_rdev_and_rrdev()to get devicesLi Nan <[email protected]>
md/raid10: factor outdereference_rdev_and_rrdev()Yu Kuai <[email protected]>
md: restore 'noio_flag' for the lastmddev_resume()Herve Codina <[email protected]>
ASoC: fsl:fsl_qmc_audio: Fixsnd_pcm_format_tvalues handlingYingKun Meng <[email protected]>
ASoC: loongson: dropof_match_ptrfor OF device idJonas Karlman <[email protected]>
arm64: dts: rockchip: Enable SATA on Radxa E25Jonas Karlman <[email protected]>
arm64: dts: rockchip: Fix PCIe regulators on Radxa E25Srinivasan Shanmugam <[email protected]>
drm/amdgpu: Useseq_puts()instead ofseq_printf()Srinivasan Shanmugam <[email protected]>
drm/amdgpu: Updatemin()tomin_t()in 'amdgpu_info_ioctl'Konrad Dybcio <[email protected]>
dt-bindings: arm: msm: kpss-acc: Make the optional reg truly optionalKrzysztof Kozlowski <[email protected]>
arm64: dts: qcom: sc8180x-pmics: align LPG node name with dtschemaKrzysztof Kozlowski <[email protected]>
arm64: dts: qcom: sc8180x-pmics: align SPMI PMIC Power-on node name with dtschemaKrzysztof Kozlowski <[email protected]>
arm64: dts: qcom: sc8180x-pmics: add missing gpio-rangesKrzysztof Kozlowski <[email protected]>
arm64: dts: qcom: sc8180x-pmics: add missing qcom,spmi-gpio fallbacksKrzysztof Kozlowski <[email protected]>
arm64: dts: qcom: msm8996-gemini: fix touchscreen VIO supplyBjorn Andersson <[email protected]>
arm64: dts: qcom: sc8180x: Fix LLCC reg propertyManivannan Sadhasivam <[email protected]>
arm64: dts: qcom: sdm845: Fix the min frequency of "ice_core_clk"Manivannan Sadhasivam <[email protected]>
arm64: dts: qcom: sdm845: Add missing RPMh power domain to GCCRafał Miłecki <[email protected]>
ARM: dts: BCM53573: Fix Ethernet info for Luxul devicesBogdan Togorean <[email protected]>
drm: adv7511: Fix low refresh rate register for ADV7533/5Krzysztof Kozlowski <[email protected]>
ARM: dts: samsung: s5pv210-smdkv210: correct ethernet reg addresses (split)Krzysztof Kozlowski <[email protected]>
ARM: dts: samsung: s3c6410-mini6410: correct ethernet reg addresses (split)Chen-Yu Tsai <[email protected]>
drm/bridge: anx7625: Use common macros for HDCP capabilitiesChen-Yu Tsai <[email protected]>
drm/bridge: anx7625: Use common macros for DP power sequencing commandsJanusz Krzysztofik <[email protected]>
x86/mm: Fix PAT bit missing from page protection modify maskChengming Zhou <[email protected]>
blk-flush: fix rq->flush.seq for post-flush requestsChristoph Hellwig <[email protected]>
block: don't allow enabling a cache on devices that don't support itChristoph Hellwig <[email protected]>
block: cleanupqueue_wc_storeLucas Stach <[email protected]>
drm/etnaviv: fix dumping of active MMU contextDiogo Ivo <[email protected]>
arm64: tegra: Fix HSUART for SmaugKonrad Dybcio <[email protected]>
arm64: dts: qcom: sc8180x: Add missing 'cache-unified' to L3Konrad Dybcio <[email protected]>
arm64: dts: qcom: pmi8994: Add missing OVP interruptKonrad Dybcio <[email protected]>
arm64: dts: qcom: pmi8950: Add missing OVP interruptKonrad Dybcio <[email protected]>
arm64: dts: qcom: pm660l: Add missing short interruptKonrad Dybcio <[email protected]>
arm64: dts: qcom: pm6150l: Add missing short interruptKrzysztof Kozlowski <[email protected]>
arm64: dts: qcom: sm8250-sony-xperia: correct GPIO keys wakeup againJon Hunter <[email protected]>
arm64: tegra: Fix HSUART for Jetson AGX OrinJon Hunter <[email protected]>
arm64: tegra: Add missing alias for NVIDIA IGX OrinRafał Miłecki <[email protected]>
ARM: dts: BCM53573: Use updated "spi-gpio" binding propertiesRafał Miłecki <[email protected]>
ARM: dts: BCM53573: Add cells sizes to PCIe nodeRafał Miłecki <[email protected]>
ARM: dts: BCM53573: Drop nonexistent #usb-cellsRafał Miłecki <[email protected]>
ARM: dts: BCM53573: Drop nonexistent "default-off" LED triggerArnd Bergmann <[email protected]>
drm/amdgpu: avoid integer overflow warning inamdgpu_device_resize_fb_bar()Nishanth Menon <[email protected]>
firmware:ti_sci: Usesystem_stateto determine pollingMarek Vasut <[email protected]>
ARM: dts: stm32: Add missing detach mailbox for DHCOR SoMMarek Vasut <[email protected]>
ARM: dts: stm32: Add missing detach mailbox for DHCOM SoMMarek Vasut <[email protected]>
ARM: dts: stm32: Add missing detach mailbox for Odyssey SoMMarek Vasut <[email protected]>
ARM: dts: stm32: Add missing detach mailbox for emtrion emSBC-ArgonKonrad Dybcio <[email protected]>
arm64: dts: qcom: sm8250: Mark SMMUs as DMA coherentKrzysztof Kozlowski <[email protected]>
arm64: dts: qcom: minor whitespace cleanup around '='Konrad Dybcio <[email protected]>
arm64: dts: qcom: sm8250: Mark PCIe hosts as DMA coherentDmitry Baryshkov <[email protected]>
arm64: dts: qcom: sm8450-hdk: remove pmr735b PMIC inclusionDmitry Baryshkov <[email protected]>
arm64: dts: qcom: pmk8350: fix ADC-TM compatible stringDmitry Baryshkov <[email protected]>
arm64: dts: qcom: pmr735b: fix thermal zone nameDmitry Baryshkov <[email protected]>
arm64: dts: qcom: pm8350b: fix thermal zone nameDmitry Baryshkov <[email protected]>
arm64: dts: qcom: pm8350: fix thermal zone nameKonrad Dybcio <[email protected]>
arm64: dts: qcom: sm8350: Use proper CPU compatiblesKonrad Dybcio <[email protected]>
arm64: dts: qcom: sc8180x: Fix cluster PSCI suspend paramKonrad Dybcio <[email protected]>
arm64: dts: qcom: sm8350: Add missing LMH interrupts to cpufreqKonrad Dybcio <[email protected]>
arm64: dts: qcom: sm8350: Fix CPU idle state residency timesKonrad Dybcio <[email protected]>
arm64: dts: qcom: sdm845-tama: Set serial indices and stdout-pathKonrad Dybcio <[email protected]>
arm64: dts: qcom: msm8996: Add missing interrupt to the USB2 controllerKonrad Dybcio <[email protected]>
arm64: dts: qcom: msm8939: Add missing 'cache-unified' to L2Konrad Dybcio <[email protected]>
arm64: dts: qcom: msm8939: Drop "qcom,idle-state-spc" compatibleKonrad Dybcio <[email protected]>
arm64: dts: qcom: sc8280xp: Add missing SCM interconnectBjorn Andersson <[email protected]>
arm64: dts: qcom: sc8280xp-crd: Correct vreg_misc_3p3 GPIOKonrad Dybcio <[email protected]>
arm64: dts: qcom: sm8250-edo: Rectify gpio-keysKonrad Dybcio <[email protected]>
arm64: dts: qcom: sm8250-edo: Add GPIO line names for PMIC GPIOsKonrad Dybcio <[email protected]>
arm64: dts: qcom: sm8250-edo: Add gpio line names for TLMMKrzysztof Kozlowski <[email protected]>
arm64: dts: qcom: msm8916-l8150: correct light sensor VDDIO supplyKrzysztof Kozlowski <[email protected]>
arm64: dts: qcom: sm8450: correct crypto unit addressVincent Guittot <[email protected]>
arm64: dts: qcom: sm8250: correct dynamic power coefficientsDmitry Baryshkov <[email protected]>
Revert "arm64: dts: qcom: msm8996: rename labels for HDMI nodes"Konrad Dybcio <[email protected]>
arm64: dts: qcom: sm6350: Fix ZAP regionDmitry Baryshkov <[email protected]>
arm64: dts: qcom: sm8150: use proper DSI PHY compatibleDmitry Baryshkov <[email protected]>
arm64: defconfig: enable Qualcomm MSM8996 Global Clock Controller as built-inLuca Weiss <[email protected]>
soc: qcom: ocmem: FixNUM_PORTS&NUM_MACROSmacrosRandy Dunlap <[email protected]>
ASoC: stac9766: fix build errors withREGMAP_AC97Sui Jingfeng <[email protected]>
drm/hyperv: Fix a compilation issue because of not includingscreen_info.hWesley Chalmers <[email protected]>
drm/amd/display: Do not set drr on pipe commitBaokun Li <[email protected]>
quota: fixdqput()to follow the guaranteesdquot_srcushould provideBaokun Li <[email protected]>
quota: add new helperdquot_active()Baokun Li <[email protected]>
quota: renamedquot_active()toinode_quota_active()Baokun Li <[email protected]>
quota: factor outdquot_write_dquot()Ondrej Jirman <[email protected]>
drm: bridge: dw-mipi-dsi: Fix enable/disable of DSI controllerPhil Elwell <[email protected]>
ASoC: cs43130: Fix numerator/denominator mixupyixuanjiang <[email protected]>
ASoC: soc-compress: Fix deadlock insoc_compr_open_feMarek Vasut <[email protected]>
drm/bridge: tc358764: Fix debug print parameter orderKuniyuki Iwashima <[email protected]>
netrom: Deny concurrentconnect().Shannon Nelson <[email protected]>
pds_core: pass opcode todevcmd_waitShannon Nelson <[email protected]>
pds_core: check for work queue before useShannon Nelson <[email protected]>
pds_core: no reset command for VFShannon Nelson <[email protected]>
pds_core: no health reporter in VFShannon Nelson <[email protected]>
pds_core: protect devlink callbacks fromfw_downstateBudimir Markovic <[email protected]>
net/sched:sch_hfsc: Ensure inner classes have fsc curveAlex Austin <[email protected]>
sfc: Check firmware supports Ethernet PTP filterSuman Ghosh <[email protected]>
cteonxt2-pf: Fix backpressure config for multiple PFC priorities to work simultaneouslyHariprasad Kelam <[email protected]>
octeontx2-af: CN10KB: fix PFC configurationSuman Ghosh <[email protected]>
octeontx2-pf: Fix PFC TX scheduler freeBiju Das <[email protected]>
hwmon: (tmp513) Fix the channel number intmp51x_is_visible()Adam Guerin <[email protected]>
crypto: qat - fix crypto capability detection for 4xxxVadim Pasternak <[email protected]>
mlxsw:core_hwmon: Adjust module label names based on MTCAP sensor counterVadim Pasternak <[email protected]>
mlxsw: i2c: Limit single transaction buffer sizeVadim Pasternak <[email protected]>
mlxsw: i2c: Fix chunk size setting in output mailbox bufferChristophe Leroy <[email protected]>
kunit: Fix checksum tests on big endian CPUsJinjie Ruan <[email protected]>
net: arcnet: Do not callkfree_skb()underlocal_irq_disable()Ratheesh Kannoth <[email protected]>
octeontx2-pf: fixpage_poolcreation fail for rings > 32kJacob Keller <[email protected]>
ice: avoid executing commands on other ports when driving syncWang Ming <[email protected]>
wifi: ath9k: useIS_ERR()withdebugfs_create_dir()Rahul Rameshbabu <[email protected]>
net/mlx5: Dynamic cyclecounter shift calculation for PTP free running clockQi Zheng <[email protected]>
arm64: mm: useptep_clear()instead ofpte_clear()inclear_flush()Jinjie Ruan <[email protected]>
Bluetooth: btusb: Do not callkfree_skb()underspin_lock_irqsave()Pauli Virtanen <[email protected]>
Bluetooth:hci_conn: fail SCO/ISO viahci_conn_failedif ACL gone earlyLuiz Augusto von Dentz <[email protected]>
Bluetooth:hci_sync: Fix UAF inhci_disconnect_all_syncLuiz Augusto von Dentz <[email protected]>
Bluetooth:hci_sync: Fix UAF onhci_abort_conn_syncIulia Tanasescu <[email protected]>
Bluetooth: ISO: Notify user space about failed bis connectionsLuiz Augusto von Dentz <[email protected]>
Bluetooth:hci_conn: Consolidate code for aborting connectionsDmitry Antipov <[email protected]>
wifi: mwifiex: avoid possible NULL skb pointer dereferenceKumar Kartikeya Dwivedi <[email protected]>
bpf: Fixcheck_func_arg_reg_offbug for graph root/nodeArnd Bergmann <[email protected]>
mac80211: make ieee80211_tx_info padding explicitLin Ma <[email protected]>
wifi: nl80211/cfg80211: add forgottennla_policyfor BSS color attributeJohannes Berg <[email protected]>
wifi: mac80211: fix puncturing bitmap handling in CSAYonghong Song <[email protected]>
bpf: Fix abpf_kptr_xchg()issue with local kptrFedor Pchelkin <[email protected]>
wifi: ath9k: protect WMI command response buffer replacement with a lockFedor Pchelkin <[email protected]>
wifi: ath9k: fix races betweenath9k_wmi_cmdandath9k_wmi_ctrl_rxDaniel T. Lee <[email protected]>
samples/bpf: fix broken map lookup probeDaniel T. Lee <[email protected]>
samples/bpf: fix bio latency check with tracepointAleksa Sarai <[email protected]>
selftests: memfd: error out test process when child test failsPing-Ke Shih <[email protected]>
wifi: rtw89: 8852b: rfk: fine tune IQK parameters to improve performance on 2GHz bandPolaris Pi <[email protected]>
wifi: mwifiex: Fix missed return in oob checks failed pathDmitry Antipov <[email protected]>
wifi: mwifiex: fix memory leak inmwifiex_histogram_read()Eugene Shalygin <[email protected]>
hwmon: (asus-ec-sensosrs) fix mutex path for X670E HeroEric Dumazet <[email protected]>
net: annotate data-races around sk->sk_lingertimeRuan Jinjie <[email protected]>
net: lan966x: Fix return value check forvcap_get_rule()Artem Chernyshev <[email protected]>
fs: ocfs2: namei: check return value ofocfs2_add_entry()Douglas Anderson <[email protected]>
watchdog/hardlockup: avoid large stack frames inwatchdog_hardlockup_check()Douglas Anderson <[email protected]>
nmi_backtrace: allow excluding an arbitrary CPUKuan-Ying Lee <[email protected]>
scripts/gdb: fix 'lx-lsmod' show the wrong sizeAlan Stern <[email protected]>
USB: core: Fix race by not overwriting udev->descriptor in hub_port_init()Alan Stern <[email protected]>
USB: core: Changeusb_get_device_descriptor()APIAlan Stern <[email protected]>
USB: core: Unite old scheme and new scheme descriptor readsRD Babiera <[email protected]>
usb: typec: bus: verify partner exists intypec_altmode_attentionRD Babiera <[email protected]>
usb: typec: tcpm: set initial svdm version based on pd revisionYan Zhai <[email protected]>
lwt: CheckLWTUNNEL_XMIT_CONTINUEstrictlyYan Zhai <[email protected]>
lwt: Fix return values of BPF xmit opsFlorian Fainelli <[email protected]>
hwrng: iproc-rng200 - Implement suspend and resume callsGaurav Jain <[email protected]>
crypto: caam - fix unchecked return value errorPrzemek Kitszel <[email protected]>
ice:ice_aq_check_events: fix off-by-one check when filling bufferAbel Wu <[email protected]>
net-memcg: Fix scope of sockmem pressure indicatorsJijie Shao <[email protected]>
net: hns3: fix wrong rpu tln reg issueJijie Shao <[email protected]>
net: hns3: Support tlv in regs data for HNS3 PF driverJijie Shao <[email protected]>
net: hns3: move dump regs function to a separate fileLorenz Bauer <[email protected]>
net: Fix slab-out-of-bounds in inet[6]_steal_sockAlexander Danilenko <[email protected]>
spi: tegra114: Remove unnecessary NULL-pointer checksYipeng Zou <[email protected]>
selftests/bpf: Clean upfmod_retinbench_renametest scriptYipeng Zou <[email protected]>
selftests/bpf: Fix repeat option whenkfunc_callverification failsMarco Vedovati <[email protected]>
libbpf: Set close-on-exec flag on gzopenVladimir Oltean <[email protected]>
net: pcs: lynx: fixlynx_pcs_link_up_sgmii()not doing anything in fixed-link modeMenglong Dong <[email protected]>
net: tcp: fix unexcepted socket die whensnd_wndis 0Pauli Virtanen <[email protected]>
Bluetooth:hci_event: drop only unbound CIS if Set CIG Parameters failsLuiz Augusto von Dentz <[email protected]>
Bluetooth:hci_conn: Always allocate unique handlesManish Mandlik <[email protected]>
Bluetooth:hci_sync: Avoid use-after-free in dbg forhci_add_adv_monitor()Douglas Anderson <[email protected]>
Bluetooth:hci_sync: Don't double print name in add/removeadv_monitorMin Li <[email protected]>
Bluetooth: Fix potential use-after-free when clear keysLuiz Augusto von Dentz <[email protected]>
Bluetooth:hci_conn: Fixhci_le_set_cig_paramsLuiz Augusto von Dentz <[email protected]>
Bluetooth:hci_conn: Fix not allowing valid CIS IDLuiz Augusto von Dentz <[email protected]>
Bluetooth: ISO: Fix not checking for valid CIG/CIS IDsYuanjun Gong <[email protected]>
Bluetooth: nokia: fix value check innokia_bluetooth_serdev_probe()Pauli Virtanen <[email protected]>
Bluetooth: ISO: do not emit new LE Create CIS if previous is pendingIulia Tanasescu <[email protected]>
Bluetooth: ISO: Add support for connecting multiple BISesHerbert Xu <[email protected]>
crypto: api - Use work queue incrypto_destroy_instanceUwe Kleine-König <[email protected]>
crypto: stm32 - Properly handlepm_runtime_getfailingMiguel Ojeda <[email protected]>
kbuild:rust_is_available: fix confusion when a version appears in the pathMiguel Ojeda <[email protected]>
kbuild:rust_is_available: add check forbindgeninvocationRussell Currey <[email protected]>
kbuild:rust_is_available: fix version check when CC has multiple argumentsMasahiro Yamada <[email protected]>
kbuild:rust_is_available: remove -v optionKui-Feng Lee <[email protected]>
bpf: fixbpf_dynptr_slice()to stop return anERR_PTR.David Howells <[email protected]>
crypto:af_alg- Fix missing initialisation affecting gcm-aes-s390Li Zetao <[email protected]>
spi: mpc5xxx-psc: Fix unsigned expression compared with zeroYu Liao <[email protected]>
power: supply:qcom_pmi8998_charger: fix uninitialized variableAlan Maguire <[email protected]>
selftests/bpf: fix static assert compilation issue for test_cls_*.cArnd Bergmann <[email protected]>
wifi: ath12k: fix memcpy array overflow inath12k_peer_assoc_h_he()Aditya Kumar Singh <[email protected]>
wifi: ath11k: fix band selection for ppdu received in channel 177 of 5 GHzDmitry Antipov <[email protected]>
wifi: mwifiex: fix error recovery in PCIE buffer descriptor managementPolaris Pi <[email protected]>
wifi: mwifiex: Fix OOB and integer underflow when rx packetsLarry Finger <[email protected]>
wifi: rtw89: Fix loading of compressed firmwareRyder Lee <[email protected]>
wifi: mt76: mt7915: fix power-limits whilechan_switchRyder Lee <[email protected]>
wifi: mt76: mt7915: fix tlv length of mt7915_mcu_get_chan_mib_infoMarkus Schneider-Pargmann <[email protected]>
can: tcan4x5x: Remove reserved register 0x814 from writable tableMarc Kleine-Budde <[email protected]>
can:gs_usb:gs_usb_receive_bulk_callback(): count RX overflow errors also in case of OOMZhang Shurong <[email protected]>
spi: tegra20-sflash: fix to check return value ofplatform_get_irq()integra_sflash_probe()Lin Ma <[email protected]>
wifi: mt76: testmode: addnla_policyforMT76_TM_ATTR_TX_LENGTHFelix Fietkau <[email protected]>
wifi: mt76: mt7915: remove VHT160 capability on MT7915Felix Fietkau <[email protected]>
wifi: mt76: mt7915: fix capabilities in non-AP modeRany Hany <[email protected]>
wifi: mt76: mt7915: fix command timeout in AP stop periodLorenz Bauer <[email protected]>
bpf, net: SupportSO_REUSEPORTsockets withbpf_sk_assignLorenz Bauer <[email protected]>
net: remove duplicatereuseport_lookupfunctionsLorenz Bauer <[email protected]>
net: exportinet_lookup_reuseportandinet6_lookup_reuseportLorenz Bauer <[email protected]>
bpf: reject unhashed sockets inbpf_sk_assignLorenz Bauer <[email protected]>
udp: re-score reuseport groups when connected sockets are presentStanleyYP Wang <[email protected]>
wifi: mt76: mt7996: fix WA event ring sizeStanleyYP Wang <[email protected]>
wifi: mt76: mt7996: use correct phy for background radar eventPeter Chiu <[email protected]>
wifi: mt76: mt7996: fix bsswlan_idxwhen sendingbss_infocommandMing Yen Hsieh <[email protected]>
wifi: mt76: mt7921: fix non-PSC channel scan failPeter Chiu <[email protected]>
wifi: mt76: mt7915: rework tx bytes counting when WED is activePeter Chiu <[email protected]>
wifi: mt76: mt7915: rework tx packets counting when WED is activeStanleyYP Wang <[email protected]>
wifi: mt76: mt7915: fix background radar event being blockedRyder Lee <[email protected]>
wifi: mt76: mt7996: fix header translation logicZhang Shurong <[email protected]>
wifi: rtw89: debug: Fix error handling inrtw89_debug_priv_btc_manual_set()Dan Carpenter <[email protected]>
regmap: rbtree: Usealloc_flagsfor memory allocationsGuenter Roeck <[email protected]>
regmap: maple: Usealloc_flagsfor memory allocationsMartin Kaiser <[email protected]>
hwrng: pic32 - usedevm_clk_get_enabledMartin Kaiser <[email protected]>
hwrng: nomadik - keep clock enabled while hwrng is registeredEric Dumazet <[email protected]>
tcp:tcp_enter_quickack_mode()should be staticGiovanni Cabiddu <[email protected]>
crypto: qat - change value of default idle filterYafang Shao <[email protected]>
bpf: Fix an error in verifying a field in a unionYafang Shao <[email protected]>
bpf: Fix an error aroundPTR_UNTRUSTEDYafang Shao <[email protected]>
bpf: Clear theprobe_addrfor uprobeAndrii Nakryiko <[email protected]>
libbpf: Fix realloc API handling in zero-sized edge casesAlexander Lobakin <[email protected]>
bpftool: Use a localbpf_perf_event_valueto fix accessing its fieldsQuentin Monnet <[email protected]>
bpftool: Use a local copy ofBPF_LINK_TYPE_PERF_EVENTinpid_iter.bpf.cAlexander Lobakin <[email protected]>
bpftool: Define a localbpf_perf_linkto fix accessing its fieldsAlexander Lobakin <[email protected]>
bpftool: use a local copy ofperf_eventto fix accessing ::Bpf_cookieAndrii Nakryiko <[email protected]>
libbpf: only resetsec_defhandler when necessaryDaniel Borkmann <[email protected]>
selftests/bpf: Fixbpf_nffailure upon test rerunSumit Gupta <[email protected]>
cpufreq: tegra194: remove opp table in exit hookSumit Gupta <[email protected]>
cpufreq: tegra194: add online/offline hooksLiao Chang <[email protected]>
cpufreq: powernow-k8: Userelated_cpusinstead of cpus indriver.exit()Mikel Rychliski <[email protected]>
x86/efistub: Fix PCI ROM preservation in mixed modeZhangjin Wu <[email protected]>
tools/nolibc: fix up startup failures for -O0 under gcc < 11.1.0Zhangjin Wu <[email protected]>
tools/nolibc: arch-*.h: add missing space after ','Swapnil Sapkal <[email protected]>
cpufreq: amd-pstate-ut: Fix kernel panic when loading the driverSwapnil Sapkal <[email protected]>
cpufreq: amd-pstate-ut: Remove module parameter accessPeng Fan <[email protected]>
thermal/of: Fix potential uninitialized value accessMario Limonciello <[email protected]>
ACPI: x86: s2idle: Fix a logic error parsing AMD constraints tableMario Limonciello <[email protected]>
ACPI: x86: s2idle: Post-increment variables when getting constraintsBibo Mao <[email protected]>
irqchip/loongson-eiointc: Fix return value checking ofeiointc_indexHolger Dengler <[email protected]>
s390/paes: fixPKEY_TYPE_EP11_AEShandling for secure keyblobsHolger Dengler <[email protected]>
s390/pkey: fixPKEY_TYPE_EP11_AEShandling for sysfs attributesHolger Dengler <[email protected]>
s390/pkey: fixPKEY_TYPE_EP11_AEShandling inPKEY_VERIFYKEY2IOCTLHolger Dengler <[email protected]>
s390/pkey: fixPKEY_TYPE_EP11_AEShandling in PKEY_KBLOB2PROTK[23]Holger Dengler <[email protected]>
s390/pkey: fixPKEY_TYPE_EP11_AEShandling inPKEY_CLR2SECK2IOCTLHolger Dengler <[email protected]>
s390/pkey: fixPKEY_TYPE_EP11_AEShandling inPKEY_GENSECK2IOCTLHolger Dengler <[email protected]>
s390/pkey: fix/harmonize internal keyblob headersNysal Jan K.A <[email protected]>
selftests/futex: Order calls tofutex_lock_piXu Yang <[email protected]>
perf/imx_ddr: don't enable counter0 if none of 4 counters are usedCyril Hrubis <[email protected]>
sched/rt: Fixsysctl_sched_rr_timesliceintial valueMark Brown <[email protected]>
arm64/fpsimd: Only provide the length to cpufeature for xCR registersArd Biesheuvel <[email protected]>
x86/decompressor: Don't rely on upper 32 bits of GPRs being preservedRafael J. Wysocki <[email protected]>
cpuidle: teo: Update idle duration estimate when choosing shallower stateRandy Dunlap <[email protected]>
sched/psi: Select KERNFS as neededChristophe JAILLET <[email protected]>
arm64/ptrace: Clean up error handling path insve_set_common()Vincent Guittot <[email protected]>
sched/fair: removeutil_estboostingIlpo Järvinen <[email protected]>
selftests/resctrl: Close perf value read fd on errorsIlpo Järvinen <[email protected]>
selftests/resctrl: Unmount resctrl FS if child fails to run benchmarkIlpo Järvinen <[email protected]>
selftests/resctrl: Don't leak buffer infill_cache()Ilpo Järvinen <[email protected]>
selftests/resctrl: Addresctrl.hinto build depsManivannan Sadhasivam <[email protected]>
OPP: Fix passing 0 toPTR_ERRin_opp_attach_genpd()Manivannan Sadhasivam <[email protected]>
OPP: Fix potential null ptr dereference indev_pm_opp_get_required_pstate()Cristian Marussi <[email protected]>
powercap:arm_scmi: Remove recursion while parsing zonesPaul E. McKenney <[email protected]>
clocksource: Handle negative skews in "skew is too large" messagesWaiman Long <[email protected]>
refscale: Fix uninitalized use ofwait_queue_head_tUros Bizjak <[email protected]>
locking/arch: Avoid variable shadowing inlocal_try_cmpxchg()Jingbo Xu <[email protected]>
erofs: release ztailpacking pclusters properlyNaohiro Aota <[email protected]>
btrfs: zoned: skip splitting and logical rewriting on pre-alloc writeKees Cook <[email protected]>
ARM: ptrace: Restore syscall skipping for tracersKees Cook <[email protected]>
ARM: ptrace: Restore syscall restart tracingDavid Howells <[email protected]>
vfs, security: Fix automount superblock LSM init problem, preventing NFS sb sharingKees Cook <[email protected]>
selftests/harness: Actually report SKIP for signal testsChristian Brauner <[email protected]>
tmpfs: verify {g,u}id mount options correctlyMatthew Wilcox (Oracle) <[email protected]>
iomap: Remove large folio handling iniomap_invalidate_folio()Wang Ming <[email protected]>
fs: Fix error checking ford_hash_and_lookup()Wen Yang <[email protected]>
eventfd: prevent underflow for eventfd semaphoresAhelenia Ziemiańska <[email protected]>
splice:fsnotify_access(in),fsnotify_modify(out)on success in teeAhelenia Ziemiańska <[email protected]>
splice: fsnotify_access(fd)/fsnotify_modify(fd) in vmspliceAhelenia Ziemiańska <[email protected]>
splice: alwaysfsnotify_access(in),fsnotify_modify(out)on successMatthew Wilcox <[email protected]>
reiserfs: Check the return value from__getblk()Sabrina Dubroca <[email protected]>
Revert "net: macsec: preserve ingress frame ordering"Vidya Sagar <[email protected]>
Revert "PCI: tegra194: Enable support for 256 Byte payload"Jaegeuk Kim <[email protected]>
Revert "f2fs: clean up w/ sbi->log_sectors_per_block"Miklos Szeredi <[email protected]>
Revert "fuse: infuse_flushonly wait if someone wants the return code"Werner Sembach <[email protected]>
Input: i8042 - add quirk for TUXEDO Gemini 17 Gen1/Clevo PD70PNMax Chou <[email protected]>
Bluetooth: btrtl: Load FW v2 otherwise FW v1 for RTL8852CJordan Rife <[email protected]>
net: Avoid address overwrite inkernel_connectJarkko Sakkinen <[email protected]>
tpm: Enable hwrng only for Pluton on AMD CPUsDoug Smythies <[email protected]>
cpufreq:intel_pstate: set stale CPU frequency to minimumHamza Mahfooz <[email protected]>
drm/amd/display: ensure async flips are only accepted for fast updates-------------
Diffstat:
.../ABI/testing/sysfs-bus-fsi-devices-sbefifo | 6 +- .../ABI/testing/sysfs-driver-chromeos-acpi | 2 +- Documentation/ABI/testing/sysfs-fs-f2fs | 8 +- Documentation/admin-guide/devices.txt | 16 +- .../devicetree/bindings/extcon/maxim,max77843.yaml | 1 + .../devicetree/bindings/pci/qcom,pcie-ep.yaml | 12 +- .../bindings/power/qcom,kpss-acc-v2.yaml | 1 + .../bindings/regulator/qcom,rpm-regulator.yaml | 2 +- .../bindings/usb/samsung,exynos-dwc3.yaml | 4 +- Documentation/scsi/scsi_mid_low_api.rst | 4 +- .../media/v4l/vidioc-subdev-g-routing.rst | 7 +- Makefile | 8 +- .../boot/dts/broadcom/bcm47189-luxul-xap-1440.dts | 14 +- .../boot/dts/broadcom/bcm47189-luxul-xap-810.dts | 15 +- arch/arm/boot/dts/broadcom/bcm47189-tenda-ac9.dts | 4 +- arch/arm/boot/dts/broadcom/bcm53573.dtsi | 5 +- arch/arm/boot/dts/broadcom/bcm947189acdbmr.dts | 6 +- arch/arm/boot/dts/qcom/qcom-ipq4019.dtsi | 9 +- arch/arm/boot/dts/qcom/qcom-sdx65-mtp.dts | 2 +- arch/arm/boot/dts/samsung/s3c6410-mini6410.dts | 2 +- arch/arm/boot/dts/samsung/s5pv210-smdkv210.dts | 2 +- .../arm/boot/dts/st/stm32mp157c-emstamp-argon.dtsi | 4 +- arch/arm/boot/dts/st/stm32mp157c-odyssey-som.dtsi | 4 +- arch/arm/boot/dts/st/stm32mp15xx-dhcom-som.dtsi | 4 +- arch/arm/boot/dts/st/stm32mp15xx-dhcor-som.dtsi | 4 +- arch/arm/include/asm/irq.h | 2 +- arch/arm/include/asm/syscall.h | 3 + arch/arm/kernel/entry-common.S | 1 + arch/arm/kernel/ptrace.c | 5 +- arch/arm/kernel/smp.c | 4 +- arch/arm/mach-omap2/powerdomain.c | 2 +- .../boot/dts/freescale/imx8mp-debix-model-a.dts | 22 - arch/arm64/boot/dts/nvidia/tegra210-smaug.dts | 1 + .../dts/nvidia/tegra234-p3737-0000+p3701-0000.dts | 1 + .../dts/nvidia/tegra234-p3740-0002+p3701-0008.dts | 1 + arch/arm64/boot/dts/qcom/apq8016-sbc.dts | 8 +- arch/arm64/boot/dts/qcom/apq8096-db820c.dts | 50 +- arch/arm64/boot/dts/qcom/apq8096-ifc6640.dts | 6 +- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 8 +- .../boot/dts/qcom/msm8916-longcheer-l8150.dts | 2 +- .../boot/dts/qcom/msm8916-samsung-serranove.dts | 6 +- arch/arm64/boot/dts/qcom/msm8939.dtsi | 16 +- arch/arm64/boot/dts/qcom/msm8953-xiaomi-daisy.dts | 2 +- arch/arm64/boot/dts/qcom/msm8953-xiaomi-vince.dts | 2 +- arch/arm64/boot/dts/qcom/msm8996-mtp.dts | 4 +- arch/arm64/boot/dts/qcom/msm8996-xiaomi-gemini.dts | 2 +- arch/arm64/boot/dts/qcom/msm8996.dtsi | 27 +- .../boot/dts/qcom/msm8996pro-xiaomi-natrium.dts | 2 +- arch/arm64/boot/dts/qcom/msm8998.dtsi | 26 +- arch/arm64/boot/dts/qcom/pm6150l.dtsi | 5 +- arch/arm64/boot/dts/qcom/pm660l.dtsi | 5 +- arch/arm64/boot/dts/qcom/pm8350.dtsi | 2 +- arch/arm64/boot/dts/qcom/pm8350b.dtsi | 2 +- arch/arm64/boot/dts/qcom/pmi8950.dtsi | 5 +- arch/arm64/boot/dts/qcom/pmi8994.dtsi | 5 +- arch/arm64/boot/dts/qcom/pmk8350.dtsi | 2 +- arch/arm64/boot/dts/qcom/pmr735b.dtsi | 2 +- arch/arm64/boot/dts/qcom/qcm2290.dtsi | 2 +- arch/arm64/boot/dts/qcom/qcs404.dtsi | 8 +- arch/arm64/boot/dts/qcom/sa8540p.dtsi | 2 +- .../qcom/sc7280-herobrine-audio-rt5682-3mic.dtsi | 2 +- arch/arm64/boot/dts/qcom/sc7280.dtsi | 2 +- arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi | 12 +- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 12 +- arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 4 +- .../dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 2 +- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 1 + arch/arm64/boot/dts/qcom/sdm630.dtsi | 10 +- .../boot/dts/qcom/sdm845-oneplus-enchilada.dts | 2 +- .../boot/dts/qcom/sdm845-sony-xperia-tama.dtsi | 9 + arch/arm64/boot/dts/qcom/sdm845.dtsi | 3 +- arch/arm64/boot/dts/qcom/sdx75.dtsi | 4 +- arch/arm64/boot/dts/qcom/sm6115.dtsi | 2 +- arch/arm64/boot/dts/qcom/sm6350.dtsi | 10 +- arch/arm64/boot/dts/qcom/sm8150.dtsi | 6 +- .../dts/qcom/sm8250-sony-xperia-edo-pdx203.dts | 233 +++++++ .../dts/qcom/sm8250-sony-xperia-edo-pdx206.dts | 243 ++++++++ .../boot/dts/qcom/sm8250-sony-xperia-edo.dtsi | 54 +- arch/arm64/boot/dts/qcom/sm8250.dtsi | 211 +++---- arch/arm64/boot/dts/qcom/sm8350.dtsi | 227 +++---- arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 1 - arch/arm64/boot/dts/qcom/sm8450.dtsi | 196 +++--- arch/arm64/boot/dts/qcom/sm8550-mtp.dts | 1 + arch/arm64/boot/dts/qcom/sm8550.dtsi | 196 +++--- arch/arm64/boot/dts/rockchip/rk3568-radxa-e25.dts | 24 +- arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi | 2 +- .../boot/dts/ti/k3-j721s2-common-proc-board.dts | 19 +- arch/arm64/boot/dts/ti/k3-j721s2-som-p0.dtsi | 3 - arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 61 +- arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 2 +- arch/arm64/boot/dts/ti/k3-j784s4-mcu-wakeup.dtsi | 2 +- arch/arm64/configs/defconfig | 2 +- arch/arm64/include/asm/sdei.h | 6 + arch/arm64/kernel/entry.S | 27 +- arch/arm64/kernel/fpsimd.c | 22 +- arch/arm64/kernel/ptrace.c | 3 +- arch/arm64/kernel/sdei.c | 3 + arch/arm64/kernel/smp.c | 8 +- arch/arm64/lib/csum.c | 2 +- arch/arm64/mm/hugetlbpage.c | 2 +- arch/loongarch/include/asm/irq.h | 2 +- arch/loongarch/include/asm/local.h | 4 +- arch/loongarch/include/asm/pgtable.h | 3 + arch/loongarch/kernel/process.c | 4 +- arch/mips/include/asm/irq.h | 2 +- arch/mips/include/asm/local.h | 4 +- arch/mips/kernel/process.c | 4 +- arch/parisc/include/asm/runway.h | 3 - arch/parisc/kernel/processor.c | 13 +- arch/powerpc/include/asm/ftrace.h | 2 +- arch/powerpc/include/asm/irq.h | 2 +- arch/powerpc/include/asm/lppaca.h | 13 +- arch/powerpc/include/asm/paca.h | 6 +- arch/powerpc/include/asm/paravirt.h | 1 + arch/powerpc/include/asm/plpar_wrappers.h | 1 + arch/powerpc/kernel/fadump.c | 1 + arch/powerpc/kernel/iommu.c | 17 +- arch/powerpc/kernel/stacktrace.c | 4 +- arch/powerpc/kernel/watchdog.c | 4 +- arch/powerpc/kvm/book3s_hv_ras.c | 1 + arch/powerpc/mm/book3s64/radix_tlb.c | 240 ++++---- arch/powerpc/mm/book3s64/slb.c | 1 + arch/powerpc/perf/core-fsl-emb.c | 8 +- arch/powerpc/platforms/pseries/hvCall.S | 1 + arch/powerpc/platforms/pseries/lpar.c | 10 +- arch/powerpc/platforms/pseries/lparcfg.c | 4 +- arch/powerpc/platforms/pseries/setup.c | 2 +- arch/powerpc/sysdev/mpc5xxx_clocks.c | 4 +- arch/powerpc/xmon/xmon.c | 1 + arch/riscv/Kconfig | 1 + arch/riscv/Makefile | 3 - arch/riscv/include/uapi/asm/ptrace.h | 13 +- arch/riscv/kernel/ptrace.c | 79 +++ arch/riscv/mm/kasan_init.c | 8 +- arch/s390/crypto/paes_s390.c | 2 +- arch/s390/include/uapi/asm/pkey.h | 2 +- arch/s390/kernel/ipl.c | 2 + arch/sparc/include/asm/irq_64.h | 2 +- arch/sparc/kernel/process_64.c | 6 +- arch/um/configs/i386_defconfig | 1 + arch/um/configs/x86_64_defconfig | 1 + arch/um/drivers/Kconfig | 16 +- arch/um/drivers/Makefile | 2 +- arch/um/drivers/virt-pci.c | 2 + arch/x86/boot/compressed/head_64.S | 30 +- arch/x86/events/intel/uncore_snbep.c | 12 +- arch/x86/include/asm/irq.h | 2 +- arch/x86/include/asm/local.h | 4 +- arch/x86/include/asm/mem_encrypt.h | 6 +- arch/x86/include/asm/pgtable_types.h | 11 +- arch/x86/kernel/apic/hw_nmi.c | 4 +- arch/x86/kernel/apm_32.c | 6 - arch/x86/kernel/cpu/common.c | 8 +- arch/x86/kernel/cpu/mce/core.c | 26 + arch/x86/kernel/cpu/mce/internal.h | 5 +- arch/x86/kernel/cpu/sgx/virt.c | 3 + arch/x86/kernel/kvm.c | 4 +- arch/x86/kernel/smpboot.c | 2 +- arch/x86/kernel/vmlinux.lds.S | 2 +- arch/x86/mm/mem_encrypt_amd.c | 13 +- arch/xtensa/include/asm/core.h | 9 + arch/xtensa/kernel/perf_event.c | 17 +- block/bio-integrity.c | 31 +- block/bio.c | 112 ++-- block/blk-cgroup.c | 32 +- block/blk-flush.c | 2 +- block/blk-map.c | 7 +- block/blk-settings.c | 7 +- block/blk-sysfs.c | 21 +- block/blk.h | 4 + block/ioctl.c | 2 + block/mq-deadline.c | 3 +- crypto/af_alg.c | 4 + crypto/algapi.c | 16 +- crypto/asymmetric_keys/x509_public_key.c | 5 + drivers/acpi/x86/s2idle.c | 39 +- drivers/amba/bus.c | 1 + drivers/base/core.c | 11 + drivers/base/dd.c | 2 + drivers/base/regmap/regcache-maple.c | 16 +- drivers/base/regmap/regcache-rbtree.c | 10 +- drivers/base/test/test_async_driver_probe.c | 2 +- drivers/block/drbd/drbd_main.c | 2 +- drivers/bluetooth/btintel.c | 6 + drivers/bluetooth/btrtl.c | 74 ++- drivers/bluetooth/btusb.c | 2 +- drivers/bluetooth/hci_nokia.c | 6 +- drivers/bus/ti-sysc.c | 2 +- drivers/char/hw_random/iproc-rng200.c | 25 + drivers/char/hw_random/nomadik-rng.c | 12 +- drivers/char/hw_random/pic32-rng.c | 19 +- drivers/char/ipmi/ipmi_si_intf.c | 5 + drivers/char/ipmi/ipmi_ssif.c | 7 +- drivers/char/tpm/tpm_crb.c | 33 +- drivers/clk/imx/clk-composite-8m.c | 12 +- drivers/clk/imx/clk-imx8mp.c | 5 - drivers/clk/imx/clk-imx8ulp.c | 2 +- drivers/clk/imx/clk-pllv4.c | 46 +- drivers/clk/imx/clk.h | 1 + drivers/clk/keystone/pll.c | 2 +- drivers/clk/qcom/Kconfig | 5 + drivers/clk/qcom/dispcc-sc8280xp.c | 8 +- drivers/clk/qcom/gcc-qdu1000.c | 33 +- drivers/clk/qcom/gcc-sc7180.c | 1 + drivers/clk/qcom/gcc-sc8280xp.c | 135 ++++- drivers/clk/qcom/gcc-sm6350.c | 1 + drivers/clk/qcom/gcc-sm7150.c | 1 + drivers/clk/qcom/gcc-sm8250.c | 1 + drivers/clk/qcom/gcc-sm8450.c | 4 +- drivers/clk/qcom/gpucc-sm6350.c | 18 +- drivers/clk/qcom/reset.c | 3 +- drivers/clk/rockchip/clk-rk3568.c | 2 +- drivers/clk/sunxi-ng/ccu_mmc_timing.c | 2 +- drivers/counter/Kconfig | 2 +- drivers/cpufreq/amd-pstate-ut.c | 46 +- drivers/cpufreq/brcmstb-avs-cpufreq.c | 6 +- drivers/cpufreq/cpufreq.c | 2 + drivers/cpufreq/intel_pstate.c | 5 + drivers/cpufreq/powernow-k8.c | 3 +- drivers/cpufreq/tegra194-cpufreq.c | 29 + drivers/cpuidle/cpuidle-pseries.c | 8 +- drivers/cpuidle/governors/teo.c | 40 +- drivers/crypto/caam/caampkc.c | 4 +- .../crypto/intel/qat/qat_4xxx/adf_4xxx_hw_data.c | 9 + drivers/crypto/intel/qat/qat_common/adf_gen4_pm.h | 2 +- drivers/crypto/intel/qat/qat_common/icp_qat_hw.h | 5 +- drivers/crypto/stm32/stm32-hash.c | 11 +- drivers/devfreq/devfreq.c | 1 + drivers/dma/idxd/sysfs.c | 33 +- drivers/dma/ste_dma40.c | 4 + drivers/edac/i10nm_base.c | 54 +- drivers/edac/igen6_edac.c | 8 +- drivers/extcon/Kconfig | 1 + drivers/firmware/arm_sdei.c | 19 + drivers/firmware/cirrus/cs_dsp.c | 3 +- drivers/firmware/efi/libstub/x86-stub.c | 2 +- drivers/firmware/meson/meson_sm.c | 2 + drivers/firmware/ti_sci.c | 36 +- drivers/fsi/fsi-master-aspeed.c | 2 + drivers/gpio/gpio-zynq.c | 26 +- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 + drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 26 +- drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 22 +- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 14 +- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h | 2 + drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h | 3 + drivers/gpu/drm/amd/amdgpu/cik.c | 36 +- drivers/gpu/drm/amd/amdgpu/si.c | 36 +- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 24 +- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c | 12 - .../drm/amd/display/dc/clk_mgr/dcn315/dcn315_smu.c | 20 +- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c | 6 + drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c | 7 + .../gpu/drm/amd/display/dc/dcn301/dcn301_init.c | 1 + drivers/gpu/drm/amd/pm/amdgpu_pm.c | 10 +- drivers/gpu/drm/armada/armada_overlay.c | 6 +- drivers/gpu/drm/ast/ast_dp.c | 11 + drivers/gpu/drm/ast/ast_dp501.c | 37 +- drivers/gpu/drm/ast/ast_drv.h | 2 + drivers/gpu/drm/ast/ast_mode.c | 30 +- drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 9 +- drivers/gpu/drm/bridge/analogix/anx7625.c | 12 +- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 28 +- drivers/gpu/drm/bridge/tc358764.c | 2 +- drivers/gpu/drm/etnaviv/etnaviv_dump.c | 14 +- drivers/gpu/drm/hyperv/hyperv_drm_drv.c | 1 + drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c | 2 +- drivers/gpu/drm/mediatek/mtk_dp.c | 15 +- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 7 +- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 16 +- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 7 +- drivers/gpu/drm/mediatek/mtk_drm_gem.c | 6 +- drivers/gpu/drm/msm/adreno/a2xx_gpu.c | 8 +- drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 11 +- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 2 - drivers/gpu/drm/msm/adreno/adreno_device.c | 2 +- .../drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 9 +- .../gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 25 +- .../gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 29 +- .../drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 39 +- .../gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 29 +- .../gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 2 +- .../gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 2 +- .../gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 8 +- .../drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 2 +- .../gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 8 +- .../gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 33 +- .../gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 9 +- .../drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 45 +- .../gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 33 +- .../gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 37 +- .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c | 3 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 57 +- drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c | 3 +- drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c | 2 +- drivers/gpu/drm/panel/panel-simple.c | 4 +- drivers/gpu/drm/radeon/cik.c | 36 +- drivers/gpu/drm/radeon/si.c | 37 +- drivers/gpu/drm/tegra/dpaux.c | 2 +- drivers/gpu/drm/tiny/repaper.c | 2 +- drivers/gpu/drm/xlnx/zynqmp_dpsub.c | 4 +- drivers/hid/hid-input.c | 18 +- drivers/hid/hid-logitech-dj.c | 5 +- drivers/hid/hid-logitech-hidpp.c | 115 ++-- drivers/hid/hid-multitouch.c | 13 +- drivers/hid/hid-nvidia-shield.c | 15 +- drivers/hid/hid-uclogic-core.c | 13 +- drivers/hv/vmbus_drv.c | 3 +- drivers/hwmon/asus-ec-sensors.c | 2 +- drivers/hwmon/tmp513.c | 2 +- drivers/hwtracing/coresight/coresight-platform.c | 44 +- drivers/hwtracing/coresight/coresight-tmc-etf.c | 2 +- drivers/hwtracing/coresight/coresight-tmc-etr.c | 5 +- drivers/hwtracing/coresight/coresight-tmc.h | 2 +- drivers/hwtracing/coresight/coresight-trbe.c | 43 +- drivers/i3c/master/svc-i3c-master.c | 14 +- drivers/iio/accel/adxl313_i2c.c | 4 +- .../infiniband/core/uverbs_std_types_counters.c | 2 + drivers/infiniband/hw/bnxt_re/bnxt_re.h | 23 +- drivers/infiniband/hw/bnxt_re/main.c | 107 +++- drivers/infiniband/hw/bnxt_re/qplib_res.h | 19 + drivers/infiniband/hw/bnxt_re/qplib_sp.c | 7 +- drivers/infiniband/hw/bnxt_re/qplib_sp.h | 2 +- drivers/infiniband/hw/efa/efa_verbs.c | 6 +- drivers/infiniband/hw/hns/hns_roce_device.h | 1 + drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 11 +- drivers/infiniband/hw/hns/hns_roce_main.c | 7 +- drivers/infiniband/hw/hns/hns_roce_qp.c | 28 +- drivers/infiniband/hw/irdma/ctrl.c | 6 + drivers/infiniband/hw/irdma/main.h | 2 +- drivers/infiniband/hw/irdma/type.h | 2 + drivers/infiniband/hw/irdma/verbs.c | 11 +- drivers/infiniband/sw/rxe/rxe_comp.c | 4 + drivers/infiniband/sw/rxe/rxe_loc.h | 6 - drivers/infiniband/sw/rxe/rxe_qp.c | 159 +++-- drivers/infiniband/sw/rxe/rxe_req.c | 45 +- drivers/infiniband/sw/rxe/rxe_resp.c | 4 + drivers/infiniband/sw/rxe/rxe_srq.c | 60 +- drivers/infiniband/sw/siw/siw.h | 1 + drivers/infiniband/sw/siw/siw_cm.c | 1 - drivers/infiniband/sw/siw/siw_main.c | 22 +- drivers/infiniband/sw/siw/siw_verbs.c | 6 +- drivers/infiniband/ulp/isert/ib_isert.c | 2 + drivers/infiniband/ulp/srp/ib_srp.c | 4 - drivers/input/serio/i8042-acpipnpio.h | 7 + drivers/interconnect/qcom/bcm-voter.c | 43 +- drivers/interconnect/qcom/qcm2290.c | 1 + drivers/interconnect/qcom/sm8450.c | 1 + drivers/iommu/amd/iommu_v2.c | 4 +- drivers/iommu/arm/arm-smmu/qcom_iommu.c | 7 + drivers/iommu/intel/pasid.c | 2 +- drivers/iommu/iommu.c | 4 +- drivers/iommu/iommufd/device.c | 2 +- drivers/iommu/mtk_iommu.c | 22 +- drivers/iommu/rockchip-iommu.c | 43 +- drivers/iommu/sprd-iommu.c | 1 + drivers/irqchip/irq-loongson-eiointc.c | 2 +- drivers/leds/led-class-multicolor.c | 8 +- drivers/leds/led-core.c | 8 +- drivers/leds/leds-aw200xx.c | 2 +- drivers/leds/leds-pwm.c | 2 +- drivers/leds/simple/Kconfig | 1 + drivers/leds/trigger/ledtrig-tty.c | 12 +- drivers/md/md-bitmap.c | 9 +- drivers/md/md.c | 6 +- drivers/md/raid0.c | 82 +-- drivers/md/raid1.c | 8 +- drivers/md/raid10.c | 42 +- drivers/md/raid5-cache.c | 12 +- drivers/media/cec/core/cec-adap.c | 8 +- drivers/media/dvb-frontends/ascot2e.c | 2 +- drivers/media/dvb-frontends/atbm8830.c | 2 +- drivers/media/dvb-frontends/au8522_dig.c | 2 +- drivers/media/dvb-frontends/bcm3510.c | 2 +- drivers/media/dvb-frontends/cx22700.c | 2 +- drivers/media/dvb-frontends/cx22702.c | 2 +- drivers/media/dvb-frontends/cx24110.c | 2 +- drivers/media/dvb-frontends/cx24113.c | 2 +- drivers/media/dvb-frontends/cx24116.c | 2 +- drivers/media/dvb-frontends/cx24120.c | 6 +- drivers/media/dvb-frontends/cx24123.c | 2 +- drivers/media/dvb-frontends/cxd2820r_core.c | 2 +- drivers/media/dvb-frontends/cxd2841er.c | 4 +- drivers/media/dvb-frontends/cxd2880/cxd2880_top.c | 2 +- drivers/media/dvb-frontends/dib0070.c | 2 +- drivers/media/dvb-frontends/dib0090.c | 4 +- drivers/media/dvb-frontends/dib3000mb.c | 2 +- drivers/media/dvb-frontends/dib3000mc.c | 2 +- drivers/media/dvb-frontends/dib7000m.c | 2 +- drivers/media/dvb-frontends/dib7000p.c | 4 +- drivers/media/dvb-frontends/dib8000.c | 2 +- drivers/media/dvb-frontends/dib9000.c | 2 +- drivers/media/dvb-frontends/drx39xyj/drxj.c | 2 +- drivers/media/dvb-frontends/drxd_hard.c | 2 +- drivers/media/dvb-frontends/drxk_hard.c | 2 +- drivers/media/dvb-frontends/ds3000.c | 2 +- drivers/media/dvb-frontends/dvb-pll.c | 2 +- drivers/media/dvb-frontends/ec100.c | 2 +- drivers/media/dvb-frontends/helene.c | 4 +- drivers/media/dvb-frontends/horus3a.c | 2 +- drivers/media/dvb-frontends/isl6405.c | 2 +- drivers/media/dvb-frontends/isl6421.c | 2 +- drivers/media/dvb-frontends/isl6423.c | 2 +- drivers/media/dvb-frontends/itd1000.c | 2 +- drivers/media/dvb-frontends/ix2505v.c | 2 +- drivers/media/dvb-frontends/l64781.c | 2 +- drivers/media/dvb-frontends/lg2160.c | 2 +- drivers/media/dvb-frontends/lgdt3305.c | 2 +- drivers/media/dvb-frontends/lgdt3306a.c | 2 +- drivers/media/dvb-frontends/lgdt330x.c | 2 +- drivers/media/dvb-frontends/lgs8gxx.c | 2 +- drivers/media/dvb-frontends/lnbh25.c | 2 +- drivers/media/dvb-frontends/lnbp21.c | 4 +- drivers/media/dvb-frontends/lnbp22.c | 2 +- drivers/media/dvb-frontends/m88ds3103.c | 2 +- drivers/media/dvb-frontends/m88rs2000.c | 2 +- drivers/media/dvb-frontends/mb86a16.c | 2 +- drivers/media/dvb-frontends/mb86a20s.c | 2 +- drivers/media/dvb-frontends/mt312.c | 2 +- drivers/media/dvb-frontends/mt352.c | 2 +- drivers/media/dvb-frontends/nxt200x.c | 2 +- drivers/media/dvb-frontends/nxt6000.c | 2 +- drivers/media/dvb-frontends/or51132.c | 2 +- drivers/media/dvb-frontends/or51211.c | 2 +- drivers/media/dvb-frontends/s5h1409.c | 2 +- drivers/media/dvb-frontends/s5h1411.c | 2 +- drivers/media/dvb-frontends/s5h1420.c | 2 +- drivers/media/dvb-frontends/s5h1432.c | 2 +- drivers/media/dvb-frontends/s921.c | 2 +- drivers/media/dvb-frontends/si21xx.c | 2 +- drivers/media/dvb-frontends/sp887x.c | 2 +- drivers/media/dvb-frontends/stb0899_drv.c | 2 +- drivers/media/dvb-frontends/stb6000.c | 2 +- drivers/media/dvb-frontends/stb6100.c | 2 +- drivers/media/dvb-frontends/stv0288.c | 2 +- drivers/media/dvb-frontends/stv0297.c | 2 +- drivers/media/dvb-frontends/stv0299.c | 2 +- drivers/media/dvb-frontends/stv0367.c | 6 +- drivers/media/dvb-frontends/stv0900_core.c | 2 +- drivers/media/dvb-frontends/stv090x.c | 2 +- drivers/media/dvb-frontends/stv6110.c | 2 +- drivers/media/dvb-frontends/stv6110x.c | 2 +- drivers/media/dvb-frontends/tda10021.c | 2 +- drivers/media/dvb-frontends/tda10023.c | 2 +- drivers/media/dvb-frontends/tda10048.c | 2 +- drivers/media/dvb-frontends/tda1004x.c | 4 +- drivers/media/dvb-frontends/tda10086.c | 2 +- drivers/media/dvb-frontends/tda665x.c | 2 +- drivers/media/dvb-frontends/tda8083.c | 2 +- drivers/media/dvb-frontends/tda8261.c | 2 +- drivers/media/dvb-frontends/tda826x.c | 2 +- drivers/media/dvb-frontends/ts2020.c | 2 +- drivers/media/dvb-frontends/tua6100.c | 2 +- drivers/media/dvb-frontends/ves1820.c | 2 +- drivers/media/dvb-frontends/ves1x93.c | 2 +- drivers/media/dvb-frontends/zl10036.c | 2 +- drivers/media/dvb-frontends/zl10039.c | 2 +- drivers/media/dvb-frontends/zl10353.c | 2 +- drivers/media/i2c/Kconfig | 13 +- drivers/media/i2c/ad5820.c | 2 - drivers/media/i2c/ccs/ccs-data.c | 101 ++-- drivers/media/i2c/imx290.c | 7 +- drivers/media/i2c/ov2680.c | 330 +++------- drivers/media/i2c/ov5640.c | 22 +- drivers/media/i2c/rdacm21.c | 2 +- drivers/media/i2c/tvp5150.c | 4 + drivers/media/pci/Kconfig | 2 +- drivers/media/pci/bt8xx/dst.c | 2 +- drivers/media/pci/bt8xx/dst_ca.c | 2 +- drivers/media/pci/ddbridge/ddbridge-dummy-fe.c | 2 +- drivers/media/pci/intel/Kconfig | 10 + drivers/media/pci/intel/Makefile | 4 +- .../pci/intel/{ipu3/cio2-bridge.c => ipu-bridge.c} | 192 +++--- .../pci/intel/{ipu3/cio2-bridge.h => ipu-bridge.h} | 57 +- drivers/media/pci/intel/ipu3/Kconfig | 1 + drivers/media/pci/intel/ipu3/Makefile | 1 - drivers/media/pci/intel/ipu3/ipu3-cio2-main.c | 4 +- drivers/media/pci/intel/ipu3/ipu3-cio2.h | 6 - drivers/media/platform/amphion/vdec.c | 41 +- drivers/media/platform/amphion/venc.c | 6 +- drivers/media/platform/amphion/vpu.h | 3 + drivers/media/platform/amphion/vpu_cmds.c | 16 +- drivers/media/platform/amphion/vpu_core.c | 2 + drivers/media/platform/amphion/vpu_dbg.c | 17 +- drivers/media/platform/amphion/vpu_helpers.c | 61 ++ drivers/media/platform/amphion/vpu_msgs.c | 14 +- drivers/media/platform/amphion/vpu_v4l2.c | 7 +- .../media/platform/mediatek/jpeg/mtk_jpeg_core.c | 1 + .../mediatek/vcodec/vdec/vdec_av1_req_lat_if.c | 12 +- .../platform/mediatek/vcodec/vdec/vdec_vp9_if.c | 5 +- .../platform/mediatek/vcodec/vdec_msg_queue.c | 6 +- .../platform/nxp/imx8-isi/imx8-isi-crossbar.c | 2 +- drivers/media/platform/qcom/venus/hfi_venus.c | 20 +- drivers/media/platform/verisilicon/hantro_v4l2.c | 9 +- drivers/media/tuners/fc0011.c | 2 +- drivers/media/tuners/fc0012.c | 2 +- drivers/media/tuners/fc0013.c | 2 +- drivers/media/tuners/max2165.c | 2 +- drivers/media/tuners/mc44s803.c | 2 +- drivers/media/tuners/mt2060.c | 2 +- drivers/media/tuners/mt2131.c | 2 +- drivers/media/tuners/mt2266.c | 2 +- drivers/media/tuners/mxl5005s.c | 2 +- drivers/media/tuners/qt1010.c | 2 +- drivers/media/tuners/tda18218.c | 2 +- drivers/media/tuners/xc2028.c | 2 +- drivers/media/tuners/xc4000.c | 2 +- drivers/media/tuners/xc5000.c | 2 +- drivers/media/usb/dvb-usb/m920x.c | 5 +- drivers/media/usb/go7007/go7007-i2c.c | 2 - drivers/media/usb/siano/smsusb.c | 21 +- drivers/media/v4l2-core/v4l2-fwnode.c | 18 +- drivers/mfd/Kconfig | 2 +- drivers/misc/fastrpc.c | 13 +- drivers/mmc/host/renesas_sdhi_core.c | 10 +- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 7 +- drivers/mtd/nand/raw/fsmc_nand.c | 7 +- drivers/mtd/spi-nor/core.c | 19 +- drivers/net/arcnet/arcnet.c | 2 +- drivers/net/can/m_can/tcan4x5x-regmap.c | 1 - drivers/net/can/usb/gs_usb.c | 5 +- drivers/net/ethernet/amd/pds_core/core.c | 11 +- drivers/net/ethernet/amd/pds_core/dev.c | 9 +- drivers/net/ethernet/amd/pds_core/devlink.c | 3 + drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h | 54 ++ drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 2 +- drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h | 1 + drivers/net/ethernet/hisilicon/hns3/Makefile | 4 +- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 1 + .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 4 +- .../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 1 + .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 560 +---------------- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 2 - .../ethernet/hisilicon/hns3/hns3pf/hclge_regs.c | 668 +++++++++++++++++++++ .../ethernet/hisilicon/hns3/hns3pf/hclge_regs.h | 17 + .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 121 +--- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h | 1 + .../ethernet/hisilicon/hns3/hns3vf/hclgevf_regs.c | 127 ++++ .../ethernet/hisilicon/hns3/hns3vf/hclgevf_regs.h | 13 + drivers/net/ethernet/intel/ice/ice_main.c | 13 +- drivers/net/ethernet/intel/ice/ice_ptp_hw.c | 55 +- drivers/net/ethernet/intel/ice/ice_ptp_hw.h | 3 +- drivers/net/ethernet/intel/igb/igb_main.c | 11 +- drivers/net/ethernet/marvell/octeontx2/af/rpm.c | 17 +- .../ethernet/marvell/octeontx2/nic/otx2_common.c | 3 +- .../ethernet/marvell/octeontx2/nic/otx2_dcbnl.c | 19 +- .../net/ethernet/marvell/octeontx2/nic/otx2_txrx.h | 2 + drivers/net/ethernet/mellanox/mlx5/core/fw_reset.c | 9 +- .../net/ethernet/mellanox/mlx5/core/lib/clock.c | 32 +- drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c | 3 +- drivers/net/ethernet/mellanox/mlxsw/i2c.c | 5 +- .../net/ethernet/microchip/lan966x/lan966x_ptp.c | 4 +- drivers/net/ethernet/realtek/r8169_main.c | 4 - drivers/net/ethernet/sfc/ptp.c | 4 +- drivers/net/macsec.c | 3 +- drivers/net/pcs/pcs-lynx.c | 2 +- drivers/net/wireless/ath/ath10k/pci.c | 9 +- drivers/net/wireless/ath/ath11k/dp_rx.c | 2 +- drivers/net/wireless/ath/ath11k/pci.c | 10 +- drivers/net/wireless/ath/ath12k/mac.c | 4 +- drivers/net/wireless/ath/ath12k/pci.c | 10 +- drivers/net/wireless/ath/ath9k/htc_drv_debug.c | 2 +- drivers/net/wireless/ath/ath9k/wmi.c | 20 +- drivers/net/wireless/marvell/mwifiex/debugfs.c | 9 +- drivers/net/wireless/marvell/mwifiex/pcie.c | 25 +- drivers/net/wireless/marvell/mwifiex/sta_rx.c | 12 +- drivers/net/wireless/marvell/mwifiex/uap_txrx.c | 30 +- drivers/net/wireless/marvell/mwifiex/util.c | 10 +- drivers/net/wireless/mediatek/mt76/mt76.h | 2 +- .../net/wireless/mediatek/mt76/mt76_connac_mac.c | 11 +- .../net/wireless/mediatek/mt76/mt76_connac_mcu.h | 1 + drivers/net/wireless/mediatek/mt76/mt7915/init.c | 7 +- drivers/net/wireless/mediatek/mt76/mt7915/main.c | 93 ++- drivers/net/wireless/mediatek/mt76/mt7915/mcu.c | 105 +++- drivers/net/wireless/mediatek/mt76/mt7915/mmio.c | 30 +- drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h | 15 + drivers/net/wireless/mediatek/mt76/mt7921/init.c | 3 +- drivers/net/wireless/mediatek/mt76/mt7996/dma.c | 2 +- drivers/net/wireless/mediatek/mt76/mt7996/mac.c | 13 +- drivers/net/wireless/mediatek/mt76/mt7996/mcu.c | 11 +- drivers/net/wireless/mediatek/mt76/mt7996/mt7996.h | 1 + drivers/net/wireless/mediatek/mt76/testmode.c | 1 + drivers/net/wireless/mediatek/mt76/tx.c | 9 +- drivers/net/wireless/realtek/rtw89/debug.c | 8 +- drivers/net/wireless/realtek/rtw89/fw.c | 27 +- drivers/net/wireless/realtek/rtw89/rtw8852b_rfk.c | 4 +- drivers/ntb/ntb_transport.c | 19 +- drivers/nvdimm/nd_perf.c | 3 +- drivers/nvdimm/nd_virtio.c | 3 +- drivers/of/overlay.c | 3 +- drivers/of/property.c | 2 + drivers/of/unittest.c | 12 +- drivers/opp/core.c | 10 +- drivers/parisc/ccio-dma.c | 11 +- drivers/parisc/sba_iommu.c | 2 +- drivers/pci/access.c | 20 +- drivers/pci/controller/dwc/pci-layerscape-ep.c | 19 + drivers/pci/controller/dwc/pcie-qcom-ep.c | 2 +- drivers/pci/controller/dwc/pcie-tegra194.c | 10 - drivers/pci/controller/pci-hyperv.c | 3 + drivers/pci/controller/pcie-apple.c | 6 +- drivers/pci/controller/pcie-microchip-host.c | 8 +- drivers/pci/controller/pcie-rockchip.h | 6 +- drivers/pci/doe.c | 2 +- drivers/pci/hotplug/pciehp_hpc.c | 12 +- drivers/pci/pci.c | 21 +- drivers/pci/pcie/aspm.c | 30 +- drivers/pci/probe.c | 2 + drivers/perf/fsl_imx8_ddr_perf.c | 24 +- drivers/phy/rockchip/phy-rockchip-inno-hdmi.c | 18 +- drivers/pinctrl/mediatek/pinctrl-mt7981.c | 44 +- drivers/pinctrl/mediatek/pinctrl-mt7986.c | 8 + drivers/pinctrl/pinctrl-mcp23s08_spi.c | 10 + drivers/platform/chrome/chromeos_acpi.c | 31 +- drivers/platform/x86/amd/pmf/core.c | 3 +- drivers/platform/x86/dell/dell-wmi-sysman/sysman.c | 9 +- drivers/power/supply/qcom_pmi8998_charger.c | 3 +- drivers/powercap/arm_scmi_powercap.c | 159 ++--- drivers/powercap/intel_rapl_common.c | 4 +- drivers/pwm/Kconfig | 2 +- drivers/remoteproc/stm32_rproc.c | 12 +- drivers/rpmsg/qcom_glink_native.c | 4 + drivers/s390/block/dasd_devmap.c | 6 +- drivers/s390/block/dasd_eckd.c | 10 +- drivers/s390/block/dasd_int.h | 4 + drivers/s390/block/dcssblk.c | 4 +- drivers/s390/crypto/pkey_api.c | 98 ++- drivers/s390/crypto/zcrypt_ep11misc.c | 287 ++++++--- drivers/s390/crypto/zcrypt_ep11misc.h | 20 +- drivers/scsi/be2iscsi/be_iscsi.c | 4 + drivers/scsi/fcoe/fcoe_ctlr.c | 20 +- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 11 +- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 6 +- drivers/scsi/hosts.c | 4 +- drivers/scsi/mpt3sas/mpt3sas_base.c | 46 +- drivers/scsi/mpt3sas/mpt3sas_base.h | 1 + drivers/scsi/qedf/qedf_dbg.h | 2 + drivers/scsi/qedf/qedf_debugfs.c | 35 +- drivers/scsi/qla2xxx/qla_init.c | 2 +- drivers/scsi/qla4xxx/ql4_os.c | 15 + drivers/scsi/scsi_transport_iscsi.c | 80 ++- drivers/soc/qcom/ocmem.c | 4 +- drivers/soc/qcom/smem.c | 2 +- drivers/spi/spi-mpc512x-psc.c | 2 +- drivers/spi/spi-tegra114.c | 18 +- drivers/spi/spi-tegra20-sflash.c | 6 +- drivers/staging/media/av7110/sp8870.c | 2 +- drivers/staging/media/rkvdec/rkvdec.c | 2 +- drivers/thermal/imx8mm_thermal.c | 6 +- drivers/thermal/mediatek/lvts_thermal.c | 152 +++-- drivers/thermal/thermal_of.c | 8 +- drivers/tty/serial/qcom_geni_serial.c | 7 +- drivers/tty/serial/sc16is7xx.c | 145 +++-- drivers/tty/serial/serial-tegra.c | 6 +- drivers/tty/serial/sprd_serial.c | 30 +- drivers/ufs/core/ufshcd.c | 12 +- drivers/usb/core/hcd.c | 10 +- drivers/usb/core/hub.c | 349 ++++++----- drivers/usb/core/message.c | 29 +- drivers/usb/core/usb.h | 4 +- drivers/usb/gadget/function/f_mass_storage.c | 2 +- drivers/usb/gadget/udc/core.c | 1 + drivers/usb/phy/phy-mxs-usb.c | 10 +- drivers/usb/typec/bus.c | 12 +- drivers/usb/typec/tcpm/tcpm.c | 38 +- drivers/vfio/vfio_iommu_type1.c | 2 +- drivers/video/backlight/bd6107.c | 2 +- drivers/video/backlight/gpio_backlight.c | 2 +- drivers/video/backlight/lv5207lp.c | 2 +- drivers/virtio/virtio_ring.c | 2 +- drivers/virtio/virtio_vdpa.c | 17 +- fs/btrfs/zoned.c | 19 +- fs/dlm/plock.c | 6 +- fs/erofs/zdata.c | 5 +- fs/eventfd.c | 2 +- fs/ext4/mballoc.c | 7 +- fs/ext4/namei.c | 3 + fs/f2fs/checkpoint.c | 2 +- fs/f2fs/debug.c | 33 +- fs/f2fs/f2fs.h | 72 ++- fs/f2fs/file.c | 27 +- fs/f2fs/gc.c | 18 +- fs/f2fs/inode.c | 12 +- fs/f2fs/recovery.c | 1 + fs/f2fs/segment.c | 68 ++- fs/f2fs/super.c | 41 +- fs/f2fs/sysfs.c | 18 +- fs/fs_context.c | 23 +- fs/fuse/file.c | 89 +-- fs/iomap/buffered-io.c | 5 - fs/jfs/jfs_extent.c | 5 + fs/lockd/mon.c | 3 + fs/namei.c | 2 +- fs/nfs/blocklayout/dev.c | 4 +- fs/nfs/internal.h | 1 + fs/nfs/nfs2xdr.c | 2 +- fs/nfs/nfs3xdr.c | 2 +- fs/nfs/nfs42.h | 1 + fs/nfs/nfs42proc.c | 5 +- fs/nfs/nfs42xdr.c | 17 +- fs/nfs/nfs4proc.c | 13 +- fs/nfs/pnfs_nfs.c | 2 +- fs/nfs/read.c | 10 + fs/nfsd/blocklayoutxdr.c | 9 + fs/nfsd/flexfilelayoutxdr.c | 9 + fs/nfsd/nfs4xdr.c | 25 +- fs/ocfs2/namei.c | 4 + fs/proc/base.c | 3 +- fs/pstore/ram_core.c | 2 +- fs/quota/dquot.c | 174 ++++-- fs/reiserfs/journal.c | 4 +- fs/splice.c | 44 +- fs/verity/signature.c | 16 + include/crypto/algapi.h | 3 + include/dt-bindings/clock/qcom,gcc-sc8280xp.h | 10 + include/linux/arm_sdei.h | 2 + include/linux/blkdev.h | 1 + include/linux/hid.h | 1 + include/linux/if_arp.h | 4 + include/linux/kernfs.h | 4 + include/linux/lsm_hook_defs.h | 1 + include/linux/memcontrol.h | 9 +- include/linux/mfd/rz-mtu3.h | 66 -- include/linux/nmi.h | 14 +- include/linux/nvmem-consumer.h | 2 +- include/linux/pci.h | 34 +- include/linux/pid_namespace.h | 39 +- include/linux/security.h | 6 + include/linux/trace_events.h | 3 +- include/linux/usb/typec_altmode.h | 2 +- include/media/cec.h | 11 +- include/net/bluetooth/hci.h | 20 + include/net/bluetooth/hci_core.h | 67 ++- include/net/bluetooth/hci_sync.h | 2 +- include/net/inet6_hashtables.h | 72 ++- include/net/inet_hashtables.h | 67 ++- include/net/lwtunnel.h | 5 +- include/net/mac80211.h | 4 +- include/net/sock.h | 7 +- include/net/tcp.h | 1 - include/scsi/scsi_host.h | 2 +- include/sound/soc-dai.h | 13 + include/sound/ump.h | 1 + include/uapi/linux/bpf.h | 3 - include/uapi/linux/elf.h | 2 + include/uapi/linux/ioprio.h | 21 +- include/uapi/linux/sync_file.h | 2 +- include/ufs/ufs.h | 6 + init/Kconfig | 1 + io_uring/io-wq.c | 19 +- io_uring/io-wq.h | 3 +- io_uring/io_uring.c | 37 +- io_uring/io_uring.h | 1 - io_uring/net.c | 4 +- io_uring/sqpoll.c | 17 + io_uring/sqpoll.h | 1 + kernel/auditsc.c | 2 + kernel/bpf/btf.c | 22 +- kernel/bpf/helpers.c | 2 +- kernel/bpf/verifier.c | 58 +- kernel/cgroup/cpuset.c | 33 +- kernel/cgroup/namespace.c | 6 - kernel/cpu.c | 24 +- kernel/pid.c | 3 + kernel/pid_namespace.c | 6 +- kernel/pid_sysctl.h | 28 +- kernel/printk/printk_ringbuffer.c | 2 +- kernel/rcu/refscale.c | 3 +- kernel/sched/fair.c | 3 - kernel/sched/rt.c | 2 +- kernel/time/clocksource.c | 8 +- kernel/time/tick-sched.c | 2 +- kernel/trace/bpf_trace.c | 2 +- kernel/trace/trace.c | 17 +- kernel/trace/trace_hwlat.c | 2 +- kernel/trace/trace_uprobe.c | 3 +- kernel/watchdog.c | 11 +- kernel/workqueue.c | 2 +- lib/checksum_kunit.c | 54 +- lib/iov_iter.c | 30 +- lib/nmi_backtrace.c | 6 +- lib/xarray.c | 2 +- mm/memfd.c | 56 +- mm/pagewalk.c | 2 +- mm/shmem.c | 28 +- mm/util.c | 4 +- mm/vmalloc.c | 26 +- mm/vmpressure.c | 8 + mm/vmscan.c | 18 +- net/bluetooth/hci_conn.c | 622 +++++++++---------- net/bluetooth/hci_core.c | 28 +- net/bluetooth/hci_event.c | 133 ++-- net/bluetooth/hci_sync.c | 188 ++++-- net/bluetooth/iso.c | 78 ++- net/bluetooth/mgmt.c | 15 +- net/bluetooth/msft.c | 412 ++++++++++++- net/bluetooth/sco.c | 2 +- net/core/filter.c | 4 +- net/core/lwt_bpf.c | 7 +- net/core/skbuff.c | 44 +- net/core/sock.c | 18 +- net/dccp/ipv4.c | 13 +- net/dccp/ipv6.c | 15 +- net/ipv4/igmp.c | 3 +- net/ipv4/inet_hashtables.c | 27 +- net/ipv4/ip_output.c | 2 +- net/ipv4/tcp_input.c | 3 +- net/ipv4/tcp_timer.c | 18 +- net/ipv4/udp.c | 60 +- net/ipv6/inet6_hashtables.c | 25 +- net/ipv6/ip6_output.c | 2 +- net/ipv6/udp.c | 66 +- net/mac80211/cfg.c | 12 +- net/netfilter/ipset/ip_set_hash_netportnet.c | 1 + net/netfilter/nft_exthdr.c | 20 +- net/netfilter/xt_sctp.c | 2 + net/netfilter/xt_u32.c | 21 + net/netrom/af_netrom.c | 5 + net/sched/em_meta.c | 2 +- net/sched/sch_hfsc.c | 4 + net/smc/af_smc.c | 2 +- net/socket.c | 6 +- net/sunrpc/svcsock.c | 4 +- net/wireless/nl80211.c | 1 + samples/bpf/tracex3_kern.c | 36 +- samples/bpf/tracex6_kern.c | 17 +- scripts/gdb/linux/constants.py.in | 3 + scripts/gdb/linux/modules.py | 12 +- scripts/rust_is_available.sh | 122 ++-- security/integrity/ima/Kconfig | 12 - security/security.c | 14 + security/selinux/hooks.c | 22 + security/smack/smack_lsm.c | 51 ++ security/smack/smackfs.c | 2 +- sound/Kconfig | 2 +- sound/core/pcm_compat.c | 8 +- sound/core/seq/seq_memory.c | 9 +- sound/core/ump.c | 58 +- sound/pci/ac97/ac97_codec.c | 5 +- sound/pci/hda/patch_cs8409.c | 2 +- sound/pci/hda/patch_cs8409.h | 1 + sound/soc/codecs/Kconfig | 1 + sound/soc/codecs/cs43130.h | 138 ++--- sound/soc/fsl/fsl_asrc.c | 16 +- sound/soc/fsl/fsl_aud2htx.c | 10 +- sound/soc/fsl/fsl_easrc.c | 16 +- sound/soc/fsl/fsl_esai.c | 20 +- sound/soc/fsl/fsl_micfil.c | 14 +- sound/soc/fsl/fsl_qmc_audio.c | 28 +- sound/soc/fsl/fsl_sai.c | 24 +- sound/soc/fsl/fsl_spdif.c | 17 +- sound/soc/fsl/fsl_ssi.c | 3 +- sound/soc/fsl/fsl_xcvr.c | 16 +- sound/soc/generic/audio-graph-card.c | 2 +- sound/soc/loongson/loongson_card.c | 2 +- sound/soc/pxa/mmp-sspa.c | 2 +- sound/soc/soc-compress.c | 1 + sound/soc/soc-core.c | 25 + sound/soc/soc-dai.c | 44 +- sound/soc/sof/amd/acp.c | 6 +- sound/soc/sof/intel/hda-mlink.c | 20 +- sound/usb/midi2.c | 22 +- tools/bpf/bpftool/skeleton/pid_iter.bpf.c | 26 +- tools/bpf/bpftool/skeleton/profiler.bpf.c | 27 +- tools/include/nolibc/arch-aarch64.h | 2 +- tools/include/nolibc/arch-arm.h | 2 +- tools/include/nolibc/arch-i386.h | 2 +- tools/include/nolibc/arch-loongarch.h | 2 +- tools/include/nolibc/arch-mips.h | 2 +- tools/include/nolibc/arch-riscv.h | 2 +- tools/include/nolibc/arch-s390.h | 2 +- tools/include/nolibc/arch-x86_64.h | 2 +- tools/include/uapi/linux/bpf.h | 3 - tools/lib/bpf/libbpf.c | 46 +- tools/lib/bpf/usdt.c | 5 +- tools/testing/radix-tree/multiorder.c | 68 ++- .../selftests/bpf/benchs/run_bench_rename.sh | 2 +- tools/testing/selftests/bpf/prog_tests/bpf_nf.c | 5 +- .../testing/selftests/bpf/prog_tests/kfunc_call.c | 2 +- .../selftests/bpf/progs/test_cls_redirect.h | 9 + .../futex/functional/futex_wait_timeout.c | 7 + tools/testing/selftests/kselftest_harness.h | 11 +- tools/testing/selftests/landlock/fs_test.c | 8 +- tools/testing/selftests/memfd/memfd_test.c | 40 +- tools/testing/selftests/resctrl/Makefile | 2 +- tools/testing/selftests/resctrl/cache.c | 18 +- tools/testing/selftests/resctrl/fill_buf.c | 3 +- tools/testing/selftests/resctrl/resctrl.h | 1 + virt/kvm/vfio.c | 115 ++-- 889 files changed, 10463 insertions(+), 6112 deletions(-)