summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2024-05-14 21:27:36 +0300
committerTakashi Iwai <tiwai@suse.de>2024-05-16 17:00:08 +0300
commit4a63bd179fa8d3fcc44a0d9d71d941ddd62f0c4e (patch)
treebcad0f5fa5268550dad3f171fd1790921c5b68ac /samples
parentd731b1ed15052580b7b2f40559021012d280f1d9 (diff)
downloadlinux-4a63bd179fa8d3fcc44a0d9d71d941ddd62f0c4e.tar.xz
ALSA: timer: Set lower bound of start tick time
Currently ALSA timer doesn't have the lower limit of the start tick time, and it allows a very small size, e.g. 1 tick with 1ns resolution for hrtimer. Such a situation may lead to an unexpected RCU stall, where the callback repeatedly queuing the expire update, as reported by fuzzer. This patch introduces a sanity check of the timer start tick time, so that the system returns an error when a too small start size is set. As of this patch, the lower limit is hard-coded to 100us, which is small enough but can still work somehow. Reported-by: syzbot+43120c2af6ca2938cc38@syzkaller.appspotmail.com Closes: https://lore.kernel.org/r/000000000000fa00a1061740ab6d@google.com Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20240514182745.4015-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions