diff options
| author | Bastian Krause <bst@pengutronix.de> | 2025-10-29 19:12:24 +0100 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-11-07 06:54:41 -0800 |
| commit | 4f2287dcc41b614c64b43ff10f6dddb77c387ede (patch) | |
| tree | 68fbe0f962151d575f0d48e11ef829e66dcd1cfa | |
| parent | a2b737539e3d2f927b874f7d698919be700bb4f4 (diff) | |
| download | poky-4f2287dcc41b614c64b43ff10f6dddb77c387ede.tar.gz | |
util-linux: fix pointer usage in hwclock param handling
Passing params as numbers to hwclock is broken in util-linux 2.39.3 due
to wrong pointer handling. So backport the fix from upstream included
since util-linux 2.41.
(From OE-Core rev: 3d8f88906f5560286462eaf55226b872e2805df7)
Signed-off-by: Bastian Krause <bst@pengutronix.de>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
| -rw-r--r-- | meta/recipes-core/util-linux/util-linux.inc | 1 | ||||
| -rw-r--r-- | meta/recipes-core/util-linux/util-linux/sys-utils-hwclock-rtc-fix-pointer-usage.patch | 27 |
2 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc index 1ecf5c7b39..ccab4b17f4 100644 --- a/meta/recipes-core/util-linux/util-linux.inc +++ b/meta/recipes-core/util-linux/util-linux.inc | |||
| @@ -43,6 +43,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-lin | |||
| 43 | file://CVE-2024-28085-0001.patch \ | 43 | file://CVE-2024-28085-0001.patch \ |
| 44 | file://CVE-2024-28085-0002.patch \ | 44 | file://CVE-2024-28085-0002.patch \ |
| 45 | file://fstab-isolation.patch \ | 45 | file://fstab-isolation.patch \ |
| 46 | file://sys-utils-hwclock-rtc-fix-pointer-usage.patch \ | ||
| 46 | " | 47 | " |
| 47 | 48 | ||
| 48 | SRC_URI[sha256sum] = "7b6605e48d1a49f43cc4b4cfc59f313d0dd5402fa40b96810bd572e167dfed0f" | 49 | SRC_URI[sha256sum] = "7b6605e48d1a49f43cc4b4cfc59f313d0dd5402fa40b96810bd572e167dfed0f" |
diff --git a/meta/recipes-core/util-linux/util-linux/sys-utils-hwclock-rtc-fix-pointer-usage.patch b/meta/recipes-core/util-linux/util-linux/sys-utils-hwclock-rtc-fix-pointer-usage.patch new file mode 100644 index 0000000000..d98509d6ac --- /dev/null +++ b/meta/recipes-core/util-linux/util-linux/sys-utils-hwclock-rtc-fix-pointer-usage.patch | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | From 7064cd275607a43223b2dbaef75c610f33f432ff Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Karthikeyan Krishnasamy <karthikeyan@linumiz.com> | ||
| 3 | Date: Sat, 23 Mar 2024 13:39:55 +0530 | ||
| 4 | Subject: [PATCH] sys-utils: hwclock-rtc: fix pointer usage | ||
| 5 | |||
| 6 | passing double pointer doesn't fill param value | ||
| 7 | |||
| 8 | Signed-off-by: Karthikeyan Krishnasamy <karthikeyan@linumiz.com> | ||
| 9 | Upstream-Status: Backport [https://github.com/util-linux/util-linux/commit/1064a53e4ff357dc649a8c4a0a41dfb5a1191bba] | ||
| 10 | Signed-off-by: Bastian Krause <bst@pengutronix.de> | ||
| 11 | --- | ||
| 12 | sys-utils/hwclock-rtc.c | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/sys-utils/hwclock-rtc.c b/sys-utils/hwclock-rtc.c | ||
| 16 | index 7094cd0..c797397 100644 | ||
| 17 | --- a/sys-utils/hwclock-rtc.c | ||
| 18 | +++ b/sys-utils/hwclock-rtc.c | ||
| 19 | @@ -424,7 +424,7 @@ static int resolve_rtc_param_alias(const char *alias, __u64 *value) | ||
| 20 | /* kernel uapi __u64 can be defined differently than uint64_t */ | ||
| 21 | static int strtoku64(const char *str, __u64 *num, int base) | ||
| 22 | { | ||
| 23 | - return ul_strtou64(str, (uint64_t *) &num, base); | ||
| 24 | + return ul_strtou64(str, (uint64_t *) num, base); | ||
| 25 | } | ||
| 26 | |||
| 27 | /* | ||
