Randy Dunlap 1efa3c05f8 [NET] compat ifconf: fix limits
A recent change to compat. dev_ifconf() in fs/compat_ioctl.c
causes ifconf data to be truncated 1 entry too early when copying it
to userspace.  The correct amount of data (length) is returned,
but the final entry is empty (zero, not filled in).
The for-loop 'i' check should use <= to allow the final struct
ifreq32 to be copied.  I also used the ifconf-corruption program
in kernel bugzilla #4746 to make sure that this change does not
re-introduce the corruption.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-03-08 16:46:08 -08:00
..
2006-01-11 18:42:13 -08:00
2006-01-14 18:25:19 -08:00
2006-02-17 13:59:26 -08:00
2006-01-18 19:20:23 -08:00
2006-03-08 14:14:01 -08:00
2006-01-11 18:42:13 -08:00
2006-03-06 18:40:45 -08:00
2006-02-01 08:53:09 -08:00
2006-01-11 18:42:13 -08:00
2006-02-03 08:32:04 -08:00
2006-01-08 20:13:48 -08:00
2006-01-11 18:42:13 -08:00
2006-01-10 08:01:25 -08:00
2006-01-31 15:24:34 +01:00
2006-03-08 16:46:08 -08:00
2006-02-17 13:59:28 -08:00
2006-03-08 14:14:01 -08:00
2006-01-11 18:42:13 -08:00
2006-01-11 18:42:13 -08:00
2006-01-08 20:12:40 -08:00
2006-03-07 09:16:35 -08:00
2006-03-08 14:14:01 -08:00
2006-01-11 18:42:13 -08:00
2006-01-11 18:42:13 -08:00
2006-02-03 08:32:11 -08:00
2006-02-24 14:31:39 -08:00
2006-01-18 19:20:30 -08:00
2006-01-18 19:20:29 -08:00
2006-03-08 14:03:09 -08:00
2006-01-08 20:13:56 -08:00
2006-01-11 18:42:13 -08:00
2006-02-17 13:59:28 -08:00
2006-02-11 21:41:10 -08:00
2006-02-22 09:39:02 -08:00