|
|
Log in / Subscribe / Register

__cfi_check()

__cfi_check()

Posted May 25, 2021 16:58 UTC (Tue) by corbet (editor, #1)
In reply to: Control-flow integrity in 5.13 by marcH
Parent article: Control-flow integrity in 5.13

The argument to __cfi_check() is an address in the jump table. Sorry if that wasn't clear.


to post comments

__cfi_check()

Posted May 26, 2021 7:11 UTC (Wed) by marcH (subscriber, #57642) [Link]

Ah yes of course: much faster to check that the argument is within the given range compared to looking for some value in the whole jump table.

> Sorry if that wasn't clear.

I read again trying to understand how I got that wrong and I think it's because I assumed that the "target address" was the address of the "target function" mentioned earlier.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds