Skip to contentSkip to conversation

preparations for 4.19.1

DISCUSSION Jan Beulich 7 participants 13 messages Nov 12, 2024 – Nov 14, 2024

lore
Share & tools
lore
#0 lore raw

All,

the release is due by the end of the month. Please point out backports you find missing from the respective staging branch, but which you consider relevant.

Advance notice: 4.18.4 ought to follow about two weeks later.

Jan

#1 lore raw
Quoted 9 lines · Jan Beulich

All,

the release is due by the end of the month. Please point out backports you find missing from the respective staging branch, but which you consider relevant.

Advance notice: 4.18.4 ought to follow about two weeks later.

Jan

Looking for Julien's input on this one:

35c64c3dce01 ("xen/arm64: entry: Actually skip do_trap_*() when an SError is triggered")

As mentioned in the post-commit notes [0] it's a candidate for backport.

[0] https://lore.kernel.org/xen-devel/[email protected]/

#2 lore raw

Hi,

Quoted 8 lines · Stewart Hildebrand
Quoted 7 lines · Jan Beulich

All,

the release is due by the end of the month. Please point out backports you find missing from the respective staging branch, but which you consider relevant.

Advance notice: 4.18.4 ought to follow about two weeks later.

Quoted 8 lines
Quoted 2 lines

Jan

Looking for Julien's input on this one:

35c64c3dce01 ("xen/arm64: entry: Actually skip do_trap_*() when an SError is triggered")

As mentioned in the post-commit notes [0] it's a candidate for backport.

In the past, Stefano handled backports for Arm. I am not sure if this is still case. Stefano?

Quoted 2 lines

[0] https://lore.kernel.org/xen-devel/[email protected]/

Cheers,

Signature · 1 line
Julien Grall
#3 lore raw
Quoted 18 lines · Julien Grall

Hi,

Quoted 15 lines · Stewart Hildebrand
Quoted 11 lines · Jan Beulich

All,

the release is due by the end of the month. Please point out backports you find
missing from the respective staging branch, but which you consider relevant.

Advance notice: 4.18.4 ought to follow about two weeks later.

Jan

Looking for Julien's input on this one:

Quoted 7 lines
Quoted 4 lines

35c64c3dce01 ("xen/arm64: entry: Actually skip do_trap_*() when an SError is triggered")

As mentioned in the post-commit notes [0] it's a candidate for backport.

In the past, Stefano handled backports for Arm. I am not sure if this is still case. Stefano?

Done

#4 lore raw
In reply to Julien Grall

Hi all,

On 12 Nov 2024, at 16:11, Julien Grall <[email protected]> wrote:

Hi,

On 12/11/2024 16:00, Stewart Hildebrand wrote:
On 11/12/24 08:00, Jan Beulich wrote:
All,

the release is due by the end of the month. Please point out backports you find missing from the respective staging branch, but which you consider relevant.

Advance notice: 4.18.4 ought to follow about two weeks later.

Jan

Looking for Julien's input on this one:
35c64c3dce01 ("xen/arm64: entry: Actually skip do_trap_*() when an SError is triggered") As mentioned in the post-commit notes [0] it's a candidate for backport.

In the past, Stefano handled backports for Arm. I am not sure if this is still case. Stefano?

[0] https://lore.kernel.org/xen-devel/[email protected]/

Cheers,

--
Julien Grall

Regarding back porting to the 4.19, there is a regression for Arm discussed in the ML and on Matrix, do we want to address it now?

<https://patchwork.kernel.org/project/xen-devel/patch/302647e409d91ea7ed39e568dadeedc572976c3b.1727388925.git.sanastasio@raptorengineering.com/>
[v5,1/3] xen/device-tree: Let DT reserve map entries overlap reserved-memory - Patchwork<https://patchwork.kernel.org/project/xen-devel/patch/302647e409d91ea7ed39e568dadeedc572976c3b.1727388925.git.sanastasio@raptorengineering.com/> patchwork.kernel.org<https://patchwork.kernel.org/project/xen-devel/patch/302647e409d91ea7ed39e568dadeedc572976c3b.1727388925.git.sanastasio@raptorengineering.com/> [X]<https://patchwork.kernel.org/project/xen-devel/patch/302647e409d91ea7ed39e568dadeedc572976c3b.1727388925.git.sanastasio@raptorengineering.com/>

