merge mm-hotfixes-stable into mm-stable to pick up depended-upon changes
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 24 Aug 2023 22:25:56 +0000 (15:25 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 24 Aug 2023 22:25:56 +0000 (15:25 -0700)
1  2 
lib/maple_tree.c
mm/huge_memory.c
mm/madvise.c
mm/shmem.c

@@@ -4107,12 -4265,16 +4107,16 @@@ static inline unsigned char mas_wr_new_
   * mas_wr_append: Attempt to append
   * @wr_mas: the maple write state
   *
+  * This is currently unsafe in rcu mode since the end of the node may be cached
+  * by readers while the node contents may be updated which could result in
+  * inaccurate information.
+  *
   * Return: True if appended, false otherwise
   */
 -static inline bool mas_wr_append(struct ma_wr_state *wr_mas)
 +static inline bool mas_wr_append(struct ma_wr_state *wr_mas,
 +                               unsigned char new_end)
  {
        unsigned char end = wr_mas->node_end;
 -      unsigned char new_end = end + 1;
        struct ma_state *mas = wr_mas->mas;
        unsigned char node_pivots = mt_pivots[wr_mas->type];
  
Simple merge
diff --cc mm/madvise.c
Simple merge
diff --cc mm/shmem.c
Simple merge