mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Wolfgang Kroworsch <wolfgang@kroworsch.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] vt: incomplete initialization of vc_tab_stop
Date: Wed, 22 Oct 2008 11:27:05 +0100	[thread overview]
Message-ID: <20081022112705.10f9aa4a@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <20081018114929.GA25554@kroworsch.de>

On Sat, 18 Oct 2008 13:49:31 +0200
Wolfgang Kroworsch <wolfgang@kroworsch.de> wrote:

> Problem 1 (see patch below):
>   vc_tab_stop is declared as an array of 8 unsigned ints in struct
>   vc_data in include/linux/console_struct.h .
>   In drivers/char/vt.c only 5 of these 8 unsigned ints get initialized
>   leading to unintended tabulator placement on displays with more than
>   160 columns text.

Seems sensible enough - but need a Signed-off-by line to apply.

> 
> Problem 2 (open):
>   Upcoming displays will have more than 256 columns of text leading to
>   invalid memory access in drivers/char/vt.c during tabulator
>   calculations:
>     if (vc->vc_tab_stop[vc->vc_x >> 5] & (1 << (vc->vc_x & 31)))
> 	break;

Yes. We should either limit the vt size or grow the tables.

Alan

  parent reply	other threads:[~2008-10-22 10:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-18 11:49 Wolfgang Kroworsch
2008-10-18 11:57 ` Christoph Hellwig
2008-10-22 10:27 ` Alan Cox [this message]
2008-10-22 18:03   ` Wolfgang Kroworsch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081022112705.10f9aa4a@lxorguk.ukuu.org.uk \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wolfgang@kroworsch.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®