lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CALCETrXZK+w61jWOtOa6ARZFwA-+JUXXu1iZvaEuTiTK+nDb6A@mail.gmail.com>
Date:	Thu, 9 Jul 2015 15:12:47 -0700
From:	Andy Lutomirski <luto@...capital.net>
To:	Oleg Nesterov <oleg@...hat.com>
Cc:	Ingo Molnar <mingo@...nel.org>,
	Srikar Dronamraju <srikar@...ux.vnet.ibm.com>,
	"Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/3] uprobes: fix the usage of install_special_mapping()

On Thu, Jul 9, 2015 at 3:02 PM, Oleg Nesterov <oleg@...hat.com> wrote:
> On 07/09, Andy Lutomirski wrote:
>>
>> On Thu, Jul 9, 2015 at 2:44 PM, Oleg Nesterov <oleg@...hat.com> wrote:
>> > install_special_mapping(pages) expects that "pages" is the zero-
>> > terminated array while xol_add_vma() passes &area->page, this means
>> > that special_mapping_fault() can wrongly use the next member in
>> > xol_area (vaddr) as "struct page *".
>> >
>> > Fortunately, this area is not expandable so pgoff != 0 isn't possible
>> > (modulo bugs in special_mapping_vmops), but still this does not look
>> > good.
>> >
>>
>> I fell for that awhile back, too, causing a bizarre HPET bug.
>
> I guess you mean no_pages[] = {NULL} in map_vdso() ?

Yes.

--Andy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