From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.67) (envelope-from ) id 1IGx8b-00074m-7T for garchives@archives.gentoo.org; Fri, 03 Aug 2007 13:24:17 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l73DMHUA018226; Fri, 3 Aug 2007 13:22:17 GMT Received: from ios.ac.cn ([124.16.137.1]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l73DFnVG008250 for ; Fri, 3 Aug 2007 13:15:50 GMT Received: by dell745.ios.ac.cn (Postfix, from userid 1000) id 1339070187; Fri, 3 Aug 2007 21:15:19 +0800 (CST) Date: Fri, 3 Aug 2007 21:15:18 +0800 From: Shaochun Wang To: Gentoo Subject: [gentoo-user] How to disable stack randomization? Message-ID: <20070803131518.GA12893@localhost> Mail-Followup-To: Gentoo Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) X-Archives-Salt: 960b5dfb-3e59-4d19-b059-d07084482e52 X-Archives-Hash: 5e8247580e42f4f022a4e4691e70760a Every time I execute the same program, its stack starts at a different address. After some studying, I know it is caused by stack randomization in kernel. Although stack randomization impedes stack buffer overflow, it introduces some nondeterminism. Does anyone know how to disable it? Thank you in advance. -- Shaochun Wang Jabber: fungusw@jabber.org -- gentoo-user@gentoo.org mailing list