Files
ack-tegra/include/linux
Jeff Layton a608ca21f5 vfs: allocate page instead of names_cache buffer in mount_block_root
First, it's incorrect to call putname() after __getname_gfp() since the
bare __getname_gfp() call skips the auditing code, while putname()
doesn't.

mount_block_root allocates a PATH_MAX buffer via __getname_gfp, and then
calls get_fs_names to fill the buffer. That function can call
get_filesystem_list which assumes that that buffer is a full page in
size. On arches where PAGE_SIZE != 4k, then this could potentially
overrun.

In practice, it's hard to imagine the list of filesystem names even
approaching 4k, but it's best to be safe. Just allocate a page for this
purpose instead.

With this, we can also remove the __getname_gfp() definition since there
are no more callers.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2012-10-12 00:32:03 -04:00
..
2012-09-19 19:08:53 -06:00
2012-09-27 14:28:09 -03:00
2012-08-10 15:27:02 -04:00
2012-09-19 19:08:46 -06:00
2012-09-20 14:31:45 +02:00
2012-08-07 10:10:57 +02:00
2012-09-17 15:00:38 -07:00
2012-08-21 01:19:54 -07:00
2012-09-05 12:18:11 -07:00
2012-09-27 09:29:33 -04:00
2012-09-26 21:10:00 -04:00
2012-08-09 16:18:06 -07:00
2012-09-19 19:50:20 +02:00
2012-10-06 03:04:56 +09:00
2012-08-14 14:28:32 -07:00
2012-10-01 18:39:45 -04:00
2012-08-14 14:28:32 -07:00
2012-09-07 14:57:45 -04:00
2012-09-11 10:15:02 +02:00
2012-08-14 14:28:32 -07:00
2012-09-26 13:52:36 -07:00
2012-08-22 10:24:41 -04:00
2012-10-10 01:15:44 -04:00
2012-09-17 15:00:37 -07:00
2012-10-09 16:22:54 +09:00
2012-10-09 16:23:00 +09:00
2012-10-06 03:05:24 +09:00
2012-09-27 10:47:59 +02:00
2012-10-09 16:22:24 +09:00
2012-07-31 18:42:43 -07:00
2012-10-05 22:23:53 +02:00
2012-09-13 09:08:02 -06:00
2012-08-21 20:50:25 +02:00
2012-10-11 08:50:16 +09:00
2012-10-06 03:05:01 +09:00
2012-09-27 12:45:28 +02:00
2012-10-11 20:02:04 -04:00
2012-09-06 09:17:01 -07:00
2012-10-07 00:40:54 -04:00
2012-10-09 16:22:55 +09:00
2012-08-21 16:28:31 +02:00
2012-10-09 16:22:32 +09:00
2012-09-05 17:21:36 -07:00
2012-07-31 08:16:24 -06:00
2012-09-28 15:05:15 +09:30
2012-08-04 12:15:37 +04:00