aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/timer.c
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2022-07-28 12:59:42 +0000
committerTakashi Iwai <[email protected]>2022-07-29 10:57:10 +0000
commitef34a0ae7a2654bc9e58675e36898217fb2799d8 (patch)
tree3444d3d9264ced511f8378bf656b276fe800cc97 /sound/core/timer.c
parentACPI: scan: Add CLSA0101 Laptop Support (diff)
downloadkernel-ef34a0ae7a2654bc9e58675e36898217fb2799d8.tar.gz
kernel-ef34a0ae7a2654bc9e58675e36898217fb2799d8.zip
ALSA: core: Add async signal helpers
Currently the call of kill_fasync() from an interrupt handler might lead to potential spin deadlocks, as spotted by syzkaller. Unfortunately, it's not so trivial to fix this lock chain as it's involved with the tasklist_lock that is touched in allover places. As a temporary workaround, this patch provides the way to defer the async signal notification in a work. The new helper functions, snd_fasync_helper() and snd_kill_faync() are replacements for fasync_helper() and kill_fasync(), respectively. In addition, snd_fasync_free() needs to be called at the destructor of the relevant file object. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'sound/core/timer.c')
0 files changed, 0 insertions, 0 deletions