<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/drivers/tty/vt/consolemap.c, branch v3.3-rc2</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<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.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.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>
