diff options
author | 2022-04-05 18:39:31 +0200 | |
---|---|---|
committer | 2022-04-06 15:09:33 +0200 | |
commit | 1448769c9cdb69ad65287f4f7ab58bc5f2f5d7ba (patch) | |
tree | 457e2d91ba4a10facd9e511015c6808e6bc64709 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | random: do not allow user to keep crng key around on stack (diff) | |
download | linux-dev-1448769c9cdb69ad65287f4f7ab58bc5f2f5d7ba.tar.xz linux-dev-1448769c9cdb69ad65287f4f7ab58bc5f2f5d7ba.zip |
random: check for signal_pending() outside of need_resched() check
signal_pending() checks TIF_NOTIFY_SIGNAL and TIF_SIGPENDING, which
signal that the task should bail out of the syscall when possible. This
is a separate concept from need_resched(), which checks
TIF_NEED_RESCHED, signaling that the task should preempt.
In particular, with the current code, the signal_pending() bailout
probably won't work reliably.
Change this to look like other functions that read lots of data, such as
read_zero().
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions