Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
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.