From 9977717380c8f570535c9a1a93471e5b6cd888b2 Mon Sep 17 00:00:00 2001 From: Liu Wei Date: Tue, 7 May 2024 11:40:37 +0800 Subject: [PATCH] anolis: block: use %px to print request in rq_hang ANBZ: #8947 In function blk_mq_debugfs_rq_hang_show, an incorrect format string when printing the request. "%p" is plain pointer, which is hashed to prevent leaking information about the kernel memory layout, so change it to "%px" Signed-off-by: Liu Wei --- block/blk-mq-debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index 271535f56bd2..f42314c86377 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -354,7 +354,7 @@ static void blk_mq_debugfs_rq_hang_show(struct seq_file *m, struct request *rq) struct bio_vec *bvec; struct bvec_iter_all iter_all; - seq_printf(m, "%p {.op=", rq); + seq_printf(m, "%px {.op=", rq); if (strcmp(op_str, "UNKNOWN") == 0) seq_printf(m, "%u", op); else -- Gitee