aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <[email protected]>2009-03-15 22:10:37 +0100
committerIngo Molnar <[email protected]>2009-03-16 09:13:16 +0100
commit5be71b61f17b0e3bc8ad0b1a1b7b53ab7d574ebb (patch)
tree7ab4c915871b464a08de974570900381b169e034 /net/lapb/lapb_iface.c
parent6404434525bb9f8f2239998f30fd7c93f2efa5b3 (diff)
tracing/syscalls: protect thread flag toggling from races
Impact: fix syscall tracer enable/disable race The current thread flag toggling is racy as shown in the following scenario: - task A is the last user of syscall tracing, it releases the TIF_SYSCALL_FTRACE on each tasks - at the same time task B start syscall tracing. refcount == 0 so it sets up TIF_SYSCALL_FTRACE on each tasks. The effect of the mixup is unpredictable. So this fix adds a mutex on {start,stop}_syscall_tracing(). Reported-by: Andrew Morton <[email protected]> Reported-by: Ingo Molnar <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions