<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-stable.git/drivers/tty/vt/consolemap.c, branch linux-3.4.y</title>
<subtitle>Linux kernel stable tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/'/>
<entry>
<title>tty/vt: don't set font mappings on vc not supporting this</title>
<updated>2015-02-02T09:05:15+00:00</updated>
<author>
<name>Imre Deak</name>
<email>imre.deak@intel.com</email>
</author>
<published>2014-10-02T13:34:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=0bb9566eaaabf31b2368340fbedc34010c09e8f0'/>
<id>0bb9566eaaabf31b2368340fbedc34010c09e8f0</id>
<content type='text'>
commit 9e326f78713a4421fe11afc2ddeac07698fac131 upstream.

We can call this function for a dummy console that doesn't support
setting the font mapping, which will result in a null ptr BUG. So check
for this case and return error for consoles w/o font mapping support.

Reference: https://bugzilla.kernel.org/show_bug.cgi?id=59321
Signed-off-by: Imre Deak &lt;imre.deak@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
[lizf: Backported to 3.4: just return -EINVAL as we don't need to unlock]
Signed-off-by: Zefan Li &lt;lizefan@huawei.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 9e326f78713a4421fe11afc2ddeac07698fac131 upstream.

We can call this function for a dummy console that doesn't support
setting the font mapping, which will result in a null ptr BUG. So check
for this case and return error for consoles w/o font mapping support.

Reference: https://bugzilla.kernel.org/show_bug.cgi?id=59321
Signed-off-by: Imre Deak &lt;imre.deak@intel.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
[lizf: Backported to 3.4: just return -EINVAL as we don't need to unlock]
Signed-off-by: Zefan Li &lt;lizefan@huawei.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>TTY: Wrong unicode value copied in con_set_unimap()</title>
<updated>2012-03-15T20:28:52+00:00</updated>
<author>
<name>Liz Clark</name>
<email>liz.clark@hp.com</email>
</author>
<published>2012-03-15T17:33:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=4a4c61b7ce26bfc9d49ea4bd121d52114bad9f99'/>
<id>4a4c61b7ce26bfc9d49ea4bd121d52114bad9f99</id>
<content type='text'>
Bugzilla 40012: PIO_UNIMAP bug: error updating Unicode-to-font map
https://bugzilla.kernel.org/show_bug.cgi?id=40012

The unicode font map for the virtual console is a 32x32x64 table which
allocates rows dynamically as entries are added.  The unicode value
increases sequentially and should count all entries even in empty
rows.  The defect is when copying the unicode font map in con_set_unimap(),
the unicode value is not incremented properly.  The wrong unicode value
is entered in the new font map.

Signed-off-by: Liz Clark &lt;liz.clark@hp.com&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bugzilla 40012: PIO_UNIMAP bug: error updating Unicode-to-font map
https://bugzilla.kernel.org/show_bug.cgi?id=40012

The unicode font map for the virtual console is a 32x32x64 table which
allocates rows dynamically as entries are added.  The unicode value
increases sequentially and should count all entries even in empty
rows.  The defect is when copying the unicode font map in con_set_unimap(),
the unicode value is not incremented properly.  The wrong unicode value
is entered in the new font map.

Signed-off-by: Liz Clark &lt;liz.clark@hp.com&gt;
Cc: stable &lt;stable@vger.kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tty: Fix memory leak in virtual console when enable unicode translation</title>
<updated>2012-01-05T00:18:55+00:00</updated>
<author>
<name>Zeng Zhaoming</name>
<email>zengzm.kernel@gmail.com</email>
</author>
<published>2011-12-20T11:30:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=106b5fa700bd1ff422382dc907d1ca97f0c3972d'/>
<id>106b5fa700bd1ff422382dc907d1ca97f0c3972d</id>
<content type='text'>
Virtual console unicode translation map leaks with following
message when enable kmemleak:

unreferenced object 0xeb5ec450 (size 192):
  comm "setfont", pid 665, jiffies 4294899028 (age 3696.220s)
  hex dump (first 32 bytes):
    e0 5b 9d eb 00 00 00 00 00 00 00 00 80 b9 ea eb  .[..............
    b0 5a 9d eb 00 00 00 00 00 00 00 00 00 00 00 00  .Z..............
  backtrace:
    [&lt;c1533f8c&gt;] kmemleak_alloc+0x3c/0xa0
    [&lt;c114acc2&gt;] kmem_cache_alloc_trace+0xe2/0x250
    [&lt;c13498e8&gt;] con_clear_unimap+0x78/0xd0
    [&lt;c1345552&gt;] vt_ioctl+0x1562/0x1d00
    [&lt;c133aa00&gt;] tty_ioctl+0x230/0x7c0
    [&lt;c1171519&gt;] do_vfs_ioctl+0x79/0x2d0
    [&lt;c11717df&gt;] sys_ioctl+0x6f/0x80
    [&lt;c156601f&gt;] sysenter_do_call+0x12/0x38
    [&lt;ffffffff&gt;] 0xffffffff
unreferenced object 0xeb9d5be0 (size 128):
  comm "setfont", pid 660, jiffies 4294899030 (age 3696.212s)
  hex dump (first 32 bytes):
    60 c2 a6 eb 50 c8 a6 eb c0 54 9d eb 80 59 9d eb  `...P....T...Y..
    90 53 9d eb 60 52 9d eb 60 92 9b eb 00 00 00 00  .S..`R..`.......
  backtrace:
    [&lt;c1533f8c&gt;] kmemleak_alloc+0x3c/0xa0
    [&lt;c114acc2&gt;] kmem_cache_alloc_trace+0xe2/0x250
    [&lt;c134938c&gt;] con_insert_unipair+0x7c/0x150
    [&lt;c1349f8c&gt;] con_set_unimap+0x15c/0x1f0
    [&lt;c13456fb&gt;] vt_ioctl+0x170b/0x1d00
    [&lt;c133aa00&gt;] tty_ioctl+0x230/0x7c0
    [&lt;c1171519&gt;] do_vfs_ioctl+0x79/0x2d0
    [&lt;c11717df&gt;] sys_ioctl+0x6f/0x80
    [&lt;c156601f&gt;] sysenter_do_call+0x12/0x38
    [&lt;ffffffff&gt;] 0xffffffff

The leak caused by con_set_default_unimap() not correct free the old map.

Signed-off-by: Zeng Zhaoming &lt;zengzm.kernel@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Virtual console unicode translation map leaks with following
message when enable kmemleak:

unreferenced object 0xeb5ec450 (size 192):
  comm "setfont", pid 665, jiffies 4294899028 (age 3696.220s)
  hex dump (first 32 bytes):
    e0 5b 9d eb 00 00 00 00 00 00 00 00 80 b9 ea eb  .[..............
    b0 5a 9d eb 00 00 00 00 00 00 00 00 00 00 00 00  .Z..............
  backtrace:
    [&lt;c1533f8c&gt;] kmemleak_alloc+0x3c/0xa0
    [&lt;c114acc2&gt;] kmem_cache_alloc_trace+0xe2/0x250
    [&lt;c13498e8&gt;] con_clear_unimap+0x78/0xd0
    [&lt;c1345552&gt;] vt_ioctl+0x1562/0x1d00
    [&lt;c133aa00&gt;] tty_ioctl+0x230/0x7c0
    [&lt;c1171519&gt;] do_vfs_ioctl+0x79/0x2d0
    [&lt;c11717df&gt;] sys_ioctl+0x6f/0x80
    [&lt;c156601f&gt;] sysenter_do_call+0x12/0x38
    [&lt;ffffffff&gt;] 0xffffffff
unreferenced object 0xeb9d5be0 (size 128):
  comm "setfont", pid 660, jiffies 4294899030 (age 3696.212s)
  hex dump (first 32 bytes):
    60 c2 a6 eb 50 c8 a6 eb c0 54 9d eb 80 59 9d eb  `...P....T...Y..
    90 53 9d eb 60 52 9d eb 60 92 9b eb 00 00 00 00  .S..`R..`.......
  backtrace:
    [&lt;c1533f8c&gt;] kmemleak_alloc+0x3c/0xa0
    [&lt;c114acc2&gt;] kmem_cache_alloc_trace+0xe2/0x250
    [&lt;c134938c&gt;] con_insert_unipair+0x7c/0x150
    [&lt;c1349f8c&gt;] con_set_unimap+0x15c/0x1f0
    [&lt;c13456fb&gt;] vt_ioctl+0x170b/0x1d00
    [&lt;c133aa00&gt;] tty_ioctl+0x230/0x7c0
    [&lt;c1171519&gt;] do_vfs_ioctl+0x79/0x2d0
    [&lt;c11717df&gt;] sys_ioctl+0x6f/0x80
    [&lt;c156601f&gt;] sysenter_do_call+0x12/0x38
    [&lt;ffffffff&gt;] 0xffffffff

The leak caused by con_set_default_unimap() not correct free the old map.

Signed-off-by: Zeng Zhaoming &lt;zengzm.kernel@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>TTY: create drivers/tty/vt and move the vt code there</title>
<updated>2010-11-05T15:16:52+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2010-11-04T19:50:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=60d4ae8d436b8be6a8aedb63440203d5395e9f53'/>
<id>60d4ae8d436b8be6a8aedb63440203d5395e9f53</id>
<content type='text'>
The vt and other related code is moved into the drivers/tty/vt directory.

Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Cc: Jiri Slaby &lt;jslaby@suse.cz&gt;
Cc: Alan Cox &lt;alan@lxorguk.ukuu.org.uk&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The vt and other related code is moved into the drivers/tty/vt directory.

Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Cc: Jiri Slaby &lt;jslaby@suse.cz&gt;
Cc: Alan Cox &lt;alan@lxorguk.ukuu.org.uk&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;
</pre>
</div>
</content>
</entry>
</feed>
