From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Schwab Subject: Re: [uClinux-dev] [PATCH] m68k: Merge mmu and non-mmu versions of sys_call_table Date: Thu, 07 Apr 2011 10:29:54 +0200 Message-ID: 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: In-Reply-To: (Geert Uytterhoeven's message of "Thu, 7 Apr 2011 09:04:10 +0200") Sender: linux-m68k-owner@vger.kernel.org List-Id: linux-m68k@vger.kernel.org To: Geert Uytterhoeven Cc: Greg Ungerer , Gavin Lambert , uClinux development list , Philippe De Muyter , Linux/m68k 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). Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."