diff options
Diffstat (limited to 'meta-oe/recipes-kernel/minicoredumper/files')
3 files changed, 0 insertions, 152 deletions
diff --git a/meta-oe/recipes-kernel/minicoredumper/files/0001-coreinject-fix-assignment-of-const-qualified-type.patch b/meta-oe/recipes-kernel/minicoredumper/files/0001-coreinject-fix-assignment-of-const-qualified-type.patch deleted file mode 100644 index ace46202b7..0000000000 --- a/meta-oe/recipes-kernel/minicoredumper/files/0001-coreinject-fix-assignment-of-const-qualified-type.patch +++ /dev/null | |||
| @@ -1,44 +0,0 @@ | |||
| 1 | From 07023a2d2ef059a039fef83ee4b33a7e47ca8e3e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: John Ogness <john.ogness@linutronix.de> | ||
| 3 | Date: Tue, 24 Feb 2026 11:33:40 +0106 | ||
| 4 | Subject: [PATCH] coreinject: fix assignment of const-qualified type | ||
| 5 | |||
| 6 | coreinject fails to build with glibc 2.43. | ||
| 7 | |||
| 8 | The issue is due to a new glibc feature: | ||
| 9 | |||
| 10 | * For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr, | ||
| 11 | strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return | ||
| 12 | pointers into their input arrays now have definitions as macros that | ||
| 13 | return a pointer to a const-qualified type when the input argument is | ||
| 14 | a pointer to a const-qualified type. | ||
| 15 | |||
| 16 | The fix is trivial since the returned strrchr() value is only used in | ||
| 17 | a way compatible with const pointers. The data type was simply defined | ||
| 18 | incorrectly. | ||
| 19 | |||
| 20 | Reported-by: Aurelien Jarno <aurel32@debian.org> | ||
| 21 | Closes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1128695 | ||
| 22 | Signed-off-by: John Ogness <john.ogness@linutronix.de> | ||
| 23 | |||
| 24 | Upstream-Status: Backport [https://github.com/diamon/minicoredumper/commit/eb66f10ae26edf94bf41d513ce90a4eb1e0f11b3] | ||
| 25 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 26 | --- | ||
| 27 | src/coreinject/main.c | 2 +- | ||
| 28 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 29 | |||
| 30 | diff --git a/src/coreinject/main.c b/src/coreinject/main.c | ||
| 31 | index faf8edf..198485d 100644 | ||
| 32 | --- a/src/coreinject/main.c | ||
| 33 | +++ b/src/coreinject/main.c | ||
| 34 | @@ -240,9 +240,9 @@ static int inject_data(FILE *f_core, FILE *f_symmap, const char *b_fname, | ||
| 35 | struct ident_data indirect; | ||
| 36 | struct ident_data direct; | ||
| 37 | const char *ident; | ||
| 38 | + const char *p; | ||
| 39 | FILE *f_dump; | ||
| 40 | int err = 0; | ||
| 41 | - char *p; | ||
| 42 | |||
| 43 | /* extract ident name from file path */ | ||
| 44 | p = strrchr(b_fname, '/'); | ||
diff --git a/meta-oe/recipes-kernel/minicoredumper/files/0001-corestripper-Fix-uninitialized-warning.patch b/meta-oe/recipes-kernel/minicoredumper/files/0001-corestripper-Fix-uninitialized-warning.patch deleted file mode 100644 index 8b90d33e1b..0000000000 --- a/meta-oe/recipes-kernel/minicoredumper/files/0001-corestripper-Fix-uninitialized-warning.patch +++ /dev/null | |||
| @@ -1,53 +0,0 @@ | |||
| 1 | From bb44bb643cd2a2f937331b4d1a76b03556b718a2 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 23 Jan 2024 11:36:41 -0800 | ||
| 4 | Subject: [PATCH] corestripper: Fix uninitialized warning | ||
| 5 | |||
| 6 | Clang finds more open paths where ret can be uninitialized | ||
| 7 | |||
| 8 | Fixes | ||
| 9 | | ../../../git/src/minicoredumper/corestripper.c:2768:13: error: variable 'ret' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] | ||
| 10 | | 2768 | } else if (di->core_fd >= 0) { | ||
| 11 | | | ^~~~~~~~~~~~~~~~ | ||
| 12 | | ../../../git/src/minicoredumper/corestripper.c:2773:9: note: uninitialized use occurs here | ||
| 13 | | 2773 | return ret; | ||
| 14 | | | ^~~ | ||
| 15 | | ../../../git/src/minicoredumper/corestripper.c:2768:9: note: remove the 'if' if its condition is always true | ||
| 16 | | 2768 | } else if (di->core_fd >= 0) { | ||
| 17 | | | ^~~~~~~~~~~~~~~~~~~~~ | ||
| 18 | | ../../../git/src/minicoredumper/corestripper.c:2763:9: note: initialize the variable 'ret' to silence this warning | ||
| 19 | | 2763 | int ret; | ||
| 20 | | | ^ | ||
| 21 | | | = 0 | ||
| 22 | |||
| 23 | Upstream-Status: Submitted [https://github.com/diamon/minicoredumper/pull/15] | ||
| 24 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 25 | --- | ||
| 26 | src/minicoredumper/corestripper.c | 4 ++-- | ||
| 27 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 28 | |||
| 29 | diff --git a/src/minicoredumper/corestripper.c b/src/minicoredumper/corestripper.c | ||
| 30 | index 3eb9089..e9e3936 100644 | ||
| 31 | --- a/src/minicoredumper/corestripper.c | ||
| 32 | +++ b/src/minicoredumper/corestripper.c | ||
| 33 | @@ -2707,7 +2707,7 @@ static int dump_data_content_file(struct dump_info *di, | ||
| 34 | char *tmp_path; | ||
| 35 | FILE *file; | ||
| 36 | int len; | ||
| 37 | - int ret; | ||
| 38 | + int ret = -1; | ||
| 39 | |||
| 40 | len = strlen(di->dst_dir) + strlen("/dumps/") + 32 + | ||
| 41 | strlen(dd->ident) + 1; | ||
| 42 | @@ -2760,7 +2760,7 @@ out: | ||
| 43 | static int dump_data_content(struct dump_info *di, struct mcd_dump_data *dd, | ||
| 44 | const char *symname) | ||
| 45 | { | ||
| 46 | - int ret; | ||
| 47 | + int ret = -1; | ||
| 48 | |||
| 49 | if (dd->ident) { | ||
| 50 | /* dump to external file */ | ||
| 51 | -- | ||
| 52 | 2.43.0 | ||
| 53 | |||
diff --git a/meta-oe/recipes-kernel/minicoredumper/files/0002-Fix-2038-year-problem-in-timestamp-handling.patch b/meta-oe/recipes-kernel/minicoredumper/files/0002-Fix-2038-year-problem-in-timestamp-handling.patch deleted file mode 100644 index 977f59b976..0000000000 --- a/meta-oe/recipes-kernel/minicoredumper/files/0002-Fix-2038-year-problem-in-timestamp-handling.patch +++ /dev/null | |||
| @@ -1,55 +0,0 @@ | |||
| 1 | From 0f80d5813679320b69ae1d2aefb58af1e0e2d269 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Jiaying Song <jiaying.song.cn@windriver.com> | ||
| 3 | Date: Wed, 10 Dec 2025 14:22:00 +0800 | ||
| 4 | Subject: [PATCH] Fix 2038 year problem in timestamp handling | ||
| 5 | |||
| 6 | The minicoredumper uses 'long' type for timestamp which causes | ||
| 7 | overflow on 32-bit systems after 2038-01-19. This leads to | ||
| 8 | incorrect timestamp formatting in core dump directory names. | ||
| 9 | |||
| 10 | Change timestamp variable from 'long' to 'time_t' and use | ||
| 11 | 'strtoll' instead of 'strtol' to handle 64-bit timestamps | ||
| 12 | properly on 32-bit systems. | ||
| 13 | |||
| 14 | Upstream-Status: Submitted | ||
| 15 | [https://github.com/diamon/minicoredumper/pull/24] | ||
| 16 | |||
| 17 | Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com> | ||
| 18 | --- | ||
| 19 | src/minicoredumper/corestripper.c | 6 +++--- | ||
| 20 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
| 21 | |||
| 22 | diff --git a/src/minicoredumper/corestripper.c b/src/minicoredumper/corestripper.c | ||
| 23 | index e9e3936..e52802e 100644 | ||
| 24 | --- a/src/minicoredumper/corestripper.c | ||
| 25 | +++ b/src/minicoredumper/corestripper.c | ||
| 26 | @@ -617,7 +617,7 @@ static int init_di(struct dump_info *di, int argc, char *argv[]) | ||
| 27 | if (*p != 0) | ||
| 28 | return 1; | ||
| 29 | |||
| 30 | - di->timestamp = strtol(argv[5], &p, 10); | ||
| 31 | + di->timestamp = (time_t)strtoll(argv[5], &p, 10); | ||
| 32 | if (*p != 0) | ||
| 33 | return 1; | ||
| 34 | |||
| 35 | @@ -3715,7 +3715,7 @@ static int do_all_dumps(struct dump_info *di, int argc, char *argv[]) | ||
| 36 | bool live_dumper; | ||
| 37 | char *comm_base; | ||
| 38 | pid_t core_pid; | ||
| 39 | - long timestamp; | ||
| 40 | + time_t timestamp; | ||
| 41 | char *comm; | ||
| 42 | char *exe; | ||
| 43 | char *p; | ||
| 44 | @@ -3750,7 +3750,7 @@ static int do_all_dumps(struct dump_info *di, int argc, char *argv[]) | ||
| 45 | if (*p != 0) | ||
| 46 | return 1; | ||
| 47 | |||
| 48 | - timestamp = strtol(argv[5], &p, 10); | ||
| 49 | + timestamp = (time_t)strtoll(argv[5], &p, 10); | ||
| 50 | if (*p != 0) | ||
| 51 | return 1; | ||
| 52 | |||
| 53 | -- | ||
| 54 | 2.34.1 | ||
| 55 | |||
