aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strcpy.c
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2020-09-16 10:00:58 +0100
committerChris Wilson <[email protected]>2020-09-18 11:52:44 +0100
commit293f43c80c0027ff9299036c24218ac705ce584e (patch)
tree1e5787f35f002409ed6dc99f95c89277f36d3f73 /lib/test_fortify/write_overflow-strcpy.c
parent0bda4b80d949d871146f85bb478f5c30c368009e (diff)
drm/i915: Break up error capture compression loops with cond_resched()
As the error capture will compress user buffers as directed to by the user, it can take an arbitrary amount of time and space. Break up the compression loops with a call to cond_resched(), that will allow other processes to schedule (avoiding the soft lockups) and also serve as a warning should we try to make this loop atomic in the future. Testcase: igt/gem_exec_capture/many-* Signed-off-by: Chris Wilson <[email protected]> Cc: Mika Kuoppala <[email protected]> Cc: [email protected] Reviewed-by: Mika Kuoppala <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-strcpy.c')
0 files changed, 0 insertions, 0 deletions