mirror of
https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux
synced 2025-09-14 00:29:50 +10:00
v6.6-vfs.autofs
-----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRAhzRXHqcMeLMyaSiRxhvAZXjcogUCZOXUDgAKCRCRxhvAZXjc ogplAQCYXt+zcfs1GMhCUtPFzyyCwNsraMNzVwTdFbMz4R1JuQD9HL82VKyvMwmZ uo6uGVd9xN6cEy61Lpz9K8dn59uVAQE= =851o -----END PGP SIGNATURE----- Merge tag 'v6.6-vfs.autofs' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs Pull autofs fixes from Christian Brauner: "This fixes a memory leak in autofs reported by syzkaller and a missing conversion from uninterruptible to interruptible wake up when autofs is in catatonic mode" * tag 'v6.6-vfs.autofs' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs: autofs: use wake_up() instead of wake_up_interruptible(() autofs: fix memory leak of waitqueues in autofs_catatonic_mode
This commit is contained in:
commit
2e0afa7e78
@ -32,8 +32,9 @@ void autofs_catatonic_mode(struct autofs_sb_info *sbi)
|
|||||||
wq->status = -ENOENT; /* Magic is gone - report failure */
|
wq->status = -ENOENT; /* Magic is gone - report failure */
|
||||||
kfree(wq->name.name - wq->offset);
|
kfree(wq->name.name - wq->offset);
|
||||||
wq->name.name = NULL;
|
wq->name.name = NULL;
|
||||||
wq->wait_ctr--;
|
wake_up(&wq->queue);
|
||||||
wake_up_interruptible(&wq->queue);
|
if (!--wq->wait_ctr)
|
||||||
|
kfree(wq);
|
||||||
wq = nwq;
|
wq = nwq;
|
||||||
}
|
}
|
||||||
fput(sbi->pipe); /* Close the pipe */
|
fput(sbi->pipe); /* Close the pipe */
|
||||||
|
Loading…
Reference in New Issue
Block a user