| To: | "David S. Miller" <davem@xxxxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH 1/2] [XFRM] Prevent off-by-one access to xfrm_dispatch |
| From: | Thomas Graf <tgraf@xxxxxxx> |
| Date: | Sun, 1 May 2005 20:47:31 +0200 |
| Cc: | netdev@xxxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Makes the type > XFRM_MSG_MAX check behave correctly to
protect access to xfrm_dispatch.
Signed-off-by: Thomas Graf <tgraf@xxxxxxx>
--- linux-2.6.12-rc3.orig/include/linux/xfrm.h 2005-04-30 20:22:19.000000000
+0200
+++ linux-2.6.12-rc3/include/linux/xfrm.h 2005-05-01 11:53:30.000000000
+0200
@@ -140,8 +140,9 @@
XFRM_MSG_FLUSHPOLICY,
#define XFRM_MSG_FLUSHPOLICY XFRM_MSG_FLUSHPOLICY
- XFRM_MSG_MAX
+ __XFRM_MSG_MAX
};
+#define XFRM_MSG_MAX (__XFRM_MSG_MAX - 1)
struct xfrm_user_tmpl {
struct xfrm_id id;
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [-mm patch] SIS900 must select MII, Daniele Venzano |
|---|---|
| Next by Date: | [PATCH 2/2] [XFRM] Cleanup xfrm_msg_min and xfrm_dispatch, Thomas Graf |
| Previous by Thread: | Re: [-mm patch] SIS900 must select MII, Daniele Venzano |
| Next by Thread: | Re: [PATCH 1/2] [XFRM] Prevent off-by-one access to xfrm_dispatch, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |