Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752079AbbFOWcK (ORCPT ); Mon, 15 Jun 2015 18:32:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58540 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750911AbbFOWcD (ORCPT ); Mon, 15 Jun 2015 18:32:03 -0400 Date: Tue, 16 Jun 2015 00:30:56 +0200 From: Oleg Nesterov To: Kees Cook Cc: Tycho Andersen , Andy Lutomirski , Will Drewry , Roland McGrath , Pavel Emelyanov , "Serge E. Hallyn" , LKML Subject: Re: [kees:seccomp/tip 2/2] kernel/ptrace.c:567:3: note: in expansion of macro 'if' Message-ID: <20150615223056.GA18897@redhat.com> References: <201506160626.KppQbBQV%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 505 Lines: 19 On 06/15, Kees Cook wrote: > > Looks like dead-code elimination happens after structures are > accessed, so this needs to use the accessor. Ah, I forgot we have the dummy "struct seccomp { }" for SECCOMP=n > Sorry I missed this > earlier! Me too :/ Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/