[PATCH v3 0/3] handle sysconf(_SC_PAGESIZE) negative return value
Morten Brørup
mb at smartsharesystems.com
Tue Jun 24 10:03:30 CEST 2025
Coverity reports some defects, where the root cause seems to be negative
return value from sysconf(_SC_PAGESIZE) not being handled.
This series addresses those defects in the DPDK libraries.
PS: "_SC_PAGESIZE" has the alias "_SC_PAGE_SIZE". Both are covered here.
Morten Brørup (3):
eal/unix: fix log message for madvise() failure
eal: handle sysconf(_SC_PAGESIZE) negative return value
pmu: handle sysconf(_SC_PAGESIZE) negative return value
lib/eal/freebsd/eal.c | 3 ++-
lib/eal/freebsd/eal_memory.c | 7 +++----
lib/eal/linux/eal.c | 3 ++-
lib/eal/unix/eal_unix_memory.c | 16 ++++++++++++++--
lib/pmu/pmu.c | 32 ++++++++++++++++++++++++++++++--
lib/vhost/vduse.c | 3 ++-
6 files changed, 53 insertions(+), 11 deletions(-)
--
2.43.0
More information about the dev
mailing list