* [PATCH] clockresource/npcm: Fix kernel pointer leak
@ 2021-09-29 11:04 ` Guo Zhi
0 siblings, 0 replies; 2+ messages in thread
From: Guo Zhi @ 2021-09-29 11:04 UTC (permalink / raw)
To: Avi Fishman, Tomer Maimon, Tali Perry, Patrick Venture,
Nancy Yuen, Benjamin Fair, Daniel Lezcano, Thomas Gleixner
Cc: Guo Zhi, openbmc, linux-kernel
Pointers should be printed with %p rather than %px
which printed kernel pointer directly.
Change %px to %p to print the secured pointer.
Signed-off-by: Guo Zhi <qtxuning1999@sjtu.edu.cn>
---
drivers/clocksource/timer-npcm7xx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clocksource/timer-npcm7xx.c b/drivers/clocksource/timer-npcm7xx.c
index a00520cbb660..bf477685d545 100644
--- a/drivers/clocksource/timer-npcm7xx.c
+++ b/drivers/clocksource/timer-npcm7xx.c
@@ -202,7 +202,7 @@ static int __init npcm7xx_timer_init(struct device_node *np)
npcm7xx_clocksource_init();
npcm7xx_clockevents_init();
- pr_info("Enabling NPCM7xx clocksource timer base: %px, IRQ: %d ",
+ pr_info("Enabling NPCM7xx clocksource timer base: %p, IRQ: %d ",
timer_of_base(&npcm7xx_to), timer_of_irq(&npcm7xx_to));
return 0;
--
2.33.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] clockresource/npcm: Fix kernel pointer leak
@ 2021-09-29 11:04 ` Guo Zhi
0 siblings, 0 replies; 2+ messages in thread
From: Guo Zhi @ 2021-09-29 11:04 UTC (permalink / raw)
To: Avi Fishman, Tomer Maimon, Tali Perry, Patrick Venture,
Nancy Yuen, Benjamin Fair, Daniel Lezcano, Thomas Gleixner
Cc: openbmc, Guo Zhi, linux-kernel
Pointers should be printed with %p rather than %px
which printed kernel pointer directly.
Change %px to %p to print the secured pointer.
Signed-off-by: Guo Zhi <qtxuning1999@sjtu.edu.cn>
---
drivers/clocksource/timer-npcm7xx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clocksource/timer-npcm7xx.c b/drivers/clocksource/timer-npcm7xx.c
index a00520cbb660..bf477685d545 100644
--- a/drivers/clocksource/timer-npcm7xx.c
+++ b/drivers/clocksource/timer-npcm7xx.c
@@ -202,7 +202,7 @@ static int __init npcm7xx_timer_init(struct device_node *np)
npcm7xx_clocksource_init();
npcm7xx_clockevents_init();
- pr_info("Enabling NPCM7xx clocksource timer base: %px, IRQ: %d ",
+ pr_info("Enabling NPCM7xx clocksource timer base: %p, IRQ: %d ",
timer_of_base(&npcm7xx_to), timer_of_irq(&npcm7xx_to));
return 0;
--
2.33.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-29 23:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-29 11:04 [PATCH] clockresource/npcm: Fix kernel pointer leak Guo Zhi
2021-09-29 11:04 ` Guo Zhi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.