From: syzbot <syzbot+cba1a1f459230395a076@syzkaller.appspotmail.com>
To: eadavis@sina.com
Cc: eadavis@sina.com, linux-kernel@vger.kernel.org,
syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [media?] [dri?] kernel BUG in sync_timeline_signal
Date: Wed, 04 Nov 2026 19:31:35 -0800 [thread overview]
Message-ID: <6aebf897.3487765f.14a015.0003.GAE@google.com> (raw)
In-Reply-To: <20261105033127.42105-1-eadavis@sina.com>
> From: Edward Aadm Davis <eadavis@sina.com>
>
> #syz test
"" does not look like a valid git branch or commit.
>
> diff --git a/include/linux/dma-fence.h b/include/linux/dma-fence.h
> index dd07d128adc3..4d885c8e1d4f 100644
> --- a/include/linux/dma-fence.h
> +++ b/include/linux/dma-fence.h
> @@ -320,8 +320,9 @@ static inline void dma_fence_put(struct dma_fence *fence)
> static inline struct dma_fence *dma_fence_get(struct dma_fence *fence)
> {
> if (fence)
> - kref_get(&fence->refcount);
> - return fence;
> + if (kref_get_unless_zero(&fence->refcount))
> + return fence;
> + return NULL;
> }
>
> /**
> diff --git a/drivers/dma-buf/sw_sync.c b/drivers/dma-buf/sw_sync.c
> index 8df20b0218a9..ad60ad5e5cd9 100644
> --- a/drivers/dma-buf/sw_sync.c
> +++ b/drivers/dma-buf/sw_sync.c
> @@ -221,7 +221,8 @@ static void sync_timeline_signal(struct sync_timeline *obj, unsigned int inc)
> if (!timeline_fence_signaled(&pt->base))
> break;
>
> - dma_fence_get(&pt->base);
> + if (!dma_fence_get(&pt->base))
> + continue;
>
> list_move_tail(&pt->link, &signalled);
> rb_erase(&pt->node, &obj->pt_tree);
next prev parent reply other threads:[~2026-11-05 3:31 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-04 6:38 [syzbot] [media?] [dri?] kernel BUG in sync_timeline_signal syzbot
2026-11-05 3:31 ` Edward Adam Davis
2026-11-05 3:31 ` syzbot [this message]
2026-11-05 3:34 ` Edward Adam Davis
2026-11-05 5:44 ` syzbot
2026-11-05 4:14 ` [PATCH] dma-buf/sw_sync: Optimize the retrieval of fence reference counts Edward Adam Davis
2026-11-05 4:30 ` sashiko-bot
2026-11-05 5:27 ` [PATCH v2] " Edward Adam Davis
2026-11-05 7:49 ` Philipp Stanner
2026-11-05 9:35 ` Edward Adam Davis
2026-11-05 11:21 ` Philipp Stanner
2026-11-05 10:03 ` Christian König
2026-11-05 12:37 ` Edward Adam Davis
2026-11-05 13:55 ` Danilo Krummrich
2026-11-05 14:14 ` Christian König
2026-11-05 9:53 ` [PATCH] " Christian König
2026-11-05 5:16 ` [syzbot] [media?] [dri?] kernel BUG in sync_timeline_signal Edward Adam Davis
2026-11-05 5:58 ` syzbot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6aebf897.3487765f.14a015.0003.GAE@google.com \
--to=syzbot+cba1a1f459230395a076@syzkaller.appspotmail.com \
--cc=eadavis@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzkaller-bugs@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.