linux-mips
[Top] [All Lists]

Re: [octeon]segment without execution priviledge,causing system down.

To: "wilbur.chan" <wilbur512@gmail.com>
Subject: Re: [octeon]segment without execution priviledge,causing system down.
From: David Daney <david.s.daney@gmail.com>
Date: Tue, 27 Apr 2010 22:01:49 -0700
Cc: Linux MIPS Mailing List <linux-mips@linux-mips.org>, David Daney <ddaney@caviumnetworks.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=KsMUWqvDEVSpD35NIUGctgctuZgn6OUUQKo28uCysCg=; b=Oux1vyGkXuDvI+EOc91tuLdVv2zxzfhzCpyOWbuBPfDTQf/J3ghrBZlC0Hkxme9kZ4 aWsSN3XUtAIVVnlxXCZY7Cml1aM3ILVEQOP8Y1PrQMx3OmU0dQCm6zcze/XVV22NaBsR XBgCkf+mZ/WSWSUPpyY+zvkKzufO8Pkk+r/9w=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=F1zdR1G0yFRQdKaVde45n6QwTOL8FnNTkVC/pNZ0ws03RDToDdhE8XfnmEbmGyQBuL IRlEkdFZTEesfVyWr/bu9XaXGiHQ6sgouGfXB2Fso+FfiHEgxxY6UPY7vmDCUbgXh0U5 SFYW16TykYvjQ4w2jIR6pwRpNkwljCcZRf7y0=
In-reply-to: <r2pe997b7421004271829rffc1e685ic649ce3b53325271@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <r2pe997b7421004271829rffc1e685ic649ce3b53325271@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc11 Thunderbird/3.0.4
On 04/27/2010 06:29 PM, wilbur.chan wrote:
I'm using a modified kernel version derived from 2.6.21.7,and the cpu
is octeon cn5860. Strangely I found that , when executing

some instruction in  un-executable segment, the system will hang on,
together with console  down, and could not response to ping

command.
[...]
Any one knows why this happened? Thanks

I think I know.

There is a bug in your kernel. Since execute inhibit support was not added to the upstream kernel until very recently, we must assume you got your kernel from some vendor. You could either ask the vendor for a fix, or back port it yourself from:

http://www.linux-mips.org/git?p=linux.git;a=commitdiff;h=6dd9344cfc41bcc60a01cdc828cb278be7a10e01

David Daney

<Prev in Thread] Current Thread [Next in Thread>