vt: regression caused by "Fix line garbage in virtual.."

From: Krzysztof Mazur
Date: Sun Nov 18 2012 - 06:05:15 EST


Hi,

commit 81732c3b2fede049a692e58a7ceabb6d18ffb18c
(tty vt: Fix line garbage in virtual console on command line edition)
introduced some regression in deleting characters/clearing line during
selecting previous command in bash by using "up" arrow.


The problem can be reproduced by two following commands:

echo -n "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
echo -e "\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x08\x1b\x5b\x33\x50\x64\x72\x69\x76\x65\x72\x73\x2f\x69\x6e\x70\x75\x74\x2f\x6d\x6f\x75\x73\x65\x64\x65\x76\x2e\x63"

(the first command generates just some garbage, the second command
generates string captured by strace when the issue occured).


On Linux v3.6 the resulting line is:

...AAAdrivers/input/mousedev.c

with fbcon on inteldrmfb and v3.7-rc6
...AAAdrivers/input/mousedev.c A

with fbcon on radeondrmfb and v3.7-rc6
...AAAdrivers/input/mousedev.cAAA


There are some garbage after mousedev.c not present on older kernels.

Reverting commit 81732c in v3.7-rc6 fixes the issue.

Krzysiek
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/