[lkml]   [2011]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 0/3] pstore: pass allocated memory region back to caller
On Mon, Nov 14, 2011 at 3:55 PM, Tony Luck <> wrote:
> On Mon, Nov 14, 2011 at 3:12 PM, Kees Cook <> wrote:
>> Since pstore's buf_lock cannot be held while doing the VFS population,
>> these patches make it the backend's responsibility to pass up an allocated
>> buffer instead during reads.
> The split into three parts is good for review purposes - but I'll
> squish them all together
> into one commit to avoid breaking bisectability.

Okay, sounds good.

> I'm trying to work out whether I should be worried about the removal
> of the locks
> around the:
>   (*open)(...)
>   while (size = (*read)(...)) {
>   }
>   (*close)()
> section in pstore_get_records().  If someone tries to simultaneously mount
> pstore in multiple places - will the upper level mount code serialize? I don't
> think the backends will be happy if multiple callers execute that at the same
> time.

How should it be handled? We can't hold any lock while doing the VFS work.


Kees Cook
ChromeOS Security
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2011-11-15 01:49    [W:0.043 / U:5.920 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site