Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp408646lqb; Tue, 28 May 2024 21:46:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWS77UoF7eNN6K1naGodF87omuQ8HDX1SKmFzN3D4wxuyQJfII7t4g4bFUMdVwOdUN0NJMiAqDve13rl7R6PnzqokKLBpWoSupvUxXBlA== X-Google-Smtp-Source: AGHT+IE+lWmQKKOoMiUsctPxGImoIwIuF4WlAXWUmg2z5/KFggqLeAx3D6BV2gsh9SBuQB0mC9kM X-Received: by 2002:a2e:938b:0:b0:2e5:2414:a205 with SMTP id 38308e7fff4ca-2e95b0c162bmr100002551fa.27.1716957968919; Tue, 28 May 2024 21:46:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716957968; cv=pass; d=google.com; s=arc-20160816; b=dgTrAUCO1z8CQEi59fMAEZhiVGB5mnlw8ZGEYio4UvGjVn4rkLcXOi4jajF/9ml2sI mEQ3PoimmNMBcRHnXuQqCuR/uyQRQdFtZ7fkUHTAXgyQvg3blaRirhDt3NlApHmoZE92 45/yj3xgJ0uVpu2b4tvVoO41MNdpk8xCOThpNhLgh8Vn+3r+lpHPROnPF7jpT8QwcnhB OqXvlbSVWYiTwebumIp0R7x/1TOG8ibw/5SOh9sC7RZVyWMwIaQ9JAxt4e0I8j4cDKeJ pf0J08KSsvNHkPKuoJ+AHEpHj+twyKGFce1NZYk/IPvu970ifl2hxi70sPwtUZ7Rrb/H KIlw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id:dkim-signature; bh=zmpWYn0uCMbm3fxqDNBcySeG4f+66JRUG6mgZL8L6is=; fh=nosx1+P32Gdn2TlgxX+9GSOJawQdEWk0zOudXTpB9Ng=; b=JSSdbxGJOwzr0kCExCgIgqCwckS+exLnSwtn2TYOryJroeOxW/KPDejN54P5mXrAxW n3YOQDJOXQ5thrSbOU4CfLjHhsobauT83SF2cdW05BwKX/ssaNkiuDzIY/P4u6f5CYFl oQ8QKR9z8pJ32IXGu8ALS9O2xBZVzDGwGpiDI/byEOuWbv0trieHW5uTUIrixYtCRcVm NuULXkGjHkzJeMtGvLh6q7gqtnS3DmoUiNoWdBcNCnyjsBB7jNhXewVXD8COU3XWjbI6 DQDPSvIOUXDfGOpSIpTC1ZuGtIM6l7Ih7cEi7b98MLm5AqJUV9fN7e3uGdJaI/gCFaCL E8rA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@draconx-ca.20230601.gappssmtp.com header.s=20230601 header.b=p72pb5ei; arc=pass (i=1 dkim=pass dkdomain=draconx-ca.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-193426-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193426-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-579a960acc7si4597028a12.676.2024.05.28.21.46.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 21:46:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193426-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@draconx-ca.20230601.gappssmtp.com header.s=20230601 header.b=p72pb5ei; arc=pass (i=1 dkim=pass dkdomain=draconx-ca.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-193426-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193426-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9EE881F237F5 for ; Wed, 29 May 2024 04:46:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 199CD15B148; Wed, 29 May 2024 04:46:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=draconx-ca.20230601.gappssmtp.com header.i=@draconx-ca.20230601.gappssmtp.com header.b="p72pb5ei" Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4DDF910A35 for ; Wed, 29 May 2024 04:45:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716957961; cv=none; b=YBNIiCg5KJpk7FVSSDRdoTMxh6tDiYy2sqgLIJeA1y+dLlHHy59vWzxvDhKookg+yd9rzAbnqn30yTDsxW/Ic2BE6xKqgj7vLJb/iIwh/121lYKbeKFRs7/su+cy1Y4ZpEnQf3WNVSMZFcUzyaLMbmBr2783ZsquHn9skasrnWE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716957961; c=relaxed/simple; bh=IhGPpAFwr9pA9nbZF5l0LlG/5ijkIfQOA+hf2vYOh5I=; h=Message-ID:Date:MIME-Version:To:Cc:From:Subject:Content-Type; b=JNUSp/8F2FwtZrEAdSm+ulLv0pwXYWYXMZchlBridXRkcLDU/kRoJvg82by2mLkmlE3ZagdYfTH4jhDtX451hwFRfAG2G7jKJ2FJtI3YNNpkY57TkwbVgZhkrM/E+EsWsnZyCYz6oC4PNn1y4Sf04EEbh+B2Zq6Z5kVshKnbrpk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=draconx.ca; spf=none smtp.mailfrom=draconx.ca; dkim=pass (2048-bit key) header.d=draconx-ca.20230601.gappssmtp.com header.i=@draconx-ca.20230601.gappssmtp.com header.b=p72pb5ei; arc=none smtp.client-ip=209.85.160.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=draconx.ca Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=draconx.ca Received: by mail-qt1-f178.google.com with SMTP id d75a77b69052e-43fdf8a6437so4307411cf.0 for ; Tue, 28 May 2024 21:45:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=draconx-ca.20230601.gappssmtp.com; s=20230601; t=1716957958; x=1717562758; darn=vger.kernel.org; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=zmpWYn0uCMbm3fxqDNBcySeG4f+66JRUG6mgZL8L6is=; b=p72pb5ein95EcIQB6LNJe6Xk/+NA9B97mMs7mf8fDlATWvdN/RMDEZpFLww6X7oZqd qJJhvxyzxKxJORFUD9KYjKP50ISnNeTw+4+lSpjBNomZx7zHcnRuV2THhwYBc5WENmsF i0l3Wuk3oRTbaPAoHy0IOnGbNp09ZQeJKInlsCZPZwOYB5CG2mfQ9OhlOnKvjTMeDMdw KpcymkSjhiK4sFjXBeGeSjtm/spTu12meXEg8j8f10TTVzOnNAWw7ofTDKihPoY++DU0 +T2FKfYE/MNl114g2Emk39qXpbWpLn696ahp20SxevII4Sb1fbPjMlM5CvrU6Je6N0Kf Qu1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716957958; x=1717562758; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=zmpWYn0uCMbm3fxqDNBcySeG4f+66JRUG6mgZL8L6is=; b=BR4sQU5uIm8slKR3XUauFiODhijvWDZwzTtb4UJTQ6dBraYNTcQUuZ7vFXladmqMBC Aei6rcHkjwOMzObt5Unbu07Im9FznqEzjdau8uMgBUCKOW9yaDPM4jn/WMNOvhES/IAh u2rPZJPkKUsim6mVPyKcaWeaZ8Dl6fjUb4gxdRCXxJAS36cXioquzcmFJke3+9QSXPoB fgxgzTQ/bsJ5N8pkQokXDAg9kqnQvIzphxGxtsFf/8GtR/OM+0kRS4PBoziY+RORkXS4 Qw6H5QocVeyOALG0qUIehR6ok7L+YWpiaGsg5UFvy+ITNAFAKCAoffPpRvXk4bMRkunJ NnzA== X-Gm-Message-State: AOJu0Yxwd5upwdU2t1l2X9Q5Bpb/2N1wOlQKCbwYJm+5k/xKUviAr1Iv 1xvNI/2/WpXaMak6QhYqW530IEbya9XBErjEAwtaL0cjScR75Ek+g92tKrq73eVrVKGdNAjTG3C X X-Received: by 2002:a05:622a:48e:b0:43d:9d93:f5e0 with SMTP id d75a77b69052e-43fb0dbfd06mr144358131cf.4.1716957957873; Tue, 28 May 2024 21:45:57 -0700 (PDT) Received: from [192.168.0.50] (dhcp-24-53-241-2.cable.user.start.ca. [24.53.241.2]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-43fb16b6a79sm50044001cf.13.2024.05.28.21.45.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 May 2024 21:45:57 -0700 (PDT) Message-ID: Date: Wed, 29 May 2024 00:45:56 -0400 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: linux-kernel@vger.kernel.org, Linux regressions mailing list Cc: Alexey Gladkov , Greg Kroah-Hartman From: Nick Bowler Subject: PROBLEM: kbd busted in linux 6.10-rc1 (regression) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, It seems kbd utilities are all broken on linux 6.10-rc1. For example: # loadkeys en-latin9 Couldn't get a file descriptor referring to the console. [and it did not change the console keymap] This is a regression from linux 6.9. If I run strace on a working kernel, at the point of the first difference we see: openat(AT_FDCWD, "/dev/tty0", O_RDWR) = 3 ioctl(3, TCGETS, {c_iflag=BRKINT|ICRNL|IXON|IMAXBEL|IUTF8, c_oflag=NL0|CR0|TAB0|BS0|VT0|FF0|OPOST|ONLCR, c_cflag=B38400|CS8|CREAD|HUPCL, c_lflag=, ...}) = 0 ioctl(3, KDGKBTYPE, [KB_101]) = 0 ... On a busted kernel, we get: openat(AT_FDCWD, "/dev/tty0", O_RDWR) = 3 ioctl(3, TCGETS, {c_iflag=IUTF8, c_oflag=NL0|CR0|TAB0|BS0|VT0|FF0|OPOST|ONLCR, c_cflag=B38400|CS8|CREAD|HUPCL, c_lflag=, ...}) = 0 ioctl(3, KDGKBTYPE, 0xffceaebb) = -1 ENOTTY (Inappropriate ioctl for device) close(3) = 0 ... A very similar problem occurs with kbd_mode, chvt, etc. Bisection implicates the following: 8c467f3300591a206fa8dcc6988d768910799872 is the first bad commit commit 8c467f3300591a206fa8dcc6988d768910799872 Author: Alexey Gladkov Date: Wed Apr 17 19:37:35 2024 +0200 VT: Use macros to define ioctls All other headers use _IOC() macros to describe ioctls for a long time now. This header is stuck in the last century. Simply use the _IO() macro. No other changes. Signed-off-by: Alexey Gladkov Link: https://lore.kernel.org/r/e4229fe2933a003341e338b558ab1ea8b63a51f6.1713375378.git.legion@kernel.org Signed-off-by: Greg Kroah-Hartman Reverting this commit corrects the issue. This testing was done on my sparc system in case it matters. Let me know if you need any more info! Thanks, Nick