kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] exfat: Fix use after free in exfat_load_upcase_table()
@ 2020-06-08 15:07 Markus Elfring
  2020-06-08 15:52 ` Matthew Wilcox
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Markus Elfring @ 2020-06-08 15:07 UTC (permalink / raw)
  To: Dan Carpenter, linux-fsdevel
  Cc: kernel-janitors, linux-kernel, Namjae Jeon, Sungjong Seo,
	Tetsuhiro Kohada

> This code calls brelse(bh) and then dereferences "bh" on the next line
> resulting in a possible use after free.

There is an unfortunate function call sequence.


> The brelse() should just be moved down a line.

How do you think about a wording variant like the following?

   Thus move a call of the function “brelse” one line down.


Would you like to omit a word from the patch subject so that
a typo will be avoided there?

Regards,
Markus

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

end of thread, other threads:[~2020-06-11  8:40 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-08 15:07 [PATCH] exfat: Fix use after free in exfat_load_upcase_table() Markus Elfring
2020-06-08 15:52 ` Matthew Wilcox
2020-06-08 20:07   ` Markus Elfring
2020-06-09  9:10 ` [PATCH] " Greg KH
2020-06-10  9:27 ` exfat: Improving exception handling in two functions Markus Elfring
2020-06-10  9:59   ` [PATCH] exfat: call brelse() on error path Dan Carpenter
2020-06-10 12:07     ` Markus Elfring
2020-06-10 17:22       ` [PATCH v2] exfat: add missing brelse() calls on error paths Dan Carpenter
2020-06-10 18:12         ` Markus Elfring
2020-06-10 18:45           ` Dan Carpenter
2020-06-10 18:56             ` Markus Elfring
2020-06-10 19:22               ` Matthew Wilcox
2020-06-10 20:00                 ` Markus Elfring
2020-06-11  3:41         ` [PATCH v2] " Namjae Jeon
2020-06-11  8:00         ` Markus Elfring
2020-06-11  8:40         ` Markus Elfring
2020-06-10 12:14   ` exfat: Improving exception handling in two functions Markus Elfring
2020-06-10 14:53   ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).