Tobias Powalowski pushed to branch main at Arch Linux / Packaging / Packages /
kmscon
Commits:
e193a959 by Tobias Powalowski at 2026-08-26T07:16:44+02:00
upgpkg: 10.0.2-2: fixed #6 crash on exit in 10.0.2
- - - - -
4 changed files:
- .SRCINFO
- + LICENSES/MIT.txt
- PKGBUILD
- + kmscon-10.0.2-crash-on-exit.patch
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = kmscon
pkgdesc = Kernel Mode Setting (KMS) and DRM based virtual Console
Emulator
pkgver = 10.0.2
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/kmscon/kmscon
arch = x86_64
license = MIT
@@ -30,7 +30,9 @@ pkgbase = kmscon
optdepends = pango: for pango font rendering
backup = etc/kmscon/kmscon.conf
source = git+https://github.com/kmscon/kmscon.git#tag=v10.0.2
+ source = kmscon-10.0.2-crash-on-exit.patch
b2sums =
8faffc4945cd9e847a5d0f209a20b09243b6b54ab9aee8d9cba2c825880d0935db72a0bc815fc65e76fe5cd909a291d3fc73505088cabea212f8a9eb451604c7
+ b2sums =
7051ba0ceb6d3da711cda28274e2445f8ea83d393374abde5acf1801bf72f2d82de2d11e969e38463bf9b287bda84b41b8d45257ca5f8e7fcc92ed2cbd0f74d1
pkgname = kmscon
depends = bash
=====================================
LICENSES/MIT.txt
=====================================
@@ -0,0 +1,18 @@
+MIT License
+
+Copyright (c) <year> <copyright holders>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and
+associated documentation files (the "Software"), to deal in the Software
without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the
+following conditions:
+
+The above copyright notice and this permission notice shall be included in all
copies or substantial
+portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT
+LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
AND NONINFRINGEMENT. IN NO
+EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE
+USE OR OTHER DEALINGS IN THE SOFTWARE.
=====================================
PKGBUILD
=====================================
@@ -11,7 +11,7 @@ pkgname=(
kmscon-terminfo
)
pkgver=10.0.2
-pkgrel=1
+pkgrel=2
arch=('x86_64')
pkgdesc='Kernel Mode Setting (KMS) and DRM based virtual Console Emulator'
url='https://github.com/kmscon/kmscon'
@@ -48,13 +48,16 @@ optdepends=(
)
source=(
git+${url}.git#tag=v${pkgver}
+ kmscon-10.0.2-crash-on-exit.patch
)
-b2sums=('8faffc4945cd9e847a5d0f209a20b09243b6b54ab9aee8d9cba2c825880d0935db72a0bc815fc65e76fe5cd909a291d3fc73505088cabea212f8a9eb451604c7')
+b2sums=('8faffc4945cd9e847a5d0f209a20b09243b6b54ab9aee8d9cba2c825880d0935db72a0bc815fc65e76fe5cd909a291d3fc73505088cabea212f8a9eb451604c7'
+
'7051ba0ceb6d3da711cda28274e2445f8ea83d393374abde5acf1801bf72f2d82de2d11e969e38463bf9b287bda84b41b8d45257ca5f8e7fcc92ed2cbd0f74d1')
-#prepare() {
-# cd "$pkgname"
-# git pull origin pull/366/head
-#}
+prepare() {
+ cd "$pkgname"
+ patch -Np1 -i ../kmscon-10.0.2-crash-on-exit.patch
+ # git pull origin pull/366/head
+}
build() {
arch-meson "$pkgname" build
=====================================
kmscon-10.0.2-crash-on-exit.patch
=====================================
@@ -0,0 +1,35 @@
+From eb353401f56c21cc602a738c3edaece30e5639d6 Mon Sep 17 00:00:00 2001
+From: Jocelyn Falempe <[email protected]>
+Date: Fri, 21 Aug 2026 09:38:43 +0200
+Subject: [PATCH] seat: Fix use after free in kmscon_seat_remove_video()
+
+As the display is removed from the list during traversal, use the safe
+variant
+
+Signed-off-by: Jocelyn Falempe <[email protected]>
+---
+ src/seat.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/seat.c b/src/seat.c
+index 299620a3..ea0b9b08 100644
+--- a/src/seat.c
++++ b/src/seat.c
+@@ -1015,7 +1015,7 @@ static void kmscon_seat_remove_video(struct kmscon_seat
*seat, void *data)
+ {
+ struct kmscon_video *vid = data;
+ struct kmscon_display *d;
+- struct shl_dlist *iter;
++ struct shl_dlist *iter, *tmp;
+
+ if (!seat || !vid)
+ return;
+@@ -1026,7 +1026,7 @@ static void kmscon_seat_remove_video(struct kmscon_seat
*seat, void *data)
+ shl_dlist_unlink(&vid->list);
+
+ if (vid->video) {
+- shl_dlist_for_each(iter, &seat->displays)
++ shl_dlist_for_each_safe(iter, tmp, &seat->displays)
+ {
+ d = shl_dlist_entry(iter, struct kmscon_display, list);
+ if (display_video(d->disp) == vid->video)
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/kmscon/-/commit/e193a9599b29235f1121c63a9a0d8dafbcbddc20
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/kmscon/-/commit/e193a9599b29235f1121c63a9a0d8dafbcbddc20
You're receiving this email because of your account on gitlab.archlinux.org.
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications
| Help: https://gitlab.archlinux.org/help