Skip to contentSkip to conversation

liveupdate: a fix for v7.2-rc5

GIT PULL Merged Mike Rapoport 4 participants 4 messages Jul 22 – Jul 23

Subsystems (2)
lore
Share & tools
lore

Mike Rapoport

author maintainer
#0 lore raw

Hi Linus,

The following changes since commit dc59e4fea9d83f03bad6bddf3fa2e52491777482:

Linux 7.2-rc1 (2026-06-28 12:01:31 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/liveupdate/linux.git tags/liveupdate-fixes-2026-07-22

for you to fetch changes up to 4416f8a9ed5f49256dc69c664f1386b496ca16a1:

liveupdate: fix GET_NAME ioctl argument validation (2026-07-16 09:25:30 +0300)

----------------------------------------------------------------
liveupdate: a fix for v7.2-rc5

* Fix validation of LIVEUPDATE_SESSION_GET_NAME ioctl argument caused by a wrong resolution of a merge conflict during the last merge window

----------------------------------------------------------------
Jackie Liu (1):
liveupdate: fix GET_NAME ioctl argument validation

 kernel/liveupdate/luo_session.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#1 lore raw
Quoted 3 lines · Mike Rapoport

* Fix validation of LIVEUPDATE_SESSION_GET_NAME ioctl argument caused by a wrong resolution of a merge conflict during the last merge window

Hmm. I tried to figure this one out, and there's no "Fixes" tag on this commit.

It would seem to appear that the "merge conflict" wasn't actually a merge conflict, it was in fact a bad rebase (which in turn was due to a merge conflict in linux-next).

People really should be extra careful about rebases like this. They destroy history, and when bugs happen, it's really hard to see *why* the bug happened because the actual cause of the bug has disappeared and no longer exists after the rebase.

I *think* this commit should have a

Fixes 507e3b479f9c ("liveupdate: validate session type before

performing operation")

but I'm not familiar with this code, so somebody should check that.

I really would like to see "Fixes" tags in general - but *particularly* for something like this because it's marked for stable (apparently because the bad rebase was marked for stable).

Linus

merge bot Merged
#3 lore raw
In reply to Mike Rapoport
The pull request you sent on Wed, 22 Jul 2026 19:25:07 +0300:

The pull request you sent on Wed, 22 Jul 2026 19:25:07 +0300:

Quoted 1 line

https://git.kernel.org/pub/scm/linux/kernel/git/liveupdate/linux.git tags/liveupdate-fixes-2026-07-22

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/4539944e515183668109bdf4d0c3d7d228383d88

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html
maintainer
#2 lore raw
In reply to Linus Torvalds
Quoted 16 lines · Linus Torvalds
Quoted 3 lines · Mike Rapoport

* Fix validation of LIVEUPDATE_SESSION_GET_NAME ioctl argument caused by a wrong resolution of a merge conflict during the last merge window

Hmm. I tried to figure this one out, and there's no "Fixes" tag on this commit.

It would seem to appear that the "merge conflict" wasn't actually a merge conflict, it was in fact a bad rebase (which in turn was due to a merge conflict in linux-next).

People really should be extra careful about rebases like this. They destroy history, and when bugs happen, it's really hard to see *why* the bug happened because the actual cause of the bug has disappeared and no longer exists after the rebase.

Quoted 6 lines

I *think* this commit should have a

Fixes 507e3b479f9c ("liveupdate: validate session type before

performing operation")

but I'm not familiar with this code, so somebody should check that.

Yep, that's the one. The patch for this commit [0] was based on the v7.1 fixes branch, and at that point LIVEUPDATE_SESSION_GET_NAME didn't exist. LIVEUPDATE_SESSION_GET_NAME went in via v7.2-rc1. So original patch did the right thing and didn't have this bug.

But the patch was sent around v7.1-rc6 and you complained at the time about rcs being too big. This bug doesn't cause anything bad, only warning messages, so we decided to move it to the next branch targeting v7.2-rc1. The next branch had the new LIVEUPDATE_SESSION_GET_NAME ioctl. The move from fixes to next caused a conflict, and that conflict was not fixed correctly.

I did go and read the commit after the rebase to make sure everything was good, but apparently I am blind and completely missed this.

Unfortunately for this case I don't think there is much we could have done to avoid the rebasing. When you move a commit from one branch to another, you have to lose the history.

But in general, I get your point. We are merging our fixes branch into next instead of rebasing next on top of it, so we would at least not lose history when something in fixes conflicts with next.

[0] https://lore.kernel.org/all/[email protected]/

Quoted 4 lines

I really would like to see "Fixes" tags in general - but *particularly* for something like this because it's marked for stable (apparently because the bad rebase was marked for stable).

Yes, it should have the Fixes tag, and I missed that. But this patch shouldn't go into stable. 507e3b479f9c ("liveupdate: validate session type before performing operation") needs to go into stable but without the LIVEUPDATE_SESSION_GET_NAME bits, because that's a new uAPI and has no business being backported to stable. So the backport, if done right, should not have this bug.

And Sasha did do the right thing with [1], so I think stable is already in a good state.

[1] https://lore.kernel.org/stable/[email protected]/

Signature · 2 lines
Regards,
Pratyush Yadav