aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf_prog_linfo.c
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2021-05-18 08:39:39 +0000
committerTakashi Iwai <[email protected]>2021-05-19 14:25:57 +0000
commit05ca447630334c323c9e2b788b61133ab75d60d3 (patch)
tree94335e1abb5155c3e8f96c4919c8595c4e520177 /tools/lib/bpf/bpf_prog_linfo.c
parentALSA: dice: fix stream format for TC Electronic Konnekt Live at high sampling... (diff)
downloadkernel-05ca447630334c323c9e2b788b61133ab75d60d3.tar.gz
kernel-05ca447630334c323c9e2b788b61133ab75d60d3.zip
ALSA: line6: Fix racy initialization of LINE6 MIDI
The initialization of MIDI devices that are found on some LINE6 drivers are currently done in a racy way; namely, the MIDI buffer instance is allocated and initialized in each private_init callback while the communication with the interface is already started via line6_init_cap_control() call before that point. This may lead to Oops in line6_data_received() when a spurious event is received, as reported by syzkaller. This patch moves the MIDI initialization to line6_init_cap_control() as well instead of the too-lately-called private_init for avoiding the race. Also this reduces slightly more lines, so it's a win-win change. Reported-by: [email protected] Link: https://lore.kernel.org/r/[email protected] Link: https://lore.kernel.org/r/20210517132725.GA50495@hyeyoo Cc: Hyeonggon Yoo <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/lib/bpf/bpf_prog_linfo.c')
0 files changed, 0 insertions, 0 deletions