commit | dec79e295bcf50dd3e765e5093d79791fdd143b4 | [log] [tgz] |
---|---|---|
author | Kyle Swenson <kyle.swenson@est.tech> | Tue May 18 15:05:45 2021 -0600 |
committer | Kyle Swenson <kyle.swenson@est.tech> | Wed Mar 13 09:12:22 2024 -0600 |
tree | 279bbf7c3ca3840453e779a7fce64469eeda32cb | |
parent | f3539a63a880621b9532ca3a45ee253ce1e40f7c [diff] |
pse: fix slab-out-of-bounds read of size 1 KASAN reported a slab-out-of-bound read of size 1 when userspace wrote the port priority to /sys/class/pse/port_priority. This patch fixes the out-of-bound read as well makes the interface a little more robust against invalid input. Change-Id: I1982eda1b74f81cb54c60b872c10a350381e9c32