Commit a42c6ded827dbd396d2efde7530620be029a72d1
1 parent
1227dd773d
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
move key_repace_session_keyring() into tracehook_notify_resume()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Showing 30 changed files with 6 additions and 66 deletions Side-by-side Diff
- arch/alpha/kernel/signal.c
- arch/arm/kernel/signal.c
- arch/avr32/kernel/signal.c
- arch/blackfin/kernel/signal.c
- arch/c6x/kernel/signal.c
- arch/cris/kernel/ptrace.c
- arch/frv/kernel/signal.c
- arch/h8300/kernel/signal.c
- arch/hexagon/kernel/signal.c
- arch/ia64/kernel/process.c
- arch/m32r/kernel/signal.c
- arch/m68k/kernel/signal.c
- arch/microblaze/kernel/signal.c
- arch/mips/kernel/signal.c
- arch/mn10300/kernel/signal.c
- arch/openrisc/kernel/signal.c
- arch/parisc/kernel/signal.c
- arch/powerpc/kernel/signal.c
- arch/s390/kernel/signal.c
- arch/score/kernel/signal.c
- arch/sh/kernel/signal_32.c
- arch/sh/kernel/signal_64.c
- arch/sparc/kernel/signal_32.c
- arch/sparc/kernel/signal_64.c
- arch/tile/kernel/process.c
- arch/um/kernel/process.c
- arch/unicore32/kernel/signal.c
- arch/x86/kernel/signal.c
- arch/xtensa/kernel/signal.c
- include/linux/tracehook.h
arch/alpha/kernel/signal.c
arch/arm/kernel/signal.c
arch/avr32/kernel/signal.c
arch/blackfin/kernel/signal.c
arch/c6x/kernel/signal.c
arch/cris/kernel/ptrace.c
arch/frv/kernel/signal.c
... | ... | @@ -562,8 +562,6 @@ |
562 | 562 | if (thread_info_flags & _TIF_NOTIFY_RESUME) { |
563 | 563 | clear_thread_flag(TIF_NOTIFY_RESUME); |
564 | 564 | tracehook_notify_resume(__frame); |
565 | - if (current->replacement_session_keyring) | |
566 | - key_replace_session_keyring(); | |
567 | 565 | } |
568 | 566 | |
569 | 567 | } /* end do_notify_resume() */ |
arch/h8300/kernel/signal.c
arch/hexagon/kernel/signal.c
arch/ia64/kernel/process.c
... | ... | @@ -199,8 +199,6 @@ |
199 | 199 | if (test_thread_flag(TIF_NOTIFY_RESUME)) { |
200 | 200 | clear_thread_flag(TIF_NOTIFY_RESUME); |
201 | 201 | tracehook_notify_resume(&scr->pt); |
202 | - if (current->replacement_session_keyring) | |
203 | - key_replace_session_keyring(); | |
204 | 202 | } |
205 | 203 | |
206 | 204 | /* copy user rbs to kernel rbs */ |
arch/m32r/kernel/signal.c
... | ... | @@ -383,8 +383,6 @@ |
383 | 383 | if (thread_info_flags & _TIF_NOTIFY_RESUME) { |
384 | 384 | clear_thread_flag(TIF_NOTIFY_RESUME); |
385 | 385 | tracehook_notify_resume(regs); |
386 | - if (current->replacement_session_keyring) | |
387 | - key_replace_session_keyring(); | |
388 | 386 | } |
389 | 387 | |
390 | 388 | clear_thread_flag(TIF_IRET); |
arch/m68k/kernel/signal.c
... | ... | @@ -1193,10 +1193,7 @@ |
1193 | 1193 | if (test_thread_flag(TIF_SIGPENDING)) |
1194 | 1194 | do_signal(regs); |
1195 | 1195 | |
1196 | - if (test_and_clear_thread_flag(TIF_NOTIFY_RESUME)) { | |
1196 | + if (test_and_clear_thread_flag(TIF_NOTIFY_RESUME)) | |
1197 | 1197 | tracehook_notify_resume(regs); |
1198 | - if (current->replacement_session_keyring) | |
1199 | - key_replace_session_keyring(); | |
1200 | - } | |
1201 | 1198 | } |
arch/microblaze/kernel/signal.c
... | ... | @@ -401,10 +401,7 @@ |
401 | 401 | if (test_thread_flag(TIF_SIGPENDING)) |
402 | 402 | do_signal(regs, in_syscall); |
403 | 403 | |
404 | - if (test_and_clear_thread_flag(TIF_NOTIFY_RESUME)) { | |
404 | + if (test_and_clear_thread_flag(TIF_NOTIFY_RESUME)) | |
405 | 405 | tracehook_notify_resume(regs); |
406 | - if (current->replacement_session_keyring) | |
407 | - key_replace_session_keyring(); | |
408 | - } | |
409 | 406 | } |
arch/mips/kernel/signal.c
arch/mn10300/kernel/signal.c
arch/openrisc/kernel/signal.c
arch/parisc/kernel/signal.c
arch/powerpc/kernel/signal.c
arch/s390/kernel/signal.c
arch/score/kernel/signal.c
arch/sh/kernel/signal_32.c
arch/sh/kernel/signal_64.c
arch/sparc/kernel/signal_32.c
arch/sparc/kernel/signal_64.c
arch/tile/kernel/process.c
... | ... | @@ -569,8 +569,6 @@ |
569 | 569 | if (thread_info_flags & _TIF_NOTIFY_RESUME) { |
570 | 570 | clear_thread_flag(TIF_NOTIFY_RESUME); |
571 | 571 | tracehook_notify_resume(regs); |
572 | - if (current->replacement_session_keyring) | |
573 | - key_replace_session_keyring(); | |
574 | 572 | return 1; |
575 | 573 | } |
576 | 574 | if (thread_info_flags & _TIF_SINGLESTEP) { |
arch/um/kernel/process.c
... | ... | @@ -117,11 +117,8 @@ |
117 | 117 | schedule(); |
118 | 118 | if (test_thread_flag(TIF_SIGPENDING)) |
119 | 119 | do_signal(); |
120 | - if (test_and_clear_thread_flag(TIF_NOTIFY_RESUME)) { | |
120 | + if (test_and_clear_thread_flag(TIF_NOTIFY_RESUME)) | |
121 | 121 | tracehook_notify_resume(¤t->thread.regs); |
122 | - if (current->replacement_session_keyring) | |
123 | - key_replace_session_keyring(); | |
124 | - } | |
125 | 122 | } |
126 | 123 | |
127 | 124 | void exit_thread(void) |
arch/unicore32/kernel/signal.c
arch/x86/kernel/signal.c
... | ... | @@ -821,8 +821,6 @@ |
821 | 821 | if (thread_info_flags & _TIF_NOTIFY_RESUME) { |
822 | 822 | clear_thread_flag(TIF_NOTIFY_RESUME); |
823 | 823 | tracehook_notify_resume(regs); |
824 | - if (current->replacement_session_keyring) | |
825 | - key_replace_session_keyring(); | |
826 | 824 | } |
827 | 825 | if (thread_info_flags & _TIF_USER_RETURN_NOTIFY) |
828 | 826 | fire_user_return_notifiers(); |
arch/xtensa/kernel/signal.c
... | ... | @@ -548,10 +548,7 @@ |
548 | 548 | if (test_thread_flag(TIF_SIGPENDING)) |
549 | 549 | do_signal(regs); |
550 | 550 | |
551 | - if (test_and_clear_thread_flag(TIF_NOTIFY_RESUME)) { | |
551 | + if (test_and_clear_thread_flag(TIF_NOTIFY_RESUME)) | |
552 | 552 | tracehook_notify_resume(regs); |
553 | - if (current->replacement_session_keyring) | |
554 | - key_replace_session_keyring(); | |
555 | - } | |
556 | 553 | } |
include/linux/tracehook.h