Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934659Ab0GOVsv (ORCPT ); Thu, 15 Jul 2010 17:48:51 -0400 Received: from mail-gw0-f46.google.com ([74.125.83.46]:59565 "EHLO mail-gw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934092Ab0GOVsu (ORCPT ); Thu, 15 Jul 2010 17:48:50 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=JBk9+dWKeM9Gl4UcRvI6XUL+dmUNw9cfymz9vel4rFJyg6KhY1Ah2YRkFnp7CauA7V RLtKwZ/aSrGeD6syG/7kTpXjfKxDXFH+vcPBRodQFj5ZDON7w7iQOtKVupm1o1RQs7Uy uc6DHUoyqOfQ3klVIBZrP0SUEdeMlVMDFFIbs= MIME-Version: 1.0 Date: Thu, 15 Jul 2010 16:48:48 -0500 Message-ID: Subject: anonymous mmap() and random heap allocation From: Xianghua Xiao To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 681 Lines: 17 It seems mmap() can not do random allocation for malloc()/heap on Linux, anyone used pax's 'mmap randonness' option for that? what's the price for that? I want to port openbsd's malloc() to linux to avoid heap crashes(overrun/underrun), openbsd's malloc() can do random allocation for security reasons, meanwhile it helps to avoid some overrun/underrun crashes with no extra cost, the latter is what I'm looking for. thanks, xianghua -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/