mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* vc: create vcs(a) devices for consoles
@ 2009-07-18 15:34 Kay Sievers
  2009-07-18 16:01 ` Greg KH
  0 siblings, 1 reply; 6+ messages in thread
From: Kay Sievers @ 2009-07-18 15:34 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-kernel, Gerardo Exequiel Pozzi

From: Kay Sievers <kay.sievers@vrfy.org>
Subject: vc: create vcs(a) devices for consoles

The buffer for the consoles are unconditionally allocated at
con_init() time, which miss the creation of the vcs(a) devices.

Since 2.6.30, these devices are no longer created at open()
and removed on close(), but controlled by the lifetime of the
buffers.

Reported-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Tested-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Cc: stable@kernel.org
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
---

 drivers/char/vc_screen.c |    4 ++++
 1 file changed, 4 insertions(+)

--- a/drivers/char/vc_screen.c
+++ b/drivers/char/vc_screen.c
@@ -495,11 +495,15 @@ void vcs_remove_sysfs(int index)
 
 int __init vcs_init(void)
 {
+	unsigned int i;
+
 	if (register_chrdev(VCS_MAJOR, "vcs", &vcs_fops))
 		panic("unable to get major %d for vcs device", VCS_MAJOR);
 	vc_class = class_create(THIS_MODULE, "vc");
 
 	device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 0), NULL, "vcs");
 	device_create(vc_class, NULL, MKDEV(VCS_MAJOR, 128), NULL, "vcsa");
+	for (i = 0; i < MIN_NR_CONSOLES; i++)
+		vcs_make_sysfs(i);
 	return 0;
 }



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: vc: create vcs(a) devices for consoles
  2009-07-18 15:34 vc: create vcs(a) devices for consoles Kay Sievers
@ 2009-07-18 16:01 ` Greg KH
  2009-07-18 16:12   ` Kay Sievers
  0 siblings, 1 reply; 6+ messages in thread
From: Greg KH @ 2009-07-18 16:01 UTC (permalink / raw)
  To: Kay Sievers; +Cc: linux-kernel, Gerardo Exequiel Pozzi

On Sat, Jul 18, 2009 at 05:34:17PM +0200, Kay Sievers wrote:
> From: Kay Sievers <kay.sievers@vrfy.org>
> Subject: vc: create vcs(a) devices for consoles
> 
> The buffer for the consoles are unconditionally allocated at
> con_init() time, which miss the creation of the vcs(a) devices.
> 
> Since 2.6.30, these devices are no longer created at open()
> and removed on close(), but controlled by the lifetime of the
> buffers.

Is this a bug in .31-rc right now?  Should this make it into the final
.31 release?

And what caused this change, tty changes?  If so, it should go through
Alan Cox's tree.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: vc: create vcs(a) devices for consoles
  2009-07-18 16:01 ` Greg KH
@ 2009-07-18 16:12   ` Kay Sievers
  2009-07-18 16:19     ` Samuel Thibault
  2009-07-18 22:32     ` Greg KH
  0 siblings, 2 replies; 6+ messages in thread
From: Kay Sievers @ 2009-07-18 16:12 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-kernel, Gerardo Exequiel Pozzi

On Sat, Jul 18, 2009 at 18:01, Greg KH<greg@kroah.com> wrote:
> On Sat, Jul 18, 2009 at 05:34:17PM +0200, Kay Sievers wrote:
>> From: Kay Sievers <kay.sievers@vrfy.org>
>> Subject: vc: create vcs(a) devices for consoles
>>
>> The buffer for the consoles are unconditionally allocated at
>> con_init() time, which miss the creation of the vcs(a) devices.
>>
>> Since 2.6.30, these devices are no longer created at open()
>> and removed on close(), but controlled by the lifetime of the
>> buffers.
>
> Is this a bug in .31-rc right now?  Should this make it into the final
> .31 release?

Yes, and in .30.

> And what caused this change, tty changes?  If so, it should go through
> Alan Cox's tree.

This change caused it:
  http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4995f8ef9d3aac72745e12419d7fbaa8d01b1d81

Thanks,
Kay

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: vc: create vcs(a) devices for consoles
  2009-07-18 16:12   ` Kay Sievers