<https://patchwork.kernel.org/project/xen-devel/patch/[email protected]/>
xen/device-tree: Allow exact match for overlapping regions - Patchwork<https://patchwork.kernel.org/project/xen-devel/patch/[email protected]/> patchwork.kernel.org<https://patchwork.kernel.org/project/xen-devel/patch/[email protected]/> [X]<https://patchwork.kernel.org/project/xen-devel/patch/[email protected]/>

Cheers,
Luca

#5 lore raw
Quoted 50 lines · Luca Fancellu

Hi all,

Quoted 22 lines · Julien Grall

Hi,

Quoted 8 lines · Stewart Hildebrand
Quoted 7 lines · Jan Beulich

All,

the release is due by the end of the month. Please point out backports you find
missing from the respective staging branch, but which you consider relevant.

Quoted 8 lines
Quoted 4 lines

Advance notice: 4.18.4 ought to follow about two weeks later.

Jan

Looking for Julien's input on this one:
35c64c3dce01 ("xen/arm64: entry: Actually skip do_trap_*() when an SError is triggered")
As mentioned in the post-commit notes [0] it's a candidate for backport.

Quoted 12 lines

In the past, Stefano handled backports for Arm. I am not sure if this is still case. Stefano?

Quoted 2 lines

[0]
https://lore.kernel.org/xen-devel/[email protected]/

Cheers,

Signature · 1 line
Julien Grall

Regarding back porting to the 4.19, there is a regression for Arm discussed in the ML and on Matrix, do we want to address it now?

[v5,1/3] xen/device-tree: Let DT reserve map entries overlap reserved-memory - Patchwork
<https://patchwork.kernel.org/project/xen-devel/patch/302647e409d91ea7ed39e568dadeedc572976c3b.1727388925.git.sanastasio@raptorengineering.com/>
patchwork.kernel.org
<https://patchwork.kernel.org/project/xen-devel/patch/302647e409d91ea7ed39e568dadeedc572976c3b.1727388925.git.sanastasio@raptorengineering.com/>

	<https://patchwork.kernel.org/project/xen-devel/patch/302647e409d91ea7ed39e568dadeedc572976c3b.1727388925.git.sanastasio@raptorengineering.com/>

<https://patchwork.kernel.org/project/xen-devel/patch/302647e409d91ea7ed39e568dadeedc572976c3b.1727388925.git.sanastasio@raptorengineering.com/>

Quoted 8 lines

xen/device-tree: Allow exact match for overlapping regions - Patchwork
<https://patchwork.kernel.org/project/xen-devel/patch/[email protected]/>
patchwork.kernel.org
<https://patchwork.kernel.org/project/xen-devel/patch/[email protected]/>

	<https://patchwork.kernel.org/project/xen-devel/patch/[email protected]/>

<https://patchwork.kernel.org/project/xen-devel/patch/[email protected]/>

That regression does want addressing ASAP, and wants to be included within 4.19.1.

But first, the ARM maintainers need to agree on what the fix should look like.

~Andrew

#6 lore raw
In reply to Jan Beulich
Quoted 4 lines · Jan Beulich

All,

the release is due by the end of the month. Please point out backports you find missing from the respective staging branch, but which you consider relevant.

Looking over the XenServer patchqueue:

These are all bugfixes, some that came from customer bugs:

e42e4d8c3e2c: tools/misc: xen-hvmcrash: Inject #DF instead of overwriting RIP
42db2deb5e76: tools/libxs: Fix length check in xs_talkv()
ba709d514aac: x86/viridian: Clarify some viridian logging strings
d81dd3130351: x86/shutdown: change default reboot method preference 0d69635d27cb: tools/ocaml: Remove '-cc $(CC)' from OCAMLOPTFLAGS 8ffcf184affb: tools/ocaml: Fix OCaml libs rules 126293eae648: tools/ocaml: Drop the OCAMLOPTFLAG_G invocation 1965e9a93074: tools/ocaml: Fix the version embedded in META files
e58a2858d588: x86/boot: Preserve the value clobbered by the load-base calculation

