summaryrefslogtreecommitdiff
path: root/kernel/livepatch/Kconfig
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2020-07-02 14:43:59 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-16 08:13:30 +0200
commita82f3f8f4f010ac41c269472cc4762d963dbdfd2 (patch)
treec1dcb6c2652906f9872f27e8b9bee944f13c233f /kernel/livepatch/Kconfig
parentbe163232ad51d8280f310bcf99429327ba8166e9 (diff)
module: Do not expose section addresses to non-CAP_SYSLOG
commit b25a7c5af9051850d4f3d93ca500056ab6ec724b upstream. The printing of section addresses in /sys/module/*/sections/* was not using the correct credentials to evaluate visibility. Before: # cat /sys/module/*/sections/.*text 0xffffffffc0458000 ... # capsh --drop=CAP_SYSLOG -- -c "cat /sys/module/*/sections/.*text" 0xffffffffc0458000 ... After: # cat /sys/module/*/sections/*.text 0xffffffffc0458000 ... # capsh --drop=CAP_SYSLOG -- -c "cat /sys/module/*/sections/.*text" 0x0000000000000000 ... Additionally replaces the existing (safe) /proc/modules check with file->f_cred for consistency. Reported-by: Dominik Czarnota <dominik.czarnota@trailofbits.com> Fixes: be71eda5383f ("module: Fix display of wrong module .text address") Cc: stable@vger.kernel.org Tested-by: Jessica Yu <jeyu@kernel.org> Acked-by: Jessica Yu <jeyu@kernel.org> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/livepatch/Kconfig')
0 files changed, 0 insertions, 0 deletions