* [GIT PULL] liveupdate: a fix for v7.2-rc5
@ 2026-07-22 16:25 Mike Rapoport
2026-07-22 18:48 ` Linus Torvalds
2026-07-22 20:53 ` pr-tracker-bot
0 siblings, 2 replies; 4+ messages in thread
From: Mike Rapoport @ 2026-07-22 16:25 UTC (permalink / raw)
To: Linus Torvalds
Cc: Mike Rapoport, Jackie Liu, Pasha Tatashin, Pratyush Yadav, kexec,
linux-kernel
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(-)
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [GIT PULL] liveupdate: a fix for v7.2-rc5 2026-07-22 16:25 [GIT PULL] liveupdate: a fix for v7.2-rc5 Mike Rapoport @ 2026-07-22 18:48 ` Linus Torvalds 2026-07-23 10:53 ` Pratyush Yadav 2026-07-22 20:53 ` pr-tracker-bot 1 sibling, 1 reply; 4+ messages in thread From: Linus Torvalds @ 2026-07-22 18:48 UTC (permalink / raw) To: Mike Rapoport Cc: Jackie Liu, Pasha Tatashin, Pratyush Yadav, kexec, linux-kernel On Wed, 22 Jul 2026 at 09:25, Mike Rapoport <rppt@kernel.org> wrote: > > * 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [GIT PULL] liveupdate: a fix for v7.2-rc5 2026-07-22 18:48 ` Linus Torvalds @ 2026-07-23 10:53 ` Pratyush Yadav 0 siblings, 0 replies; 4+ messages in thread From: Pratyush Yadav @ 2026-07-23 10:53 UTC (permalink / raw) To: Linus Torvalds Cc: Mike Rapoport, Jackie Liu, Pasha Tatashin, Pratyush Yadav, kexec, linux-kernel On Wed, Jul 22 2026, Linus Torvalds wrote: > On Wed, 22 Jul 2026 at 09:25, Mike Rapoport <rppt@kernel.org> wrote: >> >> * 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. 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/20260519122428.2378446-1-pratyush@kernel.org/ > > 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/20260721004514.3421718-1-sashal@kernel.org/ -- Regards, Pratyush Yadav ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [GIT PULL] liveupdate: a fix for v7.2-rc5 2026-07-22 16:25 [GIT PULL] liveupdate: a fix for v7.2-rc5 Mike Rapoport 2026-07-22 18:48 ` Linus Torvalds @ 2026-07-22 20:53 ` pr-tracker-bot 1 sibling, 0 replies; 4+ messages in thread From: pr-tracker-bot @ 2026-07-22 20:53 UTC (permalink / raw) To: Mike Rapoport Cc: Linus Torvalds, Mike Rapoport, Jackie Liu, Pasha Tatashin, Pratyush Yadav, kexec, linux-kernel The pull request you sent on Wed, 22 Jul 2026 19:25:07 +0300: > 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! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-07-23 10:53 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-07-22 16:25 [GIT PULL] liveupdate: a fix for v7.2-rc5 Mike Rapoport 2026-07-22 18:48 ` Linus Torvalds 2026-07-23 10:53 ` Pratyush Yadav 2026-07-22 20:53 ` pr-tracker-bot
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.