This is a diagnostic improvement, also from a customer bug:

2f413e22fa5e: x86/msr: add log messages to MSR state load error paths

These are a SIGPIPE bugfix which happen to also have a perf improvement.  I cant remember if we discussed backporting them before. (Juergen/Anthony?)

42db2deb5e76: tools/libxs: Fix length check in xs_talkv()
e2a93bed8b9e: tools/libxs: Rework xs_talkv() to take xsd_sockmsg within the iovec
f050c03ce2ad: tools/libxs: Rationalise the definition of struct xs_handle 046efe529e82: tools/libxs: Track whether we're using a socket or file
ebaeb0c64a6d: tools/libxs: Use writev()/sendmsg() instead of write()
a17b6db9b007: tools/libxs: Stop playing with SIGPIPE

These are from a livepatching snafu:

3a28da8f4daf: xen/livepatch: remove useless check for duplicated sections 8c81423038f1: xen/livepatch: drop load_addr Elf section field 86d09d16dd74: xen/livepatch: simplify and unify logic in prepare_payload()
fa49f4be413c: xen/livepatch: do Xen build-id check earlier
aa5a06d5d6ed: x86/alternatives: do not BUG during apply

where the buildid check is much too late.

And from looking at staging:

fa2d8318033e: x86/cpu-policy: Extend the guest max policy max leaf/subleaves

This fixes a real issue on older AMD systems.

~Andrew

#7 lore raw
Quoted 7 lines · Andrew Cooper
Quoted 4 lines · Jan Beulich

All,

the release is due by the end of the month. Please point out backports you find missing from the respective staging branch, but which you consider relevant.

Looking over the XenServer patchqueue:

...

Quoted 11 lines

These are a SIGPIPE bugfix which happen to also have a perf improvement.  I cant remember if we discussed backporting them before. (Juergen/Anthony?)

42db2deb5e76: tools/libxs: Fix length check in xs_talkv()
e2a93bed8b9e: tools/libxs: Rework xs_talkv() to take xsd_sockmsg within the iovec
f050c03ce2ad: tools/libxs: Rationalise the definition of struct xs_handle 046efe529e82: tools/libxs: Track whether we're using a socket or file
ebaeb0c64a6d: tools/libxs: Use writev()/sendmsg() instead of write()
a17b6db9b007: tools/libxs: Stop playing with SIGPIPE

I'd take these, as playing with signals behind the back of a library user is something which should be fixed.

Juergen

#8 lore raw
Quoted 17 lines · Jürgen Groß
Quoted 1 line · Andrew Cooper

Looking over the XenServer patchqueue:

...

Quoted 11 lines

These are a SIGPIPE bugfix which happen to also have a perf improvement.  I cant remember if we discussed backporting them before. (Juergen/Anthony?)

42db2deb5e76: tools/libxs: Fix length check in xs_talkv()
e2a93bed8b9e: tools/libxs: Rework xs_talkv() to take xsd_sockmsg within the iovec
f050c03ce2ad: tools/libxs: Rationalise the definition of struct xs_handle 046efe529e82: tools/libxs: Track whether we're using a socket or file
ebaeb0c64a6d: tools/libxs: Use writev()/sendmsg() instead of write()
a17b6db9b007: tools/libxs: Stop playing with SIGPIPE

Quoted 2 lines

I'd take these, as playing with signals behind the back of a library user is something which should be fixed.

No question about the first and last one. Are all the intermediate ones necessary, though?

Jan

#9 lore raw
Quoted 18 lines · Jan Beulich
Quoted 17 lines · Jürgen Groß
Quoted 1 line · Andrew Cooper

Looking over the XenServer patchqueue:

...

Quoted 11 lines

