Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #72736

Bug#983357: Bug#988776: Bug#983357: Netinst crashes xen domU when loading kernel

Path csiph.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!bofh.it!news.nic.it!robomod
From Phillip Susi <phill@thesusis.net>
Newsgroups linux.debian.bugs.dist, linux.debian.maint.boot, linux.debian.kernel
Subject Bug#983357: Bug#988776: Bug#983357: Netinst crashes xen domU when loading kernel
Date Tue, 24 Aug 2021 21:50:02 +0200
Message-ID <CPKAO-jN-7@gated-at.bofh.it> (permalink)
References <BLq9Q-i2-3@gated-at.bofh.it> <CguAx-vn-1@gated-at.bofh.it> <Ciao1-4ER-1@gated-at.bofh.it> <CidlT-6tz-1@gated-at.bofh.it> <CPIfD-7lg-7@gated-at.bofh.it> <CPIfD-7lg-5@gated-at.bofh.it> <BLq9Q-i2-3@gated-at.bofh.it> <CPIfD-7lg-5@gated-at.bofh.it>
X-Original-To Ben Hutchings <ben@decadent.org.uk>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Tue Aug 24 19:45:14 2021
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -3.95
Reply-To Phillip Susi <phill@thesusis.net>, 983357@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian Kernel Team <debian-kernel@lists.debian.org>
X-Debian-Pr-Message followup 983357
X-Debian-Pr-Package linux
X-Debian-Pr-Source linux
User-Agent mu4e 1.5.13; emacs 27.1
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding quoted-printable
X-Greylist delayed 445 seconds by postgrey-1.36 at buxtehude; Tue, 24 Aug 2021 19:44:40 UTC
X-Crossassassin-Score 2
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1674948
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 37
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc Chuck Zmudzinski <brchuckz@netscape.net>, 988776@bugs.debian.org, Michael Biebl <biebl@debian.org>, Cyril Brulebois <kibi@debian.org>, 983357@bugs.debian.org, md@Linux.IT, debian-boot@lists.debian.org, systemd@packages.debian.org
X-Original-Date Tue, 24 Aug 2021 15:27:19 -0400
X-Original-Message-ID <871r6iy6r7.fsf@vps.thesusis.net>
X-Original-References <87czwrj1bj.fsf@vps.thesusis.net> <87eee24ztk.fsf@vps.thesusis.net> <YKspZuOhQpzQP+X2@mraw.org> <fcfa39d0-0f9e-135d-2ca3-673c2e954ce7@debian.org> <62480c25-ec5c-d90b-1c79-8c6ec408da26@netscape.net> <4d381f7ecb825268bc40ce0f6212b226688fe838.camel@decadent.org.uk> <87czwrj1bj.fsf@vps.thesusis.net> <4d381f7ecb825268bc40ce0f6212b226688fe838.camel@decadent.org.uk>
Xref csiph.com linux.debian.bugs.dist:1068219 linux.debian.maint.boot:66947 linux.debian.kernel:72736

Cross-posted to 3 groups.

Show key headers only | View raw


Ben Hutchings <ben@decadent.org.uk> writes:

> I think a proper fix would be one of:
>
> a. If the Xen virtual keyboard driver is advertising capabilities it
>    doesn't have, stop it doing that.
> b. Change the implementation of modalias attributes to allow longer
>    values.
>
> It's not clear to me whether the Xen driver is advertising correctly or
> not.  If it is, then the solution should be b, but that may be too
> disruptive a change to the kernel.  So a reasonable workaround might
> be:
>
> c. Change the input subsystem to limit the length of the
>    capabilities part of the modalias.

The problem with a) is that the Xen keyboard is not a physical keyboard
and so it has no way of knowing what keys it actually has.  It is a fake
input device designed to pass through whatever input the Xen hypervisor
sends down.  As such, any key could come in.  If it doesn't advertise
that it has all of these keys, then they would not be accepted by
libinput when the hypervisor sends them down.

This seems to be the heart of the problem: libinput was designed
assuming that all keyboards can and must report what keys are actually
present, and then libinput tries to cram that information into the
modalias rather than some other sysfs attribute as it should ( or not at
all... I still don't see how this information is actually supposed to be
useful to userspace ).

As for b), the problem isn't with the modalias attribute itself, but
when the kernel tries to copy it into the environment block for the udev
callout.  The environment block is only a single page, and so limited to
4 KB.  And that's for everything else that goes into the environment,
not just the modalias.

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#983357: Netinst crashes xen domU when loading kernel Phillip Susi <phill@thesusis.net> - 2021-05-19 15:40 +0200
  Bug#983357: Netinst crashes xen domU when loading kernel Cyril Brulebois <kibi@debian.org> - 2021-05-24 06:30 +0200
    Bug#983357: Netinst crashes xen domU when loading kernel Michael Biebl <biebl@debian.org> - 2021-05-24 09:40 +0200
      Bug#983357: Netinst crashes xen domU when loading kernel Phillip Susi <phill@thesusis.net> - 2021-05-25 21:50 +0200
      Bug#983357: Bug#988776: Bug#983357: Netinst crashes xen domU when loading kernel Ben Hutchings <ben@decadent.org.uk> - 2021-08-24 19:20 +0200
        Bug#983357: Bug#988776: Bug#983357: Netinst crashes xen domU when loading kernel Phillip Susi <phill@thesusis.net> - 2021-08-24 21:50 +0200
          Bug#983357: Bug#988776: Bug#983357: Netinst crashes xen domU when loading kernel Ben Hutchings <ben@decadent.org.uk> - 2021-08-25 01:20 +0200
            Bug#983357: Bug#988776: Bug#983357: Netinst crashes xen domU when loading kernel Ben Hutchings <ben@decadent.org.uk> - 2021-08-25 19:00 +0200
            Bug#983357: Bug#988776: Bug#983357: Netinst crashes xen domU when loading kernel Phillip Susi <phill@thesusis.net> - 2021-08-25 22:30 +0200
        Bug#983357: Bug#988776: Bug#983357: Netinst crashes xen domU when loading kernel Ben Hutchings <ben@decadent.org.uk> - 2021-08-25 17:00 +0200

csiph-web