Skip to content

v252 batch #439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Aug 19, 2024
Merged

v252 batch #439

merged 21 commits into from
Aug 19, 2024

Conversation

bluca
Copy link
Member

@bluca bluca commented Aug 19, 2024

No description provided.

Currently, IS_SYNTHETIC_ERRNO() evaluates to true for all negative errnos,
because of the two's-complement negative value representation.
Subsequently, ERRNO= is not logged for most of our own code.
Let's fix this, by formatting all synthetic errnos as positive.
Then, treat all negative values as non-synthetic.

While at it, mark the evaluation order explicitly, and remove
unneeded comment.

Fixes #33800

(cherry picked from commit 268f580)
(cherry picked from commit 4ad6b26)
(cherry picked from commit 1fc7e34)
(cherry picked from commit 9463b37)
(cherry picked from commit 273146f)
dtardon and others added 20 commits August 19, 2024 20:19
The signalfd_siginfo struct is received from outside via a FD, hence
assert() is not appropriate way to check it. Just do a normal runtime
check.

(cherry picked from commit 7a64c5f)
(cherry picked from commit 7a48ea9)
(cherry picked from commit 5fa8b5d)
(cherry picked from commit 74fa56e)
(cherry picked from commit e681d16)
EINVAL should be used when a function is called with an invalid
argument. Here, the signal is not a function argument.

Follow-up for 7a64c5f.

(cherry picked from commit ab9af70)
(cherry picked from commit 84f0eda)
(cherry picked from commit da81ee2)
(cherry picked from commit 42885ab)
(cherry picked from commit 7ac2395)
The new file, modules.weakdep, generated by depmod to get the weak
dpendencies information can be present
(kmod-project/kmod@05828b4),
so remove it like the other similar files.

Signed-off-by: Jose Ignacio Tornos Martinez <[email protected]>
(cherry picked from commit eef4cd5)
(cherry picked from commit 0cdec6e)
(cherry picked from commit ae0c61b)
(cherry picked from commit d9abcf9)
(cherry picked from commit f410f29)
- Improve wording for explanation when these variables are inherited

- Clarify that these variables are not placed in the process environment block,
  so /proc/PID/environ cannot be used as a debugging tool

(cherry picked from commit 6c1e082)
(cherry picked from commit 5cf0c45)
(cherry picked from commit 79f335d)
(cherry picked from commit bb28a6c)
(cherry picked from commit 0b5bb2b)
(cherry picked from commit 3f24fa5)
(cherry picked from commit ec3f2c8)
(cherry picked from commit 8e0cb57)
(cherry picked from commit 5349337)
(cherry picked from commit ba8c10a)
On CentOS/Fedora, dracut is configured to write the initrd to
/boot/initramfs-$KERNEL_VERSION...img so let's check for that as well
if no initrds were supplied.

(cherry picked from commit b56920e)
(cherry picked from commit 1cb21b2)
(cherry picked from commit 22acfc0)
(cherry picked from commit 7182b54)
(cherry picked from commit c98e7cd)
Even if a timespan specified to IgnoreCarrierLoss= for an interface,
when the carrier of the interface lost, bound interfaces might be bring
down immediately.

Let's also postpone bringing down bound interfaces with the specified
timespan.

(cherry picked from commit e8eaed0)
(cherry picked from commit 9468a6e)
(cherry picked from commit 80e93a0)
(cherry picked from commit f2e34bd)
(cherry picked from commit bb8b029)
(cherry picked from commit 4d6ab7e)
(cherry picked from commit c12c122)
(cherry picked from commit 407ac39)
(cherry picked from commit 2fa6dd1)
(cherry picked from commit f94e0a3)
… station

To avoid conflicts with user .network file for the wlan interface with Bond=.
See systemd/systemd#19832 (comment).

(cherry picked from commit e2becab)
(cherry picked from commit ad861b6)
(cherry picked from commit 2a182ae)
(cherry picked from commit d008601)
(cherry picked from commit 9d9458a)
Fixes CID#1548022 and CID#1548075.

