From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,rppt@kernel.org,pratyush@kernel.org,dan.carpenter@linaro.org,akpm@linux-foundation.org
Subject: + liveupdate-luo_session-add-sessions-support-fix.patch added to mm-nonmm-unstable branch
Date: Wed, 26 Nov 2025 09:43:34 -0800 [thread overview]
Message-ID: <20251126174335.4128DC4CEF7@smtp.kernel.org> (raw)
The patch titled
Subject: liveupdate: luo_session: fix use after free in luo_session_deserialize()
has been added to the -mm mm-nonmm-unstable branch. Its filename is
liveupdate-luo_session-add-sessions-support-fix.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/liveupdate-luo_session-add-sessions-support-fix.patch
This patch will later appear in the mm-nonmm-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: Dan Carpenter <dan.carpenter@linaro.org>
Subject: liveupdate: luo_session: fix use after free in luo_session_deserialize()
Date: Wed, 26 Nov 2025 17:51:40 +0300
The debug output frees "session" but it was freed on the previous line.
Move the free after the printk().
Link: https://lkml.kernel.org/r/c5dd637d7eed3a3be48c5e9fedb881596a3b1f5a.1764163896.git.dan.carpenter@linaro.org
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Pratyush Yadav <pratyush@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
kernel/liveupdate/luo_session.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/kernel/liveupdate/luo_session.c~liveupdate-luo_session-add-sessions-support-fix
+++ a/kernel/liveupdate/luo_session.c
@@ -387,9 +387,9 @@ int luo_session_deserialize(void)
err = luo_session_insert(sh, session);
if (err) {
- luo_session_free(session);
pr_warn("Failed to insert session [%s] %pe\n",
session->name, ERR_PTR(err));
+ luo_session_free(session);
return err;
}
}
_
Patches currently in -mm which might be from dan.carpenter@linaro.org are
liveupdate-luo_session-add-sessions-support-fix.patch
next reply other threads:[~2025-11-26 17:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-26 17:43 Andrew Morton [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-11-15 0:26 + liveupdate-luo_session-add-sessions-support-fix.patch added to mm-nonmm-unstable branch Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251126174335.4128DC4CEF7@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=dan.carpenter@linaro.org \
--cc=mm-commits@vger.kernel.org \
--cc=pratyush@kernel.org \
--cc=rppt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.