diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-09-02 22:44:09 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-09-02 22:44:09 +0200 |
| commit | 62f85bcbfee478cc88c60f76e8a6ca04609bc73a (patch) | |
| tree | 0cfc2db06d1a4dbeedfb7587b82abd7528440b3e | |
| parent | 58b2277102b4dbfdb152773503e73c357c7ff657 (diff) | |
| parent | eb85469f0dd69ca145d63117450e14c31f67f698 (diff) | |
| download | linux-next-62f85bcbfee478cc88c60f76e8a6ca04609bc73a.tar.gz linux-next-62f85bcbfee478cc88c60f76e8a6ca04609bc73a.zip | |
Merge branch 'ipc-7.4.misc' into vfs.all
Signed-off-by: Christian Brauner <brauner@kernel.org>
| -rw-r--r-- | ipc/mqueue.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index d1dd36a651b0..d1a1965c9811 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c @@ -528,6 +528,13 @@ static void mqueue_evict_inode(struct inode *inode) list_add_tail(&msg->m_list, &tmp_msg); kfree(info->node_cache); spin_unlock(&info->lock); + /* + * A shared file table can let the notification owner exit without + * running ->flush(). No users of the inode remain during eviction, so + * tear down any stale notification after dropping info->lock because + * netlink_sendskb() may release the final socket reference. + */ + remove_notification(info); list_for_each_entry_safe(msg, nmsg, &tmp_msg, m_list) { list_del(&msg->m_list); |
