From: Sam Ravnborg <sam@ravnborg.org>
To: Xiyu Yang <xiyuyang19@fudan.edu.cn>
Cc: Xin Tan <tanxin.ctf@gmail.com>,
William Kucharski <william.kucharski@oracle.com>,
Arnd Bergmann <arnd@arndb.de>, Jason Gunthorpe <jgg@ziepe.ca>,
Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>,
Daniel Vetter <daniel.vetter@ffwll.ch>,
yuanxzhang@fudan.edu.cn,
"Gustavo A. R. Silva" <gustavoars@kernel.org>,
Matthew Wilcox <willy@infradead.org>,
linux-fbdev@vger.kernel.org,
George Kennedy <george.kennedy@oracle.com>,
dri-devel@lists.freedesktop.org,
Thomas Zimmermann <tzimmermann@suse.de>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] fbmem: Convert from atomic_t to refcount_t on fb_info->count
Date: Mon, 19 Jul 2021 22:19:50 +0200 [thread overview]
Message-ID: <YPXeZuMQtWwDdK52@ravnborg.org> (raw)
In-Reply-To: <1626674392-55857-1-git-send-email-xiyuyang19@fudan.edu.cn>
Hi Xiyu, Xin,
On Mon, Jul 19, 2021 at 01:59:45PM +0800, Xiyu Yang wrote:
> refcount_t type and corresponding API can protect refcounters from
> accidental underflow and overflow and further use-after-free situations.
>
> Signed-off-by: Xiyu Yang <xiyuyang19@fudan.edu.cn>
> Signed-off-by: Xin Tan <tanxin.ctf@gmail.com>
Looks like a nice improvement, thanks.
Applied to drm-misc-next, it will appear in -next in a week or so.
Sam
prev parent reply other threads:[~2021-07-19 20:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-19 5:59 [PATCH] fbmem: Convert from atomic_t to refcount_t on fb_info->count Xiyu Yang
2021-07-19 20:19 ` Sam Ravnborg [this message]
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=YPXeZuMQtWwDdK52@ravnborg.org \
--to=sam@ravnborg.org \
--cc=arnd@arndb.de \
--cc=daniel.vetter@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=george.kennedy@oracle.com \
--cc=gustavoars@kernel.org \
--cc=jgg@ziepe.ca \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=penguin-kernel@i-love.sakura.ne.jp \
--cc=tanxin.ctf@gmail.com \
--cc=tzimmermann@suse.de \
--cc=william.kucharski@oracle.com \
--cc=willy@infradead.org \
--cc=xiyuyang19@fudan.edu.cn \
--cc=yuanxzhang@fudan.edu.cn \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox