Commit e8c84e2
committed
statmount: don't call path_put() under namespace semaphore
Massage statmount() and make sure we don't call path_put() under the
namespace semaphore. If we put the last reference we're fscked.
Fixes: 46eae99 ("add statmount(2) syscall")
Cc: stable@vger.kernel.org # v6.8+
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent b9cb7e5 commit e8c84e2
1 file changed
Lines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5708 | 5708 | | |
5709 | 5709 | | |
5710 | 5710 | | |
5711 | | - | |
5712 | 5711 | | |
5713 | 5712 | | |
5714 | 5713 | | |
| |||
5720 | 5719 | | |
5721 | 5720 | | |
5722 | 5721 | | |
5723 | | - | |
| 5722 | + | |
5724 | 5723 | | |
5725 | 5724 | | |
5726 | 5725 | | |
| |||
5729 | 5728 | | |
5730 | 5729 | | |
5731 | 5730 | | |
5732 | | - | |
| 5731 | + | |
5733 | 5732 | | |
5734 | 5733 | | |
5735 | 5734 | | |
5736 | 5735 | | |
5737 | 5736 | | |
5738 | 5737 | | |
5739 | 5738 | | |
5740 | | - | |
5741 | | - | |
5742 | 5739 | | |
5743 | 5740 | | |
5744 | 5741 | | |
| |||
5960 | 5957 | | |
5961 | 5958 | | |
5962 | 5959 | | |
| 5960 | + | |
5963 | 5961 | | |
5964 | 5962 | | |
5965 | 5963 | | |
| |||
0 commit comments