Re: Bug#1098694: Crash in agetty due to invalid strncmp call in Trixie
Chris Hofstaedtler <[email protected]>
| Newsgroups | org.kernel.vger.util-linux |
|---|---|
| Message-ID | <4ewlrlhq7eskooeb5h7v4p5qv6r3nvm2ubmuo5546lo5yxsrta@pr2horn2sxog> |
Hi, thanks for the answers! * Florian Bach <[email protected]> [250223 14:46]: > > 2) which terminal is this? tty1 or something else? > > What do you mean with "is this"? The error messages show up on tty1, the > default terminal I get when booting Debian without a GUI installed. The one > where it says "Debian GNU/Linux trixie/sid <hostname> tty1". But the agetty > process that crashes seems to be trying to manage a different tty (see > below). Glad I asked :-) From what we can see below, this is agetty on ttyS0. But then your VM probably does not have a "COM0" hardware. > > 3) whats your kernel command line? > > # cat /proc/cmdline > BOOT_IMAGE=/boot/vmlinuz-6.12.12-amd64 > root=PARTUUID=add96c19-7043-4bb1-8899-ca970a7d33c8 ro console=tty0 > console=ttyS0,115200 earlyprintk=ttyS0,115200 consoleblank=0 ^^^^^^^^^^^^^ > [..] After I sent this bug report yesterday, I also found out that > someone has reported what I believe is the same bug to > upstream a while ago ( https://github.com/util-linux/util-linux/issues/3304 > ) but so far nobody has commented on that report. Yeah, this seems like the same issue. > Note that in the strace log I attached, it tries to open / access the file > at /run/credentials/[email protected]. My VM does not have a serial > port (since Proxmox VMs apparently don't have one by default). If I add a > serial port to the VM and then boot it, the errors are gone. So maybe it > tries to provide a serial console on ttyS0 due to the "console=ttyS0,115200" > in the kernel command line (I didn't put it there, maybe it's the default?) > and that fails because it doesn't exist? > execve("/sbin/agetty2", ["/sbin/agetty2", "-o", "-- \\u", "--noreset", "--noclear", "--keep-baud", "115200,57600,38400,9600", "-", "vt220"], 0x7fff7671f090 /* 11 vars */) = 0 [..] > openat(AT_FDCWD, "/run/credentials/[email protected]", O_RDONLY|O_CLOEXEC) = 3 [..] > ioctl(0, TCGETS, 0x7fff9faad2e0) = -1 EIO (Input/output error) > ioctl(1, TCGETS, 0x7fff9faad2e0) = -1 EIO (Input/output error) > ioctl(2, TCGETS, 0x7fff9faad2e0) = -1 EIO (Input/output error) [..] Chris