Commit c7055c02 authored by Marcel Holtmann's avatar Marcel Holtmann Committed by Liu Jian
Browse files

Bluetooth: Move {min,max}_key_size debugfs into hci_debugfs_create_le

mainline inclusion
from mainline-v5.6-rc1
commit 18f81241
category: bugfix
bugzilla: 1https://gitee.com/src-openeuler/kernel/issues/I917MX
CVE: CVE-2024-24860

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=18f81241b74fb49d576c83fbbab9a0b6e3bb20d4



---------------------------

The debugfs entries for {min,max}_key_size are created during SMP
registration and thus it might lead to multiple attempts to create the
same entries. Avoid this by moving them to the LE controller init
section.

Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
Signed-off-by: default avatarLiu Jian <liujian56@huawei.com>

Conflicts:
	net/bluetooth/hci_debugfs.c
parent aaa8e73e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment