summaryrefslogtreecommitdiff
path: root/dissector_sll.h
blob: 2067942c22f0152091060014dc81888f57c961c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * netsniff-ng - the packet sniffing beast
 * Subject to the GPL, version 2.
 */

#ifndef DISSECTOR_SLL_H
#define DISSECTOR_SLL_H

#include "hash.h"
#include "proto.h"

extern void dissector_init_sll(int fnttype);
extern void dissector_cleanup_sll(void);

extern struct protocol *dissector_get_sll_entry_point(void);
extern struct protocol *dissector_get_sll_exit_point(void);

#endif /* DISSECTOR_SLL_H */
t'>2011-03-15 13:27:16 -0600 committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-17 16:58:10 -0700 commite6cd1e07a185d5f9b0aa75e020df02d3c1c44940 (patch) tree74f58672a37de933f8fa3456c0ec19a73b483b65 /kernel/smp.c parentef2b4b95a63a1d23958dcb99eb2c6898eddc87d0 (diff)
call_function_many: fix list delete vs add race
Peter pointed out there was nothing preventing the list_del_rcu in smp_call_function_interrupt from running before the list_add_rcu in smp_call_function_many. Fix this by not setting refs until we have gotten the lock for the list. Take advantage of the wmb in list_add_rcu to save an explicit additional one. I tried to force this race with a udelay before the lock & list_add and by mixing all 64 online cpus with just 3 random cpus in the mask, but was unsuccessful. Still, inspection shows a valid race, and the fix is a extension of the existing protection window in the current code. Cc: stable@kernel.org (v2.6.32 and later) Reported-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Milton Miller <miltonm@bga.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/smp.c')