diff options
author | Phillip Lougher <phillip@squashfs.org.uk> | 2022-10-21 00:36:16 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-10-28 22:37:21 +0200 |
commit | e11c4e088be4c39d17f304fcf331670891905f42 (patch) | |
tree | c3879e3dea77320a28b02e57310644b916e0ee1b /kernel/printk | |
parent | squashfs: fix extending readahead beyond end of file (diff) | |
download | linux-e11c4e088be4c39d17f304fcf331670891905f42.tar.xz linux-e11c4e088be4c39d17f304fcf331670891905f42.zip |
squashfs: fix buffer release race condition in readahead code
Fix a buffer release race condition, where the error value was used after
release.
Link: https://lkml.kernel.org/r/20221020223616.7571-4-phillip@squashfs.org.uk
Fixes: b09a7a036d20 ("squashfs: support reading fragments in readahead call")
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Tested-by: Bagas Sanjaya <bagasdotme@gmail.com>
Reported-by: Marc Miltenberger <marcmiltenberger@gmail.com>
Cc: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Cc: Hsin-Yi Wang <hsinyi@chromium.org>
Cc: Mirsad Goran Todorovac <mirsad.todorovac@alu.unizg.hr>
Cc: Slade Watkins <srw@sladewatkins.net>
Cc: Thorsten Leemhuis <regressions@leemhuis.info>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'kernel/printk')
0 files changed, 0 insertions, 0 deletions