[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sun, 5 May 2013 16:19:48 +0200
From: Roland Eggner <edvx1@...temanalysen.net>
To: Al Viro <viro@...IV.linux.org.uk>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
linux-kernel@...r.kernel.org
Subject: Re: [git pull] single_open() leak fixes
On 2013-05-05 Sunday at 06:54 +0100 Al Viro wrote:
> A bunch of fixes for a moderately common class of bugs: file with
> single_open() done by its ->open() and seq_release as its ->release().
> That leaks; fortunately, it's not _too_ common (either people manage to
> RTFM that says "When using single_open(), the programmer should use
> single_release() instead of seq_release() in the file_operations structure
> to avoid a memory leak", or they just copy a correct instance), but grepping
> through the tree has caught quite a pile. All of that is, AFAICS, -stable
> fodder, for as far as the patches apply. … …
Some 40 memory leaks plugged at once … quite elegant :)
Additionally maybe your cunning grep commands are checkpatch.pl fodder?
At patch level risk of false warnings probably would be lower than at C code
level.
--
Regards
Roland Eggner
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists