aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-memset.c
diff options
context:
space:
mode:
authorQiujun Huang <[email protected]>2022-09-04 23:17:13 +0800
committerKees Cook <[email protected]>2022-10-17 13:14:10 -0700
commit99b3b837855b987563bcfb397cf9ddd88262814b (patch)
treebc4e3256371cfb06ceba597c28a2e8b61048d512 /lib/test_fortify/write_overflow-memset.c
parent9abf2313adc1ca1b6180c508c25f22f9395cc780 (diff)
pstore/zone: Use GFP_ATOMIC to allocate zone buffer
There is a case found when triggering a panic_on_oom, pstore fails to dump kmsg. Because psz_kmsg_write_record can't get the new buffer. Handle this by using GFP_ATOMIC to allocate a buffer at lower watermark. Signed-off-by: Qiujun Huang <[email protected]> Fixes: 335426c6dcdd ("pstore/zone: Provide way to skip "broken" zone for MTD devices") Cc: WeiXiong Liao <[email protected]> Cc: [email protected] Signed-off-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/CAJRQjofRCF7wjrYmw3D7zd5QZnwHQq+F8U-mJDJ6NZ4bddYdLA@mail.gmail.com
Diffstat (limited to 'lib/test_fortify/write_overflow-memset.c')
0 files changed, 0 insertions, 0 deletions