@ 2009-07-18 16:19     ` Samuel Thibault
  2009-07-18 18:32       ` Nicolas Pitre
  2009-07-18 22:32     ` Greg KH
  1 sibling, 1 reply; 6+ messages in thread
From: Samuel Thibault @ 2009-07-18 16:19 UTC (permalink / raw)
  To: Kay Sievers; +Cc: Greg KH, linux-kernel, Gerardo Exequiel Pozzi, stable

Kay Sievers, le Sat 18 Jul 2009 18:12:20 +0200, a écrit :
> On Sat, Jul 18, 2009 at 18:01, Greg KH<greg@kroah.com> wrote:
> > On Sat, Jul 18, 2009 at 05:34:17PM +0200, Kay Sievers wrote:
> >> From: Kay Sievers <kay.sievers@vrfy.org>
> >> Subject: vc: create vcs(a) devices for consoles
> >>
> >> The buffer for the consoles are unconditionally allocated at
> >> con_init() time, which miss the creation of the vcs(a) devices.
> >>
> >> Since 2.6.30, these devices are no longer created at open()
> >> and removed on close(), but controlled by the lifetime of the
> >> buffers.
> >
> > Is this a bug in .31-rc right now?  Should this make it into the final
> > .31 release?
> 
> Yes, and in .30.

Please also push it to stable@kernel.org The bug makes the console
unusable e.g. for blind users using braille devices.

Samuel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: vc: create vcs(a) devices for consoles
  2009-07-18 16:19     ` Samuel Thibault
@ 2009-07-18 18:32       ` Nicolas Pitre
  0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Pitre @ 2009-07-18 18:32 UTC (permalink / raw)
  To: Samuel Thibault
  Cc: Kay Sievers, Greg KH, linux-kernel, Gerardo Exequiel Pozzi, stable

[-- Attachment #1: Type: TEXT/PLAIN, Size: 980 bytes --]

On Sat, 18 Jul 2009, Samuel Thibault wrote:

> Kay Sievers, le Sat 18 Jul 2009 18:12:20 +0200, a écrit :
> > On Sat, Jul 18, 2009 at 18:01, Greg KH<greg@kroah.com> wrote:
> > > On Sat, Jul 18, 2009 at 05:34:17PM +0200, Kay Sievers wrote:
> > >> From: Kay Sievers <kay.sievers@vrfy.org>
> > >> Subject: vc: create vcs(a) devices for consoles
> > >>
> > >> The buffer for the consoles are unconditionally allocated at
> > >> con_init() time, which miss the creation of the vcs(a) devices.
> > >>
> > >> Since 2.6.30, these devices are no longer created at open()
> > >> and removed on close(), but controlled by the lifetime of the
> > >> buffers.
> > >
> > > Is this a bug in .31-rc right now?  Should this make it into the final
> > > .31 release?
> > 
> > Yes, and in .30.
> 
> Please also push it to stable@kernel.org The bug makes the console
> unusable e.g. for blind users using braille devices.

... as well as blind developers as myself.  Thanks for fixing this.


Nicolas

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: vc: create vcs(a) devices for consoles
  2009-07-18 16:12   ` Kay Sievers
  2009-07-18 16:19     ` Samuel Thibault
@ 2009-07-18 22:32     ` Greg KH
  1 sibling, 0 replies; 6+ messages in thread
From: Greg KH @ 2009-07-18 22:32 UTC (permalink / raw)
  To: Kay Sievers; +Cc: linux-kernel, Gerardo Exequiel Pozzi

On Sat, Jul 18, 2009 at 06:12:20PM +0200, Kay Sievers wrote:
> On Sat, Jul 18, 2009 at 18:01, Greg KH<greg@kroah.com> wrote:
> > On Sat, Jul 18, 2009 at 05:34:17PM +0200, Kay Sievers wrote:
> >> From: Kay Sievers <kay.sievers@vrfy.org>
> >> Subject: vc: create vcs(a) devices for consoles
> >>
> >> The buffer for the consoles are unconditionally allocated at
> >> con_init() time, which miss the creation of the vcs(a) devices.
> >>
> >> Since 2.6.30, these devices are no longer created at open()
> >> and removed on close(), but controlled by the lifetime of the
> >> buffers.
> >
> > Is this a bug in .31-rc right now?  Should this make it into the final
> > .31 release?
> 
> Yes, and in .30.
> 
> > And what caused this change, tty changes?  If so, it should go through
> > Alan Cox's tree.
> 
> This change caused it:
>   http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4995f8ef9d3aac72745e12419d7fbaa8d01b1d81

Ah, ok, I will queue it up.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-07-18 22:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-18 15:34 vc: create vcs(a) devices for consoles Kay Sievers
2009-07-18 16:01 ` Greg KH
2009-07-18 16:12   ` Kay Sievers
2009-07-18 16:19     ` Samuel Thibault
2009-07-18 18:32       ` Nicolas Pitre
2009-07-18 22:32     ` Greg KH

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®