• Christoph Hellwig's avatar
    x86/hyperv: use vmalloc_exec for the hypercall page · 78bb17f7
    Christoph Hellwig authored
    Patch series "decruft the vmalloc API", v2.
    
    Peter noticed that with some dumb luck you can toast the kernel address
    space with exported vmalloc symbols.
    
    I used this as an opportunity to decruft the vmalloc.c API and make it
    much more systematic.  This also removes any chance to create vmalloc
    mappings outside the designated areas or using executable permissions
    from modules.  Besides that it removes more than 300 lines of code.
    
    This patch (of 29):
    
    Use the designated helper for allocating executable kernel memory, and
    remove the now unused PAGE_KERNEL_RX define.
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Reviewed-by: default avatarMichael Kelley <mikelley@microsoft.com>
    Acked-by: default avatarWei Liu <wei.liu@kernel.org>
    Acked-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Cc: Christian Borntraeger <borntraeger@de.ibm.com>
    Cc: Christophe Leroy <christophe.leroy@c-s.fr>
    Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
    Cc: David Airlie <airlied@linux.ie>
    Cc: Gao Xiang <xiang@kernel.org>
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: Haiyang Zhang <haiyangz@microsoft.com>
    Cc: Johannes Weiner <hannes@cmpxchg.org>
    Cc: "K. Y. Srinivasan" <kys@microsoft.com>
    Cc: Laura Abbott <labbott@redhat.com>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Minchan Kim <minchan@kernel.org>
    Cc: Nitin Gupta <ngupta@vflare.org>
    Cc: Robin Murphy <robin.murphy@arm.com>
    Cc: Sakari Ailus <sakari.ailus@linux.intel.com>
    Cc: Stephen Hemminger <sthemmin@microsoft.com>
    Cc: Sumit Semwal <sumit.semwal@linaro.org>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: Paul Mackerras <paulus@ozlabs.org>
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Cc: Will Deacon <will@kernel.org>
    Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
    Cc: Vasily Gorbik <gor@linux.ibm.com>
    Link: http://lkml.kernel.org/r/20200414131348.444715-1-hch@lst.de
    Link: http://lkml.kernel.org/r/20200414131348.444715-2-hch@lst.deSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    78bb17f7
hv_init.c 13.5 KB