Files
ubports_kernel_google_msm/include/linux
Dmitry Mishin 4c1b52bc7a [NETFILTER]: ip_tables: fix compat related crash
check_compat_entry_size_and_hooks iterates over the matches and calls
compat_check_calc_match, which loads the match and calculates the
compat offsets, but unlike the non-compat version, doesn't call
->checkentry yet. On error however it calls cleanup_matches, which in
turn calls ->destroy, which can result in crashes if the destroy
function (validly) expects to only get called after the checkentry
function.

Add a compat_release_match function that only drops the module reference
on error and rename compat_check_calc_match to compat_find_calc_match to
reflect the fact that it doesn't call the checkentry function.

Reported by Jan Engelhardt <jengelh@linux01.gwdg.de>

Signed-off-by: Dmitry Mishin <dim@openvz.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-06-07 13:40:32 -07:00
..
2007-05-14 19:33:46 -04:00
2007-05-01 16:11:57 +02:00
2007-05-08 11:15:16 -07:00
2007-05-14 19:33:47 -04:00
2007-05-11 05:38:26 -04:00
2007-05-09 12:30:51 -07:00
2007-05-07 12:12:55 -07:00
2007-05-23 20:14:12 -07:00
2007-05-08 11:15:15 -07:00
2007-05-09 12:30:56 -07:00
2007-05-07 12:13:00 -07:00
2007-05-21 09:56:57 -07:00
2007-05-10 18:24:13 +02:00
2007-05-08 11:15:25 -07:00
2007-04-27 10:57:31 -07:00
2007-05-08 11:15:26 -07:00
2007-05-01 09:11:12 +01:00
2007-05-07 12:12:58 -07:00
2007-06-01 08:18:29 -07:00
2007-05-03 13:17:25 -07:00
2007-05-11 08:29:36 -07:00
2007-03-27 09:05:15 -07:00
2007-05-09 08:57:56 +02:00
2007-05-31 16:20:15 -04:00
2007-05-31 16:20:14 -04:00
2007-05-06 20:38:28 -04:00
2007-06-04 17:54:09 -07:00
2007-05-09 12:30:55 -07:00
2007-04-28 11:01:07 -04:00
2007-03-16 00:59:29 -04:00
2007-04-07 10:03:43 -07:00
2007-05-11 16:56:02 +02:00
2007-05-01 23:26:34 +02:00
2007-05-16 00:51:46 +02:00
2007-04-25 22:29:10 -07:00
2007-04-25 22:24:41 -07:00
2007-04-25 22:29:10 -07:00
2007-05-11 08:29:36 -07:00
2007-05-11 08:29:34 -07:00
2007-05-15 08:54:00 -07:00
2007-05-08 11:15:09 -07:00
2007-04-25 22:25:52 -07:00
2007-05-09 12:30:53 -07:00
2007-05-09 12:30:54 -07:00
2007-05-03 10:52:32 +03:00
2007-06-04 16:48:34 -04:00
2007-05-18 20:46:30 -07:00
2007-05-08 11:15:18 -07:00
2007-05-09 12:30:49 -07:00
2007-05-03 10:52:22 +03:00
2007-05-21 09:18:19 -07:00
2007-05-09 12:30:54 -07:00
2007-05-04 17:59:07 -07:00
2007-05-07 12:12:59 -07:00
2007-05-08 11:15:05 -07:00
2007-05-08 11:15:05 -07:00
2007-05-05 14:15:32 -07:00
2007-03-12 16:31:50 -07:00
2007-05-08 11:15:14 -07:00
2007-03-27 08:55:47 +02:00
2007-04-17 16:36:26 -07:00
2007-05-08 11:14:57 -07:00
2007-05-07 12:12:54 -07:00
2007-05-09 08:57:56 +02:00
2007-06-07 13:39:34 -07:00
2007-05-17 05:23:06 -07:00
2007-05-08 11:15:18 -07:00
2007-05-23 20:14:12 -07:00
2007-05-09 08:57:56 +02:00
2007-05-07 12:12:50 -07:00
2007-05-11 08:29:36 -07:00
2007-05-11 08:29:36 -07:00
2007-05-03 03:16:20 -07:00
2007-05-21 21:47:27 -07:00
2007-05-08 11:14:58 -07:00
2007-05-08 11:15:18 -07:00
2007-05-09 12:30:57 -07:00
2007-05-11 08:29:34 -07:00
2007-05-11 08:29:36 -07:00
2007-05-08 11:15:18 -07:00
2007-05-11 08:29:36 -07:00
2007-03-05 07:57:51 -08:00
2007-05-11 08:29:35 -07:00
2007-05-11 08:29:35 -07:00
2007-05-03 00:55:34 -04:00
2007-05-07 12:12:58 -07:00
2007-05-09 08:57:56 +02:00
2007-05-09 12:30:56 -07:00
2007-05-21 09:18:19 -07:00
2007-05-04 12:55:39 -07:00