aboutsummaryrefslogtreecommitdiffstats
path: root/tools/net/ynl/generated/netdev-user.c
diff options
context:
space:
mode:
authorRick Edgecombe <[email protected]>2023-09-08 20:36:54 +0000
committerDave Hansen <[email protected]>2023-09-19 16:18:34 +0000
commit748c90c693363d05c6b2f3915edc7999a2f71837 (patch)
tree759d5dcfb0efdf41fdc30052a48ec555270ceca5 /tools/net/ynl/generated/netdev-user.c
parentx86/shstk: Handle vfork clone failure correctly (diff)
downloadkernel-748c90c693363d05c6b2f3915edc7999a2f71837.tar.gz
kernel-748c90c693363d05c6b2f3915edc7999a2f71837.zip
x86/shstk: Remove useless clone error handling
When clone fails after the shadow stack is allocated, any allocated shadow stack is cleaned up in exit_thread() in copy_process(). So the logic in copy_thread() is unneeded, and also will not handle failures that happen outside of copy_thread(). In addition, since there is a second attempt to unmap the same shadow stack, there is a race where an newly mapped region could get unmapped. So remove the logic in copy_thread() and rely on exit_thread() to handle clone failure. Fixes: b2926a36b97a ("x86/shstk: Handle thread shadow stack") Signed-off-by: Rick Edgecombe <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Tested-by: H.J. Lu <[email protected]> Link: https://lore.kernel.org/all/20230908203655.543765-3-rick.p.edgecombe%40intel.com
Diffstat (limited to 'tools/net/ynl/generated/netdev-user.c')
0 files changed, 0 insertions, 0 deletions