Re: [PATCH 2/3] net: packet: fix information leak to userland

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: walter harms
Date: Monday, November 1, 2010 - 2:14 am

Vasiliy Kulikov schrieb:

if i understand the code correcly the max size for dev->name is IFNAMSIZ.
You can simply that part:

memset(uaddr->sa_data, 0, IFNAMSIZ);
dev = dev_get_by_index_rcu(sock_net(sk), pkt_sk(sk)->ifindex);
if (dev)
	strlcpy(uaddr->sa_data, dev->name, IFNAMSIZ);


you should send that as separate patch.
re,
 wh


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 2/3] net: packet: fix information leak to userland, walter harms, (Mon Nov 1, 2:14 am)