Skip to contentSkip to conversation

Xen Security Advisory 255 - grant table v2 -> v1 transition may crash Xen

DISCUSSION Steven Haigh 3 participants 4 messages Feb 27, 2018 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 5 lines · AEDT Xen. org security team

Xen Security Advisory XSA-255
version 3

grant table v2 -> v1 transition may crash Xen

<snip>

Quoted 9 lines

RESOLUTION
==========

Applying the appropriate attached patch resolves this issue.

xsa255-?.patch         xen-unstable, Xen 4.10.x
xsa255-4.9-?.patch     Xen 4.9.x, Xen 4.8.x
xsa255-4.7-?.patch     Xen 4.7.x
xsa255-4.6-?.patch     Xen 4.6.x

Is there a missing pre-requisite patch required for 4.6.6?

I'm currently getting a failure on these patches as follows:

Patch #55 (xsa255-4.6-1.patch):
+ echo 'Patch #55 (xsa255-4.6-1.patch):'
+ /bin/cat /builddir/build/SOURCES/xsa255-4.6-1.patch
+ /usr/bin/patch -p1 --fuzz=2
patching file xen/arch/arm/domain.c
patching file xen/arch/arm/mm.c
Hunk #2 FAILED at 1075.
Hunk #3 FAILED at 1090.
2 out of 3 hunks FAILED -- saving rejects to file xen/arch/arm/mm.c.rej

The patches for 4.7, 4.9 and 4.10 seem to apply successfully.

Signature · 4 lines
Steven Haigh

📧 [email protected]       💻 http://www.crc.id.au
📞 +61 (3) 9001 6090    📱 0412 935 897

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#2 lore raw
Quoted 16 lines
Quoted 1 line
Quoted 1 line · On 27.02.18 at 13:37, <[email protected]> wrote:
Quoted 9 lines · AEDT Xen. org security team

RESOLUTION
==========

Applying the appropriate attached patch resolves this issue.

xsa255-?.patch         xen-unstable, Xen 4.10.x
xsa255-4.9-?.patch     Xen 4.9.x, Xen 4.8.x
xsa255-4.7-?.patch     Xen 4.7.x
xsa255-4.6-?.patch     Xen 4.6.x

Is there a missing pre-requisite patch required for 4.6.6?

I'm currently getting a failure on these patches as follows:

Quoted 9 lines

Patch #55 (xsa255-4.6-1.patch):
+ echo 'Patch #55 (xsa255-4.6-1.patch):'
+ /bin/cat /builddir/build/SOURCES/xsa255-4.6-1.patch
+ /usr/bin/patch -p1 --fuzz=2
patching file xen/arch/arm/domain.c
patching file xen/arch/arm/mm.c
Hunk #2 FAILED at 1075.
Hunk #3 FAILED at 1090.
2 out of 3 hunks FAILED -- saving rejects to file xen/arch/arm/mm.c.rej

I've just applied the patches to all stable branches, and they all applied fine, including the 4.6 ones. Are you perhaps missing the XSA-235 fix there? In any event, as said a number of times in the past, the patches we provide are against the staging branches for the respective stable versions; we don't guarantee patches apply to vanilla stable releases.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#3 lore raw
Quoted 26 lines · Jan Beulich
Quoted 16 lines
Quoted 1 line
Quoted 1 line · On 27.02.18 at 13:37, <[email protected]> wrote:
Quoted 9 lines · AEDT Xen. org security team

RESOLUTION
==========

Applying the appropriate attached patch resolves this issue.

xsa255-?.patch         xen-unstable, Xen 4.10.x
xsa255-4.9-?.patch     Xen 4.9.x, Xen 4.8.x
xsa255-4.7-?.patch     Xen 4.7.x
xsa255-4.6-?.patch     Xen 4.6.x

Is there a missing pre-requisite patch required for 4.6.6?

I'm currently getting a failure on these patches as follows:

