FreeBSD Bugzilla – Attachment 205179 Details for
Bug 238661
mpt: print req->index rather than the pointer itself in mpt.c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
The patch file
0001-mpt-print-req-index-rather-than-the-pointer-itself-i.patch (text/plain), 1.02 KB, created by
Fuqian
on 2019-06-17 11:31:27 UTC
(
hide
)
Description:
The patch file
Filename:
MIME Type:
Creator:
Fuqian
Created:
2019-06-17 11:31:27 UTC
Size:
1.02 KB
patch
obsolete
>From 9022b12d512a0396b45703959b8d442a07a71d2d Mon Sep 17 00:00:00 2001 >From: Fuqian Huang <huangfq.daxian@gmail.com> >Date: Mon, 17 Jun 2019 18:29:56 +0800 >Subject: [PATCH] mpt: print req->index rather than the pointer itself in mpt.c > >Print req->index instead of printing the pointer itself to >avoid kernel pointer leakage. > >Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com> >--- > sys/dev/mpt/mpt.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/sys/dev/mpt/mpt.c b/sys/dev/mpt/mpt.c >index 6e41ff079e9..6ea00fc8bb1 100644 >--- a/sys/dev/mpt/mpt.c >+++ b/sys/dev/mpt/mpt.c >@@ -488,8 +488,8 @@ mpt_default_reply_handler(struct mpt_softc *mpt, request_t *req, > { > > mpt_prt(mpt, >- "Default Handler Called: req=%p:%u reply_descriptor=%x frame=%p\n", >- req, req->serno, reply_desc, reply_frame); >+ "Default Handler Called: req=%u:%u reply_descriptor=%x frame=%p\n", >+ req->index, req->serno, reply_desc, reply_frame); > > if (reply_frame != NULL) > mpt_dump_reply_frame(mpt, reply_frame); >-- >2.11.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 238661
: 205179