![]() |
lvs-users
|
| To: | lvs-users@xxxxxxxxxxxxxxxxxxxxxx |
|---|---|
| Subject: | Bug in ip_vs.h |
| From: | Rodger Erickson <rerickson@xxxxxxxxxxxx> |
| Date: | Sat, 19 Jan 2002 10:34:31 -0800 |
I wanted to point out a bug that could crash the kernel (null prt
dereference). It occurs in ip_vs.h at the bottom of __ip_vs_get_out_rt().
static inline struct rtable *
__ip_vs_get_out_rt(struct ip_vs_conn *cp, u32 rtos)
{
if (dest) {
/* snip */
} else {
if (ip_route_output(&rt, cp->daddr, 0, rtos, 0)) {
IP_VS_DBG_RL("ip_route_output error, dest: "
"%u.%u.%u.%u\n", NIPQUAD(dest->addr));
return NULL;
}
}
return rt;
}
The reference to dest->addr should be changed to cp->daddr
Thanks,
Rodger Erickson
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: Intermezzo- A solution to replicating HTTP content, Kees Hoekzema |
|---|---|
| Next by Date: | Re: Bug in ip_vs.h, Julian Anastasov |
| Previous by Thread: | Intermezzo- A solution to replicating HTTP content, Dave Augustus |
| Next by Thread: | Re: Bug in ip_vs.h, Julian Anastasov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |