From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1557036-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8AEAA158089 for <garchives@archives.gentoo.org>; Sun, 24 Sep 2023 20:43:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C63372BC028; Sun, 24 Sep 2023 20:43:18 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 839022BC028 for <gentoo-commits@lists.gentoo.org>; Sun, 24 Sep 2023 20:43:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BB5CD3409A4 for <gentoo-commits@lists.gentoo.org>; Sun, 24 Sep 2023 20:43:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BF1FF10CD for <gentoo-commits@lists.gentoo.org>; Sun, 24 Sep 2023 20:43:15 +0000 (UTC) From: "Georgy Yakovlev" <gyakovlev@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" <gyakovlev@gentoo.org> Message-ID: <1695588125.ddd56d6a0ab0ceee1de2ef95c3d88e1d3e780c49.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/numad/files/, sys-process/numad/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-process/numad/files/0001-numad_log-fix-buffer-overflow.patch sys-process/numad/numad-0.5_p20180531-r1.ebuild sys-process/numad/numad-0.5_p20180531-r2.ebuild X-VCS-Directories: sys-process/numad/ sys-process/numad/files/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: ddd56d6a0ab0ceee1de2ef95c3d88e1d3e780c49 X-VCS-Branch: master Date: Sun, 24 Sep 2023 20:43:15 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 17b1936a-31ae-40ee-8c2f-f67a330555d8 X-Archives-Hash: 4a0fb9532914b3dcec78dc7c212c6e28 commit: ddd56d6a0ab0ceee1de2ef95c3d88e1d3e780c49 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> AuthorDate: Sun Sep 24 20:14:31 2023 +0000 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> CommitDate: Sun Sep 24 20:42:05 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddd56d6a sys-process/numad: fix buffer overflow, remove workaround. Closes: https://bugs.gentoo.org/890985 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> .../files/0001-numad_log-fix-buffer-overflow.patch | 25 ++++++++++++++++++++++ ...531-r1.ebuild => numad-0.5_p20180531-r2.ebuild} | 10 ++++----- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/sys-process/numad/files/0001-numad_log-fix-buffer-overflow.patch b/sys-process/numad/files/0001-numad_log-fix-buffer-overflow.patch new file mode 100644 index 000000000000..c67d58192169 --- /dev/null +++ b/sys-process/numad/files/0001-numad_log-fix-buffer-overflow.patch @@ -0,0 +1,25 @@ +From a9e6f292f4ce9443ee95c77c60dd8da68d0db7e9 Mon Sep 17 00:00:00 2001 +From: Lukas Nykryn <lnykryn@redhat.com> +Date: Wed, 6 Sep 2023 12:27:47 +0200 +Subject: [PATCH] numad_log: fix buffer overflow + +--- + numad.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/numad.c b/numad.c +index 4c85486..2923842 100644 +--- a/numad.c ++++ b/numad.c +@@ -153,7 +153,7 @@ void numad_log(int level, const char *fmt, ...) { + *p++ = ' '; + va_list ap; + va_start(ap, fmt); +- vsnprintf(p, BUF_SIZE, fmt, ap); ++ vsnprintf(p, BUF_SIZE - strlen(buf) , fmt, ap); + va_end(ap); + fprintf(log_fs, "%s", buf); + fflush(log_fs); +-- +2.39.2 + diff --git a/sys-process/numad/numad-0.5_p20180531-r1.ebuild b/sys-process/numad/numad-0.5_p20180531-r2.ebuild similarity index 86% rename from sys-process/numad/numad-0.5_p20180531-r1.ebuild rename to sys-process/numad/numad-0.5_p20180531-r2.ebuild index 229cae6f6556..ce503112f43e 100644 --- a/sys-process/numad/numad-0.5_p20180531-r1.ebuild +++ b/sys-process/numad/numad-0.5_p20180531-r2.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit flag-o-matic linux-info systemd toolchain-funcs +inherit linux-info systemd toolchain-funcs if [[ ${PV} == 9999 ]]; then EGIT_REPO_URI="https://pagure.io/numad.git" @@ -31,15 +31,13 @@ PATCHES=( # from debian/ubuntu: https://sources.debian.org/patches/numad "${FILESDIR}/${PN}-0.5-fix-build-for-no-NR-migrate-pages.patch" + + # from fedora: https://src.fedoraproject.org/rpms/numad/c/b9fdb5b1b09611ba164c04cd994e5e9ddf7fb8f4 + "${FILESDIR}/0001-numad_log-fix-buffer-overflow.patch" ) src_configure() { tc-export AR CC RANLIB - - # FIXME: https://bugs.gentoo.org/890985 - # temp workaround - filter-flags -D_FORTIFY_SOURCE=3 - append-cppflags -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 } src_compile() {