Skip to content

cred: copy_process() should clear child->replacement_session_keyring

Oleg Nesterov lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1cred: copy_process() should clear child->replacement_session_keyringkernel/cred.c+2 -02 replies
1/1task_work_queue: add generic process-context callbacksinclude/linux/sched.h include/linux/task_work.h include/linux/tracehook.h +4 more+115 -30 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDavid Howells
1/1A-b
1/1A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/1] cred: copy_process() should clear child->replacement_session_keyring

Hello.

Looks trivial, but I do not know how to test and I don't understand this code. David, please review ;)

Note: initially this was 1/2. The usage of >replacement_session_keyring is racy, although the problem is minor. I think that instead of fixing a lot of key_replace_session_keyring's callers in arch/ we can add the simple abstraction layer and kill ->replacement_session_keyring. I'll try to send the patches tomorrow.

Btw. exit_creds() does validate_creds(cred) right before put_cred(cred), without alter_cred_subscribers() in between this looks unneeded?

Oleg.