+ mm-kmem-add-direct-objcg-pointer-to-task_struct-fix.patch added to mm-unstable branch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: mm-kmem-add-direct-objcg-pointer-to-task_struct-fix
has been added to the -mm mm-unstable branch.  Its filename is
     mm-kmem-add-direct-objcg-pointer-to-task_struct-fix.patch

This patch will shortly appear at
     https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-kmem-add-direct-objcg-pointer-to-task_struct-fix.patch

This patch will later appear in the mm-unstable branch at
    git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next via the mm-everything
branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there every 2-3 working days

------------------------------------------------------
From: Roman Gushchin <roman.gushchin@xxxxxxxxx>
Subject: mm-kmem-add-direct-objcg-pointer-to-task_struct-fix
Date: Sun, 1 Oct 2023 09:42:54 -0700

fix sparse complaint

Link: https://lkml.kernel.org/r/ZRmhjpGvKIdGj162@xxxxxxxxxxxxxx

Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/memcontrol.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/mm/memcontrol.c~mm-kmem-add-direct-objcg-pointer-to-task_struct-fix
+++ a/mm/memcontrol.c
@@ -3053,7 +3053,7 @@ static struct obj_cgroup *current_objcg_
 	rcu_read_lock();
 	do {
 		/* Atomically drop the update bit, */
-		WARN_ON_ONCE(cmpxchg(&current->objcg, tmp, 0) != tmp);
+		WARN_ON_ONCE(cmpxchg(&current->objcg, tmp, NULL) != tmp);
 
 		/* ...obtain the new objcg pointer */
 		memcg = mem_cgroup_from_task(current);
_

Patches currently in -mm which might be from roman.gushchin@xxxxxxxxx are

mm-kmem-optimize-get_obj_cgroup_from_current.patch
mm-kmem-add-direct-objcg-pointer-to-task_struct.patch
mm-kmem-add-direct-objcg-pointer-to-task_struct-fix.patch
mm-kmem-make-memcg-keep-a-reference-to-the-original-objcg.patch
mm-kmem-scoped-objcg-protection.patch
percpu-scoped-objcg-protection.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux