diff options
author | Jeremy Cline <jeremy@jcline.org> | 2018-03-21 05:45:41 -0700 |
---|---|---|
committer | Jeremy Cline <jeremy@jcline.org> | 2018-03-21 05:56:02 -0700 |
commit | 29d2089ad68fafdba485f814b8ce0dde5cf7c235 (patch) | |
tree | 8f422d0838142824cf945198cd31d63611ac50bf /floppy-Don-t-print-kernel-addresses-to-log-in-show_f.patch | |
parent | 842f170f35de359b0c58707f8afca29d63ff631e (diff) | |
download | kernel-29d2089ad68fafdba485f814b8ce0dde5cf7c235.tar.gz kernel-29d2089ad68fafdba485f814b8ce0dde5cf7c235.tar.xz kernel-29d2089ad68fafdba485f814b8ce0dde5cf7c235.zip |
Linux v4.16-rc6-75-g3215b9d57a2c
Diffstat (limited to 'floppy-Don-t-print-kernel-addresses-to-log-in-show_f.patch')
-rw-r--r-- | floppy-Don-t-print-kernel-addresses-to-log-in-show_f.patch | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/floppy-Don-t-print-kernel-addresses-to-log-in-show_f.patch b/floppy-Don-t-print-kernel-addresses-to-log-in-show_f.patch deleted file mode 100644 index 71cc04128..000000000 --- a/floppy-Don-t-print-kernel-addresses-to-log-in-show_f.patch +++ /dev/null @@ -1,43 +0,0 @@ -From b209bf23bc97b7758b9dc8f68d2a835295960226 Mon Sep 17 00:00:00 2001 -From: Brian Belleville <bbellevi@uci.edu> -Date: Tue, 20 Feb 2018 14:54:25 -0800 -Subject: [PATCH] floppy: Don't print kernel addresses to log in show_floppy - -Outputting kernel addresses will reveal the locations of kernel code -and data. Change the cases in show_floppy that print -fd_timer.work.func and fd_timeout.work.func to use the %pf format -specifier, which will print the symbol name, like what is done for the -other function pointers printed by show_floppy. No longer output the -value of cont. The variable cont is a pointer that can hold the -address of kernel global variables. - -Signed-off-by: Brian Belleville <bbellevi@uci.edu> ---- - drivers/block/floppy.c | 5 ++--- - 1 file changed, 2 insertions(+), 3 deletions(-) - -diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c -index eae484acfbbc..e29d4174ea2c 100644 ---- a/drivers/block/floppy.c -+++ b/drivers/block/floppy.c -@@ -1819,15 +1819,14 @@ static void show_floppy(void) - if (work_pending(&floppy_work)) - pr_info("floppy_work.func=%pf\n", floppy_work.func); - if (delayed_work_pending(&fd_timer)) -- pr_info("delayed work.function=%p expires=%ld\n", -+ pr_info("delayed work.function=%pf expires=%ld\n", - fd_timer.work.func, - fd_timer.timer.expires - jiffies); - if (delayed_work_pending(&fd_timeout)) -- pr_info("timer_function=%p expires=%ld\n", -+ pr_info("timer_function=%pf expires=%ld\n", - fd_timeout.work.func, - fd_timeout.timer.expires - jiffies); - -- pr_info("cont=%p\n", cont); - pr_info("current_req=%p\n", current_req); - pr_info("command_status=%d\n", command_status); - pr_info("\n"); --- -2.16.2 - |