Re: [PATCH 1/1] procfs: Fix use-after-free

2021-05-24 Thread Samuel Thibault
Applied, thanks! Sergey Bugaev, le lun. 24 mai 2021 18:43:40 +0300, a ecrit: > Fix several issues with reference counting in > rootdir_make_translated_node (): > > * Grab an additional reference while still holding the lock. > > * Give the node an additional reference for being pointed to > by

[PATCH 1/1] procfs: Fix use-after-free

2021-05-24 Thread Sergey Bugaev
Fix several issues with reference counting in rootdir_make_translated_node (): * Grab an additional reference while still holding the lock. * Give the node an additional reference for being pointed to by the ops. * Reference the existing node if we find it on the second try, not only if we f