Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935068AbZDCRbV (ORCPT ); Fri, 3 Apr 2009 13:31:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759822AbZDCRbL (ORCPT ); Fri, 3 Apr 2009 13:31:11 -0400 Received: from mx3.mail.elte.hu ([157.181.1.138]:45962 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757356AbZDCRbK (ORCPT ); Fri, 3 Apr 2009 13:31:10 -0400 Date: Fri, 3 Apr 2009 19:30:59 +0200 From: Ingo Molnar To: Joseph Cihula , Tejun Heo Cc: linux-kernel@vger.kernel.org, arjan@linux.intel.com Subject: Re: [PATCH] x86: disable stack-protector for __restore_processor_state() Message-ID: <20090403173059.GO19982@elte.hu> References: <49D13385.5060900@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49D13385.5060900@intel.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.5 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 935 Lines: 27 * Joseph Cihula wrote: > The __restore_processor_state() fn restores %gs on resume from S3. > As such, it cannot be protected by the stack-protector guard since > %gs will not be correct on function entry. > > There are only a few other fns in this file and it should not > negatively impact kernel security that they will also have the > stack-protector guard removed (and so it's not worth moving them > to another file). > > Without this change, S3 resume on a kernel built with > CONFIG_CC_STACKPROTECTOR_ALL=y will fail. > > Signed-off-by: Joseph Cihula ah ... very nice! applied to tip:x86/urgent, thanks Joseph! Ingo -- 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/