lkml.org 
[lkml]   [2024]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: [syzbot] [sound?] INFO: rcu detected stall in snd_timer_user_release (3)
Date
On Mon, 29 Apr 2024 11:46:30 -0700
> syzbot found the following issue on:
>
> HEAD commit: e88c4cfcb7b8 Merge tag 'for-6.9-rc5-tag' of git://git.kern..
> git tree: upstream
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1039c208980000

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git e88c4cfcb7b8

--- x/sound/core/hrtimer.c
+++ y/sound/core/hrtimer.c
@@ -51,7 +51,8 @@ static enum hrtimer_restart snd_hrtimer_

guard(spinlock)(&t->lock);
if (t->running) {
- hrtimer_add_expires_ns(hrt, t->sticks * resolution);
+ hrtimer_set_expires(hrt, ktime_add(hrt->base->get_time(),
+ ns_to_ktime(NSEC_PER_USEC *200)));
ret = HRTIMER_RESTART;
}

--
\
 
 \ /
  Last update: 2024-05-27 18:08    [W:0.032 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site