gentoo-ebuilds/dev-debug/sysdig/files/libs-0.20.0-fix-driver-and-bpf-makefile-for-kernel-6.13.patch
Holger Hoffstätte d4fb521d82
dev-debug/sysdig: fix runtime failures with glibc-2.42
glibc-2.42 added __inet_ntop_chk fortification, which started to fail:

  *** buffer overflow detected ***: terminated
  Program received signal SIGABRT, Aborted.
  0x00007ffff629b0dc in __pthread_kill_implementation () from /lib64/libc.so.6
  (gdb) bt
  #0  in __pthread_kill_implementation () from /lib64/libc.so.6
  #1  in raise () from /lib64/libc.so.6
  #2  in abort () from /lib64/libc.so.6
  #3  in __libc_message_impl.cold () from /lib64/libc.so.6
  #4  in __fortify_fail () from /lib64/libc.so.6
  #5  in __chk_fail () from /lib64/libc.so.6
  #6  in __inet_ntop_chk () from /lib64/libc.so.6
  #7  in inet_ntop (..) at /usr/include/bits/inet-fortified.h>
  #8  ipv6tuple_to_string[abi:cxx11](ipv6tuple*, bool) (..)

Use INET6_ADDRSTRLEN as destination buffer size.

Also add a minor build system fix and ebuild cleanups.

Revbump directly to stable since this has always been an issue and
should be fixed even with glibc <2.42.

Closes: https://bugs.gentoo.org/961046
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Part-of: https://github.com/gentoo/gentoo/pull/43311
Signed-off-by: Sam James <sam@gentoo.org>
2025-08-04 23:15:56 +01:00

39 lines
996 B
Diff

Patch from:
https://github.com/falcosecurity/libs/commit/7f01ec89c565fcb45ade833b1312ae69637bc4ec
From: Federico Di Pierro <nierro92@gmail.com>
Date: Fri, 28 Mar 2025 08:35:23 +0100
Subject: [PATCH] fix(driver): fix driver and bpf makefile for linux 6.13.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
---
driver/Makefile.in | 2 +-
driver/bpf/Makefile | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/driver/Makefile.in b/driver/Makefile.in
index 7b1fdc2dba..ec60103d0d 100644
--- a/driver/Makefile.in
+++ b/driver/Makefile.in
@@ -29,7 +29,7 @@ install: all
else
-KERNELDIR ?= $(CURDIR)
+KERNELDIR ?= $(realpath $(objtree))
#
# Get the path of the module sources
#
diff --git a/driver/bpf/Makefile b/driver/bpf/Makefile
index 58d1b11165..c94647c608 100644
--- a/driver/bpf/Makefile
+++ b/driver/bpf/Makefile
@@ -28,7 +28,7 @@ clean:
else
-KERNELDIR ?= $(CURDIR)
+KERNELDIR ?= $(realpath $(objtree))
#
# Get the path of the module sources
#