lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240830102153.408675-1-Yibin.Ding@unisoc.com>
Date: Fri, 30 Aug 2024 18:21:53 +0800
From: Yibin Ding <Yibin.Ding@...soc.com>
To: <djakov@...nel.org>, <gregkh@...uxfoundation.org>, <rafael@...nel.org>
CC: <yibin.ding01@...il.com>, <niuzhiguo84@...il.com>,
        <linux-pm@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
        <Hao_hao.Wang@...soc.com>, <Ke.Wang@...soc.com>
Subject: [PATCH 0/2] Added debugfs node initialization and null pointer detection.

From: Yibin Ding <Yibin.ding@...soc.com>

The two debugfs nodes (/sys/kernel/debug/interconnect/test_client/dst_node,
src_node) do not initialize the character pointers before creation. For
such uninitialized nodes, direct access will cause a crash due to accessing
a null pointer.
For example, directly execute the following command after booting:
    cat /sys/kernel/debug/interconnect/test_client/dst_node.

Therefore, for the problem nodes, it is necessary to add initialization
operations and null pointer detection when accessing.

Yibin Ding (2):
  interconnect: Add character pointer initialization
  debugfs: Fix crash problem caused by accessing uninitialized nodes

 drivers/interconnect/debugfs-client.c | 10 ++++++++--
 fs/debugfs/file.c                     |  4 ++++
 2 files changed, 12 insertions(+), 2 deletions(-)

-- 
2.25.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