aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2024-08-05 15:01:28 +0200
committerTakashi Iwai <[email protected]>2024-08-05 15:03:03 +0200
commit15b7a03205b31bc5623378c190d22b7ff60026f1 (patch)
tree5c200455693b47ee319ff706404ff0d98c4bdcfe /lib/test_fortify/write_overflow-strncpy-src.c
parent312c04cee408a8448ec8b639fe7f0434017d7161 (diff)
ALSA: line6: Fix racy access to midibuf
There can be concurrent accesses to line6 midibuf from both the URB completion callback and the rawmidi API access. This could be a cause of KMSAN warning triggered by syzkaller below (so put as reported-by here). This patch protects the midibuf call of the former code path with a spinlock for avoiding the possible races. Reported-by: [email protected] Closes: https://lore.kernel.org/[email protected] Cc: <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions