summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.com>2024-09-12 16:19:06 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-09-13 07:53:52 +0200
commitb41c1fa155ba56d125885b0191aabaf3c508d0a3 (patch)
tree980b4d8640845f7864bd5089d264fb61c709369a /tools/perf/scripts/python
parent9ae0f262fc3f36c1f0b131c7017fbe75245a39df (diff)
USB: class: CDC-ACM: fix race between get_serial and set_serial
TIOCGSERIAL is an ioctl. Thus it must be atomic. It returns two values. Racing with set_serial it can return an inconsistent result. The mutex must be taken. In terms of logic the bug is as old as the driver. In terms of code it goes back to the conversion to the get_serial and set_serial methods. Signed-off-by: Oliver Neukum <oneukum@suse.com> Cc: stable <stable@kernel.org> Fixes: 99f75a1fcd865 ("cdc-acm: switch to ->[sg]et_serial()") Link: https://lore.kernel.org/r/20240912141916.1044393-1-oneukum@suse.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions