From mboxrd@z Thu Jan 1 00:00:00 1970 From: salyzyn@android.com (Mark Salyzyn) Date: Mon, 11 Sep 2017 08:26:27 -0700 Subject: [PATCH v3 0/3] arm64: Add CONFIG_KUSER_HELPERS Message-ID: <20170911152635.95367-1-salyzyn@android.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Make it possible to disable the kuser helpers by adding a KUSER_HELPERS config option (enabled by default). When disabled, all kuser helpers-related code is removed from the kernel and no mapping is done at the fixed high address (0xffff0000); any attempt to use a kuser helper from a 32-bit process will result in a segfault. Signed-off-by: Mark Salyzyn v2: - vectors_page and compat_vdso_spec as array of 2 - free sigpage if vectors allocation failed - adjust makefile so one line for each of the assembler source modules - split off assembler changes to a new previous patch in series to reduce churn - modify slightly the feature documentation to reduce its reach - modify slightly the feature documentation to rationalize the yes default. - There are more ifdefs as a result of the rebase. v3: - rebase (minor conflicts) From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751099AbdIKP1D (ORCPT ); Mon, 11 Sep 2017 11:27:03 -0400 Received: from mail-pg0-f46.google.com ([74.125.83.46]:32816 "EHLO mail-pg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750715AbdIKP1C (ORCPT ); Mon, 11 Sep 2017 11:27:02 -0400 X-Google-Smtp-Source: ADKCNb5EL9Kezv/51aIxFyfIAnRCGTw8bTp/qqGQacRjIiiEQneC0NlEtEkRDRVemKI5DKfgsRGLEQ== From: Mark Salyzyn To: linux-kernel@vger.kernel.org Cc: kevin.brodsky@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, mingo@kernel.org, borntraeger@de.ibm.com, james.morse@arm.com, peterz@infradead.org, Dave.Martin@arm.com, credmonster@gmail.com, zijun_hu@htc.com, mark.rutland@arm.com, jszhang@marvell.com, labbott@redhat.com, john.stultz@linaro.org, keescook@chromium.org, linux-arm-kernel@lists.infradead.org, takahiro.akashi@linaro.org, mmarek@suse.com, ard.biesheuvel@linaro.org, Mark Salyzyn Subject: [PATCH v3 0/3] arm64: Add CONFIG_KUSER_HELPERS Date: Mon, 11 Sep 2017 08:26:27 -0700 Message-Id: <20170911152635.95367-1-salyzyn@android.com> X-Mailer: git-send-email 2.14.1.581.gf28d330327-goog Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make it possible to disable the kuser helpers by adding a KUSER_HELPERS config option (enabled by default). When disabled, all kuser helpers-related code is removed from the kernel and no mapping is done at the fixed high address (0xffff0000); any attempt to use a kuser helper from a 32-bit process will result in a segfault. Signed-off-by: Mark Salyzyn v2: - vectors_page and compat_vdso_spec as array of 2 - free sigpage if vectors allocation failed - adjust makefile so one line for each of the assembler source modules - split off assembler changes to a new previous patch in series to reduce churn - modify slightly the feature documentation to reduce its reach - modify slightly the feature documentation to rationalize the yes default. - There are more ifdefs as a result of the rebase. v3: - rebase (minor conflicts)