]> git.ipfire.org Git - thirdparty/systemd.git/commit
coredump: handle ENOBUFS and EMSGSIZE the same way
authorMichal Sekletar <msekleta@redhat.com>
Fri, 24 Oct 2025 10:55:20 +0000 (12:55 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 6 Nov 2025 21:26:42 +0000 (21:26 +0000)
commit711109fef3db5156ce06a90123ea7a32c98ebef5
tree11a37673b527a59f004917a37458d4a31ec221cd
parent3f04968391aeac1281adf09f88ae03ce028cfb88
coredump: handle ENOBUFS and EMSGSIZE the same way

Depending on the runtime configuration, e.g. sysctls
net.core.wmem_default= and net.core.rmem_default and on the actual
message size, sendmsg() can fail also with ENOBUFS. E.g. alloc_skb()
failure caused by net.core.[rw]mem_default=64MiB and huge fdinfo list
from process that has 90k opened FDs.

We should handle this case in the same way as EMSGSIZE and drop part of
the message.

(cherry picked from commit 28e62e684b631f928f1d857b04f45f0d34441675)
src/coredump/coredump.c