Bug 1748014

Summary: Glitches in line editor
Product: Red Hat Enterprise Linux 8 Reporter: Mason Loring Bliss <mbliss>
Component: syslinuxAssignee: Bootloader engineering team <bootloader-eng-team>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: low Docs Contact:
Priority: medium    
Version: 8.7CC: bootloader-eng-team, dwoodruf, jaredz, jcastran, mlewando, pjanda, rdulhani, rharwood, rmullett, sbarcomb, tomp
Target Milestone: rcKeywords: Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
URL: https://www.syslinux.org/archives/2021-October/026746.html
Whiteboard:
Fixed In Version: syslinux-6.04-6.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2018260 (view as bug list) Environment:
Last Closed: 2022-11-08 10:56:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2018260    

Description Mason Loring Bliss 2019-09-02 13:27:16 UTC
Description of problem:

Booting the RHEL 8 ISO, if the user hits escape to access the boot prompt, as
happens, for example, when kickstarting from the ISO, long lines will force an
unusual wrap that includes an extra, cosmetic newline. Backspace then redraws
the whole line, but will position the cursor after a phantom space that doesn't
exist in the actual input buffer.

How reproducible:

Boot RHEL 8 ISO in KVM/QEMU, ESC, enter a long command line.


Steps to Reproduce:

1. Boot RHEL 8 ISO.
2. Hit escape prior to automatic boot.
3. Enter this all on one line:

linux 1234567890x1234567890x1234567890x1234567890x1234567890x1234567890x1234567890x1234567890x1234567890

4. On wrap, backspace and note the odd behaviour.
5. Use ^L to refresh the screen, showing that what was displayed was not in fact
the content of the input buffer.

Additional info:

^U and ^L work and can help manipulate and show the actual buffer content. The
customer bringing this issue to us enters longish kickstart sepecifiers and has
been thrown off by the formatting, which introduces errors. There's still
some chance they're seeing actual erroneous input passed through, generated by
the line editor's wrapping bug, but I'm assuming it's purely cosmetic until we
can identify and reproduce a hard error.

Comment 2 Mason Loring Bliss 2019-11-25 14:33:59 UTC
This has been sitting idle for an awfully long time. Please advise.

Comment 3 Jan Hlavac 2019-12-13 17:47:08 UTC
Hello,

I successfully reproduced the bug. It seems to be a bug in Syslinux that is used when the installation media is booted in the BIOS/Legacy mode.

A possible workaround is to switch the system from the BIOS/Legacy to the UEFI mode where GRUB 2 is used instead of Syslinux.

Now I am trying to find the cause of the bug.

Comment 8 Robbie Harwood 2021-09-10 01:43:25 UTC
*** Bug 1997296 has been marked as a duplicate of this bug. ***

Comment 19 Marta Lewandowska 2022-08-26 12:03:31 UTC
Verified using nightly RHEL-8.7.0-20220825.2-x86_64-boot.iso, which contains syslinux-6.04-6.el8.x86_64.rpm

Comment 21 errata-xmlrpc 2022-11-08 10:56:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (syslinux bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:7806