6.7.7-rc1 review
Subsystems (12)
Greg Kroah-Hartman
maintainerPATCH 287/334 platform/x86: thinkpad_acpi: Only update profile if successfully converted
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Mario Limonciello <[email protected]>
[ Upstream commit 427c70dec738318b7f71e1b9d829ff0e9771d493 ]
Randomly a Lenovo Z13 will trigger a kernel warning traceback from this condition:
``` if (WARN_ON((profile < 0) || (profile >= ARRAY_SIZE(profile_names)))) ```
This happens because thinkpad-acpi always assumes that convert_dytc_to_profile() successfully updated the profile. On the contrary a condition can occur that when dytc_profile_refresh() is called the profile doesn't get updated as there is a -EOPNOTSUPP branch.
Catch this situation and avoid updating the profile. Also log this into dynamic debugging in case any other modes should be added in the future.
--- drivers/platform/x86/thinkpad_acpi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/platform/x86/thinkpad_acpi.c +3 -2
@@ -10308,6 +10308,7 @@ static int convert_dytc_to_profile(int funcmode, int dytcmode,return 0 ;default :/* Unknown function */ +pr_debug ("unknown function 0x%x\n" , funcmode);return -EOPNOTSUPP ; }return 0 ;
@@ -10493,8 +10494,8 @@ static void dytc_profile_refresh(void)return ; perfmode = (output >>DYTC_GET_MODE_BIT ) &0xF ; -convert_dytc_to_profile (funcmode, perfmode, &profile); -if (profile != dytc_current_profile) { + err =convert_dytc_to_profile (funcmode, perfmode, &profile); +if (!err && profile != dytc_current_profile) { dytc_current_profile = profile;platform_profile_notify (); }
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 288/334 drm/i915/tv: Fix TV mode
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Maxime Ripard <[email protected]>
[ Upstream commit fb1e881273f432e593f8789f99e725b09304cc97 ]
Commit 1fd4a5a36f9f ("drm/connector: Rename legacy TV property") failed to update all the users of the struct drm_tv_connector_state mode field, which resulted in a build failure in i915.
However, a subsequent commit in the same series reintroduced a mode field in that structure, with a different semantic but the same type, with the assumption that all previous users were updated.
Since that didn't happen, the i915 driver now compiles, but mixes accesses to the legacy_mode field and the newer mode field, but with the previous semantics.
This obviously doesn't work very well, so we need to update the accesses that weren't in the legacy renaming commit.
--- drivers/gpu/drm/i915/display/intel_sdvo.c | 10 +++++----- drivers/gpu/drm/i915/display/intel_tv.c | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-)
drivers/gpu/drm/i915/display/intel_sdvo.c +5 -5
@@ -1208,7 +1208,7 @@ static bool intel_sdvo_set_tv_format(struct intel_sdvo *intel_sdvo,struct intel_sdvo_tv_format format;u32 format_map; - format_map =1 << conn_state->tv.mode; + format_map =1 << conn_state->tv.legacy_mode;memset (&format,0 ,sizeof (format));memcpy (&format, &format_map,min (sizeof (format),sizeof (format_map)));
@@ -2288,7 +2288,7 @@ static int intel_sdvo_get_tv_modes(struct drm_connector *connector)* Read the list of supported input resolutions for the selected TV * format. */ - format_map =1 << conn_state->tv.mode; + format_map =1 << conn_state->tv.legacy_mode;memcpy (&tv_res, &format_map,min (sizeof (format_map),sizeof (struct intel_sdvo_sdtv_resolution_request )));
@@ -2353,7 +2353,7 @@ intel_sdvo_connector_atomic_get_property(struct drm_connector *connector,int i;for (i =0 ; i < intel_sdvo_connector->format_supported_num; i++) -if (state->tv.mode == intel_sdvo_connector->tv_format_supported[i]) { +if (state->tv.legacy_mode == intel_sdvo_connector->tv_format_supported[i]) { *val = i;return 0 ;
@@ -2409,7 +2409,7 @@ intel_sdvo_connector_atomic_set_property(struct drm_connector *connector,struct intel_sdvo_connector_state *sdvo_state =to_intel_sdvo_connector_state (state);if (property == intel_sdvo_connector->tv_format) { - state->tv.mode = intel_sdvo_connector->tv_format_supported[val]; + state->tv.legacy_mode = intel_sdvo_connector->tv_format_supported[val];if (state->crtc) { struct drm_crtc_state *crtc_state =
@@ -3066,7 +3066,7 @@ static bool intel_sdvo_tv_create_property(struct intel_sdvo *intel_sdvo,drm_property_add_enum (intel_sdvo_connector->tv_format, i, tv_format_names[intel_sdvo_connector->tv_format_supported[i]]); - intel_sdvo_connector->base.base.state->tv.mode = intel_sdvo_connector->tv_format_supported[0 ]; + intel_sdvo_connector->base.base.state->tv.legacy_mode = intel_sdvo_connector->tv_format_supported[0 ];drm_object_attach_property (&intel_sdvo_connector->base.base.base, intel_sdvo_connector->tv_format,0 );return true;
drivers/gpu/drm/i915/display/intel_tv.c +5 -5
@@ -949,7 +949,7 @@ intel_disable_tv(struct intel_atomic_state *state,static const struct tv_mode *intel_tv_mode_find (const struct drm_connector_state *conn_state) { -int format = conn_state->tv.mode; +int format = conn_state->tv.legacy_mode;return &tv_modes[format]; }
@@ -1710,7 +1710,7 @@ static void intel_tv_find_better_format(struct drm_connector *connector)break ; } - connector->state->tv.mode = i; + connector->state->tv.legacy_mode = i; } static int
@@ -1865,7 +1865,7 @@ static int intel_tv_atomic_check(struct drm_connector *connector, old_state =drm_atomic_get_old_connector_state (state, connector); new_crtc_state =drm_atomic_get_new_crtc_state (state, new_state->crtc); - if (old_state->tv.mode != new_state->tv.mode || + if (old_state->tv.legacy_mode != new_state->tv.legacy_mode || old_state->tv.margins.left != new_state->tv.margins.left || old_state->tv.margins.right != new_state->tv.margins.right || old_state->tv.margins.top != new_state->tv.margins.top ||
@@ -1902,7 +1902,7 @@ static void intel_tv_add_properties(struct drm_connector *connector) conn_state->tv.margins.right =46 ; conn_state->tv.margins.bottom =37 ; - conn_state->tv.mode =0 ; + conn_state->tv.legacy_mode =0 ;/* Create TV properties then attach current values */ for (i =0 ; i <ARRAY_SIZE (tv_modes); i++) {
@@ -1916,7 +1916,7 @@ static void intel_tv_add_properties(struct drm_connector *connector)drm_object_attach_property (&connector->base, i915->drm.mode_config.legacy_tv_mode_property, - conn_state->tv.mode); + conn_state->tv.legacy_mode);drm_object_attach_property (&connector->base, i915->drm.mode_config.tv_left_margin_property, conn_state->tv.margins.left);
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 289/334 iommu/vt-d: Update iotlb in nested domain attach
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yi Liu <[email protected]>
[ Upstream commit 29e10487d6df050afeee886b7c1da208f389cb5b ]
Should call domain_update_iotlb() to update the has_iotlb_device flag of the domain after attaching device to nested domain. Without it, this flag is not set properly and would result in missing device TLB flush.
--- drivers/iommu/intel/iommu.c | 4 +--- drivers/iommu/intel/iommu.h | 1 + drivers/iommu/intel/nested.c | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-)
drivers/iommu/intel/iommu.c +1 -3
@@ -540,8 +540,6 @@ static int domain_update_device_node(struct dmar_domain *domain)return nid; } -static void domain_update_iotlb (struct dmar_domain *domain); -/* Return the super pagesize bitmap if supported. */ static unsigned long domain_super_pgsize_bitmap (struct dmar_domain *domain) {
@@ -1362,7 +1360,7 @@ domain_lookup_dev_info(struct dmar_domain *domain,return NULL ; } -static void domain_update_iotlb (struct dmar_domain *domain) +void domain_update_iotlb (struct dmar_domain *domain) {struct dev_pasid_info *dev_pasid;struct device_domain_info *info;
drivers/iommu/intel/iommu.h +1 -0
@@ -888,6 +888,7 @@ int qi_submit_sync(struct intel_iommu *iommu, struct qi_desc *desc,*/ #define QI_OPT_WAIT_DRAIN BIT(0) +void domain_update_iotlb (struct dmar_domain *domain);int domain_attach_iommu (struct dmar_domain *domain,struct intel_iommu *iommu);void domain_detach_iommu (struct dmar_domain *domain,struct intel_iommu *iommu);void device_block_translation (struct device *dev);
drivers/iommu/intel/nested.c +2 -0
@@ -65,6 +65,8 @@ static int intel_nested_attach_dev(struct iommu_domain *domain,list_add (&info->link, &dmar_domain->devices);spin_unlock_irqrestore (&dmar_domain->lock, flags); +domain_update_iotlb (dmar_domain); +return 0 ; }
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 290/334 iommu/vt-d: Track nested domains in parent
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yi Liu <[email protected]>
[ Upstream commit 85ce8e1d6d73e8d54cb244d10dd4021771231746 ]
Today the parent domain (s2_domain) is unaware of which DID's are used by and which devices are attached to nested domains (s1_domain) nested on it. This leads to a problem that some operations (flush iotlb/devtlb and enable dirty tracking) on parent domain only apply to DID's and devices directly tracked in the parent domain hence are incomplete.
This tracks the nested domains in list in parent domain. With this, operations on parent domain can loop the nested domains and refer to the devices and iommu_array to ensure the operations on parent domain take effect on all the affected devices and iommus.
Stable-dep-of: f1e1610950ea ("iommu/vt-d: Add missing dirty tracking set for parent domain")
--- drivers/iommu/intel/iommu.c | 18 ++++++++++++++---- drivers/iommu/intel/iommu.h | 6 ++++++ drivers/iommu/intel/nested.c | 12 +++++++++++- 3 files changed, 31 insertions(+), 5 deletions(-)
drivers/iommu/intel/iommu.c +14 -4
@@ -4069,6 +4069,7 @@ intel_iommu_domain_alloc_user(struct device *dev, u32 flags,bool dirty_tracking = flags &IOMMU_HWPT_ALLOC_DIRTY_TRACKING ;bool nested_parent = flags &IOMMU_HWPT_ALLOC_NEST_PARENT ;struct intel_iommu *iommu = info->iommu; +struct dmar_domain *dmar_domain;struct iommu_domain *domain;/* Must be NESTING domain */
@@ -4094,11 +4095,16 @@ intel_iommu_domain_alloc_user(struct device *dev, u32 flags,if (!domain)return ERR_PTR (-ENOMEM ); -if (nested_parent) -to_dmar_domain (domain)->nested_parent = true; + dmar_domain =to_dmar_domain (domain); + +if (nested_parent) { + dmar_domain->nested_parent = true; +INIT_LIST_HEAD (&dmar_domain->s1_domains); +spin_lock_init (&dmar_domain->s1_lock); + }if (dirty_tracking) { -if (to_dmar_domain (domain)->use_first_level) { +if (dmar_domain->use_first_level) {iommu_domain_free (domain);return ERR_PTR (-EOPNOTSUPP ); }
@@ -4110,8 +4116,12 @@ intel_iommu_domain_alloc_user(struct device *dev, u32 flags,static void intel_iommu_domain_free (struct iommu_domain *domain) { +struct dmar_domain *dmar_domain =to_dmar_domain (domain); + +WARN_ON (dmar_domain->nested_parent && + !list_empty (&dmar_domain->s1_domains));if (domain != &si_domain->domain) -domain_exit (to_dmar_domain (domain)); +domain_exit (dmar_domain); } int prepare_domain_attach_device(struct iommu_domain *domain,
drivers/iommu/intel/iommu.h +6 -0
@@ -630,6 +630,10 @@ struct dmar_domain {int agaw;/* maximum mapped address */ u64 max_addr; +/* Protect the s1_domains list */ +spinlock_t s1_lock; +/* Track s1_domains nested on this domain */ +struct list_head s1_domains; };/* Nested user domain */
@@ -640,6 +644,8 @@ struct dmar_domain {unsigned long s1_pgtbl;/* page table attributes */ struct iommu_hwpt_vtd_s1 s1_cfg; +/* link to parent domain siblings */ +struct list_head s2_link; }; };
drivers/iommu/intel/nested.c +11 -1
@@ -72,7 +72,13 @@ static int intel_nested_attach_dev(struct iommu_domain *domain,static void intel_nested_domain_free (struct iommu_domain *domain) { -kfree (to_dmar_domain (domain)); +struct dmar_domain *dmar_domain =to_dmar_domain (domain); +struct dmar_domain *s2_domain = dmar_domain->s2_domain; + +spin_lock (&s2_domain->s1_lock); +list_del (&dmar_domain->s2_link); +spin_unlock (&s2_domain->s1_lock); +kfree (dmar_domain); }static const struct iommu_domain_ops intel_nested_domain_ops = {
@@ -115,5 +121,9 @@ struct iommu_domain *intel_nested_domain_alloc(struct iommu_domain *parent,spin_lock_init (&domain->lock);xa_init (&domain->iommu_array); +spin_lock (&s2_domain->s1_lock); +list_add (&domain->s2_link, &s2_domain->s1_domains); +spin_unlock (&s2_domain->s1_lock); +return &domain->domain; }
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 291/334 iommu/vt-d: Remove domain parameter for intel_pasid_setup_dirty_tracking()
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yi Liu <[email protected]>
[ Upstream commit 56ecaf6c5834ace14941d7f13dceb48bc3327111 ]
The only usage of input @domain is to get the domain id (DID) to flush cache after setting dirty tracking. However, DID can be obtained from the pasid entry. So no need to pass in domain. This can make this helper cleaner when adding the missing dirty tracking for the parent domain, which needs to use the DID of nested domain.
Stable-dep-of: f1e1610950ea ("iommu/vt-d: Add missing dirty tracking set for parent domain")
--- drivers/iommu/intel/iommu.c | 7 +++---- drivers/iommu/intel/pasid.c | 3 +-- drivers/iommu/intel/pasid.h | 1 - 3 files changed, 4 insertions(+), 7 deletions(-)
drivers/iommu/intel/iommu.c +3 -4
@@ -4877,8 +4877,7 @@ static int intel_iommu_set_dirty_tracking(struct iommu_domain *domain, goto out_unlock;list_for_each_entry (info, &dmar_domain->devices, link) { - ret =intel_pasid_setup_dirty_tracking (info->iommu, - info->domain, info->dev, + ret =intel_pasid_setup_dirty_tracking (info->iommu, info->dev,IOMMU_NO_PASID , enable);if (ret) goto err_unwind;
@@ -4892,8 +4891,8 @@ static int intel_iommu_set_dirty_tracking(struct iommu_domain *domain, err_unwind:list_for_each_entry (info, &dmar_domain->devices, link) -intel_pasid_setup_dirty_tracking (info->iommu, dmar_domain, - info->dev,IOMMU_NO_PASID , +intel_pasid_setup_dirty_tracking (info->iommu, info->dev, +IOMMU_NO_PASID , dmar_domain->dirty_tracking);spin_unlock (&dmar_domain->lock);return ret;
drivers/iommu/intel/pasid.c +1 -2
@@ -695,7 +695,6 @@ int intel_pasid_setup_second_level(struct intel_iommu *iommu,* Set up dirty tracking on a second only or nested translation type. */ int intel_pasid_setup_dirty_tracking (struct intel_iommu *iommu, -struct dmar_domain *domain,struct device *dev,u32 pasid,bool enabled) {
@@ -712,7 +711,7 @@ int intel_pasid_setup_dirty_tracking(struct intel_iommu *iommu,return -ENODEV ; } - did =domain_id_iommu (domain, iommu); + did =pasid_get_domain_id (pte); pgtt =pasid_pte_get_pgtt (pte);if (pgtt !=PASID_ENTRY_PGTT_SL_ONLY && pgtt !=PASID_ENTRY_PGTT_NESTED ) {
drivers/iommu/intel/pasid.h +0 -1
@@ -107,7 +107,6 @@ int intel_pasid_setup_second_level(struct intel_iommu *iommu,struct dmar_domain *domain, struct device *dev, u32 pasid);int intel_pasid_setup_dirty_tracking (struct intel_iommu *iommu, -struct dmar_domain *domain,struct device *dev,u32 pasid,bool enabled); int intel_pasid_setup_pass_through(struct intel_iommu *iommu,
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 292/334 iommu/vt-d: Wrap the dirty tracking loop to be a helper
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yi Liu <[email protected]>
[ Upstream commit 0c7f2497b39da44253d7bcf2b41f52b0048859ad ]
Add device_set_dirty_tracking() to loop all the devices and set the dirty tracking per the @enable parameter.
Stable-dep-of: f1e1610950ea ("iommu/vt-d: Add missing dirty tracking set for parent domain")
--- drivers/iommu/intel/iommu.c | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-)
drivers/iommu/intel/iommu.c +24 -11
@@ -4865,23 +4865,38 @@ static void *intel_iommu_hw_info(struct device *dev, u32 *length, u32 *type)return vtd; } +/* +* Set dirty tracking for the device list of a domain. The caller must +* hold the domain->lock when calling it. +*/ +static int device_set_dirty_tracking (struct list_head *devices,bool enable) +{ +struct device_domain_info *info; +int ret =0 ; + +list_for_each_entry (info, devices, link) { + ret =intel_pasid_setup_dirty_tracking (info->iommu, info->dev, +IOMMU_NO_PASID , enable); +if (ret) +break ; + } + +return ret; +} +static int intel_iommu_set_dirty_tracking (struct iommu_domain *domain,bool enable) {struct dmar_domain *dmar_domain =to_dmar_domain (domain); -struct device_domain_info *info;int ret;spin_lock (&dmar_domain->lock);if (dmar_domain->dirty_tracking == enable) goto out_unlock; -list_for_each_entry (info, &dmar_domain->devices, link) { - ret =intel_pasid_setup_dirty_tracking (info->iommu, info->dev, -IOMMU_NO_PASID , enable); -if (ret) - goto err_unwind; - } + ret =device_set_dirty_tracking (&dmar_domain->devices, enable); +if (ret) + goto err_unwind; dmar_domain->dirty_tracking = enable; out_unlock:
@@ -4890,10 +4905,8 @@ static int intel_iommu_set_dirty_tracking(struct iommu_domain *domain,return 0 ; err_unwind: -list_for_each_entry (info, &dmar_domain->devices, link) -intel_pasid_setup_dirty_tracking (info->iommu, info->dev, -IOMMU_NO_PASID , - dmar_domain->dirty_tracking); +device_set_dirty_tracking (&dmar_domain->devices, + dmar_domain->dirty_tracking);spin_unlock (&dmar_domain->lock);return ret; }
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 293/334 iommu/vt-d: Add missing dirty tracking set for parent domain
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yi Liu <[email protected]>
[ Upstream commit f1e1610950eac0af5e40f6ee02315952f78192f7 ]
Setting dirty tracking for a s2 domain requires to loop all the related devices and set the dirty tracking enable bit in the PASID table entry. This includes the devices that are attached to the nested domains of a s2 domain if this s2 domain is used as parent. However, the existing dirty tracking set only loops s2 domain's own devices. It will miss dirty page logs in the parent domain.
Now, the parent domain tracks the nested domains, so it can loop the nested domains and the devices attached to the nested domains to ensure dirty tracking on the parent is set completely.
--- drivers/iommu/intel/iommu.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+)
drivers/iommu/intel/iommu.c +35 -0
@@ -4884,6 +4884,35 @@ static int device_set_dirty_tracking(struct list_head *devices, bool enable)return ret; } +static int parent_domain_set_dirty_tracking (struct dmar_domain *domain, +bool enable) +{ +struct dmar_domain *s1_domain; +unsigned long flags; +int ret; + +spin_lock (&domain->s1_lock); +list_for_each_entry (s1_domain, &domain->s1_domains, s2_link) { +spin_lock_irqsave (&s1_domain->lock, flags); + ret =device_set_dirty_tracking (&s1_domain->devices, enable); +spin_unlock_irqrestore (&s1_domain->lock, flags); +if (ret) + goto err_unwind; + } +spin_unlock (&domain->s1_lock); +return 0 ; + +err_unwind: +list_for_each_entry (s1_domain, &domain->s1_domains, s2_link) { +spin_lock_irqsave (&s1_domain->lock, flags); +device_set_dirty_tracking (&s1_domain->devices, + domain->dirty_tracking); +spin_unlock_irqrestore (&s1_domain->lock, flags); + } +spin_unlock (&domain->s1_lock); +return ret; +} +static int intel_iommu_set_dirty_tracking (struct iommu_domain *domain,bool enable) {
@@ -4898,6 +4927,12 @@ static int intel_iommu_set_dirty_tracking(struct iommu_domain *domain,if (ret) goto err_unwind; +if (dmar_domain->nested_parent) { + ret =parent_domain_set_dirty_tracking (dmar_domain, enable); +if (ret) + goto err_unwind; + } + dmar_domain->dirty_tracking = enable; out_unlock:spin_unlock (&dmar_domain->lock);
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 294/334 iommu/vt-d: Set SSADE when attaching to a parent with dirty tracking
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yi Liu <[email protected]>
[ Upstream commit 1f0198fce68340e0da2d438f4ea9fc20d2c958da ]
Should set the SSADE (Second Stage Access/Dirty bit Enable) bit of the pasid entry when attaching a device to a nested domain if its parent has already enabled dirty tracking.
--- drivers/iommu/intel/pasid.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/iommu/intel/pasid.c +2 -0
@@ -925,6 +925,8 @@ int intel_pasid_setup_nested(struct intel_iommu *iommu, struct device *dev,pasid_set_domain_id (pte, did);pasid_set_address_width (pte, s2_domain->agaw);pasid_set_page_snoop (pte, !!ecap_smpwc (iommu->ecap)); +if (s2_domain->dirty_tracking) +pasid_set_ssade (pte);pasid_set_translation_type (pte,PASID_ENTRY_PGTT_NESTED );pasid_set_present (pte);spin_unlock (&iommu->lock);
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 295/334 octeontx2-af: Consider the action set by PF
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Subbaraya Sundeep <[email protected]>
[ Upstream commit 3b1ae9b71c2a97f848b00fb085a2bd29bddbe8d9 ]
AF reserves MCAM entries for each PF, VF present in the system and populates the entry with DMAC and action with default RSS so that basic packet I/O works. Since PF/VF is not aware of the RSS action installed by AF, AF only fixup the actions of the rules installed by PF/VF with corresponding default RSS action. This worked well for rules installed by PF/VF for features like RX VLAN offload and DMAC filters but rules involving action like drop/forward to queue are also getting modified by AF. Hence fix it by setting the default RSS action only if requested by PF/VF.
--- drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c +4 -0
@@ -437,6 +437,10 @@ static void npc_fixup_vf_rule(struct rvu *rvu, struct npc_mcam *mcam,return ; } +/* AF modifies given action iff PF/VF has requested for it */ +if ((entry->action &0xFULL ) !=NIX_RX_ACTION_DEFAULT ) +return ; +/* copy VF default entry action to the VF mcam entry */ rx_action =npc_get_default_entry_action (rvu, mcam, blkaddr, target_func);
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 296/334 net: implement lockless setsockopt(SO_PEEK_OFF)
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Eric Dumazet <[email protected]>
[ Upstream commit 56667da7399eb19af857e30f41bea89aa6fa812c ]
syzbot reported a lockdep violation [1] involving af_unix support of SO_PEEK_OFF.
Since SO_PEEK_OFF is inherently not thread safe (it uses a per-socket sk_peek_off field), there is really no point to enforce a pointless thread safety in the kernel.
After this patch :
- setsockopt(SO_PEEK_OFF) no longer acquires the socket lock.
- skb_consume_udp() no longer has to acquire the socket lock.
- af_unix no longer needs a special version of sk_set_peek_off(), because it does not lock u->iolock anymore.
As a followup, we could replace prot->set_peek_off to be a boolean and avoid an indirect call, since we always use sk_set_peek_off().
[1]
WARNING: possible circular locking dependency detected 6.8.0-rc4-syzkaller-00267-g0f1dd5e91e2b #0 Not tainted
syz-executor.2/30025 is trying to acquire lock:
ffff8880765e7d80 (&u->iolock){+.+.}-{3:3}, at: unix_set_peek_off+0x26/0xa0 net/unix/af_unix.c:789
but task is already holding lock:
ffff8880765e7930 (sk_lock-AF_UNIX){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1691 [inline] ffff8880765e7930 (sk_lock-AF_UNIX){+.+.}-{0:0}, at: sockopt_lock_sock net/core/sock.c:1060 [inline] ffff8880765e7930 (sk_lock-AF_UNIX){+.+.}-{0:0}, at: sk_setsockopt+0xe52/0x3360 net/core/sock.c:1193
which lock already depends on the new lock.
the existing dependency chain (in reverse order) is:
-> #1 (sk_lock-AF_UNIX){+.+.}-{0:0}:
lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754
lock_sock_nested+0x48/0x100 net/core/sock.c:3524
lock_sock include/net/sock.h:1691 [inline]
__unix_dgram_recvmsg+0x1275/0x12c0 net/unix/af_unix.c:2415
sock_recvmsg_nosec+0x18e/0x1d0 net/socket.c:1046
____sys_recvmsg+0x3c0/0x470 net/socket.c:2801
___sys_recvmsg net/socket.c:2845 [inline]
do_recvmmsg+0x474/0xae0 net/socket.c:2939
__sys_recvmmsg net/socket.c:3018 [inline]
__do_sys_recvmmsg net/socket.c:3041 [inline]
__se_sys_recvmmsg net/socket.c:3034 [inline]
__x64_sys_recvmmsg+0x199/0x250 net/socket.c:3034
do_syscall_64+0xf9/0x240
entry_SYSCALL_64_after_hwframe+0x6f/0x77-> #0 (&u->iolock){+.+.}-{3:3}:
check_prev_add kernel/locking/lockdep.c:3134 [inline]
check_prevs_add kernel/locking/lockdep.c:3253 [inline]
validate_chain+0x18ca/0x58e0 kernel/locking/lockdep.c:3869
__lock_acquire+0x1345/0x1fd0 kernel/locking/lockdep.c:5137
lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754
__mutex_lock_common kernel/locking/mutex.c:608 [inline]
__mutex_lock+0x136/0xd70 kernel/locking/mutex.c:752
unix_set_peek_off+0x26/0xa0 net/unix/af_unix.c:789
sk_setsockopt+0x207e/0x3360
do_sock_setsockopt+0x2fb/0x720 net/socket.c:2307
__sys_setsockopt+0x1ad/0x250 net/socket.c:2334
__do_sys_setsockopt net/socket.c:2343 [inline]
__se_sys_setsockopt net/socket.c:2340 [inline]
__x64_sys_setsockopt+0xb5/0xd0 net/socket.c:2340
do_syscall_64+0xf9/0x240
entry_SYSCALL_64_after_hwframe+0x6f/0x77other info that might help us debug this:
Possible unsafe locking scenario:
CPU0 CPU1
---- ----
lock(sk_lock-AF_UNIX);
lock(&u->iolock);
lock(sk_lock-AF_UNIX); lock(&u->iolock);
*** DEADLOCK ***
1 lock held by syz-executor.2/30025:
#0: ffff8880765e7930 (sk_lock-AF_UNIX){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1691 [inline] #0: ffff8880765e7930 (sk_lock-AF_UNIX){+.+.}-{0:0}, at: sockopt_lock_sock net/core/sock.c:1060 [inline] #0: ffff8880765e7930 (sk_lock-AF_UNIX){+.+.}-{0:0}, at: sk_setsockopt+0xe52/0x3360 net/core/sock.c:1193
stack backtrace: CPU: 0 PID: 30025 Comm: syz-executor.2 Not tainted 6.8.0-rc4-syzkaller-00267-g0f1dd5e91e2b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call Trace: <TASK> __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2e0 lib/dump_stack.c:106 check_noncircular+0x36a/0x4a0 kernel/locking/lockdep.c:2187 check_prev_add kernel/locking/lockdep.c:3134 [inline] check_prevs_add kernel/locking/lockdep.c:3253 [inline] validate_chain+0x18ca/0x58e0 kernel/locking/lockdep.c:3869 __lock_acquire+0x1345/0x1fd0 kernel/locking/lockdep.c:5137 lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __mutex_lock_common kernel/locking/mutex.c:608 [inline] __mutex_lock+0x136/0xd70 kernel/locking/mutex.c:752 unix_set_peek_off+0x26/0xa0 net/unix/af_unix.c:789 sk_setsockopt+0x207e/0x3360 do_sock_setsockopt+0x2fb/0x720 net/socket.c:2307 __sys_setsockopt+0x1ad/0x250 net/socket.c:2334 __do_sys_setsockopt net/socket.c:2343 [inline] __se_sys_setsockopt net/socket.c:2340 [inline] __x64_sys_setsockopt+0xb5/0xd0 net/socket.c:2340 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7f78a1c7dda9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f78a0fde0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f78a1dac050 RCX: 00007f78a1c7dda9 RDX: 000000000000002a RSI: 0000000000000001 RDI: 0000000000000006 RBP: 00007f78a1cca47a R08: 0000000000000004 R09: 0000000000000000 R10: 0000000020000180 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f78a1dac050 R15: 00007ffe5cd81ae8
--- net/core/sock.c | 23 +++++++++++------------ net/ipv4/udp.c | 7 +------ net/unix/af_unix.c | 19 +++---------------- 3 files changed, 15 insertions(+), 34 deletions(-)
net/core/sock.c +11 -12
@@ -1192,6 +1192,17 @@ int sk_setsockopt(struct sock *sk, int level, int optname,*/ WRITE_ONCE (sk->sk_txrehash, (u8 )val);return 0 ; +case SO_PEEK_OFF : + { +int (*set_peek_off)(struct sock *sk,int val); + + set_peek_off =READ_ONCE (sock->ops)->set_peek_off; +if (set_peek_off) + ret =set_peek_off (sk, val); +else + ret = -EOPNOTSUPP ; +return ret; + } }sockopt_lock_sock (sk);
@@ -1434,18 +1445,6 @@ int sk_setsockopt(struct sock *sk, int level, int optname,sock_valbool_flag (sk,SOCK_WIFI_STATUS , valbool);break ; -case SO_PEEK_OFF : - { -int (*set_peek_off)(struct sock *sk,int val); - - set_peek_off =READ_ONCE (sock->ops)->set_peek_off; -if (set_peek_off) - ret =set_peek_off (sk, val); -else - ret = -EOPNOTSUPP ; -break ; - } -case SO_NOFCS :sock_valbool_flag (sk,SOCK_NOFCS , valbool);break ;
net/ipv4/udp.c +1 -6
@@ -1589,12 +1589,7 @@ int udp_init_sock(struct sock *sk)void skb_consume_udp (struct sock *sk,struct sk_buff *skb,int len) { -if (unlikely (READ_ONCE (sk->sk_peek_off) >=0 )) { -bool slow =lock_sock_fast (sk); - -sk_peek_offset_bwd (sk, len); -unlock_sock_fast (sk, slow); - } +sk_peek_offset_bwd (sk, len);if (!skb_unref (skb))return ;
net/unix/af_unix.c +3 -16
@@ -782,19 +782,6 @@ static int unix_seqpacket_sendmsg(struct socket *, struct msghdr *, size_t);static int unix_seqpacket_recvmsg (struct socket *,struct msghdr *,size_t ,int ); -static int unix_set_peek_off (struct sock *sk,int val) -{ -struct unix_sock *u =unix_sk (sk); - -if (mutex_lock_interruptible (&u->iolock)) -return -EINTR ; - -WRITE_ONCE (sk->sk_peek_off, val); -mutex_unlock (&u->iolock); - -return 0 ; -} -#ifdef CONFIG_PROC_FS static int unix_count_nr_fds (struct sock *sk) {
@@ -862,7 +849,7 @@ static const struct proto_ops unix_stream_ops = { .read_skb = unix_stream_read_skb, .mmap = sock_no_mmap, .splice_read = unix_stream_splice_read, - .set_peek_off = unix_set_peek_off, + .set_peek_off = sk_set_peek_off, .show_fdinfo = unix_show_fdinfo, };
@@ -886,7 +873,7 @@ static const struct proto_ops unix_dgram_ops = { .read_skb = unix_read_skb, .recvmsg = unix_dgram_recvmsg, .mmap = sock_no_mmap, - .set_peek_off = unix_set_peek_off, + .set_peek_off = sk_set_peek_off, .show_fdinfo = unix_show_fdinfo, };
@@ -909,7 +896,7 @@ static const struct proto_ops unix_seqpacket_ops = { .sendmsg = unix_seqpacket_sendmsg, .recvmsg = unix_seqpacket_recvmsg, .mmap = sock_no_mmap, - .set_peek_off = unix_set_peek_off, + .set_peek_off = sk_set_peek_off, .show_fdinfo = unix_show_fdinfo, };
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 297/334 net: ipa: dont overrun IPA suspend interrupt registers
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Alex Elder <[email protected]>
[ Upstream commit d80f8e96d47d7374794a30fbed69be43f3388afc ]
In newer hardware, IPA supports more than 32 endpoints. Some registers--such as IPA interrupt registers--represent endpoints as bits in a 4-byte register, and such registers are repeated as needed to represent endpoints beyond the first 32.
In ipa_interrupt_suspend_clear_all(), we clear all pending IPA suspend interrupts by reading all status register(s) and writing corresponding registers to clear interrupt conditions.
Unfortunately the number of registers to read/write is calculated incorrectly, and as a result we access *many* more registers than intended. This bug occurs only when the IPA hardware signals a SUSPEND interrupt, which happens when a packet is received for an endpoint (or its underlying GSI channel) that is suspended. This situation is difficult to reproduce, but possible.
Fix this by correctly computing the number of interrupt registers to read and write. This is the only place in the code where registers that map endpoints or channels this way perform this calculation.
--- drivers/net/ipa/ipa_interrupt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ipa/ipa_interrupt.c +1 -1
@@ -212,7 +212,7 @@ void ipa_interrupt_suspend_clear_all(struct ipa_interrupt *interrupt)u32 unit_count;u32 unit; - unit_count =roundup (ipa->endpoint_count,32 ); + unit_count =DIV_ROUND_UP (ipa->endpoint_count,32 );for (unit =0 ; unit < unit_count; unit++) {const struct reg *reg;u32 val;
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 298/334 iommufd: Reject non-zero data_type if no data_len is provided
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jason Gunthorpe <[email protected]>
[ Upstream commit 7adc0c1cfa7732b81bf7bf2ed16ffb99719ceebf ]
Since the current design doesn't forward the data_type to the driver to check unless there is a data_len/uptr for a driver specific struct we should check and ensure that data_type is 0 if data_len is 0. Otherwise any value is permitted.
--- drivers/iommu/iommufd/hw_pagetable.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/iommu/iommufd/hw_pagetable.c +2 -1
@@ -261,7 +261,8 @@ int iommufd_hwpt_alloc(struct iommufd_ucmd *ucmd)if (cmd->__reserved)return -EOPNOTSUPP ; -if (cmd->data_type ==IOMMU_HWPT_DATA_NONE && cmd->data_len) +if ((cmd->data_type ==IOMMU_HWPT_DATA_NONE && cmd->data_len) || + (cmd->data_type !=IOMMU_HWPT_DATA_NONE && !cmd->data_len))return -EINVAL ; idev =iommufd_get_device (ucmd, cmd->dev_id);
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 299/334 s390: use the correct count for __iowrite64_copy()
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jason Gunthorpe <[email protected]>
[ Upstream commit 723a2cc8d69d4342b47dfddbfe6c19f1b135f09b ]
The signature for __iowrite64_copy() requires the number of 64 bit quantities, not bytes. Multiple by 8 to get to a byte length before invoking zpci_memcpy_toio()
--- arch/s390/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/s390/pci/pci.c +1 -1
@@ -252,7 +252,7 @@ resource_size_t pcibios_align_resource(void *data, const struct resource *res,/* combine single writes by using store-block insn */ void __iowrite64_copy (void __iomem *to,const void *from,size_t count) { -zpci_memcpy_toio (to, from, count); +zpci_memcpy_toio (to, from, count *8 ); } void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size,
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 300/334 bpf, sockmap: Fix NULL pointer dereference in sk_psock_verdict_data_ready()
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Shigeru Yoshida <[email protected]>
[ Upstream commit 4cd12c6065dfcdeba10f49949bffcf383b3952d8 ]
syzbot reported the following NULL pointer dereference issue [1]:
BUG: kernel NULL pointer dereference, address: 0000000000000000 [...] RIP: 0010:0x0 [...] Call Trace: <TASK> sk_psock_verdict_data_ready+0x232/0x340 net/core/skmsg.c:1230 unix_stream_sendmsg+0x9b4/0x1230 net/unix/af_unix.c:2293 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:745 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2584 ___sys_sendmsg net/socket.c:2638 [inline] __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2667 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77
If sk_psock_verdict_data_ready() and sk_psock_stop_verdict() are called concurrently, psock->saved_data_ready can be NULL, causing the above issue.
This patch fixes this issue by calling the appropriate data ready function using the sk_psock_data_ready() helper and protecting it from concurrency with sk->sk_callback_lock.
--- net/core/skmsg.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
net/core/skmsg.c +5 -2
@@ -1226,8 +1226,11 @@ static void sk_psock_verdict_data_ready(struct sock *sk)rcu_read_lock (); psock =sk_psock (sk); -if (psock) - psock->saved_data_ready (sk); +if (psock) { +read_lock_bh (&sk->sk_callback_lock); +sk_psock_data_ready (sk, psock); +read_unlock_bh (&sk->sk_callback_lock); + }rcu_read_unlock (); } }
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 301/334 cache: ax45mp_cache: Align end size to cache boundary in ax45mp_dma_cache_wback()
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lad Prabhakar <[email protected]>
[ Upstream commit 9bd405c48b0ac4de087c0c4440fd79597201b8a7 ]
Align the end size to cache boundary size in ax45mp_dma_cache_wback() callback likewise done in ax45mp_dma_cache_inv() callback.
Additionally return early in case of start == end.
--- drivers/cache/ax45mp_cache.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/cache/ax45mp_cache.c +4 -0
@@ -129,8 +129,12 @@ static void ax45mp_dma_cache_wback(phys_addr_t paddr, size_t size)unsigned long line_size;unsigned long flags; +if (unlikely (start == end)) +return ; + line_size = ax45mp_priv.ax45mp_cache_line_size; start = start & (~(line_size -1 )); + end = ((end + line_size -1 ) & (~(line_size -1 )));local_irq_save (flags);ax45mp_cpu_dcache_wb_range (start, end);local_irq_restore (flags);
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 302/334 hwmon: (nct6775) Fix access to temperature configuration registers
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Guenter Roeck <[email protected]>
[ Upstream commit d56e460e19ea8382f813eb489730248ec8d7eb73 ]
The number of temperature configuration registers does not always match the total number of temperature registers. This can result in access errors reported if KASAN is enabled.
BUG: KASAN: global-out-of-bounds in nct6775_probe+0x5654/0x6fe9 nct6775_core
--- drivers/hwmon/nct6775-core.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-)
drivers/hwmon/nct6775-core.c +12 -2
@@ -3512,6 +3512,7 @@ int nct6775_probe(struct device *dev, struct nct6775_data *data,const u16 *reg_temp_mon, *reg_temp_alternate, *reg_temp_crit;const u16 *reg_temp_crit_l =NULL , *reg_temp_crit_h =NULL ;int num_reg_temp, num_reg_temp_mon, num_reg_tsi_temp; +int num_reg_temp_config;struct device *hwmon_dev;struct sensor_template_group tsi_temp_tg;
@@ -3594,6 +3595,7 @@ int nct6775_probe(struct device *dev, struct nct6775_data *data, reg_temp_over =NCT6106_REG_TEMP_OVER ; reg_temp_hyst =NCT6106_REG_TEMP_HYST ; reg_temp_config =NCT6106_REG_TEMP_CONFIG ; + num_reg_temp_config =ARRAY_SIZE (NCT6106_REG_TEMP_CONFIG ); reg_temp_alternate =NCT6106_REG_TEMP_ALTERNATE ; reg_temp_crit =NCT6106_REG_TEMP_CRIT ; reg_temp_crit_l =NCT6106_REG_TEMP_CRIT_L ;
@@ -3669,6 +3671,7 @@ int nct6775_probe(struct device *dev, struct nct6775_data *data, reg_temp_over =NCT6106_REG_TEMP_OVER ; reg_temp_hyst =NCT6106_REG_TEMP_HYST ; reg_temp_config =NCT6106_REG_TEMP_CONFIG ; + num_reg_temp_config =ARRAY_SIZE (NCT6106_REG_TEMP_CONFIG ); reg_temp_alternate =NCT6106_REG_TEMP_ALTERNATE ; reg_temp_crit =NCT6106_REG_TEMP_CRIT ; reg_temp_crit_l =NCT6106_REG_TEMP_CRIT_L ;
@@ -3746,6 +3749,7 @@ int nct6775_probe(struct device *dev, struct nct6775_data *data, reg_temp_over =NCT6775_REG_TEMP_OVER ; reg_temp_hyst =NCT6775_REG_TEMP_HYST ; reg_temp_config =NCT6775_REG_TEMP_CONFIG ; + num_reg_temp_config =ARRAY_SIZE (NCT6775_REG_TEMP_CONFIG ); reg_temp_alternate =NCT6775_REG_TEMP_ALTERNATE ; reg_temp_crit =NCT6775_REG_TEMP_CRIT ;
@@ -3821,6 +3825,7 @@ int nct6775_probe(struct device *dev, struct nct6775_data *data, reg_temp_over =NCT6775_REG_TEMP_OVER ; reg_temp_hyst =NCT6775_REG_TEMP_HYST ; reg_temp_config =NCT6776_REG_TEMP_CONFIG ; + num_reg_temp_config =ARRAY_SIZE (NCT6776_REG_TEMP_CONFIG ); reg_temp_alternate =NCT6776_REG_TEMP_ALTERNATE ; reg_temp_crit =NCT6776_REG_TEMP_CRIT ;
@@ -3900,6 +3905,7 @@ int nct6775_probe(struct device *dev, struct nct6775_data *data, reg_temp_over =NCT6779_REG_TEMP_OVER ; reg_temp_hyst =NCT6779_REG_TEMP_HYST ; reg_temp_config =NCT6779_REG_TEMP_CONFIG ; + num_reg_temp_config =ARRAY_SIZE (NCT6779_REG_TEMP_CONFIG ); reg_temp_alternate =NCT6779_REG_TEMP_ALTERNATE ; reg_temp_crit =NCT6779_REG_TEMP_CRIT ;
@@ -4034,6 +4040,7 @@ int nct6775_probe(struct device *dev, struct nct6775_data *data, reg_temp_over =NCT6779_REG_TEMP_OVER ; reg_temp_hyst =NCT6779_REG_TEMP_HYST ; reg_temp_config =NCT6779_REG_TEMP_CONFIG ; + num_reg_temp_config =ARRAY_SIZE (NCT6779_REG_TEMP_CONFIG ); reg_temp_alternate =NCT6779_REG_TEMP_ALTERNATE ; reg_temp_crit =NCT6779_REG_TEMP_CRIT ;
@@ -4123,6 +4130,7 @@ int nct6775_probe(struct device *dev, struct nct6775_data *data, reg_temp_over =NCT6798_REG_TEMP_OVER ; reg_temp_hyst =NCT6798_REG_TEMP_HYST ; reg_temp_config =NCT6779_REG_TEMP_CONFIG ; + num_reg_temp_config =ARRAY_SIZE (NCT6779_REG_TEMP_CONFIG ); reg_temp_alternate =NCT6798_REG_TEMP_ALTERNATE ; reg_temp_crit =NCT6798_REG_TEMP_CRIT ;
@@ -4204,7 +4212,8 @@ int nct6775_probe(struct device *dev, struct nct6775_data *data, = reg_temp_crit[src - 1];if (reg_temp_crit_l && reg_temp_crit_l[i]) data->reg_temp[4 ][src -1 ] = reg_temp_crit_l[i]; - data->reg_temp_config[src -1 ] = reg_temp_config[i]; +if (i < num_reg_temp_config) + data->reg_temp_config[src -1 ] = reg_temp_config[i]; data->temp_src[src -1 ] = src;continue ; }
@@ -4217,7 +4226,8 @@ int nct6775_probe(struct device *dev, struct nct6775_data *data, data->reg_temp[0 ][s] = reg_temp[i]; data->reg_temp[1 ][s] = reg_temp_over[i]; data->reg_temp[2 ][s] = reg_temp_hyst[i]; - data->reg_temp_config[s] = reg_temp_config[i]; +if (i < num_reg_temp_config) + data->reg_temp_config[s] = reg_temp_config[i];if (reg_temp_crit_h && reg_temp_crit_h[i]) data->reg_temp[3 ][s] = reg_temp_crit_h[i];else if (reg_temp_crit[src -1 ])
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 303/334 tls: break out of main loop when PEEK gets a non-data record
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Sabrina Dubroca <[email protected]>
[ Upstream commit 10f41d0710fc81b7af93fa6106678d57b1ff24a7 ]
PEEK needs to leave decrypted records on the rx_list so that we can receive them later on, so it jumps back into the async code that queues the skb. Unfortunately that makes us skip the TLS_RECORD_TYPE_DATA check at the bottom of the main loop, so if two records of the same (non-DATA) type are queued, we end up merging them.
Add the same record type check, and make it unlikely to not penalize the async fastpath. Async decrypt only applies to data record, so this check is only needed for PEEK.
process_rx_list also has similar issues.
--- net/tls/tls_sw.c | 2 ++ 1 file changed, 2 insertions(+)
net/tls/tls_sw.c +2 -0
@@ -2064,6 +2064,8 @@ int tls_sw_recvmsg(struct sock *sk, decrypted += chunk; len -= chunk;__skb_queue_tail (&ctx->rx_list, skb); +if (unlikely (control !=TLS_RECORD_TYPE_DATA )) +break ;continue ; }
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 304/334 tls: stop recv() if initial process_rx_list gave us non-DATA
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Sabrina Dubroca <[email protected]>
[ Upstream commit fdfbaec5923d9359698cbb286bc0deadbb717504 ]
If we have a non-DATA record on the rx_list and another record of the same type still on the queue, we will end up merging them:
- process_rx_list copies the non-DATA record
- we start the loop and process the first available record since it's of the same type
- we break out of the loop since the record was not DATA
Just check the record type and jump to the end in case process_rx_list did some work.
--- net/tls/tls_sw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/tls/tls_sw.c +1 -1
@@ -1971,7 +1971,7 @@ int tls_sw_recvmsg(struct sock *sk, goto end; copied = err; -if (len <= copied) +if (len <= copied || (copied && control !=TLS_RECORD_TYPE_DATA )) goto end; target =sock_rcvlowat (sk, flags &MSG_WAITALL , len);
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 305/334 tls: dont skip over different type records from the rx_list
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Sabrina Dubroca <[email protected]>
[ Upstream commit ec823bf3a479d42c589dc0f28ef4951c49cd2d2a ]
If we queue 3 records:
- record 1, type DATA
- record 2, some other type
- record 3, type DATA
and do a recv(PEEK), the rx_list will contain the first two records.
The next large recv will walk through the rx_list and copy data from record 1, then stop because record 2 is a different type. Since we haven't filled up our buffer, we will process the next available record. It's also DATA, so we can merge it with the current read.
We shouldn't do that, since there was a record in between that we ignored.
Add a flag to let process_rx_list inform tls_sw_recvmsg that it had more data available.
--- net/tls/tls_sw.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-)
net/tls/tls_sw.c +14 -8
@@ -1772,7 +1772,8 @@ static int process_rx_list(struct tls_sw_context_rx *ctx,u8 *control, size_t skip, size_t len, - bool is_peek) + bool is_peek, + bool *more) { struct sk_buff *skb = skb_peek(&ctx->rx_list);struct tls_msg *tlm;
@@ -1785,7 +1786,7 @@ static int process_rx_list(struct tls_sw_context_rx *ctx, err =tls_record_content_type (msg, tlm, control);if (err <=0 ) - goto out; + goto more;if (skip < rxm->full_len)break ;
@@ -1803,12 +1804,12 @@ static int process_rx_list(struct tls_sw_context_rx *ctx, err =tls_record_content_type (msg, tlm, control);if (err <=0 ) - goto out; + goto more; err =skb_copy_datagram_msg (skb, rxm->offset + skip, msg, chunk);if (err <0 ) - goto out; + goto more; len = len - chunk; copied = copied + chunk;
@@ -1844,6 +1845,10 @@ static int process_rx_list(struct tls_sw_context_rx *ctx, out:return copied ? : err; +more: +if (more) + *more = true; + goto out; } static bool
@@ -1947,6 +1952,7 @@ int tls_sw_recvmsg(struct sock *sk,int target, err;bool is_kvec =iov_iter_is_kvec (&msg->msg_iter);bool is_peek = flags &MSG_PEEK ; +bool rx_more = false;bool released = true;bool bpf_strp_enabled;bool zc_capable;
@@ -1966,12 +1972,12 @@ int tls_sw_recvmsg(struct sock *sk, goto end;/* Process pending decrypted records. It must be non-zero-copy */ - err =process_rx_list (ctx, msg, &control,0 , len, is_peek); + err =process_rx_list (ctx, msg, &control,0 , len, is_peek, &rx_more);if (err <0 ) goto end; copied = err; -if (len <= copied || (copied && control !=TLS_RECORD_TYPE_DATA )) +if (len <= copied || (copied && control !=TLS_RECORD_TYPE_DATA ) || rx_more) goto end; target =sock_rcvlowat (sk, flags &MSG_WAITALL , len);
@@ -2130,10 +2136,10 @@ int tls_sw_recvmsg(struct sock *sk,/* Drain records from the rx_list & copy if required */ if (is_peek || is_kvec) err =process_rx_list (ctx, msg, &control, copied, - decrypted, is_peek); + decrypted, is_peek,NULL );else err =process_rx_list (ctx, msg, &control,0 , - async_copy_bytes, is_peek); + async_copy_bytes, is_peek,NULL ); } copied += decrypted;
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 306/334 netfilter: nf_tables: set dormant flag on hook register failure
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Florian Westphal <[email protected]>
[ Upstream commit bccebf64701735533c8db37773eeacc6566cc8ec ]
We need to set the dormant flag again if we fail to register the hooks.
During memory pressure hook registration can fail and we end up with a table marked as active but no registered hooks.
On table/base chain deletion, nf_tables will attempt to unregister the hook again which yields a warn splat from the nftables core.
--- net/netfilter/nf_tables_api.c | 1 + 1 file changed, 1 insertion(+)
net/netfilter/nf_tables_api.c +1 -0
@@ -1251,6 +1251,7 @@ static int nf_tables_updtable(struct nft_ctx *ctx)return 0 ; err_register_hooks: + ctx->table->flags |=NFT_TABLE_F_DORMANT ;nft_trans_destroy (trans);return ret; }
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 307/334 netfilter: nft_flow_offload: reset dst in route object after setting up flow
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pablo Neira Ayuso <[email protected]>
[ Upstream commit 9e0f0430389be7696396c62f037be4bf72cf93e3 ]
dst is transferred to the flow object, route object does not own it anymore. Reset dst in route object, otherwise if flow_offload_add() fails, error path releases dst twice, leading to a refcount underflow.
--- include/net/netfilter/nf_flow_table.h | 2 +- net/netfilter/nf_flow_table_core.c | 16 +++++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-)
include/net/netfilter/nf_flow_table.h +1 -1
@@ -275,7 +275,7 @@ nf_flow_table_offload_del_cb(struct nf_flowtable *flow_table, }void flow_offload_route_init (struct flow_offload *flow, -const struct nf_flow_route *route); +struct nf_flow_route *route);int flow_offload_add (struct nf_flowtable *flow_table,struct flow_offload *flow); void flow_offload_refresh(struct nf_flowtable *flow_table,
net/netfilter/nf_flow_table_core.c +13 -3
@@ -87,12 +87,22 @@ static u32 flow_offload_dst_cookie(struct flow_offload_tuple *flow_tuple)return 0 ; } +static struct dst_entry *nft_route_dst_fetch (struct nf_flow_route *route, +enum flow_offload_tuple_dir dir) +{ +struct dst_entry *dst = route->tuple[dir].dst; + + route->tuple[dir].dst =NULL ; + +return dst; +} +static int flow_offload_fill_route (struct flow_offload *flow, -const struct nf_flow_route *route, +struct nf_flow_route *route,enum flow_offload_tuple_dir dir) {struct flow_offload_tuple *flow_tuple = &flow->tuplehash[dir].tuple; -struct dst_entry *dst = route->tuple[dir].dst; +struct dst_entry *dst =nft_route_dst_fetch (route, dir);int i, j =0 ;switch (flow_tuple->l3proto) {
@@ -146,7 +156,7 @@ static void nft_flow_dst_release(struct flow_offload *flow, }void flow_offload_route_init (struct flow_offload *flow, -const struct nf_flow_route *route) +struct nf_flow_route *route) {flow_offload_fill_route (flow, route,FLOW_OFFLOAD_DIR_ORIGINAL );flow_offload_fill_route (flow, route,FLOW_OFFLOAD_DIR_REPLY );
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 308/334 netfilter: nft_flow_offload: release dst in case direct xmit path is used
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pablo Neira Ayuso <[email protected]>
[ Upstream commit 8762785f459be1cfe6fcf7285c123aad6a3703f0 ]
Direct xmit does not use it since it calls dev_queue_xmit() to send packets, hence it calls dst_release().
kmemleak reports:
unreferenced object 0xffff88814f440900 (size 184):
comm "softirq", pid 0, jiffies 4294951896 hex dump (first 32 bytes):
00 60 5b 04 81 88 ff ff 00 e6 e8 82 ff ff ff ff .`[.............
21 0b 50 82 ff ff ff ff 00 00 00 00 00 00 00 00 !.P.............
backtrace (crc cb2bf5d6):
[<000000003ee17107>] kmem_cache_alloc+0x286/0x340
[<0000000021a5de2c>] dst_alloc+0x43/0xb0
[<00000000f0671159>] rt_dst_alloc+0x2e/0x190
[<00000000fe5092c9>] __mkroute_output+0x244/0x980
[<000000005fb96fb0>] ip_route_output_flow+0xc0/0x160
[<0000000045367433>] nf_ip_route+0xf/0x30
[<0000000085da1d8e>] nf_route+0x2d/0x60
[<00000000d1ecd1cb>] nft_flow_route+0x171/0x6a0 [nft_flow_offload]
[<00000000d9b2fb60>] nft_flow_offload_eval+0x4e8/0x700 [nft_flow_offload]
[<000000009f447dbb>] expr_call_ops_eval+0x53/0x330 [nf_tables]
[<00000000072e1be6>] nft_do_chain+0x17c/0x840 [nf_tables]
[<00000000d0551029>] nft_do_chain_inet+0xa1/0x210 [nf_tables]
[<0000000097c9d5c6>] nf_hook_slow+0x5b/0x160
[<0000000005eccab1>] ip_forward+0x8b6/0x9b0
[<00000000553a269b>] ip_rcv+0x221/0x230
[<00000000412872e5>] __netif_receive_skb_one_core+0xfe/0x110--- net/netfilter/nf_flow_table_core.c | 1 + 1 file changed, 1 insertion(+)
net/netfilter/nf_flow_table_core.c +1 -0
@@ -132,6 +132,7 @@ static int flow_offload_fill_route(struct flow_offload *flow, ETH_ALEN); flow_tuple->out.ifidx = route->tuple[dir].out.ifindex; flow_tuple->out.hw_ifidx = route->tuple[dir].out.hw_ifindex; +dst_release (dst);break ;case FLOW_OFFLOAD_XMIT_XFRM :case FLOW_OFFLOAD_XMIT_NEIGH :
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 309/334 netfilter: nf_tables: register hooks last when adding new chain/flowtable
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pablo Neira Ayuso <[email protected]>
[ Upstream commit d472e9853d7b46a6b094224d131d09ccd3a03daf ]
Register hooks last when adding chain/flowtable to ensure that packets do not walk over datastructure that is being released in the error path without waiting for the rcu grace period.
--- net/netfilter/nf_tables_api.c | 78 ++++++++++++++++++----------------- 1 file changed, 40 insertions(+), 38 deletions(-)
net/netfilter/nf_tables_api.c +40 -38
@@ -684,15 +684,16 @@ static int nft_delobj(struct nft_ctx *ctx, struct nft_object *obj)return err; } -static int nft_trans_flowtable_add (struct nft_ctx *ctx,int msg_type, -struct nft_flowtable *flowtable) +static struct nft_trans * +nft_trans_flowtable_add (struct nft_ctx *ctx,int msg_type, +struct nft_flowtable *flowtable) {struct nft_trans *trans; trans =nft_trans_alloc (ctx, msg_type,sizeof (struct nft_trans_flowtable ));if (trans ==NULL ) -return -ENOMEM ; +return ERR_PTR (-ENOMEM );if (msg_type ==NFT_MSG_NEWFLOWTABLE )nft_activate_next (ctx->net, flowtable);
@@ -701,22 +702,22 @@ static int nft_trans_flowtable_add(struct nft_ctx *ctx, int msg_type,nft_trans_flowtable (trans) = flowtable;nft_trans_commit_list_add_tail (ctx->net, trans); -return 0 ; +return trans; }static int nft_delflowtable (struct nft_ctx *ctx,struct nft_flowtable *flowtable) { -int err; +struct nft_trans *trans; - err =nft_trans_flowtable_add (ctx,NFT_MSG_DELFLOWTABLE , flowtable); -if (err <0 ) -return err; + trans =nft_trans_flowtable_add (ctx,NFT_MSG_DELFLOWTABLE , flowtable); +if (IS_ERR (trans)) +return PTR_ERR (trans);nft_deactivate_next (ctx->net, flowtable);nft_use_dec (&ctx->table->use); -return err; +return 0 ; }static void __nft_reg_track_clobber (struct nft_regs_track *track,u8 dreg)
@@ -2504,19 +2505,15 @@ static int nf_tables_addchain(struct nft_ctx *ctx, u8 family, u8 genmask,RCU_INIT_POINTER (chain->blob_gen_0, blob);RCU_INIT_POINTER (chain->blob_gen_1, blob); - err =nf_tables_register_hook (net, table, chain); -if (err <0 ) - goto err_destroy_chain; -if (!nft_use_inc (&table->use)) { err = -EMFILE ; - goto err_use; + goto err_destroy_chain; } trans =nft_trans_chain_add (ctx,NFT_MSG_NEWCHAIN );if (IS_ERR (trans)) { err =PTR_ERR (trans); - goto err_unregister_hook; + goto err_trans; }nft_trans_chain_policy (trans) =NFT_CHAIN_POLICY_UNSET ;
@@ -2524,17 +2521,22 @@ static int nf_tables_addchain(struct nft_ctx *ctx, u8 family, u8 genmask,nft_trans_chain_policy (trans) = policy; err =nft_chain_add (table, chain); -if (err <0 ) { -nft_trans_destroy (trans); - goto err_unregister_hook; - } +if (err <0 ) + goto err_chain_add; + +/* This must be LAST to ensure no packets are walking over this chain. */ + err =nf_tables_register_hook (net, table, chain); +if (err <0 ) + goto err_register_hook;return 0 ; -err_unregister_hook: +err_register_hook: +nft_chain_del (chain); +err_chain_add: +nft_trans_destroy (trans); +err_trans:nft_use_dec_restore (&table->use); -err_use: -nf_tables_unregister_hook (net, table, chain); err_destroy_chain:nf_tables_chain_destroy (ctx);
@@ -8373,9 +8375,9 @@ static int nf_tables_newflowtable(struct sk_buff *skb,u8 family = info->nfmsg->nfgen_family;const struct nf_flowtable_type *type;struct nft_flowtable *flowtable; -struct nft_hook *hook, *next;struct net *net = info->net;struct nft_table *table; +struct nft_trans *trans;struct nft_ctx ctx;int err;
@@ -8455,34 +8457,34 @@ static int nf_tables_newflowtable(struct sk_buff *skb, err =nft_flowtable_parse_hook (&ctx, nla, &flowtable_hook, flowtable, extack, true);if (err <0 ) - goto err4; + goto err_flowtable_parse_hooks;list_splice (&flowtable_hook.list, &flowtable->hook_list); flowtable->data.priority = flowtable_hook.priority; flowtable->hooknum = flowtable_hook.num; + trans =nft_trans_flowtable_add (&ctx,NFT_MSG_NEWFLOWTABLE , flowtable); +if (IS_ERR (trans)) { + err =PTR_ERR (trans); + goto err_flowtable_trans; + } + +/* This must be LAST to ensure no packets are walking over this flowtable. */ err =nft_register_flowtable_net_hooks (ctx.net, table, &flowtable->hook_list, flowtable); -if (err <0 ) { -nft_hooks_destroy (&flowtable->hook_list); - goto err4; - } - - err =nft_trans_flowtable_add (&ctx,NFT_MSG_NEWFLOWTABLE , flowtable);if (err <0 ) - goto err5; + goto err_flowtable_hooks;list_add_tail_rcu (&flowtable->list, &table->flowtables);return 0 ; -err5: -list_for_each_entry_safe (hook, next, &flowtable->hook_list, list) { -nft_unregister_flowtable_hook (net, flowtable, hook); -list_del_rcu (&hook->list); -kfree_rcu (hook, rcu); - } -err4: + +err_flowtable_hooks: +nft_trans_destroy (trans); +err_flowtable_trans: +nft_hooks_destroy (&flowtable->hook_list); +err_flowtable_parse_hooks: flowtable->data.type->free (&flowtable->data); err3:module_put (type->owner);
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 310/334 netfilter: nf_tables: use kzalloc for hook allocation
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Florian Westphal <[email protected]>
[ Upstream commit 195e5f88c2e48330ba5483e0bad2de3b3fad484f ]
KMSAN reports unitialized variable when registering the hook,
reg->hook_ops_type == NF_HOOK_OP_BPF)
~~~~~~~~~~~ undefined
This is a small structure, just use kzalloc to make sure this won't happen again when new fields get added to nf_hook_ops.
--- net/netfilter/nf_tables_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/nf_tables_api.c +1 -1
@@ -2082,7 +2082,7 @@ static struct nft_hook *nft_netdev_hook_alloc(struct net *net,struct nft_hook *hook;int err; - hook =kmalloc (sizeof (struct nft_hook ),GFP_KERNEL_ACCOUNT ); + hook =kzalloc (sizeof (struct nft_hook ),GFP_KERNEL_ACCOUNT );if (!hook) { err = -ENOMEM ; goto err_hook_alloc;
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 311/334 net: mctp: put sock on tag allocation failure
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jeremy Kerr <[email protected]>
[ Upstream commit 9990889be14288d4f1743e4768222d5032a79c27 ]
We may hold an extra reference on a socket if a tag allocation fails: we optimistically allocate the sk_key, and take a ref there, but do not drop if we end up not using the allocated key.
Ensure we're dropping the sock on this failure by doing a proper unref rather than directly kfree()ing.
--- net/mctp/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/mctp/route.c +1 -1
@@ -663,7 +663,7 @@ struct mctp_sk_key *mctp_alloc_local_tag(struct mctp_sock *msk,spin_unlock_irqrestore (&mns->keys_lock, flags);if (!tagbits) { -kfree (key); +mctp_key_unref (key);return ERR_PTR (-EBUSY ); }
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 312/334 tools: ynl: make sure we always pass yarg to mnl_cb_run
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jakub Kicinski <[email protected]>
[ Upstream commit e4fe082c38cd74a8fa384bc7542cf3edf1cb7318 ]
There is one common error handler in ynl - ynl_cb_error(). It expects priv to be a pointer to struct ynl_parse_arg AKA yarg. To avoid potential crashes if we encounter a stray NLMSG_ERROR always pass yarg as priv (or a struct which has it as the first member).
ynl_cb_null() has a similar problem directly - it expects yarg but priv passed by the caller is ys.
Found by code inspection.
--- tools/net/ynl/lib/ynl.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
tools/net/ynl/lib/ynl.c +8 -3
@@ -462,6 +462,8 @@ ynl_gemsg_start_dump(struct ynl_sock *ys, __u32 id, __u8 cmd, __u8 version)int ynl_recv_ack (struct ynl_sock *ys,int ret) { +struct ynl_parse_arg yarg = { .ys = ys, }; +if (!ret) {yerr (ys,YNL_ERROR_EXPECT_ACK ,"Expecting an ACK but nothing received" );
@@ -474,7 +476,7 @@ int ynl_recv_ack(struct ynl_sock *ys, int ret)return ret; }return mnl_cb_run (ys->rx_buf, ret, ys->seq, ys->portid, - ynl_cb_null, ys); + ynl_cb_null, &yarg); }int ynl_cb_null (const struct nlmsghdr *nlh,void *data)
@@ -737,11 +739,14 @@ static int ynl_ntf_parse(struct ynl_sock *ys, const struct nlmsghdr *nlh)static int ynl_ntf_trampoline (const struct nlmsghdr *nlh,void *data) { -return ynl_ntf_parse ((struct ynl_sock *)data, nlh); +struct ynl_parse_arg *yarg = data; + +return ynl_ntf_parse (yarg->ys, nlh); }int ynl_ntf_check (struct ynl_sock *ys) { +struct ynl_parse_arg yarg = { .ys = ys, };ssize_t len;int err;
@@ -763,7 +768,7 @@ int ynl_ntf_check(struct ynl_sock *ys)return len; err =mnl_cb_run2 (ys->rx_buf, len, ys->seq, ys->portid, - ynl_ntf_trampoline, ys, + ynl_ntf_trampoline, &yarg, ynl_cb_array,NLMSG_MIN_TYPE );if (err <0 )return err;
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 313/334 tools: ynl: dont leak mcast_groups on init error
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jakub Kicinski <[email protected]>
[ Upstream commit 5d78b73e851455d525a064f3b042b29fdc0c1a4a ]
Make sure to free the already-parsed mcast_groups if we don't get an ack from the kernel when reading family info. This is part of the ynl_sock_create() error path, so we won't get a call to ynl_sock_destroy() to free them later.
--- tools/net/ynl/lib/ynl.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
tools/net/ynl/lib/ynl.c +7 -1
@@ -584,7 +584,13 @@ static int ynl_sock_read_family(struct ynl_sock *ys, const char *family_name)return err; } -return ynl_recv_ack (ys, err); + err =ynl_recv_ack (ys, err); +if (err <0 ) { +free (ys->mcast_groups); +return err; + } + +return 0 ; } struct ynl_sock *
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 314/334 devlink: fix port dump cmd type
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jiri Pirko <[email protected]>
[ Upstream commit 61c43780e9444123410cd48c2483e01d2b8f75e8 ]
Unlike other commands, due to a c&p error, port dump fills-up cmd with wrong value, different from port-get request cmd, port-get doit reply and port notification.
Fix it by filling cmd with value DEVLINK_CMD_PORT_NEW.
Skimmed through devlink userspace implementations, none of them cares about this cmd value. Only ynl, for which, this is actually a fix, as it expects doit and dumpit ops rsp_value to be the same.
Omit the fixes tag, even thought this is fix, better to target this for next release.
--- net/devlink/port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/devlink/port.c +1 -1
@@ -581,7 +581,7 @@ devlink_nl_port_get_dump_one(struct sk_buff *msg, struct devlink *devlink,xa_for_each_start (&devlink->ports, port_index, devlink_port, state->idx) { err =devlink_nl_port_fill (msg, devlink_port, -DEVLINK_CMD_NEW , +DEVLINK_CMD_PORT_NEW ,NETLINK_CB (cb->skb).portid, cb->nlh->nlmsg_seq, flags, cb->extack);
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 315/334 net/sched: flower: Add lock protection when remove filter handle
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jianbo Liu <[email protected]>
[ Upstream commit 1fde0ca3a0de7e9f917668941156959dd5e9108b ]
As IDR can't protect itself from the concurrent modification, place idr_remove() under the protection of tp->lock.
--- net/sched/cls_flower.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
net/sched/cls_flower.c +4 -1
@@ -2460,8 +2460,11 @@ static int fl_change(struct net *net, struct sk_buff *in_skb, } errout_idr: -if (!fold) +if (!fold) { +spin_lock (&tp->lock);idr_remove (&head->handle_idr, fnew->handle); +spin_unlock (&tp->lock); + }__fl_put (fnew); errout_tb:kfree (tb);
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 316/334 net: sparx5: Add spinlock for frame transmission from CPU
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Horatiu Vultur <[email protected]>
[ Upstream commit 603ead96582d85903baec2d55f021b8dac5c25d2 ]
Both registers used when doing manual injection or fdma injection are shared between all the net devices of the switch. It was noticed that when having two process which each of them trying to inject frames on different ethernet ports, that the HW started to behave strange, by sending out more frames then expected. When doing fdma injection it is required to set the frame in the DCB and then make sure that the next pointer of the last DCB is invalid. But because there is no locks for this, then easily this pointer between the DCB can be broken and then it would create a loop of DCBs. And that means that the HW will continuously transmit these frames in a loop. Until the SW will break this loop.
Therefore to fix this issue, add a spin lock for when accessing the registers for manual or fdma injection.
--- drivers/net/ethernet/microchip/sparx5/sparx5_main.c | 1 + drivers/net/ethernet/microchip/sparx5/sparx5_main.h | 1 + drivers/net/ethernet/microchip/sparx5/sparx5_packet.c | 2 ++ 3 files changed, 4 insertions(+)
drivers/net/ethernet/microchip/sparx5/sparx5_main.c +1 -0
@@ -757,6 +757,7 @@ static int mchp_sparx5_probe(struct platform_device *pdev)platform_set_drvdata (pdev, sparx5); sparx5->pdev = pdev; sparx5->dev = &pdev->dev; +spin_lock_init (&sparx5->tx_lock);/* Do switch core reset if available */ reset =devm_reset_control_get_optional_shared (&pdev->dev,"switch" );
drivers/net/ethernet/microchip/sparx5/sparx5_main.h +1 -0
@@ -280,6 +280,7 @@ struct sparx5 {int xtr_irq;/* Frame DMA */ int fdma_irq; +spinlock_t tx_lock;/* lock for frame transmission */ struct sparx5_rx rx;struct sparx5_tx tx;/* PTP */
drivers/net/ethernet/microchip/sparx5/sparx5_packet.c +2 -0
@@ -244,10 +244,12 @@ netdev_tx_t sparx5_port_xmit_impl(struct sk_buff *skb, struct net_device *dev) }skb_tx_timestamp (skb); +spin_lock (&sparx5->tx_lock);if (sparx5->fdma_irq >0 ) ret =sparx5_fdma_xmit (sparx5, ifh, skb);else ret =sparx5_inject (sparx5, ifh, skb, dev); +spin_unlock (&sparx5->tx_lock);if (ret == -EBUSY ) goto busy;
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 317/334 phonet: take correct lock to peek at the RX queue
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Rémi Denis-Courmont <[email protected]>
[ Upstream commit 3b2d9bc4d4acdf15a876eae2c0d83149250e85ba ]
The receive queue is protected by its embedded spin-lock, not the socket lock, so we need the former lock here (and only that one).
--- net/phonet/datagram.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/phonet/datagram.c +2 -2
@@ -34,10 +34,10 @@ static int pn_ioctl(struct sock *sk, int cmd, int *karg)switch (cmd) {case SIOCINQ : -lock_sock (sk); +spin_lock_bh (&sk->sk_receive_queue.lock); skb =skb_peek (&sk->sk_receive_queue); *karg = skb ? skb->len :0 ; -release_sock (sk); +spin_unlock_bh (&sk->sk_receive_queue.lock);return 0 ;case SIOCPNADDRESOURCE :
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 318/334 phonet/pep: fix racy skb_queue_empty() use
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Rémi Denis-Courmont <[email protected]>
[ Upstream commit 7d2a894d7f487dcb894df023e9d3014cf5b93fe5 ]
The receive queues are protected by their respective spin-lock, not the socket lock. This could lead to skb_peek() unexpectedly returning NULL or a pointer to an already dequeued socket buffer.
--- net/phonet/pep.c | 41 ++++++++++++++++++++++++++++++++--------- 1 file changed, 32 insertions(+), 9 deletions(-)
net/phonet/pep.c +32 -9
@@ -917,6 +917,37 @@ static int pep_sock_enable(struct sock *sk, struct sockaddr *addr, int len)return 0 ; } +static unsigned int pep_first_packet_length (struct sock *sk) +{ +struct pep_sock *pn =pep_sk (sk); +struct sk_buff_head *q; +struct sk_buff *skb; +unsigned int len =0 ; +bool found = false; + +if (sock_flag (sk,SOCK_URGINLINE )) { + q = &pn->ctrlreq_queue; +spin_lock_bh (&q->lock); + skb =skb_peek (q); +if (skb) { + len = skb->len; + found = true; + } +spin_unlock_bh (&q->lock); + } + +if (likely (!found)) { + q = &sk->sk_receive_queue; +spin_lock_bh (&q->lock); + skb =skb_peek (q); +if (skb) + len = skb->len; +spin_unlock_bh (&q->lock); + } + +return len; +} +static int pep_ioctl (struct sock *sk,int cmd,int *karg) {struct pep_sock *pn =pep_sk (sk);
@@ -929,15 +960,7 @@ static int pep_ioctl(struct sock *sk, int cmd, int *karg)break ; } -lock_sock (sk); -if (sock_flag (sk,SOCK_URGINLINE ) && - !skb_queue_empty (&pn->ctrlreq_queue)) - *karg =skb_peek (&pn->ctrlreq_queue)->len; -else if (!skb_queue_empty (&sk->sk_receive_queue)) - *karg =skb_peek (&sk->sk_receive_queue)->len; -else - *karg =0 ; -release_sock (sk); + *karg =pep_first_packet_length (sk); ret =0 ;break ;
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 319/334 Fix write to cloned skb in ipv6_hop_ioam()
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Justin Iurman <[email protected]>
[ Upstream commit f198d933c2e4f8f89e0620fbaf1ea7eac384a0eb ]
ioam6_fill_trace_data() writes inside the skb payload without ensuring it's writeable (e.g., not cloned). This function is called both from the input and output path. The output path (ioam6_iptunnel) already does the check. This commit provides a fix for the input path, inside ipv6_hop_ioam(). It also updates ip6_parse_tlv() to refresh the network header pointer ("nh") when returning from ipv6_hop_ioam().
--- net/ipv6/exthdrs.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
net/ipv6/exthdrs.c +10 -0
@@ -177,6 +177,8 @@ static bool ip6_parse_tlv(bool hopbyhop,case IPV6_TLV_IOAM :if (!ipv6_hop_ioam (skb, off))return false; + + nh =skb_network_header (skb);break ;case IPV6_TLV_JUMBO :if (!ipv6_hop_jumbo (skb, off))
@@ -943,6 +945,14 @@ static bool ipv6_hop_ioam(struct sk_buff *skb, int optoff)if (!skb_valid_dst (skb))ip6_route_input (skb); +/* About to mangle packet header */ +if (skb_ensure_writable (skb, optoff +2 + hdr->opt_len)) + goto drop; + +/* Trace pointer may have changed */ + trace = (struct ioam6_trace_hdr *)(skb_network_header (skb) + + optoff +sizeof (*hdr)); +ioam6_fill_trace_data (skb, ns, trace, true);break ;default :
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 320/334 net: phy: realtek: Fix rtl8211f_config_init() for RTL8211F(D)(I)-VD-CG PHY
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Siddharth Vadapalli <[email protected]>
[ Upstream commit 3489182b11d35f1944c1245fc9c4867cf622c50f ]
Commit bb726b753f75 ("net: phy: realtek: add support for RTL8211F(D)(I)-VD-CG") extended support of the driver from the existing support for RTL8211F(D)(I)-CG PHY to the newer RTL8211F(D)(I)-VD-CG PHY.
While that commit indicated that the RTL8211F_PHYCR2 register is not supported by the "VD-CG" PHY model and therefore updated the corresponding section in rtl8211f_config_init() to be invoked conditionally, the call to "genphy_soft_reset()" was left as-is, when it should have also been invoked conditionally. This is because the call to "genphy_soft_reset()" was first introduced by the commit 0a4355c2b7f8 ("net: phy: realtek: add dt property to disable CLKOUT clock") since the RTL8211F guide indicates that a PHY reset should be issued after setting bits in the PHYCR2 register.
As the PHYCR2 register is not applicable to the "VD-CG" PHY model, fix the rtl8211f_config_init() function by invoking "genphy_soft_reset()" conditionally based on the presence of the "PHYCR2" register.
--- drivers/net/phy/realtek.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/phy/realtek.c +3 -1
@@ -421,9 +421,11 @@ static int rtl8211f_config_init(struct phy_device *phydev) ERR_PTR(ret));return ret; } + +return genphy_soft_reset (phydev); } -return genphy_soft_reset (phydev); +return 0 ; }static int rtl821x_suspend (struct phy_device *phydev)
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 321/334 drm/syncobj: call drm_syncobj_fence_add_wait when WAIT_AVAILABLE flag is set
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Erik Kurzinger <[email protected]>
[ Upstream commit 3c43177ffb54ea5be97505eb8e2690e99ac96bc9 ]
When waiting for a syncobj timeline point whose fence has not yet been submitted with the WAIT_FOR_SUBMIT flag, a callback is registered using drm_syncobj_fence_add_wait and the thread is put to sleep until the timeout expires. If the fence is submitted before then, drm_syncobj_add_point will wake up the sleeping thread immediately which will proceed to wait for the fence to be signaled.
However, if the WAIT_AVAILABLE flag is used instead, drm_syncobj_fence_add_wait won't get called, meaning the waiting thread will always sleep for the full timeout duration, even if the fence gets submitted earlier. If it turns out that the fence *has* been submitted by the time it eventually wakes up, it will still indicate to userspace that the wait completed successfully (it won't return -ETIME), but it will have taken much longer than it should have.
To fix this, we must call drm_syncobj_fence_add_wait if *either* the WAIT_FOR_SUBMIT flag or the WAIT_AVAILABLE flag is set. The only difference being that with WAIT_FOR_SUBMIT we will also wait for the fence to be signaled after it has been submitted while with WAIT_AVAILABLE we will return immediately.
IGT test patch: https://lists.freedesktop.org/archives/igt-dev/2024-January/067537.html
v1 -> v2: adjust lockdep_assert_none_held_once condition
(cherry picked from commit 8c44ea81634a4a337df70a32621a5f3791be23df)
--- drivers/gpu/drm/drm_syncobj.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/drm_syncobj.c +4 -2
@@ -1034,7 +1034,8 @@ static signed long drm_syncobj_array_wait_timeout(struct drm_syncobj **syncobjs,uint64_t *points;uint32_t signaled_count, i; -if (flags &DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT ) +if (flags & (DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT | +DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE ))lockdep_assert_none_held_once (); points =kmalloc_array (count,sizeof (*points),GFP_KERNEL );
@@ -1103,7 +1104,8 @@ static signed long drm_syncobj_array_wait_timeout(struct drm_syncobj **syncobjs,* fallthough and try a 0 timeout wait! */ -if (flags &DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT ) { +if (flags & (DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT | +DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE )) {for (i =0 ; i < count; ++i)drm_syncobj_fence_add_wait (syncobjs[i], &entries[i]); }
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 322/334 iommu: Add mm_get_enqcmd_pasid() helper function
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tina Zhang <[email protected]>
[ Upstream commit 2396046d75d3c0b2cfead852a77efd023f8539dc ]
mm_get_enqcmd_pasid() should be used by architecture code and closely related to learn the PASID value that the x86 ENQCMD operation should use for the mm.
For the moment SMMUv3 uses this without any connection to ENQCMD, it will be cleaned up similar to how the prior patch made VT-d use the PASID argument of set_dev_pasid().
The motivation is to replace mm->pasid with an iommu private data structure that is introduced in a later patch.
Stable-dep-of: b5bf7778b722 ("iommu/arm-smmu-v3: Do not use GFP_KERNEL under as spinlock")
--- arch/x86/kernel/traps.c | 2 +- .../iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c | 23 ++++++++++++------- drivers/iommu/iommu-sva.c | 2 +- include/linux/iommu.h | 12 ++++++++++ 4 files changed, 29 insertions(+), 10 deletions(-)
arch/x86/kernel/traps.c +1 -1
@@ -591,7 +591,7 @@ static bool try_fixup_enqcmd_gp(void)if (!mm_valid_pasid (current->mm))return false; - pasid = current->mm->pasid; + pasid =mm_get_enqcmd_pasid (current->mm);/* * Did this thread already have its PASID activated?
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c +15 -8
@@ -246,7 +246,8 @@ static void arm_smmu_mm_arch_invalidate_secondary_tlbs(struct mmu_notifier *mn, smmu_domain); } -arm_smmu_atc_inv_domain (smmu_domain, mm->pasid, start, size); +arm_smmu_atc_inv_domain (smmu_domain,mm_get_enqcmd_pasid (mm), start, + size); }static void arm_smmu_mm_release (struct mmu_notifier *mn,struct mm_struct *mm)
@@ -264,10 +265,11 @@ static void arm_smmu_mm_release(struct mmu_notifier *mn, struct mm_struct *mm)* DMA may still be running. Keep the cd valid to avoid C_BAD_CD events, * but disable translation. */ -arm_smmu_update_ctx_desc_devices (smmu_domain, mm->pasid, &quiet_cd); +arm_smmu_update_ctx_desc_devices (smmu_domain,mm_get_enqcmd_pasid (mm), + &quiet_cd);arm_smmu_tlb_inv_asid (smmu_domain->smmu, smmu_mn->cd->asid); -arm_smmu_atc_inv_domain (smmu_domain, mm->pasid,0 ,0 ); +arm_smmu_atc_inv_domain (smmu_domain,mm_get_enqcmd_pasid (mm),0 ,0 ); smmu_mn->cleared = true;mutex_unlock (&sva_lock);
@@ -325,10 +327,13 @@ arm_smmu_mmu_notifier_get(struct arm_smmu_domain *smmu_domain,spin_lock_irqsave (&smmu_domain->devices_lock, flags);list_for_each_entry (master, &smmu_domain->devices, domain_head) { - ret =arm_smmu_write_ctx_desc (master, mm->pasid, cd); + ret =arm_smmu_write_ctx_desc (master,mm_get_enqcmd_pasid (mm), + cd);if (ret) { -list_for_each_entry_from_reverse (master, &smmu_domain->devices, domain_head) -arm_smmu_write_ctx_desc (master, mm->pasid,NULL ); +list_for_each_entry_from_reverse ( + master, &smmu_domain->devices, domain_head) +arm_smmu_write_ctx_desc ( + master,mm_get_enqcmd_pasid (mm),NULL );break ; } }
@@ -358,7 +363,8 @@ static void arm_smmu_mmu_notifier_put(struct arm_smmu_mmu_notifier *smmu_mn)list_del (&smmu_mn->list); -arm_smmu_update_ctx_desc_devices (smmu_domain, mm->pasid,NULL ); +arm_smmu_update_ctx_desc_devices (smmu_domain,mm_get_enqcmd_pasid (mm), +NULL );/* * If we went through clear(), we've already invalidated, and no
@@ -366,7 +372,8 @@ static void arm_smmu_mmu_notifier_put(struct arm_smmu_mmu_notifier *smmu_mn)*/ if (!smmu_mn->cleared) {arm_smmu_tlb_inv_asid (smmu_domain->smmu, cd->asid); -arm_smmu_atc_inv_domain (smmu_domain, mm->pasid,0 ,0 ); +arm_smmu_atc_inv_domain (smmu_domain,mm_get_enqcmd_pasid (mm),0 , +0 ); }/* Frees smmu_mn */
drivers/iommu/iommu-sva.c +1 -1
@@ -141,7 +141,7 @@ u32 iommu_sva_get_pasid(struct iommu_sva *handle) {struct iommu_domain *domain = handle->domain; -return domain->mm->pasid; +return mm_get_enqcmd_pasid (domain->mm); }EXPORT_SYMBOL_GPL (iommu_sva_get_pasid);
include/linux/iommu.h +12 -0
@@ -1346,6 +1346,12 @@ static inline bool mm_valid_pasid(struct mm_struct *mm) {return mm->pasid !=IOMMU_PASID_INVALID ; } + +static inline u32 mm_get_enqcmd_pasid (struct mm_struct *mm) +{ +return mm->pasid; +} +void mm_pasid_drop (struct mm_struct *mm);struct iommu_sva *iommu_sva_bind_device (struct device *dev,struct mm_struct *mm);
@@ -1368,6 +1374,12 @@ static inline u32 iommu_sva_get_pasid(struct iommu_sva *handle) }static inline void mm_pasid_init (struct mm_struct *mm) {}static inline bool mm_valid_pasid (struct mm_struct *mm) {return false; } + +static inline u32 mm_get_enqcmd_pasid (struct mm_struct *mm) +{ +return IOMMU_PASID_INVALID ; +} +static inline void mm_pasid_drop (struct mm_struct *mm) {}#endif /* CONFIG_IOMMU_SVA */
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 323/334 iommu/arm-smmu-v3: Do not use GFP_KERNEL under as spinlock
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jason Gunthorpe <[email protected]>
[ Upstream commit b5bf7778b722105d7a04b1d51e884497b542638b ]
If the SMMU is configured to use a two level CD table then arm_smmu_write_ctx_desc() allocates a CD table leaf internally using GFP_KERNEL. Due to recent changes this is being done under a spinlock to iterate over the device list - thus it will trigger a sleeping while atomic warning:
arm_smmu_sva_set_dev_pasid()
mutex_lock(&sva_lock);
__arm_smmu_sva_bind()
arm_smmu_mmu_notifier_get()
spin_lock_irqsave()
arm_smmu_write_ctx_desc()
arm_smmu_get_cd_ptr()
arm_smmu_alloc_cd_leaf_table()
dmam_alloc_coherent(GFP_KERNEL)This is a 64K high order allocation and really should not be done atomically.
At the moment the rework of the SVA to follow the new API is half finished. Recently the CD table memory was moved from the domain to the master, however we have the confusing situation where the SVA code is wrongly using the RID domains device's list to track which CD tables the SVA is installed in.
Remove the logic to replicate the CD across all the domain's masters during attach. We know which master and which CD table the PASID should be installed in.
Right now SVA only works when dma-iommu.c is in control of the RID translation, which means we have a single iommu_domain shared across the entire group and that iommu_domain is not shared outside the group.
Critically this means that the iommu_group->devices list and RID's smmu_domain->devices list describe the same set of masters.
For PCI cases the core code also insists on singleton groups so there is only one entry in the smmu_domain->devices list that is equal to the master being passed in to arm_smmu_sva_set_dev_pasid().
Only non-PCI cases may have multi-device groups. However, the core code will repeat the calls to arm_smmu_sva_set_dev_pasid() across the entire iommu_group->devices list.
Instead of having arm_smmu_mmu_notifier_get() indirectly loop over all the devices in the group via the RID's smmu_domain, rely on __arm_smmu_sva_bind() to be called for each device in the group and install the repeated CD entry that way.
This avoids taking the spinlock to access the devices list and permits the arm_smmu_write_ctx_desc() to use a sleeping allocation. Leave the arm_smmu_mm_release() as a confusing situation, this requires tracking attached masters inside the SVA domain.
Removing the loop allows arm_smmu_write_ctx_desc() to be called outside the spinlock and thus is safe to use GFP_KERNEL.
Move the clearing of the CD into arm_smmu_sva_remove_dev_pasid() so that arm_smmu_mmu_notifier_get/put() remain paired functions.
--- .../iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c | 38 ++++++------------- 1 file changed, 12 insertions(+), 26 deletions(-)
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c +12 -26
@@ -292,10 +292,8 @@ arm_smmu_mmu_notifier_get(struct arm_smmu_domain *smmu_domain, struct mm_struct *mm) {int ret; -unsigned long flags;struct arm_smmu_ctx_desc *cd;struct arm_smmu_mmu_notifier *smmu_mn; -struct arm_smmu_master *master;list_for_each_entry (smmu_mn, &smmu_domain->mmu_notifiers, list) {if (smmu_mn->mn.mm == mm) {
@@ -325,28 +323,9 @@ arm_smmu_mmu_notifier_get(struct arm_smmu_domain *smmu_domain, goto err_free_cd; } -spin_lock_irqsave (&smmu_domain->devices_lock, flags); -list_for_each_entry (master, &smmu_domain->devices, domain_head) { - ret =arm_smmu_write_ctx_desc (master,mm_get_enqcmd_pasid (mm), - cd); -if (ret) { -list_for_each_entry_from_reverse ( - master, &smmu_domain->devices, domain_head) -arm_smmu_write_ctx_desc ( - master,mm_get_enqcmd_pasid (mm),NULL ); -break ; - } - } -spin_unlock_irqrestore (&smmu_domain->devices_lock, flags); -if (ret) - goto err_put_notifier; -list_add (&smmu_mn->list, &smmu_domain->mmu_notifiers);return smmu_mn; -err_put_notifier: -/* Frees smmu_mn */ -mmu_notifier_put (&smmu_mn->mn); err_free_cd:arm_smmu_free_shared_cd (cd);return ERR_PTR (ret);
@@ -363,9 +342,6 @@ static void arm_smmu_mmu_notifier_put(struct arm_smmu_mmu_notifier *smmu_mn)list_del (&smmu_mn->list); -arm_smmu_update_ctx_desc_devices (smmu_domain,mm_get_enqcmd_pasid (mm), -NULL ); -/* * If we went through clear(), we've already invalidated, and no * new TLB entry can have been formed.
@@ -381,7 +357,8 @@ static void arm_smmu_mmu_notifier_put(struct arm_smmu_mmu_notifier *smmu_mn)arm_smmu_free_shared_cd (cd); } -static int __arm_smmu_sva_bind (struct device *dev,struct mm_struct *mm) +static int __arm_smmu_sva_bind (struct device *dev,ioasid_t pasid, +struct mm_struct *mm) {int ret;struct arm_smmu_bond *bond;
@@ -404,9 +381,15 @@ static int __arm_smmu_sva_bind(struct device *dev, struct mm_struct *mm) goto err_free_bond; } + ret =arm_smmu_write_ctx_desc (master, pasid, bond->smmu_mn->cd); +if (ret) + goto err_put_notifier; +list_add (&bond->list, &master->bonds);return 0 ; +err_put_notifier: +arm_smmu_mmu_notifier_put (bond->smmu_mn); err_free_bond:kfree (bond);return ret;
@@ -568,6 +551,9 @@ void arm_smmu_sva_remove_dev_pasid(struct iommu_domain *domain,struct arm_smmu_master *master =dev_iommu_priv_get (dev);mutex_lock (&sva_lock); + +arm_smmu_write_ctx_desc (master, id,NULL ); +list_for_each_entry (t, &master->bonds, list) {if (t->mm == mm) { bond = t;
@@ -590,7 +576,7 @@ static int arm_smmu_sva_set_dev_pasid(struct iommu_domain *domain,struct mm_struct *mm = domain->mm;mutex_lock (&sva_lock); - ret =__arm_smmu_sva_bind (dev, mm); + ret =__arm_smmu_sva_bind (dev, id, mm);mutex_unlock (&sva_lock);return ret;
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 324/334 drm/syncobj: handle NULL fence in syncobj_eventfd_entry_func
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Erik Kurzinger <[email protected]>
[ Upstream commit 2aa6f5b0fd052e363bb9d4b547189f0bf6b3d6d3 ]
During syncobj_eventfd_entry_func, dma_fence_chain_find_seqno may set the fence to NULL if the given seqno is signaled and a later seqno has already been submitted. In that case, the eventfd should be signaled immediately which currently does not happen.
This is a similar issue to the one addressed by commit b19926d4f3a6 ("drm/syncobj: Deal with signalled fences in drm_syncobj_find_fence.").
As a fix, if the return value of dma_fence_chain_find_seqno indicates success but it sets the fence to NULL, we will assign a stub fence to ensure the following code still signals the eventfd.
v1 -> v2: assign a stub fence instead of signaling the eventfd
--- drivers/gpu/drm/drm_syncobj.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_syncobj.c +12 -1
@@ -1380,10 +1380,21 @@ syncobj_eventfd_entry_func(struct drm_syncobj *syncobj,/* This happens inside the syncobj lock */ fence =dma_fence_get (rcu_dereference_protected (syncobj->fence,1 )); +if (!fence) +return ; + ret =dma_fence_chain_find_seqno (&fence, entry->point); -if (ret !=0 || !fence) { +if (ret !=0 ) { +/* The given seqno has not been submitted yet. */ dma_fence_put (fence);return ; + }else if (!fence) { +/* If dma_fence_chain_find_seqno returns 0 but sets the fence +* to NULL, it implies that the given seqno is signaled and a +* later seqno has already been submitted. Assign a stub fence +* so that the eventfd still gets signaled below. +*/ + fence =dma_fence_get_stub (); }list_del_init (&entry->node);
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 325/334 selftests/iommu: fix the config fragment
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Muhammad Usama Anjum <[email protected]>
[ Upstream commit 510325e5ac5f45c1180189d3bfc108c54bf64544 ]
The config fragment doesn't follow the correct format to enable those config options which make the config options getting missed while merging with other configs.
➜ merge_config.sh -m .config tools/testing/selftests/iommu/config Using .config as base
Merging tools/testing/selftests/iommu/config
➜ make olddefconfig
.config:5295:warning: unexpected data: CONFIG_IOMMUFD .config:5296:warning: unexpected data: CONFIG_IOMMUFD_TEST
While at it, add CONFIG_FAULT_INJECTION as well which is needed for CONFIG_IOMMUFD_TEST. If CONFIG_FAULT_INJECTION isn't present in base config (such as x86 defconfig), CONFIG_IOMMUFD_TEST doesn't get enabled.
--- tools/testing/selftests/iommu/config | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
tools/testing/selftests/iommu/config +3 -2
@@ -1,2 +1,3 @@ -CONFIG_IOMMUFD -CONFIG_IOMMUFD_TEST +CONFIG_IOMMUFD=y +CONFIG_FAULT_INJECTION=y +CONFIG_IOMMUFD_TEST=y
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 326/334 drm/amd/display: Fix potential null pointer dereference in dc_dmub_srv
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Srinivasan Shanmugam <[email protected]>
[ Upstream commit d2b48f340d9e4a8fbeb1cdc84cd8da6ad143a907 ]
Fixes potential null pointer dereference warnings in the dc_dmub_srv_cmd_list_queue_execute() and dc_dmub_srv_is_hw_pwr_up() functions.
In both functions, the 'dc_dmub_srv' variable was being dereferenced before it was checked for null. This could lead to a null pointer dereference if 'dc_dmub_srv' is null. The fix is to check if 'dc_dmub_srv' is null before dereferencing it.
Thus moving the null checks for 'dc_dmub_srv' to the beginning of the functions to ensure that 'dc_dmub_srv' is not null when it is dereferenced.
Found by smatch & thus fixing the below:drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.c:133 dc_dmub_srv_cmd_list_queue_execute() warn: variable dereferenced before check 'dc_dmub_srv' (see line 128) drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.c:1167 dc_dmub_srv_is_hw_pwr_up() warn: variable dereferenced before check 'dc_dmub_srv' (see line 1164)
--- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c +5 -2
@@ -124,7 +124,7 @@ bool dc_dmub_srv_cmd_list_queue_execute(struct dc_dmub_srv *dc_dmub_srv,unsigned int count, union dmub_rb_cmd *cmd_list) { - struct dc_context *dc_ctx = dc_dmub_srv->ctx; + struct dc_context *dc_ctx;struct dmub_srv *dmub;enum dmub_status status;int i;
@@ -132,6 +132,7 @@ bool dc_dmub_srv_cmd_list_queue_execute(struct dc_dmub_srv *dc_dmub_srv,if (!dc_dmub_srv || !dc_dmub_srv->dmub)return false; + dc_ctx = dc_dmub_srv->ctx; dmub = dc_dmub_srv->dmub;for (i =0 ; i < count; i++) {
@@ -1129,7 +1130,7 @@ void dc_dmub_srv_subvp_save_surf_addr(const struct dc_dmub_srv *dc_dmub_srv, conbool dc_dmub_srv_is_hw_pwr_up (struct dc_dmub_srv *dc_dmub_srv,bool wait) { -struct dc_context *dc_ctx = dc_dmub_srv->ctx; +struct dc_context *dc_ctx;enum dmub_status status;if (!dc_dmub_srv || !dc_dmub_srv->dmub)
@@ -1138,6 +1139,8 @@ bool dc_dmub_srv_is_hw_pwr_up(struct dc_dmub_srv *dc_dmub_srv, bool wait)if (dc_dmub_srv->ctx->dc->debug.dmcub_emulation)return true; + dc_ctx = dc_dmub_srv->ctx; +if (wait) { status =dmub_srv_wait_for_hw_pwr_up (dc_dmub_srv->dmub,500000 );if (status !=DMUB_STATUS_OK ) {
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 327/334 drm/amd/display: Fix memory leak in dm_sw_fini()
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Armin Wolf <[email protected]>
[ Upstream commit bae67893578d608e35691dcdfa90c4957debf1d3 ]
After destroying dmub_srv, the memory associated with it is not freed, causing a memory leak:
unreferenced object 0xffff896302b45800 (size 1024):
comm "(udev-worker)", pid 222, jiffies 4294894636 hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace (crc 6265fd77):
[<ffffffff993495ed>] kmalloc_trace+0x29d/0x340
[<ffffffffc0ea4a94>] dm_dmub_sw_init+0xb4/0x450 [amdgpu]
[<ffffffffc0ea4e55>] dm_sw_init+0x15/0x2b0 [amdgpu]
[<ffffffffc0ba8557>] amdgpu_device_init+0x1417/0x24e0 [amdgpu]
[<ffffffffc0bab285>] amdgpu_driver_load_kms+0x15/0x190 [amdgpu]
[<ffffffffc0ba09c7>] amdgpu_pci_probe+0x187/0x4e0 [amdgpu]
[<ffffffff9968fd1e>] local_pci_probe+0x3e/0x90
[<ffffffff996918a3>] pci_device_probe+0xc3/0x230
[<ffffffff99805872>] really_probe+0xe2/0x480
[<ffffffff99805c98>] __driver_probe_device+0x78/0x160
[<ffffffff99805daf>] driver_probe_device+0x1f/0x90
[<ffffffff9980601e>] __driver_attach+0xce/0x1c0
[<ffffffff99803170>] bus_for_each_dev+0x70/0xc0
[<ffffffff99804822>] bus_add_driver+0x112/0x210
[<ffffffff99807245>] driver_register+0x55/0x100
[<ffffffff990012d1>] do_one_initcall+0x41/0x300Fix this by freeing dmub_srv after destroying it.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -0
@@ -2245,6 +2245,7 @@ static int dm_sw_fini(void *handle)if (adev->dm.dmub_srv) {dmub_srv_destroy (adev->dm.dmub_srv); +kfree (adev->dm.dmub_srv); adev->dm.dmub_srv =NULL ; }
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 328/334 drm/amd/display: fix null-pointer dereference on edid reading
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Melissa Wen <[email protected]>
[ Upstream commit 9671761792156f2339627918bafcd713a8a6f777 ]
Use i2c adapter when there isn't aux_mode in dc_link to fix a null-pointer derefence that happens when running igt@kms_force_connector_basic in a system with DCN2.1 and HDMI connector detected as below:
[ +0.178146] BUG: kernel NULL pointer dereference, address: 00000000000004c0 [ +0.000010] #PF: supervisor read access in kernel mode [ +0.000005] #PF: error_code(0x0000) - not-present page [ +0.000004] PGD 0 P4D 0 [ +0.000006] Oops: 0000 [#1] PREEMPT SMP NOPTI [ +0.000006] CPU: 15 PID: 2368 Comm: kms_force_conne Not tainted 6.5.0-asdn+ #152 [ +0.000005] Hardware name: HP HP ENVY x360 Convertible 13-ay1xxx/8929, BIOS F.01 07/14/2021 [ +0.000004] RIP: 0010:i2c_transfer+0xd/0x100 [ +0.000011] Code: ea fc ff ff 66 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 0f 1f 44 00 00 41 54 55 53 <48> 8b 47 10 48 89 fb 48 83 38 00 0f 84 b3 00 00 00 83 3d 2f 80 16 [ +0.000004] RSP: 0018:ffff9c4f89c0fad0 EFLAGS: 00010246 [ +0.000005] RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000000080 [ +0.000003] RDX: 0000000000000002 RSI: ffff9c4f89c0fb20 RDI: 00000000000004b0 [ +0.000003] RBP: ffff9c4f89c0fb80 R08: 0000000000000080 R09: ffff8d8e0b15b980 [ +0.000003] R10: 00000000000380e0 R11: 0000000000000000 R12: 0000000000000080 [ +0.000002] R13: 0000000000000002 R14: ffff9c4f89c0fb0e R15: ffff9c4f89c0fb0f [ +0.000004] FS: 00007f9ad2176c40(0000) GS:ffff8d90fe9c0000(0000) knlGS:0000000000000000 [ +0.000003] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ +0.000004] CR2: 00000000000004c0 CR3: 0000000121bc4000 CR4: 0000000000750ee0 [ +0.000003] PKRU: 55555554 [ +0.000003] Call Trace: [ +0.000006] <TASK> [ +0.000006] ? __die+0x23/0x70 [ +0.000011] ? page_fault_oops+0x17d/0x4c0 [ +0.000008] ? preempt_count_add+0x6e/0xa0 [ +0.000008] ? srso_alias_return_thunk+0x5/0x7f [ +0.000011] ? exc_page_fault+0x7f/0x180 [ +0.000009] ? asm_exc_page_fault+0x26/0x30 [ +0.000013] ? i2c_transfer+0xd/0x100 [ +0.000010] drm_do_probe_ddc_edid+0xc2/0x140 [drm] [ +0.000067] ? srso_alias_return_thunk+0x5/0x7f [ +0.000006] ? _drm_do_get_edid+0x97/0x3c0 [drm] [ +0.000043] ? __pfx_drm_do_probe_ddc_edid+0x10/0x10 [drm] [ +0.000042] edid_block_read+0x3b/0xd0 [drm] [ +0.000043] _drm_do_get_edid+0xb6/0x3c0 [drm] [ +0.000041] ? __pfx_drm_do_probe_ddc_edid+0x10/0x10 [drm] [ +0.000043] drm_edid_read_custom+0x37/0xd0 [drm] [ +0.000044] amdgpu_dm_connector_mode_valid+0x129/0x1d0 [amdgpu] [ +0.000153] drm_connector_mode_valid+0x3b/0x60 [drm_kms_helper] [ +0.000000] __drm_helper_update_and_validate+0xfe/0x3c0 [drm_kms_helper] [ +0.000000] ? amdgpu_dm_connector_get_modes+0xb6/0x520 [amdgpu] [ +0.000000] ? srso_alias_return_thunk+0x5/0x7f [ +0.000000] drm_helper_probe_single_connector_modes+0x2ab/0x540 [drm_kms_helper] [ +0.000000] status_store+0xb2/0x1f0 [drm] [ +0.000000] kernfs_fop_write_iter+0x136/0x1d0 [ +0.000000] vfs_write+0x24d/0x440 [ +0.000000] ksys_write+0x6f/0xf0 [ +0.000000] do_syscall_64+0x60/0xc0 [ +0.000000] ? srso_alias_return_thunk+0x5/0x7f [ +0.000000] ? syscall_exit_to_user_mode+0x2b/0x40 [ +0.000000] ? srso_alias_return_thunk+0x5/0x7f [ +0.000000] ? do_syscall_64+0x6c/0xc0 [ +0.000000] ? do_syscall_64+0x6c/0xc0 [ +0.000000] entry_SYSCALL_64_after_hwframe+0x6e/0xd8 [ +0.000000] RIP: 0033:0x7f9ad46b4b00 [ +0.000000] Code: 40 00 48 8b 15 19 b3 0d 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d e1 3a 0e 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89 [ +0.000000] RSP: 002b:00007ffcbd3bd6d8 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ +0.000000] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9ad46b4b00 [ +0.000000] RDX: 0000000000000002 RSI: 00007f9ad48a7417 RDI: 0000000000000009 [ +0.000000] RBP: 0000000000000002 R08: 0000000000000064 R09: 0000000000000000 [ +0.000000] R10: 0000000000000000 R11: 0000000000000202 R12: 00007f9ad48a7417 [ +0.000000] R13: 0000000000000009 R14: 00007ffcbd3bd760 R15: 0000000000000001 [ +0.000000] </TASK> [ +0.000000] Modules linked in: ctr ccm rfcomm snd_seq_dummy snd_hrtimer snd_seq snd_seq_device cmac algif_hash algif_skcipher af_alg bnep btusb btrtl btbcm btintel btmtk bluetooth uvcvideo videobuf2_vmalloc sha3_generic videobuf2_memops uvc jitterentropy_rng videobuf2_v4l2 videodev drbg videobuf2_common ansi_cprng mc ecdh_generic ecc qrtr binfmt_misc hid_sensor_accel_3d hid_sensor_magn_3d hid_sensor_gyro_3d hid_sensor_trigger industrialio_triggered_buffer kfifo_buf industrialio snd_ctl_led joydev hid_sensor_iio_common rtw89_8852ae rtw89_8852a rtw89_pci snd_hda_codec_realtek rtw89_core snd_hda_codec_generic intel_rapl_msr ledtrig_audio intel_rapl_common snd_hda_codec_hdmi mac80211 snd_hda_intel snd_intel_dspcfg kvm_amd snd_hda_codec snd_soc_dmic snd_acp3x_rn snd_acp3x_pdm_dma libarc4 snd_hwdep snd_soc_core kvm snd_hda_core cfg80211 snd_pci_acp6x snd_pcm nls_ascii snd_timer hp_wmi snd_pci_acp5x nls_cp437 snd_rn_pci_acp3x ucsi_acpi sparse_keymap ccp snd platform_profile snd_acp_config typec_ucsi irqbypass vfat sp5100_tco [ +0.000000] snd_soc_acpi fat rapl pcspkr wmi_bmof roles rfkill rng_core snd_pci_acp3x soundcore k10temp watchdog typec battery ac amd_pmc acpi_tad button hid_sensor_hub hid_multitouch evdev serio_raw msr parport_pc ppdev lp parport fuse loop efi_pstore configfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 btrfs blake2b_generic dm_crypt dm_mod efivarfs raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx libcrc32c crc32c_generic xor raid6_pq raid1 raid0 multipath linear md_mod amdgpu amdxcp i2c_algo_bit drm_ttm_helper ttm crc32_pclmul crc32c_intel drm_exec gpu_sched drm_suballoc_helper nvme ghash_clmulni_intel drm_buddy drm_display_helper sha512_ssse3 nvme_core ahci xhci_pci sha512_generic hid_generic xhci_hcd libahci rtsx_pci_sdmmc t10_pi i2c_hid_acpi drm_kms_helper i2c_hid mmc_core libata aesni_intel crc64_rocksoft_generic crypto_simd amd_sfh crc64_rocksoft scsi_mod usbcore cryptd crc_t10dif cec drm crct10dif_generic hid rtsx_pci crct10dif_pclmul scsi_common rc_core crc64 i2c_piix4 [ +0.000000] usb_common crct10dif_common video wmi [ +0.000000] CR2: 00000000000004c0 [ +0.000000] ---[ end trace 0000000000000000 ]---
--- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +15 -4
@@ -6445,10 +6445,15 @@ amdgpu_dm_connector_late_register(struct drm_connector *connector)static void amdgpu_dm_connector_funcs_force (struct drm_connector *connector) {struct amdgpu_dm_connector *aconnector =to_amdgpu_dm_connector (connector); -struct amdgpu_connector *amdgpu_connector =to_amdgpu_connector (connector);struct dc_link *dc_link = aconnector->dc_link;struct dc_sink *dc_em_sink = aconnector->dc_em_sink;struct edid *edid; +struct i2c_adapter *ddc; + +if (dc_link->aux_mode) + ddc = &aconnector->dm_dp_aux.aux.ddc; +else + ddc = &aconnector->i2c->base;/* * Note: drm_get_edid gets edid in the following order:
@@ -6456,7 +6461,7 @@ static void amdgpu_dm_connector_funcs_force(struct drm_connector *connector)* 2) firmware EDID if set via edid_firmware module parameter * 3) regular DDC read. */ - edid =drm_get_edid (connector, &amdgpu_connector->ddc_bus->aux.ddc); + edid =drm_get_edid (connector, ddc);if (!edid) {DRM_ERROR ("No EDID found on connector: %s.\n" , connector->name);return ;
@@ -6497,12 +6502,18 @@ static int get_modes(struct drm_connector *connector)static void create_eml_sink (struct amdgpu_dm_connector *aconnector) {struct drm_connector *connector = &aconnector->base; -struct amdgpu_connector *amdgpu_connector =to_amdgpu_connector (&aconnector->base); +struct dc_link *dc_link = aconnector->dc_link;struct dc_sink_init_data init_params = { .link = aconnector->dc_link, .sink_signal =SIGNAL_TYPE_VIRTUAL };struct edid *edid; +struct i2c_adapter *ddc; + +if (dc_link->aux_mode) + ddc = &aconnector->dm_dp_aux.aux.ddc; +else + ddc = &aconnector->i2c->base;/* * Note: drm_get_edid gets edid in the following order:
@@ -6510,7 +6521,7 @@ static void create_eml_sink(struct amdgpu_dm_connector *aconnector)* 2) firmware EDID if set via edid_firmware module parameter * 3) regular DDC read. */ - edid =drm_get_edid (connector, &amdgpu_connector->ddc_bus->aux.ddc); + edid =drm_get_edid (connector, ddc);if (!edid) {DRM_ERROR ("No EDID found on connector: %s.\n" , connector->name);return ;
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 329/334 i2c: imx: when being a target, mark the last read as processed
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Corey Minyard <[email protected]>
[ Upstream commit 87aec499368d488c20292952d6d4be7cb9e49c5e ]
When being a target, NAK from the controller means that all bytes have been transferred. So, the last byte needs also to be marked as 'processed'. Otherwise index registers of backends may not increase.
--- drivers/i2c/busses/i2c-imx.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/i2c/busses/i2c-imx.c +5 -0
@@ -803,6 +803,11 @@ static irqreturn_t i2c_imx_slave_handle(struct imx_i2c_struct *i2c_imx, ctl &= ~I2CR_MTX ;imx_i2c_write_reg (ctl, i2c_imx,IMX_I2C_I2CR );imx_i2c_read_reg (i2c_imx,IMX_I2C_I2DR ); + +/* flag the last byte as processed */ +i2c_imx_slave_event (i2c_imx, +I2C_SLAVE_READ_PROCESSED , &value); +i2c_imx_slave_finish_op (i2c_imx);return IRQ_HANDLED ; }
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerPATCH 330/334 mm: zswap: fix missing folio cleanup in writeback race path
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yosry Ahmed <[email protected]>
commit e3b63e966cac0bf78aaa1efede1827a252815a1d upstream.
In zswap_writeback_entry(), after we get a folio from __read_swap_cache_async(), we grab the tree lock again to check that the swap entry was not invalidated and recycled. If it was, we delete the folio we just added to the swap cache and exit.
However, __read_swap_cache_async() returns the folio locked when it is newly allocated, which is always true for this path, and the folio is ref'd. Make sure to unlock and put the folio before returning.
This was discovered by code inspection, probably because this path handles a race condition that should not happen often, and the bug would not crash the system, it will only strand the folio indefinitely.
--- mm/zswap.c | 2 ++ 1 file changed, 2 insertions(+)
mm/zswap.c +2 -0
@@ -1105,6 +1105,8 @@ static int zswap_writeback_entry(structif (zswap_rb_search (&tree->rbroot,swp_offset (entry->swpentry)) != entry) {spin_unlock (&tree->lock);delete_from_swap_cache (page_folio (page)); +unlock_page (page); +put_page (page); ret = -ENOMEM ; goto fail; }
Greg Kroah-Hartman
maintainerPATCH 331/334 selftests: mptcp: join: stop transfer when check is done (part 1)
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Matthieu Baerts (NGI0) <[email protected]>
commit 31ee4ad86afd6ed6f4bb1b38c43011216080c42a upstream.
Since the "Fixes" commit mentioned below, "userspace pm" subtests of mptcp_join selftests introduced in v6.5 are launching the whole transfer in the background, do the required checks, then wait for the end of transfer.
There is no need to wait longer, especially because the checks at the end of the transfer are ignored (which is fine). This saves quite a few seconds in slow environments.
Note that old versions will need commit bdbef0a6ff10 ("selftests: mptcp:
add mptcp_lib_kill_wait") as well to get 'mptcp_lib_kill_wait()' helper.
--- tools/testing/selftests/net/mptcp/mptcp_join.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tools/testing/selftests/net/mptcp/mptcp_join.sh +2 -2
@@ -3433,7 +3433,7 @@ userspace_tests() chk_rm_nr 1 1 invert chk_mptcp_info subflows 0 subflows 0 kill_events_pids - wait $tests_pid + mptcp_lib_kill_wait $tests_pid fi # userspace pm create destroy subflow
@@ -3452,7 +3452,7 @@ userspace_tests() chk_rm_nr 1 1 chk_mptcp_info subflows 0 subflows 0 kill_events_pids - wait $tests_pid + mptcp_lib_kill_wait $tests_pid fi }
Greg Kroah-Hartman
maintainerPATCH 332/334 mm/zswap: invalidate duplicate entry when !zswap_enabled
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chengming Zhou <[email protected]>
commit 678e54d4bb9a4822f8ae99690ac131c5d490cdb1 upstream.
We have to invalidate any duplicate entry even when !zswap_enabled since zswap can be disabled anytime. If the folio store success before, then got dirtied again but zswap disabled, we won't invalidate the old duplicate entry in the zswap_store(). So later lru writeback may overwrite the new data in swapfile.
--- mm/zswap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
mm/zswap.c +4 -1
@@ -1222,7 +1222,7 @@ bool zswap_store(struct folio *folio)if (folio_test_large (folio))return false; -if (!zswap_enabled || !tree) +if (!tree)return false;/*
@@ -1238,6 +1238,9 @@ bool zswap_store(struct folio *folio) }spin_unlock (&tree->lock); +if (!zswap_enabled) +return false; +/* * XXX: zswap reclaim does not work with cgroups yet. Without a * cgroup-aware entry LRU, we will push out entries system-wide based on
Greg Kroah-Hartman
maintainerPATCH 333/334 selftests: mptcp: join: stop transfer when check is done (part 2)
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Matthieu Baerts (NGI0) <[email protected]>
commit 04b57c9e096a9479fe0ad31e3956e336fa589cb2 upstream.
Since the "Fixes" commits mentioned below, the newly added "userspace pm" subtests of mptcp_join selftests are launching the whole transfer in the background, do the required checks, then wait for the end of transfer.
There is no need to wait longer, especially because the checks at the end of the transfer are ignored (which is fine). This saves quite a few seconds on slow environments.
While at it, use 'mptcp_lib_kill_wait()' helper everywhere, instead of on a specific one with 'kill_tests_wait()'.
--- tools/testing/selftests/net/mptcp/mptcp_join.sh | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-)
tools/testing/selftests/net/mptcp/mptcp_join.sh +6 -11
@@ -688,13 +688,6 @@ kill_events_pids() mptcp_lib_kill_wait $evts_ns2_pid } -kill_tests_wait() -{ - #shellcheck disable=SC2046 - kill -SIGUSR1 $(ip netns pids $ns2) $(ip netns pids $ns1) - wait -} - pm_nl_set_limits() { local ns=$1
@@ -3466,7 +3459,8 @@ endpoint_tests() pm_nl_set_limits $ns2 2 2 pm_nl_add_endpoint $ns1 10.0.2.1 flags signal speed=slow \ - run_tests $ns1 $ns2 10.0.1.1 2>/dev/null & + run_tests $ns1 $ns2 10.0.1.1 & + local tests_pid=$! wait_mpj $ns1 pm_nl_check_endpoint "creation" \
@@ -3481,7 +3475,7 @@ endpoint_tests() pm_nl_add_endpoint $ns2 10.0.2.2 flags signal pm_nl_check_endpoint "modif is allowed" \ $ns2 10.0.2.2 id 1 flags signal - kill_tests_wait + mptcp_lib_kill_wait $tests_pid fi if reset "delete and re-add" &&
@@ -3490,7 +3484,8 @@ endpoint_tests() pm_nl_set_limits $ns2 1 1 pm_nl_add_endpoint $ns2 10.0.2.2 id 2 dev ns2eth2 flags subflow test_linkfail=4 speed=20 \ - run_tests $ns1 $ns2 10.0.1.1 2>/dev/null & + run_tests $ns1 $ns2 10.0.1.1 & + local tests_pid=$! wait_mpj $ns2 chk_subflow_nr "before delete" 2
@@ -3505,7 +3500,7 @@ endpoint_tests() wait_mpj $ns2 chk_subflow_nr "after re-add" 2 chk_mptcp_info subflows 1 subflows 1 - kill_tests_wait + mptcp_lib_kill_wait $tests_pid fi }
Greg Kroah-Hartman
maintainerPATCH 334/334 selftests: mptcp: add mptcp_lib_get_counter
In reply to Greg Kroah-Hartman6.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Geliang Tang <[email protected]>
commit 61c131f5d4d2b79904af2fdcb2839a9db8e7c55c upstream.
To avoid duplicated code in different MPTCP selftests, we can add and use helpers defined in mptcp_lib.sh.
The helper get_counter() in mptcp_join.sh and get_mib_counter() in mptcp_connect.sh have the same functionality, export get_counter() into mptcp_lib.sh and rename it as mptcp_lib_get_counter(). Use this new helper instead of get_counter() and get_mib_counter().
Use this helper in test_prio() in userspace_pm.sh too instead of open-coding.
--- tools/testing/selftests/net/mptcp/mptcp_connect.sh | 41 +++------ tools/testing/selftests/net/mptcp/mptcp_join.sh | 88 ++++++++------------- tools/testing/selftests/net/mptcp/mptcp_lib.sh | 16 +++ tools/testing/selftests/net/mptcp/userspace_pm.sh | 14 +-- 4 files changed, 73 insertions(+), 86 deletions(-)
tools/testing/selftests/net/mptcp/mptcp_connect.sh +13 -28
@@ -341,21 +341,6 @@ do_ping() return 0 } -# $1: ns, $2: MIB counter -get_mib_counter() -{ - local listener_ns="${1}" - local mib="${2}" - - # strip the header - ip netns exec "${listener_ns}" \ - nstat -z -a "${mib}" | \ - tail -n+2 | \ - while read a count c rest; do - echo $count - done -} - # $1: ns, $2: port wait_local_port_listen() {
@@ -441,12 +426,12 @@ do_transfer() nstat -n fi - local stat_synrx_last_l=$(get_mib_counter "${listener_ns}" "MPTcpExtMPCapableSYNRX") - local stat_ackrx_last_l=$(get_mib_counter "${listener_ns}" "MPTcpExtMPCapableACKRX") - local stat_cookietx_last=$(get_mib_counter "${listener_ns}" "TcpExtSyncookiesSent") - local stat_cookierx_last=$(get_mib_counter "${listener_ns}" "TcpExtSyncookiesRecv") - local stat_csum_err_s=$(get_mib_counter "${listener_ns}" "MPTcpExtDataCsumErr") - local stat_csum_err_c=$(get_mib_counter "${connector_ns}" "MPTcpExtDataCsumErr") + local stat_synrx_last_l=$(mptcp_lib_get_counter "${listener_ns}" "MPTcpExtMPCapableSYNRX") + local stat_ackrx_last_l=$(mptcp_lib_get_counter "${listener_ns}" "MPTcpExtMPCapableACKRX") + local stat_cookietx_last=$(mptcp_lib_get_counter "${listener_ns}" "TcpExtSyncookiesSent") + local stat_cookierx_last=$(mptcp_lib_get_counter "${listener_ns}" "TcpExtSyncookiesRecv") + local stat_csum_err_s=$(mptcp_lib_get_counter "${listener_ns}" "MPTcpExtDataCsumErr") + local stat_csum_err_c=$(mptcp_lib_get_counter "${connector_ns}" "MPTcpExtDataCsumErr") timeout ${timeout_test} \ ip netns exec ${listener_ns} \
@@ -509,11 +494,11 @@ do_transfer() check_transfer $cin $sout "file received by server" rets=$? - local stat_synrx_now_l=$(get_mib_counter "${listener_ns}" "MPTcpExtMPCapableSYNRX") - local stat_ackrx_now_l=$(get_mib_counter "${listener_ns}" "MPTcpExtMPCapableACKRX") - local stat_cookietx_now=$(get_mib_counter "${listener_ns}" "TcpExtSyncookiesSent") - local stat_cookierx_now=$(get_mib_counter "${listener_ns}" "TcpExtSyncookiesRecv") - local stat_ooo_now=$(get_mib_counter "${listener_ns}" "TcpExtTCPOFOQueue") + local stat_synrx_now_l=$(mptcp_lib_get_counter "${listener_ns}" "MPTcpExtMPCapableSYNRX") + local stat_ackrx_now_l=$(mptcp_lib_get_counter "${listener_ns}" "MPTcpExtMPCapableACKRX") + local stat_cookietx_now=$(mptcp_lib_get_counter "${listener_ns}" "TcpExtSyncookiesSent") + local stat_cookierx_now=$(mptcp_lib_get_counter "${listener_ns}" "TcpExtSyncookiesRecv") + local stat_ooo_now=$(mptcp_lib_get_counter "${listener_ns}" "TcpExtTCPOFOQueue") expect_synrx=$((stat_synrx_last_l)) expect_ackrx=$((stat_ackrx_last_l))
@@ -542,8 +527,8 @@ do_transfer() fi if $checksum; then - local csum_err_s=$(get_mib_counter "${listener_ns}" "MPTcpExtDataCsumErr") - local csum_err_c=$(get_mib_counter "${connector_ns}" "MPTcpExtDataCsumErr") + local csum_err_s=$(mptcp_lib_get_counter "${listener_ns}" "MPTcpExtDataCsumErr") + local csum_err_c=$(mptcp_lib_get_counter "${connector_ns}" "MPTcpExtDataCsumErr") local csum_err_s_nr=$((csum_err_s - stat_csum_err_s)) if [ $csum_err_s_nr -gt 0 ]; then
tools/testing/selftests/net/mptcp/mptcp_join.sh +36 -52
296 lines not on this page · raw message
tools/testing/selftests/net/mptcp/mptcp_lib.sh +16 -0
@@ -216,3 +216,19 @@ mptcp_lib_kill_wait() { kill "${1}" > /dev/null 2>&1 wait "${1}" 2>/dev/null } + +# $1: ns, $2: MIB counter +mptcp_lib_get_counter() { + local ns="${1}" + local counter="${2}" + local count + + count=$(ip netns exec "${ns}" nstat -asz "${counter}" | + awk 'NR==1 {next} {print $2}') + if [ -z "${count}" ]; then + mptcp_lib_fail_if_expected_feature "${counter} counter" + return 1 + fi + + echo "${count}" +}
tools/testing/selftests/net/mptcp/userspace_pm.sh +8 -6
@@ -887,9 +887,10 @@ test_prio() # Check TX print_test "MP_PRIO TX" - count=$(ip netns exec "$ns2" nstat -as | grep MPTcpExtMPPrioTx | awk '{print $2}') - [ -z "$count" ] && count=0 - if [ $count != 1 ]; then + count=$(mptcp_lib_get_counter "$ns2" "MPTcpExtMPPrioTx") + if [ -z "$count" ]; then + test_skip + elif [ $count != 1 ]; then test_fail "Count != 1: ${count}" else test_pass
@@ -897,9 +898,10 @@ test_prio() # Check RX print_test "MP_PRIO RX" - count=$(ip netns exec "$ns1" nstat -as | grep MPTcpExtMPPrioRx | awk '{print $2}') - [ -z "$count" ] && count=0 - if [ $count != 1 ]; then + count=$(mptcp_lib_get_counter "$ns1" "MPTcpExtMPPrioRx") + if [ -z "$count" ]; then + test_skip + elif [ $count != 1 ]; then test_fail "Count != 1: ${count}" else test_pass
Den tis 27 feb. 2024 kl 14:32 skrev Greg Kroah-Hartman <[email protected]>:
Quoted 1,365 lines
This is the start of the stable review cycle for the 6.7.7 release. There are 334 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Thu, 29 Feb 2024 13:15:36 +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.7.7-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.7.y
and the diffstat can be found below.thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:Greg Kroah-Hartman <[email protected]>
Linux 6.7.7-rc1Geliang Tang <[email protected]>
selftests: mptcp: addmptcp_lib_get_counterMatthieu Baerts (NGI0) <[email protected]>
selftests: mptcp: join: stop transfer when check is done (part 2)Chengming Zhou <[email protected]>
mm/zswap: invalidate duplicate entry when !zswap_enabledMatthieu Baerts (NGI0) <[email protected]>
selftests: mptcp: join: stop transfer when check is done (part 1)Yosry Ahmed <[email protected]>
mm: zswap: fix missing folio cleanup in writeback race pathCorey Minyard <[email protected]>
i2c: imx: when being a target, mark the last read as processedMelissa Wen <[email protected]>
drm/amd/display: fix null-pointer dereference on edid readingArmin Wolf <[email protected]>
drm/amd/display: Fix memory leak indm_sw_fini()Srinivasan Shanmugam <[email protected]>
drm/amd/display: Fix potential null pointer dereference indc_dmub_srvMuhammad Usama Anjum <[email protected]>
selftests/iommu: fix the config fragmentErik Kurzinger <[email protected]>
drm/syncobj: handle NULL fence insyncobj_eventfd_entry_funcJason Gunthorpe <[email protected]>
iommu/arm-smmu-v3: Do not useGFP_KERNELunder as spinlockTina Zhang <[email protected]>
iommu: Addmm_get_enqcmd_pasid()helper functionErik Kurzinger <[email protected]>
drm/syncobj: calldrm_syncobj_fence_add_waitwhenWAIT_AVAILABLEflag is setSiddharth Vadapalli <[email protected]>
net: phy: realtek: Fix rtl8211f_config_init() for RTL8211F(D)(I)-VD-CG PHYJustin Iurman <[email protected]>
Fix write to cloned skb inipv6_hop_ioam()Rémi Denis-Courmont <[email protected]>
phonet/pep: fix racyskb_queue_empty()useRémi Denis-Courmont <[email protected]>
phonet: take correct lock to peek at the RX queueHoratiu Vultur <[email protected]>
net: sparx5: Add spinlock for frame transmission from CPUJianbo Liu <[email protected]>
net/sched: flower: Add lock protection when remove filter handleJiri Pirko <[email protected]>
devlink: fix port dump cmd typeJakub Kicinski <[email protected]>
tools: ynl: don't leakmcast_groupson init errorJakub Kicinski <[email protected]>
tools: ynl: make sure we always pass yarg tomnl_cb_runJeremy Kerr <[email protected]>
net: mctp: put sock on tag allocation failureFlorian Westphal <[email protected]>
netfilter:nf_tables: use kzalloc for hook allocationPablo Neira Ayuso <[email protected]>
netfilter:nf_tables: register hooks last when adding new chain/flowtablePablo Neira Ayuso <[email protected]>
netfilter:nft_flow_offload: release dst in case direct xmit path is usedPablo Neira Ayuso <[email protected]>
netfilter:nft_flow_offload: reset dst in route object after setting up flowFlorian Westphal <[email protected]>
netfilter:nf_tables: set dormant flag on hook register failureSabrina Dubroca <[email protected]>
tls: don't skip over different type records from therx_listSabrina Dubroca <[email protected]>
tls: stoprecv()if initialprocess_rx_listgave us non-DATASabrina Dubroca <[email protected]>
tls: break out of main loop when PEEK gets a non-data recordGuenter Roeck <[email protected]>
hwmon: (nct6775) Fix access to temperature configuration registersLad Prabhakar <[email protected]>
cache:ax45mp_cache: Align end size to cache boundary inax45mp_dma_cache_wback()Shigeru Yoshida <[email protected]>
bpf, sockmap: Fix NULL pointer dereference insk_psock_verdict_data_ready()Jason Gunthorpe <[email protected]>
s390: use the correct count for__iowrite64_copy()Jason Gunthorpe <[email protected]>
iommufd: Reject non-zerodata_typeif nodata_lenis providedAlex Elder <[email protected]>
net: ipa: don't overrun IPA suspend interrupt registersEric Dumazet <[email protected]>
net: implement locklesssetsockopt(SO_PEEK_OFF)Subbaraya Sundeep <[email protected]>
octeontx2-af: Consider the action set by PFYi Liu <[email protected]>
iommu/vt-d: Set SSADE when attaching to a parent with dirty trackingYi Liu <[email protected]>
iommu/vt-d: Add missing dirty tracking set for parent domainYi Liu <[email protected]>
iommu/vt-d: Wrap the dirty tracking loop to be a helperYi Liu <[email protected]>
iommu/vt-d: Remove domain parameter forintel_pasid_setup_dirty_tracking()Yi Liu <[email protected]>
iommu/vt-d: Track nested domains in parentYi Liu <[email protected]>
iommu/vt-d: Update iotlb in nested domain attachMaxime Ripard <[email protected]>
drm/i915/tv: Fix TV modeMario Limonciello <[email protected]>
platform/x86:thinkpad_acpi: Only update profile if successfully convertedMark Brown <[email protected]>
arm64/sme: Restore SMCR_EL1.EZT0 on exit from suspendMark Brown <[email protected]>
arm64/sme: Restore SME registers on exit from suspendEmil Renner Berthing <[email protected]>
gpiolib: Handle nopin_rangesingpiochip_generic_config()Amit Machhiwal <[email protected]>
KVM: PPC: Book3S HV: Fix L2 guest reboot failure due to empty 'arch_compat'Kuniyuki Iwashima <[email protected]>
arp: Prevent overflow inarp_req_get().Vasiliy Kovalev <[email protected]>
devlink: fix possible use-after-free and memory leaks indevlink_init()Vasiliy Kovalev <[email protected]>
ipv6: sr: fix possible use-after-free and null-ptr-derefDaniil Dulov <[email protected]>
afs: Increase buffer size inafs_update_volume_status()Guenter Roeck <[email protected]>
parisc: Fix stack unwinderMark Pearson <[email protected]>
platform/x86: think-lmi: Fix password opcode ordering for workstationsMartin KaFai Lau <[email protected]>
bpf: Fix racing betweenbpf_timer_cancel_and_freeandbpf_timer_cancelRadhey Shyam Pandey <[email protected]>
ata:ahci_ceva: fix error handling for Xilinx GT PHY supportHangbin Liu <[email protected]>
selftests: bonding: set active slave to primary eth1 specificallyGaurav Batra <[email protected]>
powerpc/pseries/iommu: DLPAR add doesn't completely initializepci_controllerJustin Chen <[email protected]>
net: bcmasp: Sanity check is off by oneFlorian Fainelli <[email protected]>
net: bcmasp: Indicate MAC is in charge of PHY PMEric Dumazet <[email protected]>
ipv6: properly combinedev_base_seqand ipv6.dev_addr_genidEric Dumazet <[email protected]>
ipv4: properly combinedev_base_seqand ipv4.dev_addr_genidPavel Sakharov <[email protected]>
net: stmmac: Fix incorrect dereference in interrupt handlersAlison Schofield <[email protected]>
x86/numa: Fix the sort compare func used innuma_fill_memblks()Alison Schofield <[email protected]>
x86/numa: Fix the address overlap check innuma_fill_memblks()Dan Carpenter <[email protected]>
drm/nouveau/mmu/r535: uninitialized variable inr535_bar_new_()Arnd Bergmann <[email protected]>
nouveau: fix function cast warningsJakub Kicinski <[email protected]>
net/sched:act_mirred: don't override retval if we already lost the skbJakub Kicinski <[email protected]>
net/sched:act_mirred: use the backlog for mirred ingressVictor Nogueira <[email protected]>
net/sched:act_mirred: Create functiontcf_mirred_to_devand improve readabilityRandy Dunlap <[email protected]>
net: ethernet: adi: requires PHYLIB supportKuniyuki Iwashima <[email protected]>
dccp/tcp: Unhash sk from ehash for tb2 alloc failure aftercheck_estalblished().Tobias Waldekranz <[email protected]>
net: bridge: switchdev: Ensure deferred event delivery on unoffloadTobias Waldekranz <[email protected]>
net: bridge: switchdev: Skip MDB replays of deferred events on offloadRandy Dunlap <[email protected]>
scsi:jazz_esp: Only build if SCSI core is builtinDon Brace <[email protected]>
scsi: smartpqi: Fixdisable_managed_interruptsDan Carpenter <[email protected]>
scsi: ufs: Uninitialized variable inufshcd_devfreq_target()Gianmarco Lusvardi <[email protected]>
bpf, scripts: Correct GPL license nameArnd Bergmann <[email protected]>
RDMA/srpt: fix function pointer cast warningsSebastian Andrzej Siewior <[email protected]>
xsk: Add truesize toskb_add_rx_frag().Chris Morgan <[email protected]>
arm64: dts: rockchip: Correct Indiedroid Nova GPIO NamesHeiko Stuebner <[email protected]>
arm64: dts: rockchip: set num-cs property for spi on px30Kamal Heib <[email protected]>
RDMA/qedr: Fixqedr_create_user_qperror flowJoao Martins <[email protected]>
iommufd/iova_bitmap: Consider page offset for the pages to be pinnedJoao Martins <[email protected]>
iommufd/iova_bitmap: Handle recording beyond the mapped pagesJoao Martins <[email protected]>
iommufd/iova_bitmap: Switchiova_bitmap::bitmapto an u8 arrayJoao Martins <[email protected]>
iommufd/iova_bitmap: Bounds checkmapped::pagesaccessLucas Stach <[email protected]>
bus: imx-weim: fix valid range checkAlexander Stein <[email protected]>
arm64: dts: tqma8mpql: fix audio codec iov-supplyBart Van Assche <[email protected]>
RDMA/srpt: Support specifying thesrpt_service_guidparameterMustafa Ismail <[email protected]>
RDMA/irdma: Add AE for too many RNRSMustafa Ismail <[email protected]>
RDMA/irdma: Set the CQ read threshold for GEN 1Shiraz Saleem <[email protected]>
RDMA/irdma: Validatemax_send_wrandmax_recv_wrMike Marciniszyn <[email protected]>
RDMA/irdma: Fix KASAN issue with taskletMarek Vasut <[email protected]>
arm64: dts: imx8mp: Disable UART4 by default on Data Modul i.MX8M Plus eDM SBCMark Zhang <[email protected]>
IB/mlx5: Don't expose debugfs entries for RRoCE general parameters if not supportedKalesh AP <[email protected]>
RDMA/bnxt_re: Add a missing check inbnxt_qplib_query_srqKalesh AP <[email protected]>
RDMA/bnxt_re: Return error for SRQ resizeZhipeng Lu <[email protected]>
IB/hfi1: Fix a memleak ininit_credit_returnSohaib Nadeem <[email protected]>
Revert "drm/amd/display: increasedmin_dcfclk_mhzandmin_fclk_mhz"Srinivasan Shanmugam <[email protected]>
drm/amd/display: Fix buffer overflow in 'get_host_router_total_dp_tunnel_bw()'Nathan Chancellor <[email protected]>
drm/amd/display: Avoid enum conversion warningSteve French <[email protected]>
smb3: add missing null server pointer checkLennert Buytenhek <[email protected]>
ahci: Extend ASM1061 43-bit DMA address quirk to other ASM106x partsMatthieu Baerts (NGI0) <[email protected]>
selftests: mptcp: diag: unique 'cestab' subtest namesMatthieu Baerts (NGI0) <[email protected]>
selftests: mptcp: diag: unique 'in use' subtest namesMatthieu Baerts (NGI0) <[email protected]>
selftests: mptcp: diag: fix bash warnings on older kernelsGeliang Tang <[email protected]>
selftests: mptcp: diag: check CURRESTAB countersMatthieu Baerts (NGI0) <[email protected]>
selftests: mptcp: pm nl: avoid error msg on older kernelsMatthieu Baerts (NGI0) <[email protected]>
selftests: mptcp: pm nl: also list skipped testsMatthieu Baerts (NGI0) <[email protected]>
selftests: mptcp: simult flows: fix some subtest namesMatthieu Baerts (NGI0) <[email protected]>
selftests: mptcp:userspace_pm: unique subtest namesPaolo Abeni <[email protected]>
mptcp: fix duplicate subflow creationPaolo Abeni <[email protected]>
mptcp: fix data races onremote_idPaolo Abeni <[email protected]>
mptcp: fix data races onlocal_idPaolo Abeni <[email protected]>
mptcp: fix lockless access in subflow ULP diagGeliang Tang <[email protected]>
mptcp: addneeds_idfor netlink appending addrGeliang Tang <[email protected]>
mptcp: addneeds_idfor userspace appending addrXu Yang <[email protected]>
usb: roles: don't get/set_role() whenusb_role_switchis unregisteredXu Yang <[email protected]>
usb: roles: fix NULL pointer issue when put module's referenceAaro Koskinen <[email protected]>
usb: gadget:omap_udc: fix USB gadget regression on Palm TEKrishna Kurapati <[email protected]>
usb: gadget: ncm: Avoid dropping datagrams of properly parsed NTBsFrank Li <[email protected]>
usb: cdns3: fix memory double free when handle zero packetFrank Li <[email protected]>
usb: cdns3: fixed memory use after free atcdns3_gadget_ep_disable()Pawel Laszczak <[email protected]>
usb: cdnsp: fixed issue with incorrect detecting CDNSP family controllersPawel Laszczak <[email protected]>
usb: cdnsp: blocked some cdns3 specific codeThinh Nguyen <[email protected]>
usb: dwc3: gadget: Don't disconnect if not startedLino Sanfilippo <[email protected]>
serial: amba-pl011: Fix DMA transmission in RS485 modeLino Sanfilippo <[email protected]>
serial: stm32: do not always setSER_RS485_RX_DURING_TXif RS485 is enabledOndrej Jirman <[email protected]>
Revert "usb: typec: tcpm: reset counter when enter into unattached state after try role"Sandeep Dhavale <[email protected]>
erofs: fix refcount on the metabuf used for inode lookupArnd Bergmann <[email protected]>
dm-integrity, dm-verity: reduce stack usage for recheckNikita Shubin <[email protected]>
ARM: ep93xx: Add terminator togpiod_lookup_tableTom Parkin <[email protected]>
l2tp: pass correct message length toip6_append_dataVidya Sagar <[email protected]>
PCI/MSI: Prevent MSI hardware interrupt number truncationNam Cao <[email protected]>
irqchip/sifive-plic: Enable interrupt if needed before EOIOliver Upton <[email protected]>
irqchip/gic-v3-its: Do not assume vPE tables are preallocatedChen Jun <[email protected]>
irqchip/mbigen: Don't usebus_get_dev_root()to find the parentzhenwei pi <[email protected]>
crypto: virtio/akcipher - Fix stack overflow on memcpyVasiliy Kovalev <[email protected]>
gtp: fix use-after-free and null-ptr-deref ingtp_genl_dump_pdp()Andrzej Kacprowski <[email protected]>
accel/ivpu: Don't enable any tiles by default on VPU40xxOliver Upton <[email protected]>
KVM: arm64: vgic-its: Test for valid IRQ inits_sync_lpi_pending_table()Oliver Upton <[email protected]>
KVM: arm64: vgic-its: Test for valid IRQ in MOVALL handlerYu Kuai <[email protected]>
md: Fix missing release of 'active_io' for flushYu Kuai <[email protected]>
md: Don't suspend the array for interrupted reshapeYu Kuai <[email protected]>
md: Don't registersync_threadfor reshape directlyYu Kuai <[email protected]>
md: Make suremd_do_sync()will setMD_RECOVERY_DONEYu Kuai <[email protected]>
md: Don't ignore read-only array inmd_check_recovery()Yu Kuai <[email protected]>
md: Don't ignore suspended array inmd_check_recovery()Javier Martinez Canillas <[email protected]>
sparc: Fix undefined reference tofb_is_primary_deviceBaokun Li <[email protected]>
cachefiles: fix memory leak incachefiles_add_cache()Hans de Goede <[email protected]>
platform/x86:touchscreen_dmi: Allow partial (prefix) matches for ACPI namesHans de Goede <[email protected]>
platform/x86: intel-vbtn: Stop calling "VBDL" fromnotify_handlerHans de Goede <[email protected]>
platform/x86: x86-android-tablets: Fix keyboard touchscreen on Lenovo Yogabook1 X90Anshuman Khandual <[email protected]>
mm/memblock: add MEMBLOCK_RSRV_NOINIT into flagname[] arraySeongJae Park <[email protected]>
mm/damon/reclaim: fix quota stauts loss due to online tuningsSeongJae Park <[email protected]>
mm/damon/core: check apply interval indamon_do_apply_schemes()Johannes Weiner <[email protected]>
mm: memcontrol: clarify swapaccount=0 deprecation warningSeongJae Park <[email protected]>
mm/damon/lru_sort: fix quota status loss due to online tuningsKairui Song <[email protected]>
mm/swap: fix race when skipping swapcacheTerry Tritton <[email protected]>
selftests/mm: uffd-unit-test check if huge page size is 0Martin K. Petersen <[email protected]>
scsi: core: Consult supported VPD page list prior to fetching pageNaohiro Aota <[email protected]>
scsi: target: pscsi: Fixbio_put()for error caseMartin K. Petersen <[email protected]>
scsi: sd:usb_storage: uas: Access media prior to querying device propertiesRobert Richter <[email protected]>
cxl/pci: Fix disabling memory if DVSEC CXL Range does not match a CFMWS windowLi Ming <[email protected]>
cxl/pci: Skip to handle RAS errors if CXL.mem device is detachedDan Williams <[email protected]>
cxl/acpi: Fix load failures due to single window creation failureMikulas Patocka <[email protected]>
dm-verity: recheck the hash after a failureMikulas Patocka <[email protected]>
dm-crypt: don't modify the data when using authenticated encryptionMikulas Patocka <[email protected]>
dm-integrity: recheck the integrity tag after a failureHelge Deller <[email protected]>
Revert "parisc: Only list existing CPUs incpu_possible_mask"Mikulas Patocka <[email protected]>
dm-crypt: recheck the integrity tag after a failureGuenter Roeck <[email protected]>
lib/Kconfig.debug:TEST_IOV_ITERdepends on MMUBart Van Assche <[email protected]>
fs/aio: Restrictkiocb_set_cancel_fn()to I/O submitted via libaioDamien Le Moal <[email protected]>
ata: libata-core: Do not callata_dev_power_set_standby()twiceDamien Le Moal <[email protected]>
ata: libata-core: Do not try to set sleeping devices to standbyPeter Oberparleiter <[email protected]>
s390/cio: fix invalid-EBUSYonccw_device_startMa Jun <[email protected]>
drm/amdgpu: Fix the runtime resume failure issueWayne Lin <[email protected]>
drm/amd/display: adjust few initialization order in dmLewis Huang <[email protected]>
drm/amd/display: Only allow dig mapping to pwrseq in new asicArunpravin Paneer Selvam <[email protected]>
drm/buddy: Modify duplicatelist_splice_tailcallMartin Blumenstingl <[email protected]>
drm/meson: Don't remove bridges which are created by other driversThomas Hellström <[email protected]>
drm/ttm: Fix an invalid freeing on already freed page in error pathQu Wenruo <[email protected]>
btrfs: defrag: avoid unnecessary defrag caused by incorrect extent sizeHuacai Chen <[email protected]>
LoongArch: Updatecpu_sibling_mapwhen disabling nonboot CPUsHuacai Chen <[email protected]>
LoongArch: Disable IRQ beforeinit_fn()for nonboot CPUsHuacai Chen <[email protected]>
LoongArch: Callearly_init_fdt_scan_reserved_mem()earlierJonathan Corbet <[email protected]>
docs: Instruct LaTeX to cope with deeper nestingPawan Gupta <[email protected]>
x86/bugs: Add asm helpers for executing VERWDavid Gow <[email protected]>
kunit: Add a macro to wrap a deferred action functionDaniel Vacek <[email protected]>
IB/hfi1: Fix sdma.h tx->num_descs off-by-one errorSohaib Nadeem <[email protected]>
drm/amd/display: fixed integer types and null check locationsPeichen Huang <[email protected]>
drm/amd/display: Request usb4 bw for mst streamsMeenakshikumar Somasundaram <[email protected]>
drm/amd/display: Add dpia display mode validation logicPaolo Abeni <[email protected]>
mptcp: corner case locking for rx path fields initializationPaolo Abeni <[email protected]>
mptcp: fix more tx path fields initializationGeliang Tang <[email protected]>
mptcp: usemptcp_set_stateGeliang Tang <[email protected]>
mptcp: add CurrEstab MIB counter supportSteve French <[email protected]>
smb3: clarify mount warningShyam Prasad N <[email protected]>
cifs: handle cases where multiple sessions share connectionShyam Prasad N <[email protected]>
cifs: change tcon status whenneed_reconnectis set on itYi Sun <[email protected]>
virtio-blk: Ensure no requests in virtqueues before deleting vqs.Paulo Alcantara <[email protected]>
smb: client: set correctd_typefor reparse points under DFS mountsLijo Lazar <[email protected]>
drm/amdgpu: Fix HDP flush for VFs on nbio v7.9Stanley.Yang <[email protected]>
drm/amdgpu: Fix shared buff copy to userPrike Liang <[email protected]>
drm/amdgpu: reset gpu for s3 suspend abort casePrike Liang <[email protected]>
drm/amdgpu: skip to program GFXDEC registers for suspend abortXiubo Li <[email protected]>
ceph: always check dir caps asynchronouslyXiubo Li <[email protected]>
libceph: fail sparse-read if the data length doesn't matchTakashi Sakamoto <[email protected]>
firewire: core: send bus reset promptly on gap count errorKrystian Pradzynski <[email protected]>
accel/ivpu/40xx: Stop passing SKU boot parameters to FWJacek Lawrynowicz <[email protected]>
accel/ivpu: Disabled3hot_delayon all NPU generationsWachowski, Karol <[email protected]>
accel/ivpu: Force snooping for MMU writesKees Cook <[email protected]>
LoongArch: vDSO: Disable UBSAN instrumentationHuacai Chen <[email protected]>
LoongArch: Change acpi_core_pic[NR_CPUS] to acpi_core_pic[MAX_CORE_PIC]Masahiro Yamada <[email protected]>
LoongArch: SelectHAVE_ARCH_SECCOMPto use the common SECCOMP menuMasahiro Yamada <[email protected]>
LoongArch: SelectARCH_ENABLE_THP_MIGRATIONinstead of redefining itSEO HOYOUNG <[email protected]>
scsi: ufs: core: Remove theufshcd_release()inufshcd_err_handling_prepare()Alice Chao <[email protected]>
scsi: ufs: core: Fix shift issue inufshcd_clear_cmd()Hannes Reinecke <[email protected]>
scsi: lpfc: Use unsigned type fornum_sgeTimur Tabi <[email protected]>
drm/nouveau:nvkm_gsp_radix3_sg()should usenvkm_gsp_mem_ctor()Zhang Rui <[email protected]>
hwmon: (coretemp) Enlarge per package core count limitAndrew Bresticker <[email protected]>
efi: Don't add memblocks for soft-reserved memoryAndrew Bresticker <[email protected]>
efi: runtime: Fix potential overflow of soft-reserved region sizeBenjamin Berg <[email protected]>
wifi: iwlwifi: do not announce EPCS supportJohannes Berg <[email protected]>
wifi: mac80211: accept broadcast probe responses on 6 GHzJohannes Berg <[email protected]>
wifi: mac80211: adding missingdrv_mgd_complete_tx()callJohannes Berg <[email protected]>
wifi: mac80211: initialize SMPS mode correctlyJohannes Berg <[email protected]>
wifi: mac80211: fix driver debugfs for vif type changeJohannes Berg <[email protected]>
wifi: mac80211: set station RX-NSS on reconfigEdward Adam Davis <[email protected]>
fs/ntfs3: Fix oob inntfs_listxattrKonstantin Komarov <[email protected]>
fs/ntfs3: Update inode->i_size after success write into compressed fileKonstantin Komarov <[email protected]>
fs/ntfs3: Fixed overflow check inmi_enum_attr()Konstantin Komarov <[email protected]>
fs/ntfs3: Correct functionis_rst_area_validKonstantin Komarov <[email protected]>
fs/ntfs3: Usei_size_readandi_size_writeKonstantin Komarov <[email protected]>
fs/ntfs3: Prevent generic message "attempt to access beyond end of device"Ism Hong <[email protected]>
fs/ntfs3: use non-movable memory for ntfs3 MFT buffer cacheKonstantin Komarov <[email protected]>
fs/ntfs3: Use kvfree to free memory allocated by kvmallocKonstantin Komarov <[email protected]>
fs/ntfs3: DisableATTR_LIST_ENTRYsize checkKonstantin Komarov <[email protected]>
fs/ntfs3: Fix c/mtime typoKonstantin Komarov <[email protected]>
fs/ntfs3: Add NULL ptr dereference checking at the end ofattr_allocate_frame()Konstantin Komarov <[email protected]>
fs/ntfs3: Add and fix commentsKonstantin Komarov <[email protected]>
fs/ntfs3:ntfs3_forced_shutdownuse int instead of boolKonstantin Komarov <[email protected]>
fs/ntfs3: Implementsuper_operations::shutdownKonstantin Komarov <[email protected]>
fs/ntfs3: Drop suid and sgid bits as a part of fpunchKonstantin Komarov <[email protected]>
fs/ntfs3: Addfile_modifiedKonstantin Komarov <[email protected]>
fs/ntfs3: Correct usebh_readKonstantin Komarov <[email protected]>
fs/ntfs3: Fix detected field-spanning write (size 8) of single field "le->name"Konstantin Komarov <[email protected]>
fs/ntfs3: Fix multithreaded stress testKonstantin Komarov <[email protected]>
fs/ntfs3: Reduce stack usageKonstantin Komarov <[email protected]>
fs/ntfs3: Print warning while fixing hard links countKonstantin Komarov <[email protected]>
fs/ntfs3: Correct hard links updating when dealing with DOS namesKonstantin Komarov <[email protected]>
fs/ntfs3: Improventfs_dir_countKonstantin Komarov <[email protected]>
fs/ntfs3: Modified fix directory element type detectionKonstantin Komarov <[email protected]>
fs/ntfs3: Improve alternative boot processingSzilard Fabian <[email protected]>
Input: i8042 - add Fujitsu Lifebook U728 to i8042 quirk tableZhang Yi <[email protected]>
ext4: correct the hole length returned byext4_map_blocks()Paulo Alcantara <[email protected]>
smb: client: increase number of PDUs allowed in a compound requestShyam Prasad N <[email protected]>
cifs: do not search for channel if server is terminatingDaniel Wagner <[email protected]>
nvmet-fc: take ref count on tgtport before delete assocDaniel Wagner <[email protected]>
nvmet-fc: avoid deadlock on delete association pathDaniel Wagner <[email protected]>
nvmet-fc: abort command when there is no bindingDaniel Wagner <[email protected]>
nvmet-fc: hold reference on hostport matchDaniel Wagner <[email protected]>
nvmet-fc: free queue and assoc directlyDaniel Wagner <[email protected]>
nvmet-fc: defer cleanup using RCU properlyDaniel Wagner <[email protected]>
nvmet-fc: release reference on target portDaniel Wagner <[email protected]>
nvmet-fcloop: swap thelist_add_tailargumentsDaniel Wagner <[email protected]>
nvme-fc: do not wait in vain when unloading moduleAlexander Tsoy <[email protected]>
ALSA: usb-audio: Ignore clock selector errors for single connectionRichard Fitzgerald <[email protected]>
ASoC:wm_adsp: Don't overwritefwf_namewith the defaultShyam Prasad N <[email protected]>
cifs: make sure that channel scaling is done only onceDmytro Laktyushkin <[email protected]>
drm/amd/display: Fix DPSTREAM CLK on and off sequenceCharlene Liu <[email protected]>
drm/amd/display: fix USB-C flag update after enc10 feature initSohaib Nadeem <[email protected]>
drm/amd/display: increasedmin_dcfclk_mhzandmin_fclk_mhzMukul Joshi <[email protected]>
drm/amdkfd: Use correct drm device for cgroup permission checkXin Long <[email protected]>
netfilter: conntrack: checkSCTP_CID_SHUTDOWN_ACKfor vtag setting insctp_newWill Deacon <[email protected]>
misc: open-dice: Fix spurious lockdep warningBrenton Simpson <[email protected]>
Input: xpad - add Lenovo Legion Go controllersWolfram Sang <[email protected]>
spi: sh-msiof: avoid integer overflow in constantsPatrick Rudolph <[email protected]>
regulator (max5970): Fix IRQ handlerChhayly Leang <[email protected]>
ALSA: hda: cs35l41: Support ASUS Zenbook UM3402YARKenzo Gomez <[email protected]>
ALSA: hda: cs35l41: Support additional ASUS Zenbook UX3402VAChen-Yu Tsai <[email protected]>
ASoC: sunxi: sun4i-spdif: Add support for Allwinner H616Alexander Tsoy <[email protected]>
ALSA: usb-audio: Check presence of valid altsetting controlChristian A. Ehrhardt <[email protected]>
usb:ucsi_acpi: Quirk to ack a connector change ack cmdGuixin Liu <[email protected]>
nvmet-tcp: fix nvme tcp ida memory leakKunwu Chan <[email protected]>
HID: nvidia-shield: Add missing null pointer checks to LED initializationRui Salvaterra <[email protected]>
ALSA: hda: Increase defaultbdl_pos_adjfor Apollo LakeRui Salvaterra <[email protected]>
ALSA: hda: Replace numeric device IDs with constant valuesJiri Kosina <[email protected]>
HID: logitech-hidpp: add support for Logitech G Pro X Superlight 2Martin Blumenstingl <[email protected]>
regulator: pwm-regulator: Add validity checks in continuous .get_voltageVenkata Prasad Potturu <[email protected]>
ASoC: amd: acp: Add check for cpu dai link initializationKunwu Chan <[email protected]>
dmaengine: ti: edma: Add some null pointer checks to theedma_probeHans de Goede <[email protected]>
Input: goodix - accept ACPI resources with gpio_count == 3 && gpio_int_idx == 0Baokun Li <[email protected]>
ext4: avoid allocating blocks from corrupted group inext4_mb_find_by_goal()Baokun Li <[email protected]>
ext4: avoid allocating blocks from corrupted group inext4_mb_try_best_found()Baokun Li <[email protected]>
ext4: avoid dividing by 0 inmb_update_avg_fragment_size()when block bitmap corruptPhoenix Chen <[email protected]>
platform/x86:touchscreen_dmi: Add info for the TECLAST X16 Plus tabletHuang Pei <[email protected]>
MIPS: reserve exception vector space ONLY ONCERoman Li <[email protected]>
drm/amd/display: Disable ips before dc interrupt settingLukas Wunner <[email protected]>
ARM: dts: Fix TPM schema violationsLennert Buytenhek <[email protected]>
ahci: add 43-bit DMA address quirk for ASMedia ASM1061 controllersCharles Keepax <[email protected]>
spi: cs42l43: Handle error fromdevm_pm_runtime_enableMaksim Kiselev <[email protected]>
aoe: avoid potential deadlock atset_capacityConrad Kostecki <[email protected]>
ahci: asm1166: correct count of reported portsShyam Prasad N <[email protected]>
cifs: helper function to check replayable error codesShyam Prasad N <[email protected]>
cifs: translate network errors on send to-ECONNABORTEDShyam Prasad N <[email protected]>
cifs:cifs_pick_channelshould try selecting active channelsKees Cook <[email protected]>
smb: Work around Clang__bdos()type confusionChristian A. Ehrhardt <[email protected]>
block: Fix WARNING in_copy_from_iterDevyn Liu <[email protected]>
spi: hisi-sfc-v3xx: ReturnIRQ_NONEif no interrupts were detectedMika Westerberg <[email protected]>
spi: intel-pci: Add support for Arrow Lake SPI serial flashLiming Sun <[email protected]>
platform/mellanox: mlxbf-tmfifo: Drop Tx network packet when Tx TmFIFO is fullFullway Wang <[email protected]>
fbdev: sis: Error out if pixclock equals zeroFullway Wang <[email protected]>
fbdev: savage: Error out if pixclock equals zeroFelix Fietkau <[email protected]>
wifi: mac80211: fix race condition on enabling fast-xmitMichal Kazior <[email protected]>
wifi: cfg80211: fix missing interfaces when dumpingVinod Koul <[email protected]>
dmaengine: dw-edma: increase size of 'name' in debugfs codeVinod Koul <[email protected]>
dmaengine: fsl-qdma: increase size of 'irq_name'Vinod Koul <[email protected]>
dmaengine: shdma: increase size of 'dev_id'Shyam Prasad N <[email protected]>
cifs:open_cached_dirshould not rely on primary channelDmitry Bogdanov <[email protected]>
scsi: target: core: Add TMF totmr_listhandlingChristoph Müllner <[email protected]>
tools: selftests: riscv: Fix compile warnings in mm testsChristoph Müllner <[email protected]>
tools: selftests: riscv: Fix compile warnings in vector testsChristoph Müllner <[email protected]>
tools: selftests: riscv: Fix compile warnings in cboChristoph Müllner <[email protected]>
tools: selftests: riscv: Fix compile warnings in hwprobeMahesh Rajashekhara <[email protected]>
scsi: smartpqi: Fix logical volume rescan race conditionDavid Strahan <[email protected]>
scsi: smartpqi: Add new controller PCI IDsHector Martin <[email protected]>
dmaengine: apple-admac: Keep upper bits ofREG_BUS_WIDTHMario Limonciello <[email protected]>
drm/amd: Stop evicting resources on APUs in suspend-------------
Diffstat:
Documentation/conf.py | 6 + Documentation/dev-tools/kunit/usage.rst | 10 +- Makefile | 4 +- .../dts/aspeed/aspeed-bmc-facebook-bletchley.dts | 4 +- .../dts/aspeed/aspeed-bmc-facebook-wedge400.dts | 4 +- arch/arm/boot/dts/aspeed/aspeed-bmc-opp-tacoma.dts | 2 +- .../dts/aspeed/ast2600-facebook-netbmc-common.dtsi | 4 +- .../arm/boot/dts/nxp/imx/imx6ull-phytec-tauri.dtsi | 2 +- .../boot/dts/nxp/imx/imx7d-flex-concentrator.dts | 2 +- .../dts/ti/omap/am335x-moxa-uc-2100-common.dtsi | 2 +- arch/arm/mach-ep93xx/core.c | 1 + .../dts/freescale/imx8mp-data-modul-edm-sbc.dts | 2 +- .../dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts | 9 +- arch/arm64/boot/dts/rockchip/px30.dtsi | 2 + .../boot/dts/rockchip/rk3588s-indiedroid-nova.dts | 10 +- arch/arm64/include/asm/fpsimd.h | 2 + arch/arm64/kernel/fpsimd.c | 16 ++ arch/arm64/kernel/suspend.c | 3 + arch/arm64/kvm/vgic/vgic-its.c | 5 + arch/loongarch/Kconfig | 23 +-- arch/loongarch/include/asm/acpi.h | 4 +- arch/loongarch/kernel/acpi.c | 4 +- arch/loongarch/kernel/setup.c | 4 +- arch/loongarch/kernel/smp.c | 122 ++++++----- arch/loongarch/vdso/Makefile | 1 + arch/mips/kernel/traps.c | 8 +- arch/parisc/kernel/processor.c | 8 - arch/parisc/kernel/unwind.c | 14 +- arch/powerpc/include/asm/ppc-pci.h | 10 + arch/powerpc/kernel/iommu.c | 23 ++- arch/powerpc/kvm/book3s_hv.c | 26 ++- arch/powerpc/kvm/book3s_hv_nestedv2.c | 20 +- arch/powerpc/platforms/pseries/pci_dlpar.c | 4 + arch/s390/pci/pci.c | 2 +- arch/sparc/Makefile | 2 +- arch/sparc/video/Makefile | 2 +- arch/x86/entry/entry.S | 23 +++ arch/x86/include/asm/cpufeatures.h | 2 +- arch/x86/include/asm/nospec-branch.h | 13 ++ arch/x86/kernel/traps.c | 2 +- arch/x86/mm/numa.c | 21 +- block/blk-map.c | 13 +- drivers/accel/ivpu/ivpu_drv.c | 5 +- drivers/accel/ivpu/ivpu_hw_37xx.c | 2 +- drivers/accel/ivpu/ivpu_hw_40xx.c | 9 +- drivers/accel/ivpu/ivpu_mmu.c | 3 - drivers/ata/ahci.c | 44 +++- drivers/ata/ahci.h | 1 + drivers/ata/ahci_ceva.c | 125 ++++++----- drivers/ata/libata-core.c | 87 ++++---- drivers/block/aoe/aoeblk.c | 5 +- drivers/block/virtio_blk.c | 7 +- drivers/bus/imx-weim.c | 2 +- drivers/cache/ax45mp_cache.c | 4 + .../crypto/virtio/virtio_crypto_akcipher_algs.c | 5 +- drivers/cxl/acpi.c | 46 +++-- drivers/cxl/core/pci.c | 49 +++-- drivers/dma/apple-admac.c | 5 +- drivers/dma/dw-edma/dw-edma-v0-debugfs.c | 4 +- drivers/dma/dw-edma/dw-hdma-v0-debugfs.c | 4 +- drivers/dma/fsl-qdma.c | 2 +- drivers/dma/sh/shdma.h | 2 +- drivers/dma/ti/edma.c | 10 + drivers/firewire/core-card.c | 18 +- drivers/firmware/efi/arm-runtime.c | 2 +- drivers/firmware/efi/efi-init.c | 19 +- drivers/firmware/efi/riscv-runtime.c | 2 +- drivers/gpio/gpiolib.c | 5 + drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 + drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 18 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 11 +- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 + drivers/gpu/drm/amd/amdgpu/amdgpu_psp_ta.c | 2 +- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 8 + drivers/gpu/drm/amd/amdgpu/nbio_v7_9.c | 6 + drivers/gpu/drm/amd/amdgpu/soc15.c | 22 ++ drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 9 +- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 57 +++--- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c | 5 +- drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c | 16 +- .../gpu/drm/amd/display/dc/core/dc_link_exports.c | 2 +- drivers/gpu/drm/amd/display/dc/dc.h | 4 +- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 7 +- drivers/gpu/drm/amd/display/dc/dc_dp_types.h | 6 + drivers/gpu/drm/amd/display/dc/dc_types.h | 14 +- .../gpu/drm/amd/display/dc/dce/dce_panel_cntl.c | 1 + .../drm/amd/display/dc/dcn301/dcn301_panel_cntl.c | 1 + .../drm/amd/display/dc/dcn31/dcn31_panel_cntl.c | 18 +- .../amd/display/dc/dcn32/dcn32_dio_link_encoder.c | 4 +- .../amd/display/dc/dcn35/dcn35_dio_link_encoder.c | 4 +- .../drm/amd/display/dc/hwss/dce110/dce110_hwseq.c | 2 +- .../drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c | 11 +- drivers/gpu/drm/amd/display/dc/inc/hw/panel_cntl.h | 2 +- drivers/gpu/drm/amd/display/dc/link/link_dpms.c | 42 +++- drivers/gpu/drm/amd/display/dc/link/link_factory.c | 26 +-- .../gpu/drm/amd/display/dc/link/link_validation.c | 60 +++++- .../display/dc/link/protocols/link_dp_dpia_bw.c | 178 ++++++++++++---- .../display/dc/link/protocols/link_dp_dpia_bw.h | 9 + drivers/gpu/drm/drm_buddy.c | 4 +- drivers/gpu/drm/drm_syncobj.c | 19 +- drivers/gpu/drm/i915/display/intel_sdvo.c | 10 +- drivers/gpu/drm/i915/display/intel_tv.c | 10 +- drivers/gpu/drm/meson/meson_encoder_cvbs.c | 1 - drivers/gpu/drm/meson/meson_encoder_dsi.c | 1 - drivers/gpu/drm/meson/meson_encoder_hdmi.c | 1 - drivers/gpu/drm/nouveau/nvkm/subdev/bar/r535.c | 5 +- drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c | 8 +- drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c | 18 +- drivers/gpu/drm/ttm/ttm_pool.c | 2 +- drivers/hid/hid-logitech-hidpp.c | 2 + drivers/hid/hid-nvidia-shield.c | 4 + drivers/hwmon/coretemp.c | 2 +- drivers/hwmon/nct6775-core.c | 14 +- drivers/i2c/busses/i2c-imx.c | 5 + drivers/infiniband/hw/bnxt_re/ib_verbs.c | 5 +- drivers/infiniband/hw/bnxt_re/qplib_fp.c | 3 +- drivers/infiniband/hw/hfi1/pio.c | 6 +- drivers/infiniband/hw/hfi1/sdma.c | 2 +- drivers/infiniband/hw/irdma/defs.h | 1 + drivers/infiniband/hw/irdma/hw.c | 8 + drivers/infiniband/hw/irdma/verbs.c | 9 +- drivers/infiniband/hw/mlx5/cong.c | 6 + drivers/infiniband/hw/qedr/verbs.c | 11 +- drivers/infiniband/ulp/srpt/ib_srpt.c | 17 +- drivers/input/joystick/xpad.c | 2 + drivers/input/serio/i8042-acpipnpio.h | 8 + drivers/input/touchscreen/goodix.c | 3 +- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c | 45 ++-- drivers/iommu/intel/iommu.c | 87 ++++++-- drivers/iommu/intel/iommu.h | 7 + drivers/iommu/intel/nested.c | 14 +- drivers/iommu/intel/pasid.c | 5 +- drivers/iommu/intel/pasid.h | 1 - drivers/iommu/iommu-sva.c | 2 +- drivers/iommu/iommufd/hw_pagetable.c | 3 +- drivers/iommu/iommufd/iova_bitmap.c | 68 +++++- drivers/irqchip/irq-gic-v3-its.c | 2 +- drivers/irqchip/irq-mbigen.c | 8 +- drivers/irqchip/irq-sifive-plic.c | 8 +- drivers/md/dm-crypt.c | 95 +++++++-- drivers/md/dm-integrity.c | 91 +++++++- drivers/md/dm-verity-target.c | 86 +++++++- drivers/md/dm-verity.h | 6 + drivers/md/md.c | 70 ++++--- drivers/md/raid10.c | 16 +- drivers/md/raid5.c | 29 +-- drivers/misc/open-dice.c | 2 +- drivers/net/ethernet/adi/Kconfig | 1 + drivers/net/ethernet/broadcom/asp2/bcmasp.c | 6 +- drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c | 3 + .../net/ethernet/marvell/octeontx2/af/rvu_npc.c | 4 + .../net/ethernet/microchip/sparx5/sparx5_main.c | 1 + .../net/ethernet/microchip/sparx5/sparx5_main.h | 1 + .../net/ethernet/microchip/sparx5/sparx5_packet.c | 2 + drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 20 -- drivers/net/gtp.c | 10 +- drivers/net/ipa/ipa_interrupt.c | 2 +- drivers/net/phy/realtek.c | 4 +- drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c | 5 +- drivers/nvme/host/fc.c | 47 +---- drivers/nvme/target/fc.c | 137 +++++++------ drivers/nvme/target/fcloop.c | 6 +- drivers/nvme/target/tcp.c | 1 + drivers/pci/msi/irqdomain.c | 2 +- drivers/platform/mellanox/mlxbf-tmfifo.c | 67 ++++++ drivers/platform/x86/intel/vbtn.c | 3 - drivers/platform/x86/think-lmi.c | 20 +- drivers/platform/x86/thinkpad_acpi.c | 5 +- drivers/platform/x86/touchscreen_dmi.c | 39 +++- drivers/platform/x86/x86-android-tablets/core.c | 3 + drivers/platform/x86/x86-android-tablets/lenovo.c | 1 + .../x86/x86-android-tablets/x86-android-tablets.h | 1 + drivers/regulator/max5970-regulator.c | 2 +- drivers/regulator/pwm-regulator.c | 3 + drivers/s390/cio/device_ops.c | 6 +- drivers/scsi/Kconfig | 2 +- drivers/scsi/lpfc/lpfc_scsi.c | 12 +- drivers/scsi/scsi.c | 22 +- drivers/scsi/sd.c | 26 ++- drivers/scsi/smartpqi/smartpqi.h | 1 - drivers/scsi/smartpqi/smartpqi_init.c | 88 +++++++- drivers/spi/spi-cs42l43.c | 5 +- drivers/spi/spi-hisi-sfc-v3xx.c | 5 + drivers/spi/spi-intel-pci.c | 1 + drivers/spi/spi-sh-msiof.c | 16 +- drivers/target/target_core_device.c | 5 - drivers/target/target_core_pscsi.c | 9 +- drivers/target/target_core_transport.c | 4 + drivers/tty/serial/amba-pl011.c | 60 +++--- drivers/tty/serial/stm32-usart.c | 4 +- drivers/ufs/core/ufshcd.c | 7 +- drivers/usb/cdns3/cdns3-gadget.c | 8 +- drivers/usb/cdns3/core.c | 1 - drivers/usb/cdns3/drd.c | 13 +- drivers/usb/cdns3/drd.h | 6 +- drivers/usb/cdns3/host.c | 16 +- drivers/usb/dwc3/gadget.c | 5 + drivers/usb/gadget/function/f_ncm.c | 10 +- drivers/usb/gadget/udc/omap_udc.c | 3 +- drivers/usb/roles/class.c | 29 ++- drivers/usb/storage/scsiglue.c | 7 + drivers/usb/storage/uas.c | 7 + drivers/usb/typec/tcpm/tcpm.c | 3 - drivers/usb/typec/ucsi/ucsi_acpi.c | 71 ++++++- drivers/video/fbdev/savage/savagefb_driver.c | 3 + drivers/video/fbdev/sis/sis_main.c | 2 + fs/afs/volume.c | 4 +- fs/aio.c | 9 +- fs/btrfs/defrag.c | 2 +- fs/cachefiles/cache.c | 2 + fs/cachefiles/daemon.c | 1 + fs/ceph/caps.c | 6 - fs/ceph/mds_client.c | 9 +- fs/ceph/mds_client.h | 2 +- fs/ceph/super.h | 2 - fs/erofs/namei.c | 28 +-- fs/ext4/extents.c | 111 ++++++---- fs/ext4/mballoc.c | 15 +- fs/ntfs3/attrib.c | 45 ++-- fs/ntfs3/attrlist.c | 12 +- fs/ntfs3/bitmap.c | 4 +- fs/ntfs3/dir.c | 44 ++-- fs/ntfs3/file.c | 72 +++++-- fs/ntfs3/frecord.c | 19 +- fs/ntfs3/fslog.c | 228 ++++++++++----------- fs/ntfs3/fsntfs.c | 29 ++- fs/ntfs3/index.c | 8 +- fs/ntfs3/inode.c | 32 ++- fs/ntfs3/namei.c | 12 ++ fs/ntfs3/ntfs.h | 4 +- fs/ntfs3/ntfs_fs.h | 25 +-- fs/ntfs3/record.c | 18 +- fs/ntfs3/super.c | 49 +++-- fs/ntfs3/xattr.c | 6 + fs/smb/client/cached_dir.c | 3 +- fs/smb/client/cifsencrypt.c | 2 +- fs/smb/client/cifsglob.h | 12 +- fs/smb/client/connect.c | 11 + fs/smb/client/dfs.c | 7 +- fs/smb/client/file.c | 3 + fs/smb/client/fs_context.c | 2 +- fs/smb/client/readdir.c | 15 +- fs/smb/client/sess.c | 5 +- fs/smb/client/smb2pdu.c | 26 ++- fs/smb/client/transport.c | 18 +- include/kunit/resource.h | 21 ++ include/linux/ceph/osd_client.h | 3 +- include/linux/fs.h | 2 + include/linux/iommu.h | 12 ++ include/linux/memblock.h | 2 + include/linux/mlx5/mlx5_ifc.h | 2 +- include/linux/swap.h | 5 + include/net/netfilter/nf_flow_table.h | 2 +- include/net/switchdev.h | 3 + include/net/tcp.h | 2 +- include/scsi/scsi_device.h | 5 +- kernel/bpf/helpers.c | 5 +- lib/Kconfig.debug | 1 + lib/kunit/kunit-test.c | 5 +- lib/kunit/test.c | 6 +- mm/damon/core.c | 15 +- mm/damon/lru_sort.c | 43 +++- mm/damon/reclaim.c | 18 +- mm/memblock.c | 6 +- mm/memcontrol.c | 10 +- mm/memory.c | 20 ++ mm/swap.h | 5 + mm/swapfile.c | 13 ++ mm/zswap.c | 7 +- net/bridge/br_switchdev.c | 86 +++++--- net/ceph/osd_client.c | 18 +- net/core/skmsg.c | 7 +- net/core/sock.c | 23 +-- net/devlink/core.c | 12 +- net/devlink/port.c | 2 +- net/ipv4/arp.c | 3 +- net/ipv4/devinet.c | 21 +- net/ipv4/inet_hashtables.c | 25 ++- net/ipv4/udp.c | 7 +- net/ipv6/addrconf.c | 21 +- net/ipv6/exthdrs.c | 10 + net/ipv6/seg6.c | 20 +- net/l2tp/l2tp_ip6.c | 2 +- net/mac80211/cfg.c | 2 + net/mac80211/debugfs_netdev.c | 4 +- net/mac80211/debugfs_netdev.h | 5 - net/mac80211/iface.c | 2 +- net/mac80211/mlme.c | 8 +- net/mac80211/scan.c | 30 +-- net/mac80211/sta_info.c | 2 + net/mac80211/tx.c | 2 +- net/mctp/route.c | 2 +- net/mptcp/diag.c | 8 +- net/mptcp/fastopen.c | 6 +- net/mptcp/mib.c | 1 + net/mptcp/mib.h | 8 + net/mptcp/options.c | 9 +- net/mptcp/pm_netlink.c | 74 ++++--- net/mptcp/pm_userspace.c | 15 +- net/mptcp/protocol.c | 69 ++++--- net/mptcp/protocol.h | 25 ++- net/mptcp/subflow.c | 86 +++++--- net/netfilter/nf_conntrack_proto_sctp.c | 2 +- net/netfilter/nf_flow_table_core.c | 17 +- net/netfilter/nf_tables_api.c | 81 ++++---- net/phonet/datagram.c | 4 +- net/phonet/pep.c | 41 +++- net/sched/act_mirred.c | 147 ++++++------- net/sched/cls_flower.c | 5 +- net/switchdev/switchdev.c | 73 +++++++ net/tls/tls_main.c | 2 +- net/tls/tls_sw.c | 24 ++- net/unix/af_unix.c | 19 +- net/wireless/nl80211.c | 1 + net/xdp/xsk.c | 3 +- scripts/bpf_doc.py | 2 +- sound/pci/hda/cs35l41_hda_property.c | 4 + sound/pci/hda/hda_intel.c | 6 +- sound/soc/amd/acp/acp-mach-common.c | 9 +- sound/soc/codecs/wm_adsp.c | 29 ++- sound/soc/sunxi/sun4i-spdif.c | 5 + sound/usb/clock.c | 10 +- sound/usb/format.c | 20 ++ tools/net/ynl/lib/ynl.c | 19 +- .../selftests/drivers/net/bonding/bond_options.sh | 2 + tools/testing/selftests/iommu/config | 5 +- tools/testing/selftests/mm/uffd-unit-tests.c | 6 + .../testing/selftests/net/forwarding/tc_actions.sh | 3 - tools/testing/selftests/net/mptcp/diag.sh | 46 ++++- tools/testing/selftests/net/mptcp/mptcp_connect.sh | 41 ++-- tools/testing/selftests/net/mptcp/mptcp_join.sh | 109 ++++------ tools/testing/selftests/net/mptcp/mptcp_lib.sh | 16 ++ tools/testing/selftests/net/mptcp/pm_netlink.sh | 8 +-
Quoted 11 lines
tools/testing/selftests/net/mptcp/simult_flows.sh | 3 +- tools/testing/selftests/net/mptcp/userspace_pm.sh | 18 +- tools/testing/selftests/riscv/hwprobe/cbo.c | 6 +- tools/testing/selftests/riscv/hwprobe/hwprobe.c | 4 +- tools/testing/selftests/riscv/mm/mmap_test.h | 3 + .../selftests/riscv/vector/v_initval_nolibc.c | 2 +- .../testing/selftests/riscv/vector/vstate_prctl.c | 4 +- 340 files changed, 3847 insertions(+), 1826 deletions(-)
Works fine on my desktop with model name : AMD Ryzen 5 5600 6-Core
Processor and Arch Linux
Hello,
Quoted 5 lines · On Tue, 27 Feb 2024 14:17:38 +0100 Greg Kroah-Hartman…
This is the start of the stable review cycle for the 6.7.7 release. There are 334 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 Thu, 29 Feb 2024 13:15:36 +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.7.7-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.7.y
and the diffstat can be found below.
This rc kernel passes DAMON functionality test[1] on my test machine. Attaching the test results summary below. Please note that I retrieved the kernel from linux-stable-rc tree[2].
[1] https://github.com/awslabs/damon-tests/tree/next/corr
[2] efce2e661579 ("Linux 6.7.7-rc1")
Thanks,
SJ
[...]
---
ok 1 selftests: damon: debugfs_attrs.sh
ok 2 selftests: damon: debugfs_schemes.sh
ok 3 selftests: damon: debugfs_target_ids.sh
ok 4 selftests: damon: debugfs_empty_targets.sh
ok 5 selftests: damon: debugfs_huge_count_read_write.sh
ok 6 selftests: damon: debugfs_duplicate_context_creation.sh
ok 7 selftests: damon: debugfs_rm_non_contexts.sh
ok 8 selftests: damon: sysfs.sh
ok 9 selftests: damon: sysfs_update_removed_scheme_dir.sh
ok 10 selftests: damon: reclaim.sh
ok 11 selftests: damon: lru_sort.sh
ok 1 selftests: damon-tests: kunit.sh
ok 2 selftests: damon-tests: huge_count_read_write.sh
ok 3 selftests: damon-tests: buffer_overflow.sh
ok 4 selftests: damon-tests: rm_contexts.sh
ok 5 selftests: damon-tests: record_null_deref.sh
ok 6 selftests: damon-tests: dbgfs_target_ids_read_before_terminate_race.sh ok 7 selftests: damon-tests: dbgfs_target_ids_pid_leak.sh
ok 8 selftests: damon-tests: damo_tests.sh
ok 9 selftests: damon-tests: masim-record.sh
ok 10 selftests: damon-tests: build_i386.sh
ok 11 selftests: damon-tests: build_arm64.sh
ok 12 selftests: damon-tests: build_m68k.sh
ok 13 selftests: damon-tests: build_i386_idle_flag.sh
ok 14 selftests: damon-tests: build_i386_highpte.sh
ok 15 selftests: damon-tests: build_nomemcg.sh
[33m
[92mPASS [39m
Quoted 9 lines
This is the start of the stable review cycle for the 6.7.7 release. There are 334 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Thu, 29 Feb 2024 13:15:36 +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.7.7-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.7.y
and the diffstat can be found below.thanks,
greg k-h
Compiled and booted on my x86_64 and ARM64 test systems. No errors or regressions.
Thanks.
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.7.7 release. There are 334 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Thu, 29 Feb 2024 13:15:36 +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.7.7-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.7.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 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.7.7 release. There are 334 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Thu, 29 Feb 2024 13:15:36 +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.7.7-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.7.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.7.7 release. There are 334 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Thu, 29 Feb 2024 13:15:36 +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.7.7-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.7.y
and the diffstat can be found below.thanks,
greg k-h
No new regressions for Tegra ...
Test results for stable-v6.7:
10 builds: 10 pass, 0 fail
26 boots: 26 pass, 0 fail
116 tests: 115 pass, 1 failLinux version: 6.7.7-rc1-gefce2e661579
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-a04Test failures: tegra186-p2771-0000: pm-system-suspend.sh
Jon
Signature · 1 line
nvpublic
Quoted 10 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.7.7 release. There are 334 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Thu, 29 Feb 2024 13:15:36 +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.7.7-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.7.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.
## Build
* kernel: 6.7.7-rc1
* git: https://gitlab.com/Linaro/lkft/mirrors/stable/linux-stable-rc
* git branch: linux-6.7.y
* git commit: efce2e6615798a9e83b7a4798f3713414938ab6b
* git describe: v6.7.6-335-gefce2e661579
* test details:
https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.7.y/build/v6.7.6-335-gefce2e661579
## Test Regressions (compared to v6.7.6)
## Metric Regressions (compared to v6.7.6)
## Test Fixes (compared to v6.7.6)
## Metric Fixes (compared to v6.7.6)
## Test result summary
total: 264420, pass: 228013, fail: 3651, skip: 32434, xfail: 322
## Build Summary
* arc: 5 total, 5 passed, 0 failed
* arm: 129 total, 129 passed, 0 failed
* arm64: 38 total, 38 passed, 0 failed
* i386: 29 total, 29 passed, 0 failed
* mips: 24 total, 24 passed, 0 failed
* parisc: 3 total, 3 passed, 0 failed
* powerpc: 34 total, 32 passed, 2 failed
* riscv: 16 total, 16 passed, 0 failed
* s390: 12 total, 12 passed, 0 failed
* sh: 10 total, 10 passed, 0 failed
* sparc: 6 total, 6 passed, 0 failed
* x86_64: 33 total, 33 passed, 0 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-memory-hotplug
* kselftest-mincore
* kselftest-mm
* 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-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-hugetlb
* ltp-io
* ltp-ipc
* ltp-math
* ltp-mm
* ltp-nptl
* ltp-pty
* ltp-sched
* ltp-securebits
* ltp-smoke
* ltp-smoketest
* ltp-syscalls
* ltp-tracing
* perf
* rcutorture
* timesync-off
--
Linaro LKFT
https://lkft.linaro.org
Quoted 4 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.7.7 release. There are 334 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.
Cheers,
Conor.
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.7.7 release. There are 334 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Thu, 29 Feb 2024 13:15:36 +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.7.7-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.7.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 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.7.7 release. There are 334 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Thu, 29 Feb 2024 13:15:36 +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.7.7-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.7.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.
Hi Greg,
Quoted 7 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.7.7 release. There are 334 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Thu, 29 Feb 2024 13:15:36 +0000. Anything received after that time might be too late.
No noticeable regressions on my system.
Thanks,
- Ricardo.
Quoted 1,368 lines
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.7.7-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.7.y
and the diffstat can be found below.thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:Greg Kroah-Hartman <[email protected]>
Linux 6.7.7-rc1Geliang Tang <[email protected]>
selftests: mptcp: addmptcp_lib_get_counterMatthieu Baerts (NGI0) <[email protected]>
selftests: mptcp: join: stop transfer when check is done (part 2)Chengming Zhou <[email protected]>
mm/zswap: invalidate duplicate entry when !zswap_enabledMatthieu Baerts (NGI0) <[email protected]>
selftests: mptcp: join: stop transfer when check is done (part 1)Yosry Ahmed <[email protected]>
mm: zswap: fix missing folio cleanup in writeback race pathCorey Minyard <[email protected]>
i2c: imx: when being a target, mark the last read as processedMelissa Wen <[email protected]>
drm/amd/display: fix null-pointer dereference on edid readingArmin Wolf <[email protected]>
drm/amd/display: Fix memory leak indm_sw_fini()Srinivasan Shanmugam <[email protected]>
drm/amd/display: Fix potential null pointer dereference indc_dmub_srvMuhammad Usama Anjum <[email protected]>
selftests/iommu: fix the config fragmentErik Kurzinger <[email protected]>
drm/syncobj: handle NULL fence insyncobj_eventfd_entry_funcJason Gunthorpe <[email protected]>
iommu/arm-smmu-v3: Do not useGFP_KERNELunder as spinlockTina Zhang <[email protected]>
iommu: Addmm_get_enqcmd_pasid()helper functionErik Kurzinger <[email protected]>
drm/syncobj: calldrm_syncobj_fence_add_waitwhenWAIT_AVAILABLEflag is setSiddharth Vadapalli <[email protected]>
net: phy: realtek: Fix rtl8211f_config_init() for RTL8211F(D)(I)-VD-CG PHYJustin Iurman <[email protected]>
Fix write to cloned skb inipv6_hop_ioam()Rémi Denis-Courmont <[email protected]>
phonet/pep: fix racyskb_queue_empty()useRémi Denis-Courmont <[email protected]>
phonet: take correct lock to peek at the RX queueHoratiu Vultur <[email protected]>
net: sparx5: Add spinlock for frame transmission from CPUJianbo Liu <[email protected]>
net/sched: flower: Add lock protection when remove filter handleJiri Pirko <[email protected]>
devlink: fix port dump cmd typeJakub Kicinski <[email protected]>
tools: ynl: don't leakmcast_groupson init errorJakub Kicinski <[email protected]>
tools: ynl: make sure we always pass yarg tomnl_cb_runJeremy Kerr <[email protected]>
net: mctp: put sock on tag allocation failureFlorian Westphal <[email protected]>
netfilter:nf_tables: use kzalloc for hook allocationPablo Neira Ayuso <[email protected]>
netfilter:nf_tables: register hooks last when adding new chain/flowtablePablo Neira Ayuso <[email protected]>
netfilter:nft_flow_offload: release dst in case direct xmit path is usedPablo Neira Ayuso <[email protected]>
netfilter:nft_flow_offload: reset dst in route object after setting up flowFlorian Westphal <[email protected]>
netfilter:nf_tables: set dormant flag on hook register failureSabrina Dubroca <[email protected]>
tls: don't skip over different type records from therx_listSabrina Dubroca <[email protected]>
tls: stoprecv()if initialprocess_rx_listgave us non-DATASabrina Dubroca <[email protected]>
tls: break out of main loop when PEEK gets a non-data recordGuenter Roeck <[email protected]>
hwmon: (nct6775) Fix access to temperature configuration registersLad Prabhakar <[email protected]>
cache:ax45mp_cache: Align end size to cache boundary inax45mp_dma_cache_wback()Shigeru Yoshida <[email protected]>
bpf, sockmap: Fix NULL pointer dereference insk_psock_verdict_data_ready()Jason Gunthorpe <[email protected]>
s390: use the correct count for__iowrite64_copy()Jason Gunthorpe <[email protected]>
iommufd: Reject non-zerodata_typeif nodata_lenis providedAlex Elder <[email protected]>
net: ipa: don't overrun IPA suspend interrupt registersEric Dumazet <[email protected]>
net: implement locklesssetsockopt(SO_PEEK_OFF)Subbaraya Sundeep <[email protected]>
octeontx2-af: Consider the action set by PFYi Liu <[email protected]>
iommu/vt-d: Set SSADE when attaching to a parent with dirty trackingYi Liu <[email protected]>
iommu/vt-d: Add missing dirty tracking set for parent domainYi Liu <[email protected]>
iommu/vt-d: Wrap the dirty tracking loop to be a helperYi Liu <[email protected]>
iommu/vt-d: Remove domain parameter forintel_pasid_setup_dirty_tracking()Yi Liu <[email protected]>
iommu/vt-d: Track nested domains in parentYi Liu <[email protected]>
iommu/vt-d: Update iotlb in nested domain attachMaxime Ripard <[email protected]>
drm/i915/tv: Fix TV modeMario Limonciello <[email protected]>
platform/x86:thinkpad_acpi: Only update profile if successfully convertedMark Brown <[email protected]>
arm64/sme: Restore SMCR_EL1.EZT0 on exit from suspendMark Brown <[email protected]>
arm64/sme: Restore SME registers on exit from suspendEmil Renner Berthing <[email protected]>
gpiolib: Handle nopin_rangesingpiochip_generic_config()Amit Machhiwal <[email protected]>
KVM: PPC: Book3S HV: Fix L2 guest reboot failure due to empty 'arch_compat'Kuniyuki Iwashima <[email protected]>
arp: Prevent overflow inarp_req_get().Vasiliy Kovalev <[email protected]>
devlink: fix possible use-after-free and memory leaks indevlink_init()Vasiliy Kovalev <[email protected]>
ipv6: sr: fix possible use-after-free and null-ptr-derefDaniil Dulov <[email protected]>
afs: Increase buffer size inafs_update_volume_status()Guenter Roeck <[email protected]>
parisc: Fix stack unwinderMark Pearson <[email protected]>
platform/x86: think-lmi: Fix password opcode ordering for workstationsMartin KaFai Lau <[email protected]>
bpf: Fix racing betweenbpf_timer_cancel_and_freeandbpf_timer_cancelRadhey Shyam Pandey <[email protected]>
ata:ahci_ceva: fix error handling for Xilinx GT PHY supportHangbin Liu <[email protected]>
selftests: bonding: set active slave to primary eth1 specificallyGaurav Batra <[email protected]>
powerpc/pseries/iommu: DLPAR add doesn't completely initializepci_controllerJustin Chen <[email protected]>
net: bcmasp: Sanity check is off by oneFlorian Fainelli <[email protected]>
net: bcmasp: Indicate MAC is in charge of PHY PMEric Dumazet <[email protected]>
ipv6: properly combinedev_base_seqand ipv6.dev_addr_genidEric Dumazet <[email protected]>
ipv4: properly combinedev_base_seqand ipv4.dev_addr_genidPavel Sakharov <[email protected]>
net: stmmac: Fix incorrect dereference in interrupt handlersAlison Schofield <[email protected]>
x86/numa: Fix the sort compare func used innuma_fill_memblks()Alison Schofield <[email protected]>
x86/numa: Fix the address overlap check innuma_fill_memblks()Dan Carpenter <[email protected]>
drm/nouveau/mmu/r535: uninitialized variable inr535_bar_new_()Arnd Bergmann <[email protected]>
nouveau: fix function cast warningsJakub Kicinski <[email protected]>
net/sched:act_mirred: don't override retval if we already lost the skbJakub Kicinski <[email protected]>
net/sched:act_mirred: use the backlog for mirred ingressVictor Nogueira <[email protected]>
net/sched:act_mirred: Create functiontcf_mirred_to_devand improve readabilityRandy Dunlap <[email protected]>
net: ethernet: adi: requires PHYLIB supportKuniyuki Iwashima <[email protected]>
dccp/tcp: Unhash sk from ehash for tb2 alloc failure aftercheck_estalblished().Tobias Waldekranz <[email protected]>
net: bridge: switchdev: Ensure deferred event delivery on unoffloadTobias Waldekranz <[email protected]>
net: bridge: switchdev: Skip MDB replays of deferred events on offloadRandy Dunlap <[email protected]>
scsi:jazz_esp: Only build if SCSI core is builtinDon Brace <[email protected]>
scsi: smartpqi: Fixdisable_managed_interruptsDan Carpenter <[email protected]>
scsi: ufs: Uninitialized variable inufshcd_devfreq_target()Gianmarco Lusvardi <[email protected]>
bpf, scripts: Correct GPL license nameArnd Bergmann <[email protected]>
RDMA/srpt: fix function pointer cast warningsSebastian Andrzej Siewior <[email protected]>
xsk: Add truesize toskb_add_rx_frag().Chris Morgan <[email protected]>
arm64: dts: rockchip: Correct Indiedroid Nova GPIO NamesHeiko Stuebner <[email protected]>
arm64: dts: rockchip: set num-cs property for spi on px30Kamal Heib <[email protected]>
RDMA/qedr: Fixqedr_create_user_qperror flowJoao Martins <[email protected]>
iommufd/iova_bitmap: Consider page offset for the pages to be pinnedJoao Martins <[email protected]>
iommufd/iova_bitmap: Handle recording beyond the mapped pagesJoao Martins <[email protected]>
iommufd/iova_bitmap: Switchiova_bitmap::bitmapto an u8 arrayJoao Martins <[email protected]>
iommufd/iova_bitmap: Bounds checkmapped::pagesaccessLucas Stach <[email protected]>
bus: imx-weim: fix valid range checkAlexander Stein <[email protected]>
arm64: dts: tqma8mpql: fix audio codec iov-supplyBart Van Assche <[email protected]>
RDMA/srpt: Support specifying thesrpt_service_guidparameterMustafa Ismail <[email protected]>
RDMA/irdma: Add AE for too many RNRSMustafa Ismail <[email protected]>
RDMA/irdma: Set the CQ read threshold for GEN 1Shiraz Saleem <[email protected]>
RDMA/irdma: Validatemax_send_wrandmax_recv_wrMike Marciniszyn <[email protected]>
RDMA/irdma: Fix KASAN issue with taskletMarek Vasut <[email protected]>
arm64: dts: imx8mp: Disable UART4 by default on Data Modul i.MX8M Plus eDM SBCMark Zhang <[email protected]>
IB/mlx5: Don't expose debugfs entries for RRoCE general parameters if not supportedKalesh AP <[email protected]>
RDMA/bnxt_re: Add a missing check inbnxt_qplib_query_srqKalesh AP <[email protected]>
RDMA/bnxt_re: Return error for SRQ resizeZhipeng Lu <[email protected]>
IB/hfi1: Fix a memleak ininit_credit_returnSohaib Nadeem <[email protected]>
Revert "drm/amd/display: increasedmin_dcfclk_mhzandmin_fclk_mhz"Srinivasan Shanmugam <[email protected]>
drm/amd/display: Fix buffer overflow in 'get_host_router_total_dp_tunnel_bw()'Nathan Chancellor <[email protected]>
drm/amd/display: Avoid enum conversion warningSteve French <[email protected]>
smb3: add missing null server pointer checkLennert Buytenhek <[email protected]>
ahci: Extend ASM1061 43-bit DMA address quirk to other ASM106x partsMatthieu Baerts (NGI0) <[email protected]>
selftests: mptcp: diag: unique 'cestab' subtest namesMatthieu Baerts (NGI0) <[email protected]>
selftests: mptcp: diag: unique 'in use' subtest namesMatthieu Baerts (NGI0) <[email protected]>
selftests: mptcp: diag: fix bash warnings on older kernelsGeliang Tang <[email protected]>
selftests: mptcp: diag: check CURRESTAB countersMatthieu Baerts (NGI0) <[email protected]>
selftests: mptcp: pm nl: avoid error msg on older kernelsMatthieu Baerts (NGI0) <[email protected]>
selftests: mptcp: pm nl: also list skipped testsMatthieu Baerts (NGI0) <[email protected]>
selftests: mptcp: simult flows: fix some subtest namesMatthieu Baerts (NGI0) <[email protected]>
selftests: mptcp:userspace_pm: unique subtest namesPaolo Abeni <[email protected]>
mptcp: fix duplicate subflow creationPaolo Abeni <[email protected]>
mptcp: fix data races onremote_idPaolo Abeni <[email protected]>
mptcp: fix data races onlocal_idPaolo Abeni <[email protected]>
mptcp: fix lockless access in subflow ULP diagGeliang Tang <[email protected]>
mptcp: addneeds_idfor netlink appending addrGeliang Tang <[email protected]>
mptcp: addneeds_idfor userspace appending addrXu Yang <[email protected]>
usb: roles: don't get/set_role() whenusb_role_switchis unregisteredXu Yang <[email protected]>
usb: roles: fix NULL pointer issue when put module's referenceAaro Koskinen <[email protected]>
usb: gadget:omap_udc: fix USB gadget regression on Palm TEKrishna Kurapati <[email protected]>
usb: gadget: ncm: Avoid dropping datagrams of properly parsed NTBsFrank Li <[email protected]>
usb: cdns3: fix memory double free when handle zero packetFrank Li <[email protected]>
usb: cdns3: fixed memory use after free atcdns3_gadget_ep_disable()Pawel Laszczak <[email protected]>
usb: cdnsp: fixed issue with incorrect detecting CDNSP family controllersPawel Laszczak <[email protected]>
usb: cdnsp: blocked some cdns3 specific codeThinh Nguyen <[email protected]>
usb: dwc3: gadget: Don't disconnect if not startedLino Sanfilippo <[email protected]>
serial: amba-pl011: Fix DMA transmission in RS485 modeLino Sanfilippo <[email protected]>
serial: stm32: do not always setSER_RS485_RX_DURING_TXif RS485 is enabledOndrej Jirman <[email protected]>
Revert "usb: typec: tcpm: reset counter when enter into unattached state after try role"Sandeep Dhavale <[email protected]>
erofs: fix refcount on the metabuf used for inode lookupArnd Bergmann <[email protected]>
dm-integrity, dm-verity: reduce stack usage for recheckNikita Shubin <[email protected]>
ARM: ep93xx: Add terminator togpiod_lookup_tableTom Parkin <[email protected]>
l2tp: pass correct message length toip6_append_dataVidya Sagar <[email protected]>
PCI/MSI: Prevent MSI hardware interrupt number truncationNam Cao <[email protected]>
irqchip/sifive-plic: Enable interrupt if needed before EOIOliver Upton <[email protected]>
irqchip/gic-v3-its: Do not assume vPE tables are preallocatedChen Jun <[email protected]>
irqchip/mbigen: Don't usebus_get_dev_root()to find the parentzhenwei pi <[email protected]>
crypto: virtio/akcipher - Fix stack overflow on memcpyVasiliy Kovalev <[email protected]>
gtp: fix use-after-free and null-ptr-deref ingtp_genl_dump_pdp()Andrzej Kacprowski <[email protected]>
accel/ivpu: Don't enable any tiles by default on VPU40xxOliver Upton <[email protected]>
KVM: arm64: vgic-its: Test for valid IRQ inits_sync_lpi_pending_table()Oliver Upton <[email protected]>
KVM: arm64: vgic-its: Test for valid IRQ in MOVALL handlerYu Kuai <[email protected]>
md: Fix missing release of 'active_io' for flushYu Kuai <[email protected]>
md: Don't suspend the array for interrupted reshapeYu Kuai <[email protected]>
md: Don't registersync_threadfor reshape directlyYu Kuai <[email protected]>
md: Make suremd_do_sync()will setMD_RECOVERY_DONEYu Kuai <[email protected]>
md: Don't ignore read-only array inmd_check_recovery()Yu Kuai <[email protected]>
md: Don't ignore suspended array inmd_check_recovery()Javier Martinez Canillas <[email protected]>
sparc: Fix undefined reference tofb_is_primary_deviceBaokun Li <[email protected]>
cachefiles: fix memory leak incachefiles_add_cache()Hans de Goede <[email protected]>
platform/x86:touchscreen_dmi: Allow partial (prefix) matches for ACPI namesHans de Goede <[email protected]>
platform/x86: intel-vbtn: Stop calling "VBDL" fromnotify_handlerHans de Goede <[email protected]>
platform/x86: x86-android-tablets: Fix keyboard touchscreen on Lenovo Yogabook1 X90Anshuman Khandual <[email protected]>
mm/memblock: add MEMBLOCK_RSRV_NOINIT into flagname[] arraySeongJae Park <[email protected]>
mm/damon/reclaim: fix quota stauts loss due to online tuningsSeongJae Park <[email protected]>
mm/damon/core: check apply interval indamon_do_apply_schemes()Johannes Weiner <[email protected]>
mm: memcontrol: clarify swapaccount=0 deprecation warningSeongJae Park <[email protected]>
mm/damon/lru_sort: fix quota status loss due to online tuningsKairui Song <[email protected]>
mm/swap: fix race when skipping swapcacheTerry Tritton <[email protected]>
selftests/mm: uffd-unit-test check if huge page size is 0Martin K. Petersen <[email protected]>
scsi: core: Consult supported VPD page list prior to fetching pageNaohiro Aota <[email protected]>
scsi: target: pscsi: Fixbio_put()for error caseMartin K. Petersen <[email protected]>
scsi: sd:usb_storage: uas: Access media prior to querying device propertiesRobert Richter <[email protected]>
cxl/pci: Fix disabling memory if DVSEC CXL Range does not match a CFMWS windowLi Ming <[email protected]>
cxl/pci: Skip to handle RAS errors if CXL.mem device is detachedDan Williams <[email protected]>
cxl/acpi: Fix load failures due to single window creation failureMikulas Patocka <[email protected]>
dm-verity: recheck the hash after a failureMikulas Patocka <[email protected]>
dm-crypt: don't modify the data when using authenticated encryptionMikulas Patocka <[email protected]>
dm-integrity: recheck the integrity tag after a failureHelge Deller <[email protected]>
Revert "parisc: Only list existing CPUs incpu_possible_mask"Mikulas Patocka <[email protected]>
dm-crypt: recheck the integrity tag after a failureGuenter Roeck <[email protected]>
lib/Kconfig.debug:TEST_IOV_ITERdepends on MMUBart Van Assche <[email protected]>
fs/aio: Restrictkiocb_set_cancel_fn()to I/O submitted via libaioDamien Le Moal <[email protected]>
ata: libata-core: Do not callata_dev_power_set_standby()twiceDamien Le Moal <[email protected]>
ata: libata-core: Do not try to set sleeping devices to standbyPeter Oberparleiter <[email protected]>
s390/cio: fix invalid-EBUSYonccw_device_startMa Jun <[email protected]>
drm/amdgpu: Fix the runtime resume failure issueWayne Lin <[email protected]>
drm/amd/display: adjust few initialization order in dmLewis Huang <[email protected]>
drm/amd/display: Only allow dig mapping to pwrseq in new asicArunpravin Paneer Selvam <[email protected]>
drm/buddy: Modify duplicatelist_splice_tailcallMartin Blumenstingl <[email protected]>
drm/meson: Don't remove bridges which are created by other driversThomas Hellström <[email protected]>
drm/ttm: Fix an invalid freeing on already freed page in error pathQu Wenruo <[email protected]>
btrfs: defrag: avoid unnecessary defrag caused by incorrect extent sizeHuacai Chen <[email protected]>
LoongArch: Updatecpu_sibling_mapwhen disabling nonboot CPUsHuacai Chen <[email protected]>
LoongArch: Disable IRQ beforeinit_fn()for nonboot CPUsHuacai Chen <[email protected]>
LoongArch: Callearly_init_fdt_scan_reserved_mem()earlierJonathan Corbet <[email protected]>
docs: Instruct LaTeX to cope with deeper nestingPawan Gupta <[email protected]>
x86/bugs: Add asm helpers for executing VERWDavid Gow <[email protected]>
kunit: Add a macro to wrap a deferred action functionDaniel Vacek <[email protected]>
IB/hfi1: Fix sdma.h tx->num_descs off-by-one errorSohaib Nadeem <[email protected]>
drm/amd/display: fixed integer types and null check locationsPeichen Huang <[email protected]>
drm/amd/display: Request usb4 bw for mst streamsMeenakshikumar Somasundaram <[email protected]>
drm/amd/display: Add dpia display mode validation logicPaolo Abeni <[email protected]>
mptcp: corner case locking for rx path fields initializationPaolo Abeni <[email protected]>
mptcp: fix more tx path fields initializationGeliang Tang <[email protected]>
mptcp: usemptcp_set_stateGeliang Tang <[email protected]>
mptcp: add CurrEstab MIB counter supportSteve French <[email protected]>
smb3: clarify mount warningShyam Prasad N <[email protected]>
cifs: handle cases where multiple sessions share connectionShyam Prasad N <[email protected]>
cifs: change tcon status whenneed_reconnectis set on itYi Sun <[email protected]>
virtio-blk: Ensure no requests in virtqueues before deleting vqs.Paulo Alcantara <[email protected]>
smb: client: set correctd_typefor reparse points under DFS mountsLijo Lazar <[email protected]>
drm/amdgpu: Fix HDP flush for VFs on nbio v7.9Stanley.Yang <[email protected]>
drm/amdgpu: Fix shared buff copy to userPrike Liang <[email protected]>
drm/amdgpu: reset gpu for s3 suspend abort casePrike Liang <[email protected]>
drm/amdgpu: skip to program GFXDEC registers for suspend abortXiubo Li <[email protected]>
ceph: always check dir caps asynchronouslyXiubo Li <[email protected]>
libceph: fail sparse-read if the data length doesn't matchTakashi Sakamoto <[email protected]>
firewire: core: send bus reset promptly on gap count errorKrystian Pradzynski <[email protected]>
accel/ivpu/40xx: Stop passing SKU boot parameters to FWJacek Lawrynowicz <[email protected]>
accel/ivpu: Disabled3hot_delayon all NPU generationsWachowski, Karol <[email protected]>
accel/ivpu: Force snooping for MMU writesKees Cook <[email protected]>
LoongArch: vDSO: Disable UBSAN instrumentationHuacai Chen <[email protected]>
LoongArch: Change acpi_core_pic[NR_CPUS] to acpi_core_pic[MAX_CORE_PIC]Masahiro Yamada <[email protected]>
LoongArch: SelectHAVE_ARCH_SECCOMPto use the common SECCOMP menuMasahiro Yamada <[email protected]>
LoongArch: SelectARCH_ENABLE_THP_MIGRATIONinstead of redefining itSEO HOYOUNG <[email protected]>
scsi: ufs: core: Remove theufshcd_release()inufshcd_err_handling_prepare()Alice Chao <[email protected]>
scsi: ufs: core: Fix shift issue inufshcd_clear_cmd()Hannes Reinecke <[email protected]>
scsi: lpfc: Use unsigned type fornum_sgeTimur Tabi <[email protected]>
drm/nouveau:nvkm_gsp_radix3_sg()should usenvkm_gsp_mem_ctor()Zhang Rui <[email protected]>
hwmon: (coretemp) Enlarge per package core count limitAndrew Bresticker <[email protected]>
efi: Don't add memblocks for soft-reserved memoryAndrew Bresticker <[email protected]>
efi: runtime: Fix potential overflow of soft-reserved region sizeBenjamin Berg <[email protected]>
wifi: iwlwifi: do not announce EPCS supportJohannes Berg <[email protected]>
wifi: mac80211: accept broadcast probe responses on 6 GHzJohannes Berg <[email protected]>
wifi: mac80211: adding missingdrv_mgd_complete_tx()callJohannes Berg <[email protected]>
wifi: mac80211: initialize SMPS mode correctlyJohannes Berg <[email protected]>
wifi: mac80211: fix driver debugfs for vif type changeJohannes Berg <[email protected]>
wifi: mac80211: set station RX-NSS on reconfigEdward Adam Davis <[email protected]>
fs/ntfs3: Fix oob inntfs_listxattrKonstantin Komarov <[email protected]>
fs/ntfs3: Update inode->i_size after success write into compressed fileKonstantin Komarov <[email protected]>
fs/ntfs3: Fixed overflow check inmi_enum_attr()Konstantin Komarov <[email protected]>
fs/ntfs3: Correct functionis_rst_area_validKonstantin Komarov <[email protected]>
fs/ntfs3: Usei_size_readandi_size_writeKonstantin Komarov <[email protected]>
fs/ntfs3: Prevent generic message "attempt to access beyond end of device"Ism Hong <[email protected]>
fs/ntfs3: use non-movable memory for ntfs3 MFT buffer cacheKonstantin Komarov <[email protected]>
fs/ntfs3: Use kvfree to free memory allocated by kvmallocKonstantin Komarov <[email protected]>
fs/ntfs3: DisableATTR_LIST_ENTRYsize checkKonstantin Komarov <[email protected]>
fs/ntfs3: Fix c/mtime typoKonstantin Komarov <[email protected]>
fs/ntfs3: Add NULL ptr dereference checking at the end ofattr_allocate_frame()Konstantin Komarov <[email protected]>
fs/ntfs3: Add and fix commentsKonstantin Komarov <[email protected]>
fs/ntfs3:ntfs3_forced_shutdownuse int instead of boolKonstantin Komarov <[email protected]>
fs/ntfs3: Implementsuper_operations::shutdownKonstantin Komarov <[email protected]>
fs/ntfs3: Drop suid and sgid bits as a part of fpunchKonstantin Komarov <[email protected]>
fs/ntfs3: Addfile_modifiedKonstantin Komarov <[email protected]>
fs/ntfs3: Correct usebh_readKonstantin Komarov <[email protected]>
fs/ntfs3: Fix detected field-spanning write (size 8) of single field "le->name"Konstantin Komarov <[email protected]>
fs/ntfs3: Fix multithreaded stress testKonstantin Komarov <[email protected]>
fs/ntfs3: Reduce stack usageKonstantin Komarov <[email protected]>
fs/ntfs3: Print warning while fixing hard links countKonstantin Komarov <[email protected]>
fs/ntfs3: Correct hard links updating when dealing with DOS namesKonstantin Komarov <[email protected]>
fs/ntfs3: Improventfs_dir_countKonstantin Komarov <[email protected]>
fs/ntfs3: Modified fix directory element type detectionKonstantin Komarov <[email protected]>
fs/ntfs3: Improve alternative boot processingSzilard Fabian <[email protected]>
Input: i8042 - add Fujitsu Lifebook U728 to i8042 quirk tableZhang Yi <[email protected]>
ext4: correct the hole length returned byext4_map_blocks()Paulo Alcantara <[email protected]>
smb: client: increase number of PDUs allowed in a compound requestShyam Prasad N <[email protected]>
cifs: do not search for channel if server is terminatingDaniel Wagner <[email protected]>
nvmet-fc: take ref count on tgtport before delete assocDaniel Wagner <[email protected]>
nvmet-fc: avoid deadlock on delete association pathDaniel Wagner <[email protected]>
nvmet-fc: abort command when there is no bindingDaniel Wagner <[email protected]>
nvmet-fc: hold reference on hostport matchDaniel Wagner <[email protected]>
nvmet-fc: free queue and assoc directlyDaniel Wagner <[email protected]>
nvmet-fc: defer cleanup using RCU properlyDaniel Wagner <[email protected]>
nvmet-fc: release reference on target portDaniel Wagner <[email protected]>
nvmet-fcloop: swap thelist_add_tailargumentsDaniel Wagner <[email protected]>
nvme-fc: do not wait in vain when unloading moduleAlexander Tsoy <[email protected]>
ALSA: usb-audio: Ignore clock selector errors for single connectionRichard Fitzgerald <[email protected]>
ASoC:wm_adsp: Don't overwritefwf_namewith the defaultShyam Prasad N <[email protected]>
cifs: make sure that channel scaling is done only onceDmytro Laktyushkin <[email protected]>
drm/amd/display: Fix DPSTREAM CLK on and off sequenceCharlene Liu <[email protected]>
drm/amd/display: fix USB-C flag update after enc10 feature initSohaib Nadeem <[email protected]>
drm/amd/display: increasedmin_dcfclk_mhzandmin_fclk_mhzMukul Joshi <[email protected]>
drm/amdkfd: Use correct drm device for cgroup permission checkXin Long <[email protected]>
netfilter: conntrack: checkSCTP_CID_SHUTDOWN_ACKfor vtag setting insctp_newWill Deacon <[email protected]>
misc: open-dice: Fix spurious lockdep warningBrenton Simpson <[email protected]>
Input: xpad - add Lenovo Legion Go controllersWolfram Sang <[email protected]>
spi: sh-msiof: avoid integer overflow in constantsPatrick Rudolph <[email protected]>
regulator (max5970): Fix IRQ handlerChhayly Leang <[email protected]>
ALSA: hda: cs35l41: Support ASUS Zenbook UM3402YARKenzo Gomez <[email protected]>
ALSA: hda: cs35l41: Support additional ASUS Zenbook UX3402VAChen-Yu Tsai <[email protected]>
ASoC: sunxi: sun4i-spdif: Add support for Allwinner H616Alexander Tsoy <[email protected]>
ALSA: usb-audio: Check presence of valid altsetting controlChristian A. Ehrhardt <[email protected]>
usb:ucsi_acpi: Quirk to ack a connector change ack cmdGuixin Liu <[email protected]>
nvmet-tcp: fix nvme tcp ida memory leakKunwu Chan <[email protected]>
HID: nvidia-shield: Add missing null pointer checks to LED initializationRui Salvaterra <[email protected]>
ALSA: hda: Increase defaultbdl_pos_adjfor Apollo LakeRui Salvaterra <[email protected]>
ALSA: hda: Replace numeric device IDs with constant valuesJiri Kosina <[email protected]>
HID: logitech-hidpp: add support for Logitech G Pro X Superlight 2Martin Blumenstingl <[email protected]>
regulator: pwm-regulator: Add validity checks in continuous .get_voltageVenkata Prasad Potturu <[email protected]>
ASoC: amd: acp: Add check for cpu dai link initializationKunwu Chan <[email protected]>
dmaengine: ti: edma: Add some null pointer checks to theedma_probeHans de Goede <[email protected]>
Input: goodix - accept ACPI resources with gpio_count == 3 && gpio_int_idx == 0Baokun Li <[email protected]>
ext4: avoid allocating blocks from corrupted group inext4_mb_find_by_goal()Baokun Li <[email protected]>
ext4: avoid allocating blocks from corrupted group inext4_mb_try_best_found()Baokun Li <[email protected]>
ext4: avoid dividing by 0 inmb_update_avg_fragment_size()when block bitmap corruptPhoenix Chen <[email protected]>
platform/x86:touchscreen_dmi: Add info for the TECLAST X16 Plus tabletHuang Pei <[email protected]>
MIPS: reserve exception vector space ONLY ONCERoman Li <[email protected]>
drm/amd/display: Disable ips before dc interrupt settingLukas Wunner <[email protected]>
ARM: dts: Fix TPM schema violationsLennert Buytenhek <[email protected]>
ahci: add 43-bit DMA address quirk for ASMedia ASM1061 controllersCharles Keepax <[email protected]>
spi: cs42l43: Handle error fromdevm_pm_runtime_enableMaksim Kiselev <[email protected]>
aoe: avoid potential deadlock atset_capacityConrad Kostecki <[email protected]>
ahci: asm1166: correct count of reported portsShyam Prasad N <[email protected]>
cifs: helper function to check replayable error codesShyam Prasad N <[email protected]>
cifs: translate network errors on send to-ECONNABORTEDShyam Prasad N <[email protected]>
cifs:cifs_pick_channelshould try selecting active channelsKees Cook <[email protected]>
smb: Work around Clang__bdos()type confusionChristian A. Ehrhardt <[email protected]>
block: Fix WARNING in_copy_from_iterDevyn Liu <[email protected]>
spi: hisi-sfc-v3xx: ReturnIRQ_NONEif no interrupts were detectedMika Westerberg <[email protected]>
spi: intel-pci: Add support for Arrow Lake SPI serial flashLiming Sun <[email protected]>
platform/mellanox: mlxbf-tmfifo: Drop Tx network packet when Tx TmFIFO is fullFullway Wang <[email protected]>
fbdev: sis: Error out if pixclock equals zeroFullway Wang <[email protected]>
fbdev: savage: Error out if pixclock equals zeroFelix Fietkau <[email protected]>
wifi: mac80211: fix race condition on enabling fast-xmitMichal Kazior <[email protected]>
wifi: cfg80211: fix missing interfaces when dumpingVinod Koul <[email protected]>
dmaengine: dw-edma: increase size of 'name' in debugfs codeVinod Koul <[email protected]>
dmaengine: fsl-qdma: increase size of 'irq_name'Vinod Koul <[email protected]>
dmaengine: shdma: increase size of 'dev_id'Shyam Prasad N <[email protected]>
cifs:open_cached_dirshould not rely on primary channelDmitry Bogdanov <[email protected]>
scsi: target: core: Add TMF totmr_listhandlingChristoph Müllner <[email protected]>
tools: selftests: riscv: Fix compile warnings in mm testsChristoph Müllner <[email protected]>
tools: selftests: riscv: Fix compile warnings in vector testsChristoph Müllner <[email protected]>
tools: selftests: riscv: Fix compile warnings in cboChristoph Müllner <[email protected]>
tools: selftests: riscv: Fix compile warnings in hwprobeMahesh Rajashekhara <[email protected]>
scsi: smartpqi: Fix logical volume rescan race conditionDavid Strahan <[email protected]>
scsi: smartpqi: Add new controller PCI IDsHector Martin <[email protected]>
dmaengine: apple-admac: Keep upper bits ofREG_BUS_WIDTHMario Limonciello <[email protected]>
drm/amd: Stop evicting resources on APUs in suspend-------------
Diffstat:
Documentation/conf.py | 6 + Documentation/dev-tools/kunit/usage.rst | 10 +- Makefile | 4 +- .../dts/aspeed/aspeed-bmc-facebook-bletchley.dts | 4 +- .../dts/aspeed/aspeed-bmc-facebook-wedge400.dts | 4 +- arch/arm/boot/dts/aspeed/aspeed-bmc-opp-tacoma.dts | 2 +- .../dts/aspeed/ast2600-facebook-netbmc-common.dtsi | 4 +- .../arm/boot/dts/nxp/imx/imx6ull-phytec-tauri.dtsi | 2 +- .../boot/dts/nxp/imx/imx7d-flex-concentrator.dts | 2 +- .../dts/ti/omap/am335x-moxa-uc-2100-common.dtsi | 2 +- arch/arm/mach-ep93xx/core.c | 1 + .../dts/freescale/imx8mp-data-modul-edm-sbc.dts | 2 +- .../dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts | 9 +- arch/arm64/boot/dts/rockchip/px30.dtsi | 2 + .../boot/dts/rockchip/rk3588s-indiedroid-nova.dts | 10 +- arch/arm64/include/asm/fpsimd.h | 2 + arch/arm64/kernel/fpsimd.c | 16 ++ arch/arm64/kernel/suspend.c | 3 + arch/arm64/kvm/vgic/vgic-its.c | 5 + arch/loongarch/Kconfig | 23 +-- arch/loongarch/include/asm/acpi.h | 4 +- arch/loongarch/kernel/acpi.c | 4 +- arch/loongarch/kernel/setup.c | 4 +- arch/loongarch/kernel/smp.c | 122 ++++++----- arch/loongarch/vdso/Makefile | 1 + arch/mips/kernel/traps.c | 8 +- arch/parisc/kernel/processor.c | 8 - arch/parisc/kernel/unwind.c | 14 +- arch/powerpc/include/asm/ppc-pci.h | 10 + arch/powerpc/kernel/iommu.c | 23 ++- arch/powerpc/kvm/book3s_hv.c | 26 ++- arch/powerpc/kvm/book3s_hv_nestedv2.c | 20 +- arch/powerpc/platforms/pseries/pci_dlpar.c | 4 + arch/s390/pci/pci.c | 2 +- arch/sparc/Makefile | 2 +- arch/sparc/video/Makefile | 2 +- arch/x86/entry/entry.S | 23 +++ arch/x86/include/asm/cpufeatures.h | 2 +- arch/x86/include/asm/nospec-branch.h | 13 ++ arch/x86/kernel/traps.c | 2 +- arch/x86/mm/numa.c | 21 +- block/blk-map.c | 13 +- drivers/accel/ivpu/ivpu_drv.c | 5 +- drivers/accel/ivpu/ivpu_hw_37xx.c | 2 +- drivers/accel/ivpu/ivpu_hw_40xx.c | 9 +- drivers/accel/ivpu/ivpu_mmu.c | 3 - drivers/ata/ahci.c | 44 +++- drivers/ata/ahci.h | 1 + drivers/ata/ahci_ceva.c | 125 ++++++----- drivers/ata/libata-core.c | 87 ++++---- drivers/block/aoe/aoeblk.c | 5 +- drivers/block/virtio_blk.c | 7 +- drivers/bus/imx-weim.c | 2 +- drivers/cache/ax45mp_cache.c | 4 + .../crypto/virtio/virtio_crypto_akcipher_algs.c | 5 +- drivers/cxl/acpi.c | 46 +++-- drivers/cxl/core/pci.c | 49 +++-- drivers/dma/apple-admac.c | 5 +- drivers/dma/dw-edma/dw-edma-v0-debugfs.c | 4 +- drivers/dma/dw-edma/dw-hdma-v0-debugfs.c | 4 +- drivers/dma/fsl-qdma.c | 2 +- drivers/dma/sh/shdma.h | 2 +- drivers/dma/ti/edma.c | 10 + drivers/firewire/core-card.c | 18 +- drivers/firmware/efi/arm-runtime.c | 2 +- drivers/firmware/efi/efi-init.c | 19 +- drivers/firmware/efi/riscv-runtime.c | 2 +- drivers/gpio/gpiolib.c | 5 + drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 + drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 18 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 11 +- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 + drivers/gpu/drm/amd/amdgpu/amdgpu_psp_ta.c | 2 +- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 8 + drivers/gpu/drm/amd/amdgpu/nbio_v7_9.c | 6 + drivers/gpu/drm/amd/amdgpu/soc15.c | 22 ++ drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 9 +- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 57 +++--- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c | 5 +- drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c | 16 +- .../gpu/drm/amd/display/dc/core/dc_link_exports.c | 2 +- drivers/gpu/drm/amd/display/dc/dc.h | 4 +- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 7 +- drivers/gpu/drm/amd/display/dc/dc_dp_types.h | 6 + drivers/gpu/drm/amd/display/dc/dc_types.h | 14 +- .../gpu/drm/amd/display/dc/dce/dce_panel_cntl.c | 1 + .../drm/amd/display/dc/dcn301/dcn301_panel_cntl.c | 1 + .../drm/amd/display/dc/dcn31/dcn31_panel_cntl.c | 18 +- .../amd/display/dc/dcn32/dcn32_dio_link_encoder.c | 4 +- .../amd/display/dc/dcn35/dcn35_dio_link_encoder.c | 4 +- .../drm/amd/display/dc/hwss/dce110/dce110_hwseq.c | 2 +- .../drm/amd/display/dc/hwss/dcn20/dcn20_hwseq.c | 11 +- drivers/gpu/drm/amd/display/dc/inc/hw/panel_cntl.h | 2 +- drivers/gpu/drm/amd/display/dc/link/link_dpms.c | 42 +++- drivers/gpu/drm/amd/display/dc/link/link_factory.c | 26 +-- .../gpu/drm/amd/display/dc/link/link_validation.c | 60 +++++- .../display/dc/link/protocols/link_dp_dpia_bw.c | 178 ++++++++++++---- .../display/dc/link/protocols/link_dp_dpia_bw.h | 9 + drivers/gpu/drm/drm_buddy.c | 4 +- drivers/gpu/drm/drm_syncobj.c | 19 +- drivers/gpu/drm/i915/display/intel_sdvo.c | 10 +- drivers/gpu/drm/i915/display/intel_tv.c | 10 +- drivers/gpu/drm/meson/meson_encoder_cvbs.c | 1 - drivers/gpu/drm/meson/meson_encoder_dsi.c | 1 - drivers/gpu/drm/meson/meson_encoder_hdmi.c | 1 - drivers/gpu/drm/nouveau/nvkm/subdev/bar/r535.c | 5 +- drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c | 8 +- drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c | 18 +- drivers/gpu/drm/ttm/ttm_pool.c | 2 +- drivers/hid/hid-logitech-hidpp.c | 2 + drivers/hid/hid-nvidia-shield.c | 4 + drivers/hwmon/coretemp.c | 2 +- drivers/hwmon/nct6775-core.c | 14 +- drivers/i2c/busses/i2c-imx.c | 5 + drivers/infiniband/hw/bnxt_re/ib_verbs.c | 5 +- drivers/infiniband/hw/bnxt_re/qplib_fp.c | 3 +- drivers/infiniband/hw/hfi1/pio.c | 6 +- drivers/infiniband/hw/hfi1/sdma.c | 2 +- drivers/infiniband/hw/irdma/defs.h | 1 + drivers/infiniband/hw/irdma/hw.c | 8 + drivers/infiniband/hw/irdma/verbs.c | 9 +- drivers/infiniband/hw/mlx5/cong.c | 6 + drivers/infiniband/hw/qedr/verbs.c | 11 +- drivers/infiniband/ulp/srpt/ib_srpt.c | 17 +- drivers/input/joystick/xpad.c | 2 + drivers/input/serio/i8042-acpipnpio.h | 8 + drivers/input/touchscreen/goodix.c | 3 +- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c | 45 ++-- drivers/iommu/intel/iommu.c | 87 ++++++-- drivers/iommu/intel/iommu.h | 7 + drivers/iommu/intel/nested.c | 14 +- drivers/iommu/intel/pasid.c | 5 +- drivers/iommu/intel/pasid.h | 1 - drivers/iommu/iommu-sva.c | 2 +- drivers/iommu/iommufd/hw_pagetable.c | 3 +- drivers/iommu/iommufd/iova_bitmap.c | 68 +++++- drivers/irqchip/irq-gic-v3-its.c | 2 +- drivers/irqchip/irq-mbigen.c | 8 +- drivers/irqchip/irq-sifive-plic.c | 8 +- drivers/md/dm-crypt.c | 95 +++++++-- drivers/md/dm-integrity.c | 91 +++++++- drivers/md/dm-verity-target.c | 86 +++++++- drivers/md/dm-verity.h | 6 + drivers/md/md.c | 70 ++++--- drivers/md/raid10.c | 16 +- drivers/md/raid5.c | 29 +-- drivers/misc/open-dice.c | 2 +- drivers/net/ethernet/adi/Kconfig | 1 + drivers/net/ethernet/broadcom/asp2/bcmasp.c | 6 +- drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c | 3 + .../net/ethernet/marvell/octeontx2/af/rvu_npc.c | 4 + .../net/ethernet/microchip/sparx5/sparx5_main.c | 1 + .../net/ethernet/microchip/sparx5/sparx5_main.h | 1 + .../net/ethernet/microchip/sparx5/sparx5_packet.c | 2 + drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 20 -- drivers/net/gtp.c | 10 +- drivers/net/ipa/ipa_interrupt.c | 2 +- drivers/net/phy/realtek.c | 4 +- drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c | 5 +- drivers/nvme/host/fc.c | 47 +---- drivers/nvme/target/fc.c | 137 +++++++------ drivers/nvme/target/fcloop.c | 6 +- drivers/nvme/target/tcp.c | 1 + drivers/pci/msi/irqdomain.c | 2 +- drivers/platform/mellanox/mlxbf-tmfifo.c | 67 ++++++ drivers/platform/x86/intel/vbtn.c | 3 - drivers/platform/x86/think-lmi.c | 20 +- drivers/platform/x86/thinkpad_acpi.c | 5 +- drivers/platform/x86/touchscreen_dmi.c | 39 +++- drivers/platform/x86/x86-android-tablets/core.c | 3 + drivers/platform/x86/x86-android-tablets/lenovo.c | 1 + .../x86/x86-android-tablets/x86-android-tablets.h | 1 + drivers/regulator/max5970-regulator.c | 2 +- drivers/regulator/pwm-regulator.c | 3 + drivers/s390/cio/device_ops.c | 6 +- drivers/scsi/Kconfig | 2 +- drivers/scsi/lpfc/lpfc_scsi.c | 12 +- drivers/scsi/scsi.c | 22 +- drivers/scsi/sd.c | 26 ++- drivers/scsi/smartpqi/smartpqi.h | 1 - drivers/scsi/smartpqi/smartpqi_init.c | 88 +++++++- drivers/spi/spi-cs42l43.c | 5 +- drivers/spi/spi-hisi-sfc-v3xx.c | 5 + drivers/spi/spi-intel-pci.c | 1 + drivers/spi/spi-sh-msiof.c | 16 +- drivers/target/target_core_device.c | 5 - drivers/target/target_core_pscsi.c | 9 +- drivers/target/target_core_transport.c | 4 + drivers/tty/serial/amba-pl011.c | 60 +++--- drivers/tty/serial/stm32-usart.c | 4 +- drivers/ufs/core/ufshcd.c | 7 +- drivers/usb/cdns3/cdns3-gadget.c | 8 +- drivers/usb/cdns3/core.c | 1 - drivers/usb/cdns3/drd.c | 13 +- drivers/usb/cdns3/drd.h | 6 +- drivers/usb/cdns3/host.c | 16 +- drivers/usb/dwc3/gadget.c | 5 + drivers/usb/gadget/function/f_ncm.c | 10 +- drivers/usb/gadget/udc/omap_udc.c | 3 +- drivers/usb/roles/class.c | 29 ++- drivers/usb/storage/scsiglue.c | 7 + drivers/usb/storage/uas.c | 7 + drivers/usb/typec/tcpm/tcpm.c | 3 - drivers/usb/typec/ucsi/ucsi_acpi.c | 71 ++++++- drivers/video/fbdev/savage/savagefb_driver.c | 3 + drivers/video/fbdev/sis/sis_main.c | 2 + fs/afs/volume.c | 4 +- fs/aio.c | 9 +- fs/btrfs/defrag.c | 2 +- fs/cachefiles/cache.c | 2 + fs/cachefiles/daemon.c | 1 + fs/ceph/caps.c | 6 - fs/ceph/mds_client.c | 9 +- fs/ceph/mds_client.h | 2 +- fs/ceph/super.h | 2 - fs/erofs/namei.c | 28 +-- fs/ext4/extents.c | 111 ++++++---- fs/ext4/mballoc.c | 15 +- fs/ntfs3/attrib.c | 45 ++-- fs/ntfs3/attrlist.c | 12 +- fs/ntfs3/bitmap.c | 4 +- fs/ntfs3/dir.c | 44 ++-- fs/ntfs3/file.c | 72 +++++-- fs/ntfs3/frecord.c | 19 +- fs/ntfs3/fslog.c | 228 ++++++++++----------- fs/ntfs3/fsntfs.c | 29 ++- fs/ntfs3/index.c | 8 +- fs/ntfs3/inode.c | 32 ++- fs/ntfs3/namei.c | 12 ++ fs/ntfs3/ntfs.h | 4 +- fs/ntfs3/ntfs_fs.h | 25 +-- fs/ntfs3/record.c | 18 +- fs/ntfs3/super.c | 49 +++-- fs/ntfs3/xattr.c | 6 + fs/smb/client/cached_dir.c | 3 +- fs/smb/client/cifsencrypt.c | 2 +- fs/smb/client/cifsglob.h | 12 +- fs/smb/client/connect.c | 11 + fs/smb/client/dfs.c | 7 +- fs/smb/client/file.c | 3 + fs/smb/client/fs_context.c | 2 +- fs/smb/client/readdir.c | 15 +- fs/smb/client/sess.c | 5 +- fs/smb/client/smb2pdu.c | 26 ++- fs/smb/client/transport.c | 18 +- include/kunit/resource.h | 21 ++ include/linux/ceph/osd_client.h | 3 +- include/linux/fs.h | 2 + include/linux/iommu.h | 12 ++ include/linux/memblock.h | 2 + include/linux/mlx5/mlx5_ifc.h | 2 +- include/linux/swap.h | 5 + include/net/netfilter/nf_flow_table.h | 2 +- include/net/switchdev.h | 3 + include/net/tcp.h | 2 +- include/scsi/scsi_device.h | 5 +- kernel/bpf/helpers.c | 5 +- lib/Kconfig.debug | 1 + lib/kunit/kunit-test.c | 5 +- lib/kunit/test.c | 6 +- mm/damon/core.c | 15 +- mm/damon/lru_sort.c | 43 +++- mm/damon/reclaim.c | 18 +- mm/memblock.c | 6 +- mm/memcontrol.c | 10 +- mm/memory.c | 20 ++ mm/swap.h | 5 + mm/swapfile.c | 13 ++ mm/zswap.c | 7 +- net/bridge/br_switchdev.c | 86 +++++--- net/ceph/osd_client.c | 18 +- net/core/skmsg.c | 7 +- net/core/sock.c | 23 +-- net/devlink/core.c | 12 +- net/devlink/port.c | 2 +- net/ipv4/arp.c | 3 +- net/ipv4/devinet.c | 21 +- net/ipv4/inet_hashtables.c | 25 ++- net/ipv4/udp.c | 7 +- net/ipv6/addrconf.c | 21 +- net/ipv6/exthdrs.c | 10 + net/ipv6/seg6.c | 20 +- net/l2tp/l2tp_ip6.c | 2 +- net/mac80211/cfg.c | 2 + net/mac80211/debugfs_netdev.c | 4 +- net/mac80211/debugfs_netdev.h | 5 - net/mac80211/iface.c | 2 +- net/mac80211/mlme.c | 8 +- net/mac80211/scan.c | 30 +-- net/mac80211/sta_info.c | 2 + net/mac80211/tx.c | 2 +- net/mctp/route.c | 2 +- net/mptcp/diag.c | 8 +- net/mptcp/fastopen.c | 6 +- net/mptcp/mib.c | 1 + net/mptcp/mib.h | 8 + net/mptcp/options.c | 9 +- net/mptcp/pm_netlink.c | 74 ++++--- net/mptcp/pm_userspace.c | 15 +- net/mptcp/protocol.c | 69 ++++--- net/mptcp/protocol.h | 25 ++- net/mptcp/subflow.c | 86 +++++--- net/netfilter/nf_conntrack_proto_sctp.c | 2 +- net/netfilter/nf_flow_table_core.c | 17 +- net/netfilter/nf_tables_api.c | 81 ++++---- net/phonet/datagram.c | 4 +- net/phonet/pep.c | 41 +++- net/sched/act_mirred.c | 147 ++++++------- net/sched/cls_flower.c | 5 +- net/switchdev/switchdev.c | 73 +++++++ net/tls/tls_main.c | 2 +- net/tls/tls_sw.c | 24 ++- net/unix/af_unix.c | 19 +- net/wireless/nl80211.c | 1 + net/xdp/xsk.c | 3 +- scripts/bpf_doc.py | 2 +- sound/pci/hda/cs35l41_hda_property.c | 4 + sound/pci/hda/hda_intel.c | 6 +- sound/soc/amd/acp/acp-mach-common.c | 9 +- sound/soc/codecs/wm_adsp.c | 29 ++- sound/soc/sunxi/sun4i-spdif.c | 5 + sound/usb/clock.c | 10 +- sound/usb/format.c | 20 ++ tools/net/ynl/lib/ynl.c | 19 +- .../selftests/drivers/net/bonding/bond_options.sh | 2 + tools/testing/selftests/iommu/config | 5 +- tools/testing/selftests/mm/uffd-unit-tests.c | 6 + .../testing/selftests/net/forwarding/tc_actions.sh | 3 - tools/testing/selftests/net/mptcp/diag.sh | 46 ++++- tools/testing/selftests/net/mptcp/mptcp_connect.sh | 41 ++-- tools/testing/selftests/net/mptcp/mptcp_join.sh | 109 ++++------ tools/testing/selftests/net/mptcp/mptcp_lib.sh | 16 ++ tools/testing/selftests/net/mptcp/pm_netlink.sh | 8 +- tools/testing/selftests/net/mptcp/simult_flows.sh | 3 +- tools/testing/selftests/net/mptcp/userspace_pm.sh | 18 +- tools/testing/selftests/riscv/hwprobe/cbo.c | 6 +- tools/testing/selftests/riscv/hwprobe/hwprobe.c | 4 +- tools/testing/selftests/riscv/mm/mmap_test.h | 3 + .../selftests/riscv/vector/v_initval_nolibc.c | 2 +- .../testing/selftests/riscv/vector/vstate_prctl.c | 4 +- 340 files changed, 3847 insertions(+), 1826 deletions(-)
Quoted 5 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.7.7 release. There are 334 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 9 lines
Responses should be made by Thu, 29 Feb 2024 13:15:36 +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.7.7-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.7.y
and the diffstat can be found below.
KernelCI report for stable-rc/linux-6.7.y for this week :-
## stable-rc HEAD for linux-6.7.y:
Date: 2024-02-27
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/log/?h=efce2e6615798a9e83b7a4798f3713414938ab6b
## Build failures:
No build failures seen for the stable-rc/linux-6.7.y commit head \o/
## Boot failures:
No **new** boot failures seen for the stable-rc/linux-6.7.y commit head \o/
Thanks,
Shreeya Patel