Quoted 9 lines

Patch #55 (xsa255-4.6-1.patch):
+ echo 'Patch #55 (xsa255-4.6-1.patch):'
+ /bin/cat /builddir/build/SOURCES/xsa255-4.6-1.patch
+ /usr/bin/patch -p1 --fuzz=2
patching file xen/arch/arm/domain.c
patching file xen/arch/arm/mm.c
Hunk #2 FAILED at 1075.
Hunk #3 FAILED at 1090.
2 out of 3 hunks FAILED -- saving rejects to file xen/arch/arm/mm.c.rej

Quoted 6 lines

I've just applied the patches to all stable branches, and they all applied fine, including the 4.6 ones. Are you perhaps missing the XSA-235 fix there? In any event, as said a number of times in the past, the patches we provide are against the staging branches for the respective stable versions; we don't guarantee patches apply to vanilla stable releases.

And as other people have said several times, most downstreams don't build from stable-XX, but take a tarball and add patches to it. I expect Steven was asking if someone could point him to specific commits from stable-XX that might be required.

-George

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#4 lore raw
Quoted 3 lines · AEDT George Dunlap
Quoted 2 lines · Jan Beulich
Quoted 2 lines
Quoted 1 line
Quoted 1 line · On 27.02.18 at 13:37, <[email protected]> wrote:

On Tuesday, 27 February 2018 11:00:08 PM AEDT Xen. org security team

Quoted 31 lines · wrote:
Quoted 24 lines
Quoted 14 lines
Quoted 9 lines

RESOLUTION
==========

Applying the appropriate attached patch resolves this issue.

xsa255-?.patch         xen-unstable, Xen 4.10.x
xsa255-4.9-?.patch     Xen 4.9.x, Xen 4.8.x
xsa255-4.7-?.patch     Xen 4.7.x
xsa255-4.6-?.patch     Xen 4.6.x

Is there a missing pre-requisite patch required for 4.6.6?

I'm currently getting a failure on these patches as follows:

Quoted 9 lines

Patch #55 (xsa255-4.6-1.patch):
+ echo 'Patch #55 (xsa255-4.6-1.patch):'
+ /bin/cat /builddir/build/SOURCES/xsa255-4.6-1.patch
+ /usr/bin/patch -p1 --fuzz=2
patching file xen/arch/arm/domain.c
patching file xen/arch/arm/mm.c
Hunk #2 FAILED at 1075.
Hunk #3 FAILED at 1090.
2 out of 3 hunks FAILED -- saving rejects to file xen/arch/arm/mm.c.rej

Quoted 6 lines

I've just applied the patches to all stable branches, and they all applied fine, including the 4.6 ones. Are you perhaps missing the XSA-235 fix there? In any event, as said a number of times in the past, the patches we provide are against the staging branches for the respective stable versions; we don't guarantee patches apply to vanilla stable releases.

Quoted 4 lines

And as other people have said several times, most downstreams don't build from stable-XX, but take a tarball and add patches to it. I expect Steven was asking if someone could point him to specific commits from stable-XX that might be required.

Hi George,

Yes, you are correct.

As XSA-235 was an ARM only issue (and I don't build anything for ARM), these usually get skipped in my packaging.

As XSA-255 is *both* ARM & x86, it needed that extra bit of TLC... This probably makes it a little unique in how XSAs are normally presented.

I did look at the two patches in XSA-255, but it looked like there is a combination of both ARM & x86 changes in specifically the -2 patch which lead me to the conclusion that I couldn't just remove one patch to take out the common and x86 parts.

I figured something was missing, but wasn't able to track it back to the patch from August last year.

Thanks to Jan for the pointers to the missing requirement - I've got packages built for 4.6 now to push shortly.

Signature · 4 lines
Steven Haigh

📧 [email protected]       💻 http://www.crc.id.au
📞 +61 (3) 9001 6090    📱 0412 935 897

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel