Re: [PATCH] Control flow redundancy hardening

2022-07-11 Thread Richard Biener via Gcc-patches
On Fri, Jul 8, 2022 at 7:00 PM Alexandre Oliva wrote: > > On Jul 8, 2022, Richard Biener wrote: > > > I'm possibly missing the importance of 'redundancy' in -fharden-control-flow > > I took "Control Flow Redundancy" as a term of the art and never > questioned it. I think the "redundancy" has to

Re: [PATCH] Control flow redundancy hardening

2022-07-08 Thread Alexandre Oliva via Gcc-patches
On Jul 8, 2022, Richard Biener wrote: > I'm possibly missing the importance of 'redundancy' in -fharden-control-flow I took "Control Flow Redundancy" as a term of the art and never questioned it. I think the "redundancy" has to do with the fact that control flow is generally affected by tests

Re: [PATCH] Control flow redundancy hardening

2022-07-08 Thread Richard Biener via Gcc-patches
On Thu, Jul 7, 2022 at 10:04 PM Alexandre Oliva via Gcc-patches wrote: > > > This patch introduces an optional hardening pass to catch unexpected > execution flows. Functions are transformed so that basic blocks set a > bit in an automatic array, and (non-exceptional) function exit edges > check

[PATCH] Control flow redundancy hardening

2022-07-07 Thread Alexandre Oliva via Gcc-patches
This patch introduces an optional hardening pass to catch unexpected execution flows. Functions are transformed so that basic blocks set a bit in an automatic array, and (non-exceptional) function exit edges check that the bits in the array represent an expected execution path in the CFG. Funct