lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 29 Jul 2009 11:43:08 +0200 From: Eric Dumazet <eric.dumazet@...il.com> To: "David S. Miller" <davem@...emloft.net> CC: Pavel Emelyanov <xemul@...nvz.org>, Igor M Podlesny <for.poige+bugzilla.kernel.org@...il.com>, Andrew Morton <akpm@...ux-foundation.org>, netdev@...r.kernel.org, Cyrill Gorcunov <gorcunov@...il.com> Subject: [PATCH] pppoe: fix /proc/net/pppoe Found this one by pppoe code inspection, but this is an old bug. Igor, this wont fix your problem, sorry ! [PATCH] pppoe: fix /proc/net/pppoe If a socket is hashed in last slot of pppoe hash table (PPPOE_HASH_SIZE-1) we report it many times (up to filling seq buffer) (Only the last socket of last slot) Signed-off-by: Eric Dumazet <eric.dumazet@...il.com> --- diff --git a/drivers/net/pppoe.c b/drivers/net/pppoe.c index f0031f1..5f20902 100644 --- a/drivers/net/pppoe.c +++ b/drivers/net/pppoe.c @@ -1063,6 +1063,7 @@ static void *pppoe_seq_next(struct seq_file *seq, void *v, loff_t *pos) else { int hash = hash_item(po->pppoe_pa.sid, po->pppoe_pa.remote); + po = NULL; while (++hash < PPPOE_HASH_SIZE) { po = pn->hash_table[hash]; if (po) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists