All of lore.kernel.org
 help / color / mirror / Atom feed
* Difference between patch in XSA and patch checked in
@ 2017-08-23 16:35 George Dunlap
  2017-08-23 16:39 ` Andrew Cooper
  2017-08-24  7:29 ` Jan Beulich
  0 siblings, 2 replies; 7+ messages in thread
From: George Dunlap @ 2017-08-23 16:35 UTC (permalink / raw)
  To: xen-devel@lists.xen.org, Committers

Dear committers,

I spent way to many hours this afternoon trying to rebase the CentOS
patchqueue from 4.6.5 to 4.6.6.  In theory "git rebase" should detect
when duplicate patches are being merged over and forget the patch
automatically.

Unfortunately, this didn't work in a large number of cases because there
were minor changes between the patch published in the XSA and the patch
that ended up getting checked in.  One example of this is
xsa218-4.6/0003-gnttab-Avoid-potential-double-put-of-maptrack-entry.patch,
which in the advisory has:

+        gdprintk(XENLOG_WARNING, "Unstable handle %#x\n", op->handle);

But in the checked-in patch for stable-4.6 (c/s 819044abe4) has:

+        gdprintk(XENLOG_WARNING, "Unstable handle %u\n", op->handle);

So I spent some time writing a script that would automatically look for
a patch in the commit history with the same title.  This also didn't
work, because the *titles* often changed, in really minor ways.  One
example of this is xsa219-4.6.patch, which has the commit title:

x86/shadow: Hold references for the duration of emulated writes

But when checked in to stable-4.6, had this title (c/s 4d13019cb0):

x86/shadow: hold references for the duration of emulated writes

Another example is xsa222-1-4.6.patch, which had the following title :

xen/memory: Fix return value handing of guest_remove_page()

But was checked in to stable-4.6 with this this title (c/s d23eb82c8a):

memory: fix return value handing of guest_remove_page()

I know Lars has run into similar problems.  Having a computer be able to
easily tell whether a patch has been applied or not will save everyone a
lot of time in the long run, and is far more important than fixing a
printk string or fixing capitalization in a patch title.

Can I propose that committers should always check in the exact version
of the patch in the publicly-released advisory?  Preferably directly
from xsa.git, and with 'git am' (and not rebasing or modifying patches)?

"Bugs" in patch titles should be caught during pre-embargo review, and
left if they get missed; stylistic issues with the patch should be fixed
in follow-up patches.

Thanks,
 -George

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-08-24 10:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-23 16:35 Difference between patch in XSA and patch checked in George Dunlap
2017-08-23 16:39 ` Andrew Cooper
2017-08-23 16:45   ` George Dunlap
2017-08-24  7:29 ` Jan Beulich
2017-08-24 10:17   ` George Dunlap
2017-08-24 10:20     ` Jan Beulich
2017-08-24 10:30       ` George Dunlap

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.