From: patchwork-bot+netdevbpf@kernel.org
To: Sabyrzhan Tasbolatov <snovitoll@gmail.com>
Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org,
syzbot+c2a7e5c5211605a90865@syzkaller.appspotmail.com
Subject: Re: [PATCH] net/qrtr: restrict user-controlled length in qrtr_tun_write_iter()
Date: Thu, 04 Feb 2021 00:40:06 +0000 [thread overview]
Message-ID: <161239920659.23511.13237805866635175575.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20210202092059.1361381-1-snovitoll@gmail.com>
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
On Tue, 2 Feb 2021 15:20:59 +0600 you wrote:
> syzbot found WARNING in qrtr_tun_write_iter [1] when write_iter length
> exceeds KMALLOC_MAX_SIZE causing order >= MAX_ORDER condition.
>
> Additionally, there is no check for 0 length write.
>
> [1]
> WARNING: mm/page_alloc.c:5011
> [..]
> Call Trace:
> alloc_pages_current+0x18c/0x2a0 mm/mempolicy.c:2267
> alloc_pages include/linux/gfp.h:547 [inline]
> kmalloc_order+0x2e/0xb0 mm/slab_common.c:837
> kmalloc_order_trace+0x14/0x120 mm/slab_common.c:853
> kmalloc include/linux/slab.h:557 [inline]
> kzalloc include/linux/slab.h:682 [inline]
> qrtr_tun_write_iter+0x8a/0x180 net/qrtr/tun.c:83
> call_write_iter include/linux/fs.h:1901 [inline]
>
> [...]
Here is the summary with links:
- net/qrtr: restrict user-controlled length in qrtr_tun_write_iter()
https://git.kernel.org/netdev/net/c/2a80c1581237
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
next prev parent reply other threads:[~2021-02-04 0:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-02 9:20 [PATCH] net/qrtr: restrict user-controlled length in qrtr_tun_write_iter() Sabyrzhan Tasbolatov
2021-02-04 0:28 ` Jakub Kicinski
2021-02-04 9:02 ` [PATCH] net/qrtr: replaced useless kzalloc with kmalloc " Sabyrzhan Tasbolatov
2021-02-04 18:51 ` Jakub Kicinski
2021-02-04 18:53 ` Jakub Kicinski
2021-02-04 0:40 ` patchwork-bot+netdevbpf [this message]
2021-02-12 11:51 ` [PATCH] net/qrtr: restrict user-controlled length " Eric Dumazet
2021-02-21 12:39 ` [PATCH] net/qrtr: restrict " Sabyrzhan Tasbolatov
2021-02-22 8:45 ` Eric Dumazet
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=161239920659.23511.13237805866635175575.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=davem@davemloft.net \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=snovitoll@gmail.com \
--cc=syzbot+c2a7e5c5211605a90865@syzkaller.appspotmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).