hibernate: Allow uswsusp to write to swap
mainline inclusion from mainline-5.7-rc1 commit 56939e01 category: bugfix bugzilla: 50612 CVE: NA --------------------------- It turns out that there is one use case for programs being able to write to swap devices, and that is the userspace hibernation code. Quick fix: disable the S_SWAPFILE check if hibernation is configured. Fixes: dc617f29 ("vfs: don't allow writes to swap files") Reported-by:Domenico Andreoli <domenico.andreoli@linux.com> Reported-by:
Marian Klein <mkleinsoft@gmail.com> Signed-off-by:
Domenico Andreoli <domenico.andreoli@linux.com> Reviewed-by:
Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by:
Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by:
zhangyi (F) <yi.zhang@huawei.com> Reviewed-by:
Yang Erkun <yangerkun@huawei.com> Signed-off-by:
Yang Yingliang <yangyingliang@huawei.com> Signed-off-by:
Cheng Jian <cj.chengjian@huawei.com>
Loading
Please sign in to comment