aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorTony Luck <[email protected]>2016-04-06 08:05:16 +0000
committerIngo Molnar <[email protected]>2016-04-13 08:54:00 +0000
commita3125494cff084b098c80bb36fbe2061ffed9d52 (patch)
tree25d862d9e4b129f3b3cddf7bfcc7bc4bb120fdca /net/switchdev/switchdev.c
parentlguest, x86/entry/32: Fix handling of guest syscalls using interrupt gates (diff)
downloadkernel-a3125494cff084b098c80bb36fbe2061ffed9d52.tar.gz
kernel-a3125494cff084b098c80bb36fbe2061ffed9d52.zip
x86/mce: Avoid using object after free in genpool
When we loop over all queued machine check error records to pass them to the registered notifiers we use llist_for_each_entry(). But the loop calls gen_pool_free() for the entry in the body of the loop - and then the iterator looks at node->next after the free. Use llist_for_each_entry_safe() instead. Signed-off-by: Tony Luck <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Cc: <[email protected]> Cc: Gong Chen <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: linux-edac <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions