6.18.4-rc1 review
Subsystems (2)
Greg Kroah-Hartman
maintainerPATCH 270/312 drm/buddy: Separate clear and dirty free block trees
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Arunpravin Paneer Selvam <[email protected]>
commit d4cd665c98c144dd6ad5d66d30396e13d23118c9 upstream.
Maintain two separate RB trees per order - one for clear (zeroed) blocks and another for dirty (uncleared) blocks. This separation improves code clarity and makes it more obvious which tree is being searched during allocation. It also improves scalability and efficiency when searching for a specific type of block, avoiding unnecessary checks and making the allocator more predictable under fragmentation.
The changes have been validated using the existing drm_buddy_test KUnit test cases, along with selected graphics workloads, to ensure correctness and avoid regressions.
v2: Missed adding the suggested-by tag. Added it in v2.
v3(Matthew):
- Remove the double underscores from the internal functions.
- Rename the internal functions to have less generic names.
- Fix the error handling code.
- Pass tree argument for the tree macro.
- Use the existing dirty/free bit instead of new tree field.
- Make free_trees[] instead of clear_tree and dirty_tree for more cleaner approach.
v4:
- A bug was reported by Intel CI and it is fixed by Matthew Auld.
- Replace the get_root function with
&mm->free_trees[tree][order] (Matthew)
- Remove the unnecessary rbtree_is_empty() check (Matthew)
- Remove the unnecessary get_tree_for_flags() function.
- Rename get_tree_for_block() name with get_block_tree() for more clarity.
v5(Jani Nikula):
- Don't use static inline in .c files.
- enum free_tree and enumerator names are quite generic for a header and usage and the whole enum should be an implementation detail.
v6:
- Rewrite the __force_merge() function using the rb_last() and rb_prev().
v7(Matthew):
- Replace the open-coded tree iteration for loops with the for_each_free_tree() macro throughout the code.
- Fixed out_free_roots to prevent double decrement of i, addressing potential crash.
- Replaced enum drm_buddy_free_tree with unsigned int in for_each_free_tree loops.
--- drivers/gpu/drm/drm_buddy.c | 329 ++++++++++++++++++++++++-------------------- include/drm/drm_buddy.h | 2 2 files changed, 186 insertions(+), 145 deletions(-)
drivers/gpu/drm/drm_buddy.c +185 -144
@@ -12,9 +12,16 @@#include <drm/drm_buddy.h> +enum drm_buddy_free_tree { +DRM_BUDDY_CLEAR_TREE =0 , +DRM_BUDDY_DIRTY_TREE , +DRM_BUDDY_MAX_FREE_TREES , +}; +static struct kmem_cache *slab_blocks; -#define rbtree_get_free_block (node) rb_entry((node), struct drm_buddy_block, rb) +#define for_each_free_tree (tree) \ + for ((tree) = 0; (tree) < DRM_BUDDY_MAX_FREE_TREES; (tree)++) static struct drm_buddy_block *drm_block_alloc(struct drm_buddy *mm, struct drm_buddy_block *parent,
@@ -45,6 +52,30 @@ static void drm_block_free(struct drm_bukmem_cache_free (slab_blocks, block); } +static enum drm_buddy_free_tree +get_block_tree (struct drm_buddy_block *block) +{ +return drm_buddy_block_is_clear (block) ? +DRM_BUDDY_CLEAR_TREE :DRM_BUDDY_DIRTY_TREE ; +} + +static struct drm_buddy_block * +rbtree_get_free_block (const struct rb_node *node) +{ + return node ? rb_entry(node, struct drm_buddy_block, rb) : NULL; +} + +static struct drm_buddy_block * +rbtree_last_free_block (struct rb_root *root) +{ +return rbtree_get_free_block (rb_last (root)); +} + +static bool rbtree_is_empty (struct rb_root *root) +{ +return RB_EMPTY_ROOT (root); +} +static bool drm_buddy_block_offset_less (const struct drm_buddy_block *block,const struct drm_buddy_block *node) {
@@ -59,37 +90,28 @@ static bool rbtree_block_offset_less(str }static void rbtree_insert (struct drm_buddy *mm, -struct drm_buddy_block *block) +struct drm_buddy_block *block, +enum drm_buddy_free_tree tree) {rb_add (&block->rb, - &mm->free_tree[drm_buddy_block_order (block)], + &mm->free_trees[tree][drm_buddy_block_order (block)], rbtree_block_offset_less); }static void rbtree_remove (struct drm_buddy *mm,struct drm_buddy_block *block) { +unsigned int order =drm_buddy_block_order (block); +enum drm_buddy_free_tree tree;struct rb_root *root; - root = &mm->free_tree[drm_buddy_block_order (block)]; -rb_erase (&block->rb, root); + tree =get_block_tree (block); + root = &mm->free_trees[tree][order]; +rb_erase (&block->rb, root);RB_CLEAR_NODE (&block->rb); } -static struct drm_buddy_block * -rbtree_last_entry (struct drm_buddy *mm,unsigned int order) -{ -struct rb_node *node =rb_last (&mm->free_tree[order]); - - return node ? rb_entry(node, struct drm_buddy_block, rb) : NULL; -} - -static bool rbtree_is_empty (struct drm_buddy *mm,unsigned int order) -{ -return RB_EMPTY_ROOT (&mm->free_tree[order]); -} -static void clear_reset (struct drm_buddy_block *block) { block->header &= ~DRM_BUDDY_HEADER_CLEAR ;
@@ -112,10 +134,13 @@ static void mark_allocated(struct drm_bustatic void mark_free (struct drm_buddy *mm,struct drm_buddy_block *block) { +enum drm_buddy_free_tree tree; + block->header &= ~DRM_BUDDY_HEADER_STATE ; block->header |=DRM_BUDDY_FREE ; -rbtree_insert (mm, block); + tree =get_block_tree (block); +rbtree_insert (mm, block, tree); } static void mark_split(struct drm_buddy *mm,
@@ -201,7 +226,7 @@ static int __force_merge(struct drm_buddu64 end, unsigned int min_order) { - unsigned int order; + unsigned int tree, order;int i;if (!min_order)
@@ -210,45 +235,48 @@ static int __force_merge(struct drm_buddif (min_order > mm->max_order)return -EINVAL ; -for (i = min_order -1 ; i >=0 ; i--) { -struct rb_root *root = &mm->free_tree[i]; -struct rb_node *iter; +for_each_free_tree (tree) { +for (i = min_order -1 ; i >=0 ; i--) { +struct rb_node *iter =rb_last (&mm->free_trees[tree][i]); - iter =rb_last (root); - -while (iter) { -struct drm_buddy_block *block, *buddy; -u64 block_start, block_end; +while (iter) { +struct drm_buddy_block *block, *buddy; +u64 block_start, block_end; - block =rbtree_get_free_block (iter); - iter =rb_prev (iter); + block =rbtree_get_free_block (iter); + iter =rb_prev (iter); -if (!block || !block->parent) -continue ; +if (!block || !block->parent) +continue ; - block_start =drm_buddy_block_offset (block); - block_end = block_start +drm_buddy_block_size (mm, block) -1 ; + block_start =drm_buddy_block_offset (block); + block_end = block_start +drm_buddy_block_size (mm, block) -1 ; -if (!contains (start, end, block_start, block_end)) -continue ; +if (!contains (start, end, block_start, block_end)) +continue ; - buddy =__get_buddy (block); -if (!drm_buddy_block_is_free (buddy)) -continue ; + buddy =__get_buddy (block); +if (!drm_buddy_block_is_free (buddy)) +continue ; -WARN_ON (drm_buddy_block_is_clear (block) == -drm_buddy_block_is_clear (buddy)); +WARN_ON (drm_buddy_block_is_clear (block) == +drm_buddy_block_is_clear (buddy)); -if (iter == &buddy->rb) - iter =rb_prev (iter); +/* +* Advance to the next node when the current node is the buddy, +* as freeing the block will also remove its buddy from the tree. +*/ +if (iter == &buddy->rb) + iter =rb_prev (iter); -rbtree_remove (mm, block); -if (drm_buddy_block_is_clear (block)) - mm->clear_avail -=drm_buddy_block_size (mm, block); +rbtree_remove (mm, block); +if (drm_buddy_block_is_clear (block)) + mm->clear_avail -=drm_buddy_block_size (mm, block); - order =__drm_buddy_free (mm, block, true); -if (order >= min_order) -return 0 ; + order =__drm_buddy_free (mm, block, true); +if (order >= min_order) +return 0 ; + } } }
@@ -269,7 +297,7 @@ static int __force_merge(struct drm_budd*/ int drm_buddy_init (struct drm_buddy *mm,u64 size,u64 chunk_size) { -unsigned int i; +unsigned int i, j, root_count =0 ;u64 offset =0 ;if (size < chunk_size)
@@ -291,14 +319,22 @@ int drm_buddy_init(struct drm_buddy *mm,BUG_ON (mm->max_order >DRM_BUDDY_MAX_ORDER ); - mm->free_tree =kmalloc_array (mm->max_order +1 , -sizeof (struct rb_root ), -GFP_KERNEL ); -if (!mm->free_tree) + mm->free_trees =kmalloc_array (DRM_BUDDY_MAX_FREE_TREES , +sizeof (*mm->free_trees), +GFP_KERNEL ); +if (!mm->free_trees)return -ENOMEM ; -for (i =0 ; i <= mm->max_order; ++i) - mm->free_tree[i] =RB_ROOT ; +for_each_free_tree (i) { + mm->free_trees[i] =kmalloc_array (mm->max_order +1 , +sizeof (struct rb_root ), +GFP_KERNEL ); +if (!mm->free_trees[i]) + goto out_free_tree; + +for (j =0 ; j <= mm->max_order; ++j) + mm->free_trees[i][j] =RB_ROOT ; + } mm->n_roots =hweight64 (size);
@@ -308,8 +344,6 @@ int drm_buddy_init(struct drm_buddy *mm,if (!mm->roots) goto out_free_tree; - i =0 ; -/* * Split into power-of-two blocks, in case we are given a size that is * not itself a power-of-two.
@@ -328,24 +362,26 @@ int drm_buddy_init(struct drm_buddy *mm,mark_free (mm, root); -BUG_ON (i > mm->max_order); +BUG_ON (root_count > mm->max_order);BUG_ON (drm_buddy_block_size (mm, root) < chunk_size); - mm->roots[i] = root; + mm->roots[root_count] = root; offset += root_size; size -= root_size; - i++; + root_count++; }while (size);return 0 ; out_free_roots: -while (i--) -drm_block_free (mm, mm->roots[i]); +while (root_count--) +drm_block_free (mm, mm->roots[root_count]);kfree (mm->roots); out_free_tree: -kfree (mm->free_tree); +while (i--) +kfree (mm->free_trees[i]); +kfree (mm->free_trees);return -ENOMEM ; }EXPORT_SYMBOL (drm_buddy_init);
@@ -381,8 +417,9 @@ void drm_buddy_fini(struct drm_buddy *mmWARN_ON (mm->avail != mm->size); +for_each_free_tree (i) +kfree (mm->free_trees[i]);kfree (mm->roots); -kfree (mm->free_tree); }EXPORT_SYMBOL (drm_buddy_fini);
@@ -406,8 +443,7 @@ static int split_block(struct drm_buddyreturn -ENOMEM ; } -mark_free (mm, block->left); -mark_free (mm, block->right); +mark_split (mm, block);if (drm_buddy_block_is_clear (block)) {mark_cleared (block->left);
@@ -415,7 +451,8 @@ static int split_block(struct drm_buddyclear_reset (block); } -mark_split (mm, block); +mark_free (mm, block->left); +mark_free (mm, block->right);return 0 ; }
@@ -448,6 +485,7 @@ EXPORT_SYMBOL(drm_get_buddy);*/ void drm_buddy_reset_clear (struct drm_buddy *mm,bool is_clear) { +enum drm_buddy_free_tree src_tree, dst_tree;u64 root_size, size, start;unsigned int order;int i;
@@ -462,19 +500,24 @@ void drm_buddy_reset_clear(struct drm_bu size -= root_size; } + src_tree = is_clear ?DRM_BUDDY_DIRTY_TREE :DRM_BUDDY_CLEAR_TREE ; + dst_tree = is_clear ?DRM_BUDDY_CLEAR_TREE :DRM_BUDDY_DIRTY_TREE ; +for (i =0 ; i <= mm->max_order; ++i) { +struct rb_root *root = &mm->free_trees[src_tree][i];struct drm_buddy_block *block, *tmp; -rbtree_postorder_for_each_entry_safe (block, tmp, &mm->free_tree[i], rb) { -if (is_clear !=drm_buddy_block_is_clear (block)) { -if (is_clear) { -mark_cleared (block); - mm->clear_avail +=drm_buddy_block_size (mm, block); - }else { -clear_reset (block); - mm->clear_avail -=drm_buddy_block_size (mm, block); - } +rbtree_postorder_for_each_entry_safe (block, tmp, root, rb) { +rbtree_remove (mm, block); +if (is_clear) { +mark_cleared (block); + mm->clear_avail +=drm_buddy_block_size (mm, block); + }else { +clear_reset (block); + mm->clear_avail -=drm_buddy_block_size (mm, block); } + +rbtree_insert (mm, block, dst_tree); } } }
@@ -664,27 +707,17 @@ __drm_buddy_alloc_range_bias(struct drm_ }static struct drm_buddy_block * -get_maxblock (struct drm_buddy *mm,unsigned int order, -unsigned long flags) +get_maxblock (struct drm_buddy *mm, +unsigned int order, +enum drm_buddy_free_tree tree) {struct drm_buddy_block *max_block =NULL , *block =NULL ; +struct rb_root *root;unsigned int i;for (i = order; i <= mm->max_order; ++i) { -struct rb_node *iter =rb_last (&mm->free_tree[i]); -struct drm_buddy_block *tmp_block; - -while (iter) { - tmp_block =rbtree_get_free_block (iter); - -if (!block_incompatible (tmp_block, flags)) { - block = tmp_block; -break ; - } - - iter =rb_prev (iter); - } - + root = &mm->free_trees[tree][i]; + block =rbtree_last_free_block (root);if (!block)continue ;
@@ -708,39 +741,37 @@ alloc_from_freetree(struct drm_buddy *mm unsigned long flags) {struct drm_buddy_block *block =NULL ; +struct rb_root *root; +enum drm_buddy_free_tree tree;unsigned int tmp;int err; + tree = (flags &DRM_BUDDY_CLEAR_ALLOCATION ) ? +DRM_BUDDY_CLEAR_TREE :DRM_BUDDY_DIRTY_TREE ; +if (flags &DRM_BUDDY_TOPDOWN_ALLOCATION ) { - block =get_maxblock (mm, order, flags); + block =get_maxblock (mm, order, tree);if (block)/* Store the obtained block order */ tmp =drm_buddy_block_order (block); }else {for (tmp = order; tmp <= mm->max_order; ++tmp) { -struct rb_node *iter =rb_last (&mm->free_tree[tmp]); -struct drm_buddy_block *tmp_block; - -while (iter) { - tmp_block =rbtree_get_free_block (iter); - -if (!block_incompatible (tmp_block, flags)) { - block = tmp_block; -break ; - } - - iter =rb_prev (iter); - } - +/* Get RB tree root for this order and tree */ + root = &mm->free_trees[tree][tmp]; + block =rbtree_last_free_block (root);if (block)break ; } }if (!block) { -/* Fallback method */ +/* Try allocating from the other tree */ + tree = (tree ==DRM_BUDDY_CLEAR_TREE ) ? +DRM_BUDDY_DIRTY_TREE :DRM_BUDDY_CLEAR_TREE ; +for (tmp = order; tmp <= mm->max_order; ++tmp) { - block =rbtree_last_entry (mm, tmp); + root = &mm->free_trees[tree][tmp]; + block =rbtree_last_free_block (root);if (block)break ; }
@@ -885,10 +916,9 @@ static int __alloc_contig_try_harder(str {u64 rhs_offset, lhs_offset, lhs_size, filled;struct drm_buddy_block *block; +unsigned int tree, order;LIST_HEAD (blocks_lhs); -struct rb_node *iter;unsigned long pages; -unsigned int order;u64 modify_size;int err;
@@ -898,40 +928,45 @@ static int __alloc_contig_try_harder(strif (order ==0 )return -ENOSPC ; -if (rbtree_is_empty (mm, order)) -return -ENOSPC ; +for_each_free_tree (tree) { +struct rb_root *root; +struct rb_node *iter; - iter =rb_last (&mm->free_tree[order]); + root = &mm->free_trees[tree][order]; +if (rbtree_is_empty (root)) +continue ; -while (iter) { - block =rbtree_get_free_block (iter); + iter =rb_last (root); +while (iter) { + block =rbtree_get_free_block (iter); -/* Allocate blocks traversing RHS */ - rhs_offset =drm_buddy_block_offset (block); - err =__drm_buddy_alloc_range (mm, rhs_offset, size, - &filled, blocks); -if (!err || err != -ENOSPC ) -return err; - - lhs_size =max ((size - filled), min_block_size); -if (!IS_ALIGNED (lhs_size, min_block_size)) - lhs_size =round_up (lhs_size, min_block_size); - -/* Allocate blocks traversing LHS */ - lhs_offset =drm_buddy_block_offset (block) - lhs_size; - err =__drm_buddy_alloc_range (mm, lhs_offset, lhs_size, -NULL , &blocks_lhs); -if (!err) { -list_splice (&blocks_lhs, blocks); -return 0 ; - }else if (err != -ENOSPC ) { +/* Allocate blocks traversing RHS */ + rhs_offset =drm_buddy_block_offset (block); + err =__drm_buddy_alloc_range (mm, rhs_offset, size, + &filled, blocks); +if (!err || err != -ENOSPC ) +return err; + + lhs_size =max ((size - filled), min_block_size); +if (!IS_ALIGNED (lhs_size, min_block_size)) + lhs_size =round_up (lhs_size, min_block_size); + +/* Allocate blocks traversing LHS */ + lhs_offset =drm_buddy_block_offset (block) - lhs_size; + err =__drm_buddy_alloc_range (mm, lhs_offset, lhs_size, +NULL , &blocks_lhs); +if (!err) { +list_splice (&blocks_lhs, blocks); +return 0 ; + }else if (err != -ENOSPC ) { +drm_buddy_free_list_internal (mm, blocks); +return err; + } +/* Free blocks for the next iteration */ drm_buddy_free_list_internal (mm, blocks); -return err; - } -/* Free blocks for the next iteration */ -drm_buddy_free_list_internal (mm, blocks); - iter =rb_prev (iter); + iter =rb_prev (iter); + } }return -ENOSPC ;
@@ -1243,11 +1278,17 @@ void drm_buddy_print(struct drm_buddy *mfor (order = mm->max_order; order >=0 ; order--) {struct drm_buddy_block *block, *tmp; +struct rb_root *root;u64 count =0 , free; +unsigned int tree; + +for_each_free_tree (tree) { + root = &mm->free_trees[tree][order]; -rbtree_postorder_for_each_entry_safe (block, tmp, &mm->free_tree[order], rb) { -BUG_ON (!drm_buddy_block_is_free (block)); - count++; +rbtree_postorder_for_each_entry_safe (block, tmp, root, rb) { +BUG_ON (!drm_buddy_block_is_free (block)); + count++; + } }drm_printf (p,"order-%2d " , order);
include/drm/drm_buddy.h +1 -1
@@ -64,7 +64,7 @@ struct drm_buddy_block {*/ struct drm_buddy {/* Maintain a free list for each order. */ -struct rb_root *free_tree; +struct rb_root **free_trees;/* * Maintain explicit binary tree(s) to track the allocation of the
Greg Kroah-Hartman
maintainerPATCH 271/312 drm/gma500: Remove unused helper psb_fbdev_fb_setcolreg()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Thomas Zimmermann <[email protected]>
commit be729f9de6c64240645dc80a24162ac4d3fe00a8 upstream.
Remove psb_fbdev_fb_setcolreg(), which hasn't been called in almost a decade.
Gma500 commit 4d8d096e9ae8 ("gma500: introduce the framebuffer support code") added the helper psb_fbdev_fb_setcolreg() for setting the fbdev palette via fbdev's fb_setcolreg callback. Later
commit 3da6c2f3b730 ("drm/gma500: use DRM_FB_HELPER_DEFAULT_OPS for fb_ops") set several default helpers for fbdev emulation, including fb_setcmap.
The fbdev subsystem always prefers fb_setcmap over fb_setcolreg. [1] Hence, the gma500 code is no longer in use and gma500 has been using drm_fb_helper_setcmap() for several years without issues.
--- drivers/gpu/drm/gma500/fbdev.c | 43 ----------------------------------------- 1 file changed, 43 deletions(-)
drivers/gpu/drm/gma500/fbdev.c +0 -43
@@ -50,48 +50,6 @@ static const struct vm_operations_struct* struct fb_ops */ -#define CMAP_TOHW (_val, _width) ((((_val) << (_width)) + 0x7FFF - (_val)) >> 16) - -static int psb_fbdev_fb_setcolreg (unsigned int regno, -unsigned int red,unsigned int green, -unsigned int blue,unsigned int transp, -struct fb_info *info) -{ -struct drm_fb_helper *fb_helper = info->par; -struct drm_framebuffer *fb = fb_helper->fb; -uint32_t v; - -if (!fb) -return -ENOMEM ; - -if (regno >255 ) -return 1 ; - - red =CMAP_TOHW (red, info->var.red.length); - blue =CMAP_TOHW (blue, info->var.blue.length); - green =CMAP_TOHW (green, info->var.green.length); - transp =CMAP_TOHW (transp, info->var.transp.length); - - v = (red << info->var.red.offset) | - (green << info->var.green.offset) | - (blue << info->var.blue.offset) | - (transp << info->var.transp.offset); - -if (regno <16 ) { -switch (fb->format->cpp[0 ] *8 ) { -case 16 : - ((uint32_t *) info->pseudo_palette)[regno] = v; -break ; -case 24 : -case 32 : - ((uint32_t *) info->pseudo_palette)[regno] = v; -break ; - } - } - -return 0 ; -} -static int psb_fbdev_fb_mmap (struct fb_info *info,struct vm_area_struct *vma) {if (vma->vm_pgoff !=0 )
@@ -135,7 +93,6 @@ static const struct fb_ops psb_fbdev_fb_ .owner = THIS_MODULE, __FB_DEFAULT_IOMEM_OPS_RDWR,DRM_FB_HELPER_DEFAULT_OPS , - .fb_setcolreg = psb_fbdev_fb_setcolreg, __FB_DEFAULT_IOMEM_OPS_DRAW, .fb_mmap = psb_fbdev_fb_mmap, .fb_destroy = psb_fbdev_fb_destroy,
Greg Kroah-Hartman
maintainerPATCH 272/312 drm/xe/oa: Fix potential UAF in xe_oa_add_config_ioctl()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Sanjay Yadav <[email protected]>
commit dcb171931954c51a1a7250d558f02b8f36570783 upstream.
In xe_oa_add_config_ioctl(), we accessed oa_config->id after dropping metrics_lock. Since this lock protects the lifetime of oa_config, an attacker could guess the id and call xe_oa_remove_config_ioctl() with perfect timing, freeing oa_config before we dereference it, leading to a potential use-after-free.
Fix this by caching the id in a local variable while holding the lock.
v2: (Matt A)
- Dropped mutex_unlock(&oa->metrics_lock) ordering change from xe_oa_remove_config_ioctl()
--- drivers/gpu/drm/xe/xe_oa.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/xe_oa.c +5 -3
@@ -2407,11 +2407,13 @@ int xe_oa_add_config_ioctl(struct drm_de goto sysfs_err; } -mutex_unlock (&oa->metrics_lock); + id = oa_config->id; + +drm_dbg (&oa->xe->drm,"Added config %s id=%i\n" , oa_config->uuid, id); -drm_dbg (&oa->xe->drm,"Added config %s id=%i\n" , oa_config->uuid, oa_config->id); +mutex_unlock (&oa->metrics_lock); -return oa_config->id; +return id; sysfs_err:mutex_unlock (&oa->metrics_lock);
Greg Kroah-Hartman
maintainerPATCH 273/312 drm/rockchip: Set VOP for the DRM DMA device
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Dmitry Osipenko <[email protected]>
commit 7d7bb790aced3b1b8550b74e02fdfc001d044bee upstream.
Use VOP for DMA operations performed by DRM core. Rockchip DRM driver is backed by a virtual device that isn't IOMMU-capable, while VOP is the actual display controller device backed by IOMMU. Fixes "swiotlb buffer is full" warning messages originated from GEM prime code paths.
Note, that backporting is non-trivial as this depends on commit 143ec8d3f9396 ("drm/prime: Support dedicated DMA device for dma-buf imports"), which landed in v6.16 and commit 421be3ee36a4 ("drm/rockchip:
Refactor IOMMU initialisation"), which landed in v5.19.
--- drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/rockchip/rockchip_drm_drv.c +3 -0
@@ -96,6 +96,9 @@ void rockchip_drm_dma_init_device(struct private->iommu_dev =ERR_PTR (-ENODEV ); else if (!private->iommu_dev) private->iommu_dev = dev; + +if (!IS_ERR (private->iommu_dev)) +drm_dev_set_dma_dev (drm_dev, private->iommu_dev); }static int rockchip_drm_init_iommu (struct drm_device *drm_dev)
Greg Kroah-Hartman
maintainerPATCH 274/312 drm/mediatek: Fix device node reference leak in mtk_dp_dt_parse()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Miaoqian Lin <[email protected]>
commit a846505a193d7492ad3531e33cacfca31e4bcdd1 upstream.
The function mtk_dp_dt_parse() calls of_graph_get_endpoint_by_regs() to get the endpoint device node, but fails to call of_node_put() to release the reference when the function returns. This results in a device node reference leak.
Fix this by adding the missing of_node_put() call before returning from the function.
Found via static analysis and code review.
--- drivers/gpu/drm/mediatek/mtk_dp.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/mediatek/mtk_dp.c +1 -0
@@ -2087,6 +2087,7 @@ static int mtk_dp_dt_parse(struct mtk_dp endpoint =of_graph_get_endpoint_by_regs (pdev->dev.of_node,1 ,-1 ); len =of_property_count_elems_of_size (endpoint,"data-lanes" ,sizeof (u32)); +of_node_put (endpoint);if (len <0 || len >4 || len ==3 ) {dev_err (dev,"invalid data lane size: %d\n" , len);return -EINVAL ;
Greg Kroah-Hartman
maintainerPATCH 265/312 drm/amdgpu: add missing lock to amdgpu_ttm_access_memory_sdma
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pierre-Eric Pelloux-Prayer <[email protected]>
commit 4fa944255be521b1bbd9780383f77206303a3a5c upstream.
Users of ttm entities need to hold the gtt_window_lock before using them to guarantee proper ordering of jobs.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +2 -0
@@ -1529,6 +1529,7 @@ static int amdgpu_ttm_access_memory_sdmaif (r) goto out; +mutex_lock (&adev->mman.gtt_window_lock);amdgpu_res_first (abo->tbo.resource, offset, len, &src_mm); src_addr =amdgpu_ttm_domain_start (adev, bo->resource->mem_type) + src_mm.start;
@@ -1543,6 +1544,7 @@ static int amdgpu_ttm_access_memory_sdmaWARN_ON (job->ibs[0 ].length_dw > num_dw); fence =amdgpu_job_submit (job); +mutex_unlock (&adev->mman.gtt_window_lock);if (!dma_fence_wait_timeout (fence, false, adev->sdma_timeout)) r = -ETIMEDOUT ;
Greg Kroah-Hartman
maintainerPATCH 302/312 drm/pagemap, drm/xe: Ensure that the devmem allocation is idle before use
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Thomas Hellström <[email protected]>
commit 754c23238438600e9236719f7e67aff2c4d02093 upstream.
In situations where no system memory is migrated to devmem, and in upcoming patches where another GPU is performing the migration to the newly allocated devmem buffer, there is nothing to ensure any ongoing clear to the devmem allocation or async eviction from the devmem allocation is complete.
Address that by passing a struct dma_fence down to the copy functions, and ensure it is waited for before migration is marked complete.
v3:
- New patch.
v4:
- Update the logic used for determining when to wait for the pre_migrate_fence.
- Update the logic used for determining when to warn for the pre_migrate_fence since the scheduler fences apparently can signal out-of-order.
v5:
- Fix a UAF (CI)
- Remove references to source P2P migration (Himal)
- Put the pre_migrate_fence after migration.
v6:
- Pipeline the pre_migrate_fence dependency (Matt Brost)
--- drivers/gpu/drm/drm_pagemap.c | 17 ++++++++++--- drivers/gpu/drm/xe/xe_migrate.c | 25 ++++++++++++++++---- drivers/gpu/drm/xe/xe_migrate.h | 6 +++- drivers/gpu/drm/xe/xe_svm.c | 49 ++++++++++++++++++++++++++++++---------- include/drm/drm_pagemap.h | 17 +++++++++++-- 5 files changed, 88 insertions(+), 26 deletions(-)
drivers/gpu/drm/drm_pagemap.c +13 -4
@@ -3,6 +3,7 @@* Copyright © 2024-2025 Intel Corporation */ +#include <linux/dma-fence.h> #include <linux/dma-mapping.h> #include <linux/migrate.h> #include <linux/pagemap.h>
@@ -408,10 +409,14 @@ int drm_pagemap_migrate_to_devmem(structdrm_pagemap_get_devmem_page (page, zdd); } - err = ops->copy_to_devmem (pages, pagemap_addr, npages); + err = ops->copy_to_devmem (pages, pagemap_addr, npages, + devmem_allocation->pre_migrate_fence);if (err) goto err_finalize; +dma_fence_put (devmem_allocation->pre_migrate_fence); + devmem_allocation->pre_migrate_fence =NULL ; +/* Upon success bind devmem allocation to range and zdd */ devmem_allocation->timeslice_expiration =get_jiffies_64 () +msecs_to_jiffies (timeslice_ms);
@@ -596,7 +601,7 @@ retry:for (i =0 ; i < npages; ++i) pages[i] =migrate_pfn_to_page (src[i]); - err = ops->copy_to_ram (pages, pagemap_addr, npages); + err = ops->copy_to_ram (pages, pagemap_addr, npages,NULL );if (err) goto err_finalize;
@@ -732,7 +737,7 @@ static int __drm_pagemap_migrate_to_ram(for (i =0 ; i < npages; ++i) pages[i] =migrate_pfn_to_page (migrate.src[i]); - err = ops->copy_to_ram (pages, pagemap_addr, npages); + err = ops->copy_to_ram (pages, pagemap_addr, npages,NULL );if (err) goto err_finalize;
@@ -813,11 +818,14 @@ EXPORT_SYMBOL_GPL(drm_pagemap_pagemap_op* @ops: Pointer to the operations structure for GPU SVM device memory * @dpagemap: The struct drm_pagemap we're allocating from. * @size: Size of device memory allocation +* @pre_migrate_fence: Fence to wait for or pipeline behind before migration starts. +* (May be NULL). */ void drm_pagemap_devmem_init (struct drm_pagemap_devmem *devmem_allocation,struct device *dev,struct mm_struct *mm,const struct drm_pagemap_devmem_ops *ops, -struct drm_pagemap *dpagemap,size_t size) +struct drm_pagemap *dpagemap,size_t size, +struct dma_fence *pre_migrate_fence) {init_completion (&devmem_allocation->detached); devmem_allocation->dev = dev;
@@ -825,6 +833,7 @@ void drm_pagemap_devmem_init(struct drm_ devmem_allocation->ops = ops; devmem_allocation->dpagemap = dpagemap; devmem_allocation->size = size; + devmem_allocation->pre_migrate_fence = pre_migrate_fence; }EXPORT_SYMBOL_GPL (drm_pagemap_devmem_init);
drivers/gpu/drm/xe/xe_migrate.c +20 -5
@@ -1813,6 +1813,7 @@ static struct dma_fence *xe_migrate_vramunsigned long sram_offset, struct drm_pagemap_addr *sram_addr, u64 vram_addr, + struct dma_fence *deps, const enum xe_migrate_copy_dir dir) { struct xe_gt *gt = m->tile->primary_gt;
@@ -1890,6 +1891,14 @@ static struct dma_fence *xe_migrate_vramxe_sched_job_add_migrate_flush (job,MI_INVALIDATE_TLB ); +if (deps && !dma_fence_is_signaled (deps)) { +dma_fence_get (deps); + err =drm_sched_job_add_dependency (&job->drm, deps); +if (err) +dma_fence_wait (deps, false); + err =0 ; + } +mutex_lock (&m->job_mutex);xe_sched_job_arm (job); fence =dma_fence_get (&job->drm.s_fence->finished);
@@ -1915,6 +1924,8 @@ err:* @npages: Number of pages to migrate. * @src_addr: Array of DMA information (source of migrate) * @dst_addr: Device physical address of VRAM (destination of migrate) +* @deps: struct dma_fence representing the dependencies that need +* to be signaled before migration. * * Copy from an array dma addresses to a VRAM device physical address *
@@ -1924,10 +1935,11 @@ err:struct dma_fence *xe_migrate_to_vram (struct xe_migrate *m,unsigned long npages,struct drm_pagemap_addr *src_addr, -u64 dst_addr) +u64 dst_addr, +struct dma_fence *deps) {return xe_migrate_vram (m, npages *PAGE_SIZE ,0 , src_addr, dst_addr, -XE_MIGRATE_COPY_TO_VRAM ); + deps,XE_MIGRATE_COPY_TO_VRAM ); }/**
@@ -1936,6 +1948,8 @@ struct dma_fence *xe_migrate_to_vram(str* @npages: Number of pages to migrate. * @src_addr: Device physical address of VRAM (source of migrate) * @dst_addr: Array of DMA information (destination of migrate) +* @deps: struct dma_fence representing the dependencies that need +* to be signaled before migration. * * Copy from a VRAM device physical address to an array dma addresses *
@@ -1945,10 +1959,11 @@ struct dma_fence *xe_migrate_to_vram(strstruct dma_fence *xe_migrate_from_vram (struct xe_migrate *m,unsigned long npages,u64 src_addr, -struct drm_pagemap_addr *dst_addr) +struct drm_pagemap_addr *dst_addr, +struct dma_fence *deps) {return xe_migrate_vram (m, npages *PAGE_SIZE ,0 , dst_addr, src_addr, -XE_MIGRATE_COPY_TO_SRAM ); + deps,XE_MIGRATE_COPY_TO_SRAM ); } static void xe_migrate_dma_unmap(struct xe_device *xe,
@@ -2121,7 +2136,7 @@ int xe_migrate_access_memory(struct xe_m __fence =xe_migrate_vram (m, current_bytes, (unsigned long )buf & ~PAGE_MASK , &pagemap_addr[current_page], - vram_addr, write ? + vram_addr,NULL , write ?XE_MIGRATE_COPY_TO_VRAM :XE_MIGRATE_COPY_TO_SRAM );if (IS_ERR (__fence)) {
drivers/gpu/drm/xe/xe_migrate.h +4 -2
@@ -111,12 +111,14 @@ int xe_migrate_init(struct xe_migrate *mstruct dma_fence *xe_migrate_to_vram (struct xe_migrate *m,unsigned long npages,struct drm_pagemap_addr *src_addr, -u64 dst_addr); +u64 dst_addr, +struct dma_fence *deps);struct dma_fence *xe_migrate_from_vram (struct xe_migrate *m,unsigned long npages,u64 src_addr, -struct drm_pagemap_addr *dst_addr); +struct drm_pagemap_addr *dst_addr, +struct dma_fence *deps); struct dma_fence *xe_migrate_copy(struct xe_migrate *m, struct xe_bo *src_bo,
drivers/gpu/drm/xe/xe_svm.c +37 -12
126 lines not on this page · raw message
include/drm/drm_pagemap.h +14 -3
@@ -8,6 +8,7 @@#define NR_PAGES (order) (1U << (order)) +struct dma_fence ;struct drm_pagemap ;struct drm_pagemap_zdd ;struct device ;
@@ -174,6 +175,8 @@ struct drm_pagemap_devmem_ops {* @pages: Pointer to array of device memory pages (destination) * @pagemap_addr: Pointer to array of DMA information (source) * @npages: Number of pages to copy +* @pre_migrate_fence: dma-fence to wait for before migration start. +* May be NULL. * * Copy pages to device memory. If the order of a @pagemap_addr entry * is greater than 0, the entry is populated but subsequent entries
@@ -183,13 +186,16 @@ struct drm_pagemap_devmem_ops {*/ int (*copy_to_devmem)(struct page **pages,struct drm_pagemap_addr *pagemap_addr, -unsigned long npages); +unsigned long npages, +struct dma_fence *pre_migrate_fence);/** * @copy_to_ram: Copy to system RAM (required for migration) * @pages: Pointer to array of device memory pages (source) * @pagemap_addr: Pointer to array of DMA information (destination) * @npages: Number of pages to copy +* @pre_migrate_fence: dma-fence to wait for before migration start. +* May be NULL. * * Copy pages to system RAM. If the order of a @pagemap_addr entry * is greater than 0, the entry is populated but subsequent entries
@@ -199,7 +205,8 @@ struct drm_pagemap_devmem_ops {*/ int (*copy_to_ram)(struct page **pages,struct drm_pagemap_addr *pagemap_addr, -unsigned long npages); +unsigned long npages, +struct dma_fence *pre_migrate_fence); };/**
@@ -212,6 +219,8 @@ struct drm_pagemap_devmem_ops {* @dpagemap: The struct drm_pagemap of the pages this allocation belongs to. * @size: Size of device memory allocation * @timeslice_expiration: Timeslice expiration in jiffies +* @pre_migrate_fence: Fence to wait for or pipeline behind before migration starts. +* (May be NULL). */ struct drm_pagemap_devmem {struct device *dev;
@@ -221,6 +230,7 @@ struct drm_pagemap_devmem {struct drm_pagemap *dpagemap;size_t size;u64 timeslice_expiration; +struct dma_fence *pre_migrate_fence; }; int drm_pagemap_migrate_to_devmem(struct drm_pagemap_devmem *devmem_allocation,
@@ -238,7 +248,8 @@ struct drm_pagemap *drm_pagemap_page_to_void drm_pagemap_devmem_init (struct drm_pagemap_devmem *devmem_allocation,struct device *dev,struct mm_struct *mm,const struct drm_pagemap_devmem_ops *ops, -struct drm_pagemap *dpagemap,size_t size); +struct drm_pagemap *dpagemap,size_t size, +struct dma_fence *pre_migrate_fence); int drm_pagemap_populate_mm(struct drm_pagemap *dpagemap, unsigned long start, unsigned long end,
Greg Kroah-Hartman
maintainerPATCH 311/312 mm/damon/tests/core-kunit: handle alloc failures on damon_test_split_regions_of()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: SeongJae Park <[email protected]>
damon_test_split_regions_of() is assuming all dynamic memory allocation in it will succeed. Those are indeed likely in the real use cases since those allocations are too small to fail, but theoretically those could fail. In the case, inappropriate memory access can happen. Fix it by appropriately cleanup pre-allocated memory and skip the execution of the remaining tests in the failure cases.
--- mm/damon/tests/core-kunit.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
mm/damon/tests/core-kunit.h +20 -0
@@ -278,15 +278,35 @@ static void damon_test_split_regions_of(struct damon_target *t;struct damon_region *r; +if (!c) +kunit_skip (test,"ctx alloc fail" ); t =damon_new_target (); +if (!t) { +damon_destroy_ctx (c); +kunit_skip (test,"target alloc fail" ); + } r =damon_new_region (0 ,22 ); +if (!r) { +damon_destroy_ctx (c); +damon_free_target (t); +kunit_skip (test,"region alloc fail" ); + }damon_add_region (r, t);damon_split_regions_of (t,2 ,DAMON_MIN_REGION );KUNIT_EXPECT_LE (test,damon_nr_regions (t),2u );damon_free_target (t); t =damon_new_target (); +if (!t) { +damon_destroy_ctx (c); +kunit_skip (test,"second target alloc fail" ); + } r =damon_new_region (0 ,220 ); +if (!r) { +damon_destroy_ctx (c); +damon_free_target (t); +kunit_skip (test,"second region alloc fail" ); + }damon_add_region (r, t);damon_split_regions_of (t,4 ,DAMON_MIN_REGION );KUNIT_EXPECT_LE (test,damon_nr_regions (t),4u );
Greg Kroah-Hartman
maintainerPATCH v2 312/312 Revert "gpio: swnode: dont use the swnodes name as the key for GPIO lookup"
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Charles Keepax <[email protected]>
This reverts commit e5d527be7e6984882306b49c067f1fec18920735.
This software node change doesn't actually fix any current issues with the kernel, it is an improvement to the lookup process rather than fixing a live bug. It also causes a couple of regressions with shipping laptops, which relied on the label based lookup.
There is a fix for the regressions in mainline, the first 5 patches of [1]. However, those patches are fairly substantial changes and given the patch causing the regression doesn't actually fix a bug it seems better to just revert it in stable.
--- drivers/gpio/gpiolib-swnode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpiolib-swnode.c +1 -1
@@ -41,7 +41,7 @@ static struct gpio_device *swnode_get_gp !strcmp(gdev_node->name, GPIOLIB_SWNODE_UNDEFINED_NAME))return ERR_PTR (-ENOENT ); - gdev =gpio_device_find_by_fwnode (fwnode); + gdev =gpio_device_find_by_label (gdev_node->name);return gdev ?:ERR_PTR (-EPROBE_DEFER ); }
Greg Kroah-Hartman
maintainerPATCH 303/312 drm/nouveau/dispnv50: Dont call drm_atomic_get_crtc_state() in prepare_fb
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lyude Paul <[email protected]>
commit 560271e10b2c86e95ea35afa9e79822e4847f07a upstream.
Since we recently started warning about uses of this function after the atomic check phase completes, we've started getting warnings about this in nouveau. It appears a misplaced drm_atomic_get_crtc_state() call has been hiding in our .prepare_fb callback for a while.
So, fix this by adding a new nv50_head_atom_get_new() function and use that in our .prepare_fb callback instead.
--- drivers/gpu/drm/nouveau/dispnv50/atom.h | 13 +++++++++++++ drivers/gpu/drm/nouveau/dispnv50/wndw.c | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-)
drivers/gpu/drm/nouveau/dispnv50/atom.h +13 -0
@@ -152,8 +152,21 @@ static inline struct nv50_head_atom * nv50_head_atom_get(struct drm_atomic_state *state, struct drm_crtc *crtc) { struct drm_crtc_state *statec = drm_atomic_get_crtc_state(state, crtc); +if (IS_ERR (statec))return (void *)statec; + +return nv50_head_atom (statec); +} + +static inline struct nv50_head_atom * +nv50_head_atom_get_new (struct drm_atomic_state *state,struct drm_crtc *crtc) +{ +struct drm_crtc_state *statec =drm_atomic_get_new_crtc_state (state, crtc); + +if (!statec) +return NULL ; +return nv50_head_atom (statec); }
drivers/gpu/drm/nouveau/dispnv50/wndw.c +1 -1
@@ -583,7 +583,7 @@ nv50_wndw_prepare_fb(struct drm_plane *p asyw->image.offset[0 ] = nvbo->offset;if (wndw->func->prepare) { - asyh =nv50_head_atom_get (asyw->state.state, asyw->state.crtc); + asyh =nv50_head_atom_get_new (asyw->state.state, asyw->state.crtc);if (IS_ERR (asyh))return PTR_ERR (asyh);
Greg Kroah-Hartman
maintainerPATCH 304/312 drm/imagination: Disallow exporting of PM/FW protected objects
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Alessio Belle <[email protected]>
commit 6b991ad8dc3abfe5720fc2e9ee96be63ae43e362 upstream.
These objects are meant to be used by the GPU firmware or by the PM unit within the GPU, in which case they may contain physical addresses.
This adds a layer of protection against exposing potentially exploitable information outside of the driver.
--- drivers/gpu/drm/imagination/pvr_gem.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
drivers/gpu/drm/imagination/pvr_gem.c +11 -0
@@ -28,6 +28,16 @@ static void pvr_gem_object_free(struct ddrm_gem_shmem_object_free (obj); } +static struct dma_buf *pvr_gem_export (struct drm_gem_object *obj,int flags) +{ +struct pvr_gem_object *pvr_obj =gem_to_pvr_gem (obj); + +if (pvr_obj->flags &DRM_PVR_BO_PM_FW_PROTECT ) +return ERR_PTR (-EPERM ); + +return drm_gem_prime_export (obj, flags); +} +static int pvr_gem_mmap (struct drm_gem_object *gem_obj,struct vm_area_struct *vma) {struct pvr_gem_object *pvr_obj =gem_to_pvr_gem (gem_obj);
@@ -42,6 +52,7 @@ static int pvr_gem_mmap(struct drm_gem_ostatic const struct drm_gem_object_funcs pvr_gem_object_funcs = { .free = pvr_gem_object_free, .print_info = drm_gem_shmem_object_print_info, + .export = pvr_gem_export, .pin = drm_gem_shmem_object_pin, .unpin = drm_gem_shmem_object_unpin, .get_sg_table = drm_gem_shmem_object_get_sg_table,
Greg Kroah-Hartman
maintainerPATCH 305/312 erofs: fix unexpected EIO under memory pressure
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Junbeom Yeom <[email protected]>
commit 4012d78562193ef5eb613bad4b0c0fa187637cfe upstream.
erofs readahead could fail with ENOMEM under the memory pressure because it tries to alloc_page with GFP_NOWAIT | GFP_NORETRY, while GFP_KERNEL for a regular read. And if readahead fails (with non-uptodate folios), the original request will then fall back to synchronous read, and .read_folio() should return appropriate errnos.
However, in scenarios where readahead and read operations compete, read operation could return an unintended EIO because of an incorrect error propagation.
To resolve this, this patch modifies the behavior so that, when the PCL is for read(which means pcl.besteffort is true), it attempts actual decompression instead of propagating the privios error except initial EIO.
- Page size: 4K
- The original size of FileA: 16K
- Compress-ratio per PCL: 50% (Uncompressed 8K -> Compressed 4K) [page0, page1] [page2, page3]
[PCL0]---------[PCL1]
- functions declaration:
. pread(fd, buf, count, offset)
. readahead(fd, offset, count)
- Thread A tries to read the last 4K
- Thread B tries to do readahead 8K from 4K
- RA, besteffort == false
- R, besteffort == true
<process A> <process B>
pread(FileA, buf, 4K, 12K)
do readahead(page3) // failed with ENOMEM
wait_lock(page3)
if (!uptodate(page3))
goto do_read
readahead(FileA, 4K, 8K)
// Here create PCL-chain like below:
// [null, page1] [page2, null]
// [PCL0:RA]-----[PCL1:RA]
...
do read(page3) // found [PCL1:RA] and add page3 into it,
// and then, change PCL1 from RA to R
...
// Now, PCL-chain is as below:
// [null, page1] [page2, page3]
// [PCL0:RA]-----[PCL1:R]
// try to decompress PCL-chain...
z_erofs_decompress_queue
err = 0;
// failed with ENOMEM, so page 1
// only for RA will not be uptodated.
// it's okay.
err = decompress([PCL0:RA], err)
// However, ENOMEM propagated to next
// PCL, even though PCL is not only
// for RA but also for R. As a result,
// it just failed with ENOMEM without
// trying any decompression, so page2
// and page3 will not be uptodated.
** BUG HERE ** --> err = decompress([PCL1:R], err)
return err as ENOMEM...
wait_lock(page3)
if (!uptodate(page3))
return EIO <-- Return an unexpected EIO!
...
--- fs/erofs/zdata.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
fs/erofs/zdata.c +5 -5
@@ -1262,17 +1262,17 @@ static int z_erofs_parse_in_bvecs(structreturn err; } -static int z_erofs_decompress_pcluster (struct z_erofs_backend *be,int err) +static int z_erofs_decompress_pcluster (struct z_erofs_backend *be,bool eio) {struct erofs_sb_info *const sbi =EROFS_SB (be->sb);struct z_erofs_pcluster *pcl = be->pcl;unsigned int pclusterpages =z_erofs_pclusterpages (pcl);const struct z_erofs_decompressor *decomp = z_erofs_decomp[pcl->algorithmformat]; -int i, j, jtop, err2; +bool try_free = true; +int i, j, jtop, err2, err = eio ? -EIO :0 ;struct page *page;bool overlapped; -bool try_free = true;mutex_lock (&pcl->lock); be->nr_pages =PAGE_ALIGN (pcl->length + pcl->pageofs_out) >>PAGE_SHIFT ;
@@ -1400,12 +1400,12 @@ static int z_erofs_decompress_queue(cons .pcl = io->head, };struct z_erofs_pcluster *next; -int err = io->eio ? -EIO :0 ; +int err =0 ;for (; be.pcl !=Z_EROFS_PCLUSTER_TAIL ; be.pcl = next) {DBG_BUGON (!be.pcl); next =READ_ONCE (be.pcl->next); - err =z_erofs_decompress_pcluster (&be, err) ?: err; + err =z_erofs_decompress_pcluster (&be, io->eio) ?: err; }return err; }
Greg Kroah-Hartman
maintainerPATCH 306/312 block: fix NULL pointer dereference in blk_zone_reset_all_bio_endio()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Damien Le Moal <[email protected]>
commit c2b8d20628ca789640f64074a642f9440eefc623 upstream.
For zoned block devices that do not need zone write plugs (e.g. most device mapper devices that support zones), the disk hash table of zone write plugs is NULL. For such devices, blk_zone_reset_all_bio_endio() should not attempt to scan this has table as that causes a NULL pointer dereference.
Fix this by checking that the disk does have zone write plugs using the atomic counter. This is equivalent to checking for a non-NULL hash table but has the advantage to also speed up the execution of blk_zone_reset_all_bio_endio() for devices that do use zone write plugs but do not have any plug in the hash table (e.g. a disk with only full zones).
--- block/blk-zoned.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-)
block/blk-zoned.c +12 -9
@@ -736,17 +736,20 @@ static void blk_zone_reset_all_bio_endiounsigned long flags;unsigned int i; -/* Update the condition of all zone write plugs. */ -rcu_read_lock (); -for (i =0 ; i <disk_zone_wplugs_hash_size (disk); i++) { -hlist_for_each_entry_rcu (zwplug, &disk->zone_wplugs_hash[i], - node) { -spin_lock_irqsave (&zwplug->lock, flags); -disk_zone_wplug_set_wp_offset (disk, zwplug,0 ); -spin_unlock_irqrestore (&zwplug->lock, flags); +if (atomic_read (&disk->nr_zone_wplugs)) { +/* Update the condition of all zone write plugs. */ +rcu_read_lock (); +for (i =0 ; i <disk_zone_wplugs_hash_size (disk); i++) { +hlist_for_each_entry_rcu (zwplug, + &disk->zone_wplugs_hash[i], + node) { +spin_lock_irqsave (&zwplug->lock, flags); +disk_zone_wplug_set_wp_offset (disk, zwplug,0 ); +spin_unlock_irqrestore (&zwplug->lock, flags); + } } +rcu_read_unlock (); } -rcu_read_unlock (); }static void blk_zone_finish_bio_endio (struct bio *bio)
Greg Kroah-Hartman
maintainerPATCH 307/312 powercap: intel_rapl: Add support for Wildcat Lake platform
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Srinivas Pandruvada <[email protected]>
commit 39f421f2e301f995c17c35b783e2863155b3f647 upstream.
Add Wildcat Lake to the list of supported processors for RAPL.
--- drivers/powercap/intel_rapl_common.c | 1 + drivers/powercap/intel_rapl_msr.c | 1 + 2 files changed, 2 insertions(+)
drivers/powercap/intel_rapl_common.c +1 -0
@@ -1284,6 +1284,7 @@ static const struct x86_cpu_id rapl_ids[X86_MATCH_VFM (INTEL_EMERALDRAPIDS_X , &rapl_defaults_spr_server),X86_MATCH_VFM (INTEL_LUNARLAKE_M , &rapl_defaults_core),X86_MATCH_VFM (INTEL_PANTHERLAKE_L , &rapl_defaults_core), +X86_MATCH_VFM (INTEL_WILDCATLAKE_L , &rapl_defaults_core),X86_MATCH_VFM (INTEL_ARROWLAKE_H , &rapl_defaults_core),X86_MATCH_VFM (INTEL_ARROWLAKE , &rapl_defaults_core), X86_MATCH_VFM(INTEL_ARROWLAKE_U, &rapl_defaults_core),
drivers/powercap/intel_rapl_msr.c +1 -0
@@ -151,6 +151,7 @@ static const struct x86_cpu_id pl4_suppoX86_MATCH_VFM (INTEL_ARROWLAKE_U ,NULL ),X86_MATCH_VFM (INTEL_ARROWLAKE_H ,NULL ),X86_MATCH_VFM (INTEL_PANTHERLAKE_L ,NULL ), + X86_MATCH_VFM(INTEL_WILDCATLAKE_L, NULL), {} };
Greg Kroah-Hartman
maintainerPATCH 308/312 powercap: intel_rapl: Add support for Nova Lake processors
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kaushlendra Kumar <[email protected]>
commit 58075aec92a8141fd7f42e1c36d1bc54552c015e upstream.
Add RAPL support for Intel Nova Lake and Nova Lake L processors using the core defaults configuration.
--- drivers/powercap/intel_rapl_common.c | 2 ++ drivers/powercap/intel_rapl_msr.c | 2 ++ 2 files changed, 4 insertions(+)
drivers/powercap/intel_rapl_common.c +2 -0
@@ -1285,6 +1285,8 @@ static const struct x86_cpu_id rapl_ids[X86_MATCH_VFM (INTEL_LUNARLAKE_M , &rapl_defaults_core),X86_MATCH_VFM (INTEL_PANTHERLAKE_L , &rapl_defaults_core),X86_MATCH_VFM (INTEL_WILDCATLAKE_L , &rapl_defaults_core), +X86_MATCH_VFM (INTEL_NOVALAKE , &rapl_defaults_core), +X86_MATCH_VFM (INTEL_NOVALAKE_L , &rapl_defaults_core),X86_MATCH_VFM (INTEL_ARROWLAKE_H , &rapl_defaults_core),X86_MATCH_VFM (INTEL_ARROWLAKE , &rapl_defaults_core), X86_MATCH_VFM(INTEL_ARROWLAKE_U, &rapl_defaults_core),
drivers/powercap/intel_rapl_msr.c +2 -0
@@ -152,6 +152,8 @@ static const struct x86_cpu_id pl4_suppoX86_MATCH_VFM (INTEL_ARROWLAKE_H ,NULL ),X86_MATCH_VFM (INTEL_PANTHERLAKE_L ,NULL ),X86_MATCH_VFM (INTEL_WILDCATLAKE_L ,NULL ), +X86_MATCH_VFM (INTEL_NOVALAKE ,NULL ), + X86_MATCH_VFM(INTEL_NOVALAKE_L, NULL), {} };
Greg Kroah-Hartman
maintainerPATCH 309/312 LoongArch: BPF: Enhance the bpf_arch_text_poke() function
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chenghao Duan <[email protected]>
commit 73721d8676771c6c7b06d4e636cc053fc76afefd upstream.
Enhance the bpf_arch_text_poke() function to enable accurate location of BPF program entry points.
When modifying the entry point of a BPF program, skip the "move t0, ra" instruction to ensure the correct logic and copy of the jump address.
--- arch/loongarch/net/bpf_jit.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)
arch/loongarch/net/bpf_jit.c +16 -1
@@ -1307,6 +1307,10 @@ int bpf_arch_text_poke(void *ip, enum bp void *old_addr, void *new_addr) { int ret; +unsigned long size =0 ; +unsigned long offset =0 ; +void *image =NULL ; +char namebuf[KSYM_NAME_LEN ];bool is_call = (poke_type ==BPF_MOD_CALL );u32 old_insns[LOONGARCH_LONG_JUMP_NINSNS ] = {[0 ...4 ] =INSN_NOP };u32 new_insns[LOONGARCH_LONG_JUMP_NINSNS ] = {[0 ...4 ] =INSN_NOP };
@@ -1314,9 +1318,20 @@ int bpf_arch_text_poke(void *ip, enum bp/* Only poking bpf text is supported. Since kernel function entry * is set up by ftrace, we rely on ftrace to poke kernel functions. */ -if (!is_bpf_text_address ((unsigned long )ip)) +if (!__bpf_address_lookup ((unsigned long )ip, &size, &offset, namebuf))return -ENOTSUPP ; + image = ip - offset; + +/* zero offset means we're poking bpf prog entry */ +if (offset ==0 ) { +/* skip to the nop instruction in bpf prog entry: +* move t0, ra +* nop +*/ + ip = image +LOONGARCH_INSN_SIZE ; + } + ret =emit_jump_or_nops (old_addr, ip, old_insns, is_call);if (ret)return ret;
Greg Kroah-Hartman
maintainerPATCH 310/312 vfio/pci: Disable qword access to the PCI ROM bar
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kevin Tian <[email protected]>
[ Upstream commit dc85a46928c41423ad89869baf05a589e2975575 ]
Commit 2b938e3db335 ("vfio/pci: Enable iowrite64 and ioread64 for vfio pci") enables qword access to the PCI bar resources. However certain devices (e.g. Intel X710) are observed with problem upon qword accesses to the rom bar, e.g. triggering PCI aer errors.
This is triggered by Qemu which caches the rom content by simply does a pread() of the remaining size until it gets the full contents. The other bars would only perform operations at the same access width as their guest drivers.
Instead of trying to identify all broken devices, universally disable qword access to the rom bar i.e. going back to the old way which worked reliably for years.
--- drivers/vfio/pci/nvgrace-gpu/main.c | 4 ++-- drivers/vfio/pci/vfio_pci_rdwr.c | 25 ++++++++++++++++++------- include/linux/vfio_pci_core.h | 10 +++++++++- 3 files changed, 29 insertions(+), 10 deletions(-)
drivers/vfio/pci/nvgrace-gpu/main.c +2 -2
@@ -491,7 +491,7 @@ nvgrace_gpu_map_and_read(struct nvgrace_ ret =vfio_pci_core_do_io_rw (&nvdev->core_device, false, nvdev->resmem.ioaddr, buf, offset, mem_count, -0 ,0 , false); +0 ,0 , false,VFIO_PCI_IO_WIDTH_8 ); }return ret;
@@ -609,7 +609,7 @@ nvgrace_gpu_map_and_write(struct nvgrace ret =vfio_pci_core_do_io_rw (&nvdev->core_device, false, nvdev->resmem.ioaddr, (char __user *)buf, pos, mem_count, -0 ,0 , true); +0 ,0 , true,VFIO_PCI_IO_WIDTH_8 ); }return ret;
drivers/vfio/pci/vfio_pci_rdwr.c +18 -7
@@ -135,7 +135,8 @@ VFIO_IORDWR(64)ssize_t vfio_pci_core_do_io_rw (struct vfio_pci_core_device *vdev,bool test_mem,void __iomem *io,char __user *buf,loff_t off,size_t count,size_t x_start, -size_t x_end,bool iswrite) +size_t x_end,bool iswrite, +enum vfio_pci_io_width max_width) {ssize_t done =0 ;int ret;
@@ -150,20 +151,19 @@ ssize_t vfio_pci_core_do_io_rw(struct vfelse fillable =0 ; -if (fillable >=8 && !(off %8 )) { +if (fillable >=8 && !(off %8 ) && max_width >=8 ) { ret =vfio_pci_iordwr64 (vdev, iswrite, test_mem, io, buf, off, &filled);if (ret)return ret; - }else -if (fillable >=4 && !(off %4 )) { + }else if (fillable >=4 && !(off %4 ) && max_width >=4 ) { ret =vfio_pci_iordwr32 (vdev, iswrite, test_mem, io, buf, off, &filled);if (ret)return ret; - }else if (fillable >=2 && !(off %2 )) { + }else if (fillable >=2 && !(off %2 ) && max_width >=2 ) { ret =vfio_pci_iordwr16 (vdev, iswrite, test_mem, io, buf, off, &filled);if (ret)
@@ -234,6 +234,7 @@ ssize_t vfio_pci_bar_rw(struct vfio_pci_void __iomem *io;struct resource *res = &vdev->pdev->resource[bar];ssize_t done; +enum vfio_pci_io_width max_width =VFIO_PCI_IO_WIDTH_8 ;if (pci_resource_start (pdev, bar)) end =pci_resource_len (pdev, bar);
@@ -262,6 +263,16 @@ ssize_t vfio_pci_bar_rw(struct vfio_pci_if (!io)return -ENOMEM ; x_end = end; + +/* +* Certain devices (e.g. Intel X710) don't support qword +* access to the ROM bar. Otherwise PCI AER errors might be +* triggered. +* +* Disable qword access to the ROM bar universally, which +* worked reliably for years before qword access is enabled. +*/ + max_width =VFIO_PCI_IO_WIDTH_4 ; }else {int ret =vfio_pci_core_setup_barmap (vdev, bar);if (ret) {
@@ -278,7 +289,7 @@ ssize_t vfio_pci_bar_rw(struct vfio_pci_ } done =vfio_pci_core_do_io_rw (vdev, res->flags &IORESOURCE_MEM , io, buf, pos, - count, x_start, x_end, iswrite); + count, x_start, x_end, iswrite, max_width);if (done >=0 ) *ppos += done;
@@ -352,7 +363,7 @@ ssize_t vfio_pci_vga_rw(struct vfio_pci_* to the memory enable bit in the command register. */ done =vfio_pci_core_do_io_rw (vdev, false, iomem, buf, off, count, -0 ,0 , iswrite); +0 ,0 , iswrite,VFIO_PCI_IO_WIDTH_8 );vga_put (vdev->pdev, rsrc);
include/linux/vfio_pci_core.h +9 -1
@@ -102,6 +102,13 @@ struct vfio_pci_core_device {struct rw_semaphore memory_lock; }; +enum vfio_pci_io_width { +VFIO_PCI_IO_WIDTH_1 =1 , +VFIO_PCI_IO_WIDTH_2 =2 , +VFIO_PCI_IO_WIDTH_4 =4 , +VFIO_PCI_IO_WIDTH_8 =8 , +}; +/* Will be exported for vfio pci drivers usage */ int vfio_pci_core_register_dev_region(struct vfio_pci_core_device *vdev, unsigned int type, unsigned int subtype,
@@ -139,7 +146,8 @@ pci_ers_result_t vfio_pci_core_aer_err_dssize_t vfio_pci_core_do_io_rw (struct vfio_pci_core_device *vdev,bool test_mem,void __iomem *io,char __user *buf,loff_t off,size_t count,size_t x_start, -size_t x_end,bool iswrite); +size_t x_end,bool iswrite, +enum vfio_pci_io_width max_width); bool vfio_pci_core_range_intersect_range(loff_t buf_start, size_t buf_cnt, loff_t reg_start, size_t reg_cnt, loff_t *buf_offset,
Greg Kroah-Hartman
maintainerPATCH 301/312 drm/xe/svm: Fix a debug printout
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Thomas Hellström <[email protected]>
commit d2d7f5636f0d752a1e0e7eadbbc1839c29177bba upstream.
Avoid spamming the log with drm_info(). Use drm_dbg() instead.
--- drivers/gpu/drm/xe/xe_svm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/xe/xe_svm.c +1 -1
@@ -942,7 +942,7 @@ bool xe_svm_range_needs_migrate_to_vram(xe_assert (vm->xe,IS_DGFX (vm->xe));if (xe_svm_range_in_vram (range)) { -drm_info (&vm->xe->drm,"Range is already in VRAM\n" ); +drm_dbg (&vm->xe->drm,"Range is already in VRAM\n" );return false; }
Hi
no regressions here on x86_64 (RKL, Intel 11th Gen. CPU)
Thanks
# Librecast Test Results
020/020 [ OK ] liblcrq
010/010 [ OK ] libmld
120/120 [ OK ] liblibrecast
CPU/kernel: Linux auntie 6.18.4-rc1-gdc7c4cd6ae5e #1 SMP PREEMPT_DYNAMIC Tue Jan 6 19:19:41 -00 2026 x86_64 AMD Ryzen 9 9950X 16-Core Processor AuthenticAMD GNU/Linux
Am 06.01.2026 um 18:01 schrieb Greg Kroah-Hartman:
Quoted 4 lines
This is the start of the stable review cycle for the 6.18.4 release. There are 312 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Builds, boots and works on my 2-socket Ivy Bridge Xeon E5-2697 v2 server. No dmesg oddities or regressions found.
Beste Grüße,
Peter Schneider
Signature · 8 lines
Climb the mountain not to plant your flag, but to embrace the challenge, enjoy the air and behold the view. Climb it so you can see the world, not so the world can see you. -- David McCullough Jr. OpenPGP: 0xA3828BD796CCE11A8CADE8866E3A92C92C3FF244 Download: https://www.peters-netzplatz.de/download/pschneider1968_pub.asc https://keys.mailvelope.com/pks/lookup?op=get&[email protected] https://keys.mailvelope.com/pks/lookup?op=get&[email protected]
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.18.4 release. There are 312 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, 08 Jan 2026 17:04:53 +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.18.4-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.18.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.18.4 release. There are 312 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, 08 Jan 2026 17:04:53 +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.18.4-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.18.y
and the diffstat can be found below.thanks,
greg k-h
Tested rc1 against the Fedora build system (aarch64, ppc64le, s390x, x86_64), and boot tested x86_64. No regressions noted.
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.18.4 release. There are 312 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, 08 Jan 2026 17:04:53 +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.18.4-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.18.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 5 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.18.4 release. There are 312 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, 08 Jan 2026 17:04:53 +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.18.4-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.18.y
and the diffstat can be found below.
Tested on the following hardware:
* a Framework 13 Laptop with a Ryzen AI 5 340
* a Framework Desktop with a Ryzen AI Max 395+
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.18.4 release. There are 312 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, 08 Jan 2026 17:04:53 +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.18.4-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.18.y
and the diffstat can be found below.thanks,
greg k-h
Built and booted successfully on RISC-V RV64 (HiFive Unmatched).
Quoted 4 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.18.4 release. There are 312 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.
hello
Compiled and booted 6.18.4-rc1+
No typical new regressions from dmesg.
As per dmidecode command.
Version: AMD Ryzen 3 3250U with Radeon Graphics
Processor Information
Socket Designation: FP5
Type: Central Processor
Family: Zen
Manufacturer: Advanced Micro Devices, Inc.
ID: 81 0F 81 00 FF FB 8B 17
Signature: Family 23, Model 24, Stepping 1
--
software engineer
rajagiri school of engineering and technology
Hi Greg
Quoted 10 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.18.4 release. There are 312 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, 08 Jan 2026 17:04:53 +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.18.4-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.18.y
and the diffstat can be found below.thanks,
greg k-h
6.18.4-rc1 tested.
Build successfully completed.
Boot successfully completed.
No dmesg regressions.
Video output normal.
Sound output normal.
Lenovo ThinkPad X1 Carbon Gen10(Intel i7-1260P(x86_64) arch linux)
[ 0.000000] Linux version 6.18.4-rc1rv-gdc7c4cd6ae5e
(takeshi@ThinkPadX1Gen10J0764) (gcc (GCC) 15.2.1 20251112, GNU ld (GNU Binutils) 2.45.1) #1 SMP PREEMPT_DYNAMIC Wed Jan 7 20:49:02 JST 2026
Thanks
Quoted 8 lines · On Tue, 06 Jan 2026 18:01:14 +0100 Greg Kroah-Hartman…
This is the start of the stable review cycle for the 6.18.4 release. There are 312 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, 08 Jan 2026 17:04:53 +0000. Anything received after that time might be too late.
Boot-tested under QEMU for Rust x86_64, arm64 and riscv64; built-tested for loongarch64:
Thanks!
Cheers,
Miguel
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.18.4 release. There are 312 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, 08 Jan 2026 17:04:53 +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.18.4-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.18.y
and the diffstat can be found below.thanks,
greg k-h
All tests passing for Tegra ...
Test results for stable-v6.18:
10 builds: 10 pass, 0 fail
28 boots: 28 pass, 0 fail
120 tests: 120 pass, 0 failLinux version: 6.18.4-rc1-gdc7c4cd6ae5e
Boards tested: tegra124-jetson-tk1, tegra186-p2771-0000,
tegra186-p3509-0000+p3636-0001, tegra194-p2972-0000,
tegra194-p3509-0000+p3668-0000, tegra20-ventana,
tegra210-p2371-2180, tegra210-p3450-0000,
tegra30-cardhu-a04Jon
The kernel, bpf tool, perf tool, and kselftest builds fine for v6.18.4-rc1 on x86 and arm64 Azure VM.
Thanks,
Hardik
Quoted 10 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.18.4 release. There are 312 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, 08 Jan 2026 17:04:53 +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.18.4-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.18.y
and the diffstat can be found below.thanks,
greg k-h
Builds successfully. Boots and works on qemu and Intel Core i7-10810U
Thanks,
Brett