From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philippe De Muyter Subject: Re: [uClinux-dev] [PATCH] m68k: Merge mmu and non-mmu versions of sys_call_table Date: Thu, 7 Apr 2011 10:35:19 +0200 Message-ID: <20110407083519.GA10282@frolo.macqel> References: <20110406220510.GA17350@frolo.macqel> <4D9D0AF3.9070100@snapgear.com> <000301cbf4c9$40339fc0$c09adf40$@com> <4D9D24BB.3060804@snapgear.com> <000d01cbf4d1$d50e2f90$7f2a8eb0$@com> <4D9D3A28.9060104@snapgear.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-m68k-owner@vger.kernel.org List-Id: linux-m68k@vger.kernel.org To: Andreas Schwab Cc: Geert Uytterhoeven , Greg Ungerer , Gavin Lambert , uClinux development list , Linux/m68k On Thu, Apr 07, 2011 at 10:29:54AM +0200, Andreas Schwab wrote: > Geert Uytterhoeven writes: > > > Isn't there a reason it was read-write on m68k, like the table may be changed > > at runtime (to install rootkits :-)? Have to check what the other arches do... > > Initially the syscall_table in Linux has always been writable, bb152f53 > ("x86/x86_64: mark rodata section read-only: make some datastructures > const") made it read-only on x86. Apparently nobody bothered to do the > equivalent change on m68k (I don't think anything makes the kernel text > segment write protected anyway). Except, of course, ld config files who put text and rodata in ROM/FLASH for XIP on embedded systems. Philippe