Skip to content

kms_flip: Test for page flip crtc->fb clobber bug

[email protected] intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kms_flip: Add flip-vs-bad-tiling testtests/kms_flip.c+32 -40 replies
2/2kms_flip: Don't access freed datatests/kms_flip.c+1 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH i-g-t 0/2] kms_flip: Test for page flip crtc->fb clobber bug

This new test 'flip-vs-bad-tiling' will trigger the pin_count underflow BUG in the kernel due to page flip clobbering the crtc->fb pointer when queue_flip fails. With the kernel fix applied the test completes succesfully.

I also included a small fix for a use-after-free bug I spotted.