All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] autofs: fix memory leak of waitqueues in autofs_catatonic_mode
@ 2023-02-11 19:59 Fedor Pchelkin
  2023-02-11 19:59 ` [PATCH 1/1] " Fedor Pchelkin
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Fedor Pchelkin @ 2023-02-11 19:59 UTC (permalink / raw)
  To: Ian Kent
  Cc: Fedor Pchelkin, Matthew Wilcox, Andrei Vagin, Takeshi Misawa,
	autofs, linux-kernel, Alexey Khoroshilov, lvc-project

Syzkaller reports the leak [1]. It is reproducible.

The following patch fixes the leak. It was proposed by Takeshi Misawa and
tested by Syzbot.

In other places of the code the waitqueue is freed when its wait_ctr
becomes zero (see autofs_wait_release). So I think it is not actually
supposed that inside autofs_catatonic_mode wait_ctr cannot be decreased to
zero. Please correct me if I'm wrong.

Also, looking at the discussion [2] of the '[PATCH] autofs4: use wake_up()
instead of wake_up_interruptible', shouldn't wake_up_interruptible()
inside autofs_catatonic_mode() be replaced with wake_up()?

[1] https://syzkaller.appspot.com/bug?id=a9412f636e2d733130f8def7975897d0b57f6e37
[2] https://www.spinics.net/lists/autofs/msg01875.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-03-11  7:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-11 19:59 [PATCH 0/1] autofs: fix memory leak of waitqueues in autofs_catatonic_mode Fedor Pchelkin
2023-02-11 19:59 ` [PATCH 1/1] " Fedor Pchelkin
2023-02-13  1:25 ` [PATCH 0/1] " Ian Kent
2023-02-13  4:27 ` Ian Kent
2023-02-13  4:37   ` Ian Kent
2023-03-10 17:56     ` Fedor Pchelkin
2023-03-11  7:01       ` Ian Kent

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.