(cherry picked from commit f7012a9)
(cherry picked from commit 11c1590)
(cherry picked from commit a920cc9)
(cherry picked from commit ff17a10)
(cherry picked from commit 2d261da)
tcp reset / icmp port-unreachable are markedly different conditions than
packet loss. It doesn't make much sense to retry in this case. It's
actually not clear if there is any benefit at all retrying tcp
connections, which were presumably already retried as necessary by the
tcp stack.

(cherry picked from commit ddd710a)
(cherry picked from commit f5376fe)
(cherry picked from commit 030dbbc)
(cherry picked from commit 1b5bc5a)
(cherry picked from commit b8316a0)
…> symlink

In multi-arch distributions (debian and derivatives) multiarch tuples under
/usr/lib are used, such as /usr/lib/x86_64-linux-gnu/ but the /lib64 symlink
should never point there, it should always point to /usr/lib64, as that's
how they are set up by distribution-specific tools.

https://packages.debian.org/bookworm/amd64/libc6-i386/filelist
https://packages.debian.org/bookworm/mipsel/libc6-mips64/filelist
https://salsa.debian.org/md/usrmerge/-/blob/master/convert-usrmerge?ref_type=heads#L295
https://salsa.debian.org/md/usrmerge/-/blob/master/convert-usrmerge?ref_type=heads#L517
http://bugs.debian.org/1076491

Fixes systemd/systemd#33919

(cherry picked from commit b75c137)
(cherry picked from commit 38caeac)
(cherry picked from commit b2738ee)
(cherry picked from commit 3b1f76d)
(cherry picked from commit d62a0aa)
Fixes Fixes #33935.

(cherry picked from commit b48ab08)
(cherry picked from commit 0195db6)
(cherry picked from commit 7b1bb6e)
(cherry picked from commit bafd8fc)
(cherry picked from commit 643780a)
(cherry picked from commit 0d113f8)
(cherry picked from commit 8d5806b)
(cherry picked from commit 5ee15b9)
(cherry picked from commit 459fdc1)
(cherry picked from commit bc25576)
When creating a user, check if the requested group name matches a user
name in the queue. If that matched user name is also going to be a group
name, then use it for the new user too. In other words, allow the
following:

 u foo -
 u bar -:foo

when both foo and bar are new users.

Fixes #33547

(cherry picked from commit 18a8f03)
(cherry picked from commit edf5238)
(cherry picked from commit 25003a6)
(cherry picked from commit ed2da03)
(cherry picked from commit f2c2b65)
gcc15 has -Wunterminated-string-initialization in -Wextra and
warns about string constants that are not null terminated even though
the functions do do out of bounds access.
Silence the warnings by simply not providing an explicit size.

(cherry picked from commit af1a6db)
(cherry picked from commit ca09bc3)
(cherry picked from commit f6f0d85)
(cherry picked from commit e49ce1b)
(cherry picked from commit a264598)
With af1a6db, now we can build with the
option.

(cherry picked from commit f548bc4)
(cherry picked from commit 7725496)
(cherry picked from commit da229ea)
(cherry picked from commit fbc4335)
(cherry picked from commit 5159b7a)
The nice value is part of struct sched_attr, and consequently invoking
sched_setattr() after setpriority() would clobber the nice value with
the default (as we are not setting it in struct sched_attr).

It would be best to combine both calls, but for now simply invoke
setpriority() after sched_setattr() to make sure Nice= remains effective
when used together with CPUSchedulingPolicy=.

(cherry picked from commit 711a157)
(cherry picked from commit b628d4d)
(cherry picked from commit 4994f15)
(cherry picked from commit c90ba5e)
(cherry picked from commit 468144c)
Let's mention that the new mount API may be used to establish new
mounts in a container without needing the /run/host/incoming directory.

(cherry picked from commit 74cc5e2)
(cherry picked from commit 65eff44)
(cherry picked from commit 53d92de)
(cherry picked from commit c12ef9e)
(cherry picked from commit 778f622)
Bit 60 is the one corresponding to ReadOnly, not 50.  Fix this.

(cherry picked from commit 932cc94)
(cherry picked from commit 2665618)
(cherry picked from commit f38c19b)
(cherry picked from commit 5ae6c77)
(cherry picked from commit 3630195)
@bluca bluca merged commit e5aa858 into systemd:v252-stable Aug 19, 2024
24 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.