lkml.org 
[lkml]   [2019]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] fsi:fsi-sbefifo: Fix possible concurrency use-after-free bugs in sbefifo_user_release
Date
Jia-Ju Bai <baijiaju1990@gmail.com> wrote:

> + mutex_lock(&user->file_lock);
> sbefifo_release_command(user);
> free_page((unsigned long)user->cmd_page);
> + mutex_unlock(&user->file_lock);

It shouldn't be necessary to do the free_page() call inside the locked
section.

David

\
 
 \ /
  Last update: 2019-01-02 10:35    [W:0.068 / U:0.708 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site