diff options
| author | Qingyu Zhang <usupergate@gmail.com> | 2026-09-02 15:39:18 +0800 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-09-02 11:10:49 +0200 |
| commit | adeee7187694719890aaffdc14b7e89cfd736f1d (patch) | |
| tree | 776c1e24e4049e2a410a09d1e367bff802919ccb /scripts/Makefile.thinlto | |
| parent | 82cfab6a52621febf36752bd5ed5184f82c96e07 (diff) | |
| download | linux-adeee7187694719890aaffdc14b7e89cfd736f1d.tar.gz linux-adeee7187694719890aaffdc14b7e89cfd736f1d.zip | |
ALSA: ump: do not touch legacy_rmidi before it exists
snd_ump_parse_endpoint() sets ump->parsed on every exit, including
error, before the caller attaches the legacy rawmidi device.
ump_handle_ep_name_msg() then treats parsed as "legacy_rmidi is live"
and calls ump_legacy_set_rawmidi_name(), which snprintf()s into
ump->legacy_rmidi->name. If a UMP packet arrives in that window
(IRQ path from snd_ump_receive), legacy_rmidi is still NULL
(KASAN null-ptr-deref in snprintf).
Guard the legacy helpers. parsed only means endpoint info was
parsed, not that legacy_rmidi exists.
Fixes: 37e0e14128e0 ("ALSA: ump: Support UMP Endpoint and Function Block parsing")
Signed-off-by: Qingyu Zhang <usupergate@gmail.com>
Link: https://patch.msgid.link/20260902073918.880245-1-usupergate@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
