lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 27 Oct 2021 12:55:17 +0000
From:   David Laight <David.Laight@...LAB.COM>
To:     'Mark Rutland' <>,
        Peter Zijlstra <>
CC:     Sami Tolvanen <>,
        "" <>,
        Kees Cook <>,
        Josh Poimboeuf <>,
        Nathan Chancellor <>,
        "Nick Desaulniers" <>,
        Sedat Dilek <>,
        Steven Rostedt <>,
        "" <>,
        "" <>,
        "" <>,
        "" <>
Subject: RE: [PATCH v5 00/15] x86: Add support for Clang CFI

From: Mark Rutland
> Sent: 27 October 2021 13:05
> Taking a step back, it'd be nicer if we didn't have the jump-table shim
> at all, and had some SW landing pad (e.g. a NOP with some magic bytes)
> in the callees that the caller could check for. Then function pointers
> would remain callable in call cases, and we could explcitly add landing
> pads to asm to protect those. I *think* that's what the grsecurity folk
> do, but I could be mistaken.

It doesn't need to be a 'landing pad'.
The 'magic value' could be at 'label - 8'.

Provided you can generate the required value it could be added
to asm functions.
(Or you could patch it at startup by stealing the value from
a C function.)

Depending on the threat model, you may even want the called function
to do some sanity checks on the caller.

I suspect that anything you do is easy to subvert by anything that
can actually write asm.
So if the real threat is overwritten function tables then something
relatively simple is adequate.


Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)

Powered by blists - more mailing lists