These are a SIGPIPE bugfix which happen to also have a perf improvement.  I cant remember if we discussed backporting them before. (Juergen/Anthony?)

42db2deb5e76: tools/libxs: Fix length check in xs_talkv()
e2a93bed8b9e: tools/libxs: Rework xs_talkv() to take xsd_sockmsg within the iovec
f050c03ce2ad: tools/libxs: Rationalise the definition of struct xs_handle 046efe529e82: tools/libxs: Track whether we're using a socket or file
ebaeb0c64a6d: tools/libxs: Use writev()/sendmsg() instead of write()
a17b6db9b007: tools/libxs: Stop playing with SIGPIPE

Quoted 5 lines
Quoted 2 lines

I'd take these, as playing with signals behind the back of a library user is something which should be fixed.

No question about the first and last one. Are all the intermediate ones necessary, though?

I think those are needed for the last one to apply.

Juergen

#10 lore raw
Quoted 21 lines · Jürgen Groß
Quoted 20 lines · Jan Beulich
Quoted 19 lines · Jürgen Groß
Quoted 1 line · Andrew Cooper

Looking over the XenServer patchqueue:

...

Quoted 13 lines

These are a SIGPIPE bugfix which happen to also have a perf improvement.  I cant remember if we discussed backporting them before. (Juergen/Anthony?)

42db2deb5e76: tools/libxs: Fix length check in xs_talkv()
e2a93bed8b9e: tools/libxs: Rework xs_talkv() to take xsd_sockmsg within
the iovec
f050c03ce2ad: tools/libxs: Rationalise the definition of struct xs_handle
046efe529e82: tools/libxs: Track whether we're using a socket or file
ebaeb0c64a6d: tools/libxs: Use writev()/sendmsg() instead of write()
a17b6db9b007: tools/libxs: Stop playing with SIGPIPE

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

I'd take these, as playing with signals behind the back of a library user
is something which should be fixed.

No question about the first and last one. Are all the intermediate ones necessary, though?

I think those are needed for the last one to apply.

Yes they are needed.

To avoid playing with SIGPIPE, you need to use sendmsg(, MSG_NOSIGNAL) to transmit the data, which needs to distinguish sockets and files (can't sendmsg() to a file, and must not write() to a socket (no ability to pass flags)), which in turn involves having xsd_sockmsg in iov[0].

The only one that isn't strictly necessary is "Rationalise the definition of struct xs_handle" but you'd need to edit "Track whether we're using a socket or file" to add the field to both struct xs_handles, but I included it after breaking the build by not realising there was a second definition.  I suggest keeping the patch.

~Andrew

#11 lore raw
In reply to Andrew Cooper
Quoted 5 lines · Andrew Cooper
Quoted 2 lines · Jan Beulich

the release is due by the end of the month. Please point out backports you find missing from the respective staging branch, but which you consider relevant.

Looking over the XenServer patchqueue:

First, overall - that's quite a few. Most not even having a Fixes: tag. Or in one case having even two of them alongside saying "no functional change". Plus it would be really nice if someone else could take care of tool stack backports again.

In more detail:

Quoted 4 lines

These are all bugfixes, some that came from customer bugs:

e42e4d8c3e2c: tools/misc: xen-hvmcrash: Inject #DF instead of overwriting RIP

I'm on the edge here, but since you're asking for it, I'll include it.

Quoted 1 line

ba709d514aac: x86/viridian: Clarify some viridian logging strings

Not really a backporting candidate imo.

Quoted 1 line

d81dd3130351: x86/shutdown: change default reboot method preference

I'll include that, despite the different perspective I'm taking.

Quoted 4 lines

0d69635d27cb: tools/ocaml: Remove '-cc $(CC)' from OCAMLOPTFLAGS 8ffcf184affb: tools/ocaml: Fix OCaml libs rules 126293eae648: tools/ocaml: Drop the OCAMLOPTFLAG_G invocation 1965e9a93074: tools/ocaml: Fix the version embedded in META files

Provided these apply as-is, I'll blindly take these.

Quoted 2 lines

e58a2858d588: x86/boot: Preserve the value clobbered by the load-base calculation

Based on its Fixes: tags I probably should have included this one already.

Quoted 3 lines

This is a diagnostic improvement, also from a customer bug:

2f413e22fa5e: x86/msr: add log messages to MSR state load error paths

Again - not really a backporting candidate imo.

Quoted 11 lines

These are a SIGPIPE bugfix which happen to also have a perf improvement.  I cant remember if we discussed backporting them before. (Juergen/Anthony?)

42db2deb5e76: tools/libxs: Fix length check in xs_talkv()
e2a93bed8b9e: tools/libxs: Rework xs_talkv() to take xsd_sockmsg within the iovec
f050c03ce2ad: tools/libxs: Rationalise the definition of struct xs_handle 046efe529e82: tools/libxs: Track whether we're using a socket or file
ebaeb0c64a6d: tools/libxs: Use writev()/sendmsg() instead of write()
a17b6db9b007: tools/libxs: Stop playing with SIGPIPE

See the earlier reply to both Jürgen and you.

Quoted 9 lines

These are from a livepatching snafu:

3a28da8f4daf: xen/livepatch: remove useless check for duplicated sections 8c81423038f1: xen/livepatch: drop load_addr Elf section field 86d09d16dd74: xen/livepatch: simplify and unify logic in prepare_payload()
fa49f4be413c: xen/livepatch: do Xen build-id check earlier
aa5a06d5d6ed: x86/alternatives: do not BUG during apply

where the buildid check is much too late.

I certainly agree with taking the last two. The first three though are all "no functional change", which generally I'd prefer to omit unless they're strictly prereqs, or diverging from master is deemed to be a severe issue.

Quoted 5 lines

And from looking at staging:

fa2d8318033e: x86/cpu-policy: Extend the guest max policy max leaf/subleaves

This fixes a real issue on older AMD systems.

Will include it.

Jan

#12 lore raw
Quoted 6 lines · Jan Beulich
Quoted 4 lines · Andrew Cooper
Quoted 2 lines · Jan Beulich

the release is due by the end of the month. Please point out backports you find missing from the respective staging branch, but which you consider relevant.

Looking over the XenServer patchqueue:

First, overall - that's quite a few.

As chance would have it, we've just started efforts to move forward from 4.17.

Quoted 6 lines
Quoted 1 line

ba709d514aac: x86/viridian: Clarify some viridian logging strings

Not really a backporting candidate imo.

Quoted 3 lines

This is a diagnostic improvement, also from a customer bug:

2f413e22fa5e: x86/msr: add log messages to MSR state load error paths

Again - not really a backporting candidate imo.

There have been a steady stream of requests for help on list and on matrix, with people asking the wrong question because the Viridian error message is plain wrong for anyone who isn't an expert in the TLFS spec.

What is even worse is that I've been trying to fix this damn error message for 5 years
https://lore.kernel.org/xen-devel/[email protected]/T/#u
because it had already been causing confusion for years prior.

Good (or better) error messages are worth their weight in gold, for ease of investigating bug reports if nothing else.They really should be considered in the same category as bugfixes, IMO.

Quoted 8 lines
Quoted 8 lines

These are from a livepatching snafu:

3a28da8f4daf: xen/livepatch: remove useless check for duplicated sections 8c81423038f1: xen/livepatch: drop load_addr Elf section field 86d09d16dd74: xen/livepatch: simplify and unify logic in prepare_payload()
fa49f4be413c: xen/livepatch: do Xen build-id check earlier
aa5a06d5d6ed: x86/alternatives: do not BUG during apply

Quoted 4 lines
Quoted 1 line

where the buildid check is much too late.

I certainly agree with taking the last two. The first three though are all "no functional change", which generally I'd prefer to omit unless they're strictly prereqs, or diverging from master is deemed to be a severe issue.

Patch 1 might be able to be excluded without too much trouble.

Patch 2 and 3 are both prerequisites; the first to get a usable pointer early enough to do the check, and the second to get a suitable helper to perform the check with.

~Andrew