• David S. Miller's avatar
    [PKT_SCHED]: Do not embed spinlock in tc_stats structure. · 00e11c5f
    David S. Miller authored
    This makes it not get sized/copied around to/from
    userspace correctly.  The real crux of the problem
    comes from the rtnetlink attribute copying line which
    read:
    	RTA_PUT(skb, TCA_STATS, (char*)&st->lock - (char*)st, st);
    which is not necessarily sizeof(struct tc_stats) due
    to alignment issues.
    00e11c5f
pkt_sched.h 13.5 KB