|
Message-ID: <2236FBA76BA1254E88B949DDB74E612B41BDE1E5@IRSMSX102.ger.corp.intel.com> Date: Thu, 13 Oct 2016 13:54:53 +0000 From: "Reshetova, Elena" <elena.reshetova@...el.com> To: Kees Cook <keescook@...omium.org>, Colin Vidal <colin@...dal.org> CC: "kernel-hardening@...ts.openwall.com" <kernel-hardening@...ts.openwall.com>, AKASHI Takahiro <takahiro.akashi@...aro.org> Subject: RE: self introduction > get why the test in arch/x86/include/kernel/traps.c > > if (trapnr == X86_TRAP_OF) > hardened_atomic_overflow(regs); > > is not guarded by CONFIG_HARDENED_ATOMIC: the trap cannot occurs if > CONFIG_HARDENED_ATOMIC is unset (since "int" instructions in > arch/x86/include/asm/atomic.h are guarded by it), and it would avoid > the other implementation of hardened_atomic_overflow in > include/asm-generic/bug.h. >The implementation is a static inline with no body, so the compiler will automatically eliminate the entire "if" statement, since it's a no-op. Ups, my mistake here, this static inline function currently is not empty, see: https://github.com/ereshetova/linux-stable/commit/3591430c0c7560de88b4721021f461e816d6cf38#diff-94d0be26498109f234666923aaafc7d9R221 I didn't understood this part properly, will fix it to be a real empty function. Thank you for noticing this! Best Regards, Elena.
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.