Re: [PATCH] net: cgroup: fix access the unallocated memory in netpriocgroup

From: Gao feng
Date: Tue Jul 10 2012 - 04:59:42 EST



> Hi Gao
>
> Is it still needed to call update_netdev_tables() from write_priomap() ?
>

Yes, I think it's needed,because read_priomap will show all of the net devices,

But we may add the netdev after create a netprio cgroup, so the new added netdev's
priomap will not be allocated. if we don't call update_netdev_tables in write_priomap,
we may access this unallocated memory.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/