Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Apr 2012 11:46:57 -0700
From:      Peter Wemm <peter@wemm.org>
To:        Richard Yao <ryao@cs.stonybrook.edu>
Cc:        Tom Evans <tevans.uk@googlemail.com>, freebsd-stable@freebsd.org
Subject:   Re: Text relocations in kernel modules
Message-ID:  <CAGE5yCrwLosuTT2yq0DEx%2Bz8ztKpkrB=tORmURcuh_SCz=L7qg@mail.gmail.com>
In-Reply-To: <4F79E27E.3000509@cs.stonybrook.edu>
References:  <4F75E404.8000104@cs.stonybrook.edu> <4F75EF86.6090909@cs.stonybrook.edu> <20120330190713.GG2358@deviant.kiev.zoral.com.ua> <4F760C9E.6060405@cs.stonybrook.edu> <20120330194649.GH2358@deviant.kiev.zoral.com.ua> <4F761371.7020606@cs.stonybrook.edu> <20120330203605.GI2358@deviant.kiev.zoral.com.ua> <4F76350F.8000708@cs.stonybrook.edu> <20120330224631.GJ2358@deviant.kiev.zoral.com.ua> <4F7637F3.2060502@cs.stonybrook.edu> <CAGE5yCpuvsVrc-%2BDTVas-W4fjuP2s%2B6PQONMOTyEbGnj2CY3ig@mail.gmail.com> <4F766F29.2030803@cs.stonybrook.edu> <CAFHbX1KiZx68MP4bCAvPc0Zui3fA4O35_z3kP781zoJqLYp7Bw@mail.gmail.com> <4F79D88B.3040102@cs.stonybrook.edu> <CAFHbX1KE15G9gx7Duw2R8zC5jL1jiEir0yMB0-s5%2B4xx517WtQ@mail.gmail.com> <4F79E27E.3000509@cs.stonybrook.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Apr 2, 2012 at 10:31 AM, Richard Yao <ryao@cs.stonybrook.edu> wrote:
> On 04/02/12 13:13, Tom Evans wrote:
>> On Mon, Apr 2, 2012 at 5:49 PM, Richard Yao <ryao@cs.stonybrook.edu> wrote:
>>> On 04/02/12 05:56, Tom Evans wrote:
>>>> On Sat, Mar 31, 2012 at 3:42 AM, Richard Yao <ryao@cs.stonybrook.edu> wrote:
>>>>>> There are no security implications, no system resources to be wasted.
>>>>>>
>>>>>> And if you think there are security implications, then lets see a
>>>>>> proof-of-concept.
>>>>>
>>>>> If I find time to write a proof-of-concept, I promise to publish it
>>>>> publicly. Your security team will find out when everyone else does.
>>>>
>>>> Richard, I'm not sure what you are trying to accomplish here. You have
>>>> had a clear explanation of why certain things are done in a certain
>>>> way in the FreeBSD codebase, and a confirmation that they do not think
>>>> it causes any security issues in FreeBSD.
>>>>
>>>> Your response is to threaten to write an exploit against FreeBSD, and
>>>> distribute it publicly before disclosing to security@.
>>>
>>> Some people believe that projects that do not take proper
>>> countermeasures against security vulnerabilities do not deserve to have
>>> special notification of issues. I happen to be one of them.
>>
>> This is a straw man argument - FreeBSD does take proper
>> countermeasures against security vulnerabilities - and so your
>> conclusion that you can blithely fully disclose vulnerabilities with
>> no moral concerns is a logical fallacy.
>
> My opinion is that any OS that lacks ALSR lacks proper countermeasures
> against vunerabilities that ASLR would kill. Furthermore, I believe that
> trying to minimize the impact of bugs that would be addressed by ASLR is
> ultimately harmful to users' security. Logically, full disclosure would
> only apply to attacks that ASLR would kill.

Remember.. ASLR is a userland thing.  .ko files, which is what this
thread is about, already use random address layout.  When you do a
"kldload virtio.ko", you have no way to predict what address it will
be loaded at.  And you don't even have access to the addresses.

Of course if you want to talk about ASLR and userland .so files then
that's an entirely different thing.  But this thread is about your
tools finding DT_TEXTREL in a .ko kernel file, not userland .so files.

-- 
Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com; KI6FJV
"All of this is for nothing if we don't go to the stars" - JMS/B5
"If Java had true garbage collection, most programs would delete
themselves upon execution." -- Robert Sewell



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGE5yCrwLosuTT2yq0DEx%2Bz8ztKpkrB=tORmURcuh_SCz=L7qg>