• Igor Zhbanov's avatar
    [systemd] journald: Retry if posix_fallocate returned -1 (EINTR). Fixes JB#53998 · 2a57f15f
    Igor Zhbanov authored
    Backport upstream commit 4c54768c9732532f4e56eab1be3e5474769e0d7a.
    
    On some conditions (particularly when mobile CPUs are going to sleep),
    the posix_fallocate(), which is called when a new journal file is allocated,
    can return -1 (EINTR). This is counted as a fatal error. So the journald
    closes both old and journals, and simply throwing away further incoming
    events, because of no log files open.
    
    Introduce posix_fallocate_loop() that restarts the function in the case
    of EINTR. Also let's make code base more uniform by returning negative
    values on error.
    
    Fix assert in test-sigbus.c that incorrectly counted positive values as
    success. After changing the function return values, that will actually work.
    
    Rediff rpm/systemd-238_fix_build_with_glibc228.patch to fix line offsets.
    Signed-off-by: default avatarIgor Zhbanov <i.zhbanov@omp.ru>
    2a57f15f
Name
Last commit
Last update
..
0001-aarch64-Force-udev-path.-Contributes-to-JB-49681.patch Loading commit data...
0002-We-do-not-have-a-clean-environment-where-HAVE_SPIT_U.patch Loading commit data...
systemctl-user Loading commit data...
systemd-187-remove-display-manager.service.patch Loading commit data...
systemd-208-count-only-restarts.patch Loading commit data...
systemd-208-do-not-pull-4-megs-from-stack-for-journal-send-test.patch Loading commit data...
systemd-208-video.patch Loading commit data...
systemd-225-add-pam-systemd-timeout-argument.patch Loading commit data...
systemd-238_fix_build_with_glibc228.patch Loading commit data...
systemd-239-core-do-not-free-heap-allocated-strings-8391.patch Loading commit data...
systemd-239-core-don-t-include-libmount.h-in-a-header-file-8580.patch Loading commit data...
systemd-239-core-when-reloading-delay-any-actions-on-journal-and.patch Loading commit data...
systemd-239-dhcp6-client-CVE-2018-15688-fix.patch Loading commit data...
systemd-239-meson-avoid-warning-about-comparison-of-bool-and-str.patch Loading commit data...
systemd-240-core-dont-t-remount-sys-fs-cgroup-for-relabel-if-not.patch Loading commit data...
systemd-240-core-remove-support-for-API-bus-started-outside-our-.patch Loading commit data...
systemd-240-core-undo-the-dependency-inversion-between-unit.h-an.patch Loading commit data...
systemd-240-meson-drop-name-argument-in-cc.has_argument-8878.patch Loading commit data...
systemd-240-meson-unify-linux-stat.h-check-with-other-checks-and.patch Loading commit data...
systemd-240-meson-use-triple-quote-delimition-in-one-more-place.patch Loading commit data...
systemd-240-units-add-new-system-update-pre.target.patch Loading commit data...
systemd-241-coredump-only-install-coredump.conf-when-ENABLED_COR.patch Loading commit data...
systemd-241-meson-rename-Ddebug-to-Ddebug-extra.patch Loading commit data...
systemd-245-polkit-async-CVE-2020-1712.diff Loading commit data...
systemd-249-journald-Retry-if-posix_fallocate-returned-1-EINTR.patch Loading commit data...
systemd-Define-__NR_kcmp-if-it-is-not-defined.patch Loading commit data...
systemd-Fix-udev-firmware-events-dependencies.patch Loading commit data...
systemd-backport-If-the-notification-message-length-is-0-ignore-the-m.patch Loading commit data...
systemd-backport-enforce-a-limit-on-status-texts-recvd-from-services.patch Loading commit data...
systemd-backport-fix-deserialization-of-dev_t.patch Loading commit data...
systemd-backport-fuzz-decrease-DATA_SIZE_MAX.patch Loading commit data...
systemd-backport-journal-fix-syslog_parse_identifier.patch Loading commit data...
systemd-backport-journald-set-a-limit-on-the-number-of-fields-1k.patch Loading commit data...
systemd-backport-pam-systemd-use-secure_getenv-rather-than-getenv.patch Loading commit data...
systemd-backport-rework-serialization-v3.patch Loading commit data...
systemd-backport-when-deserializing-always-use-read_line.patch Loading commit data...
systemd-disable-power-key-handling.diff Loading commit data...
systemd-fix-fstab-generator.diff Loading commit data...
systemd-pam_limits-fix.patch Loading commit data...
systemd-pam_selinux-remove.patch Loading commit data...
systemd-revert-PID-file-hardening-for-booster-silica-qt5.diff Loading commit data...
systemd-rpmlintrc Loading commit data...
systemd-udev-lvm-workaround.patch Loading commit data...
systemd.changes Loading commit data...
systemd.spec Loading commit data...
tests.xml Loading commit data...