watch_queue: Fix to release page in ->release()

commit c1853fbadcba1497f4907971e7107888e0714c81 upstream.

When a pipe ring descriptor points to a notification message, the
refcount on the backing page is incremented by the generic get function,
but the release function, which marks the bitmap, doesn't drop the page

Fix this by calling generic_pipe_buf_release() at the end of

Fixes: c73be61cede5 ("pipe: Add general notification queue support")
Reported-by: Jann Horn <>
Signed-off-by: David Howells <>
Signed-off-by: Linus Torvalds <>
Signed-off-by: Greg Kroah-Hartman <>
1 file changed