Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 101545f6 authored by Marcel Holtmann's avatar Marcel Holtmann
Browse files

Bluetooth: Fix potential bad memory access with sysfs files



When creating a high number of Bluetooth sockets (L2CAP, SCO
and RFCOMM) it is possible to scribble repeatedly on arbitrary
pages of memory. Ensure that the content of these sysfs files is
always less than one page. Even if this means truncating. The
files in question are scheduled to be moved over to debugfs in
the future anyway.

Based on initial patches from Neil Brown and Linus Torvalds

Reported-by: default avatarNeil Brown <neilb@suse.de>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent af984413
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment