From: Yue Haibing <yuehaibing@huawei.com>
To: Kuniyuki Iwashima <kuniyu@google.com>
Cc: <davem@davemloft.net>, <edumazet@google.com>, <horms@kernel.org>,
<kuba@kernel.org>, <linux-kernel@vger.kernel.org>,
<netdev@vger.kernel.org>, <pabeni@redhat.com>
Subject: Re: [PATCH] atm: clip: Fix NULL pointer dereference in vcc_sendmsg()
Date: Fri, 4 Jul 2025 15:54:58 +0800 [thread overview]
Message-ID: <d1bb9101-f826-4d79-a74d-dabcbcac351d@huawei.com> (raw)
In-Reply-To: <20250704065353.1621693-1-kuniyu@google.com>
On 2025/7/4 14:53, Kuniyuki Iwashima wrote:
> Please specify 'net' in subject:
>
> [PATCH net v2] atm: clip: ...
>
> From: Yue Haibing <yuehaibing@huawei.com>
> Date: Fri, 4 Jul 2025 10:39:14 +0800
[...]
>> as above.
>
> Please move commit message before the splat.
ok
>
>
>>
>> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
>> Reported-by: syzbot+e34e5e6b5eddb0014def@syzkaller.appspotmail.com
>> Closes: https://lore.kernel.org/all/682f82d5.a70a0220.1765ec.0143.GAE@google.com/T
>> Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
>> ---
>> net/atm/clip.c | 9 ++++++++-
>> 1 file changed, 8 insertions(+), 1 deletion(-)
>>
>> diff --git a/net/atm/clip.c b/net/atm/clip.c
>> index b234dc3bcb0d..c02ba9d64bc3 100644
>> --- a/net/atm/clip.c
>> +++ b/net/atm/clip.c
>> @@ -616,8 +616,15 @@ static void atmarpd_close(struct atm_vcc *vcc)
>> module_put(THIS_MODULE);
>> }
>>
>> +static int atmarpd_send(struct atm_vcc *vcc, struct sk_buff *skb)
>> +{
>> + dev_kfree_skb_any(skb);
>
> This is not enough, see:
Thanks, will check this and rework.
> commit 7851263998d4269125fd6cb3fdbfc7c6db853859
> Author: Kuniyuki Iwashima <kuniyu@google.com>
> Date: Mon Jun 16 18:21:15 2025
>
> atm: Revert atm_account_tx() if copy_from_iter_full() fails.
>
>
>> + return 0;
>> +}
>> +
>> static const struct atmdev_ops atmarpd_dev_ops = {
>> - .close = atmarpd_close
>> + .close = atmarpd_close,
>> + .send = atmarpd_send
>> };
>>
>>
>> --
>> 2.34.1
prev parent reply other threads:[~2025-07-04 7:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-04 2:39 Yue Haibing
2025-07-04 6:53 ` Kuniyuki Iwashima
2025-07-04 7:54 ` Yue Haibing [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=d1bb9101-f826-4d79-a74d-dabcbcac351d@huawei.com \
--to=yuehaibing@huawei.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=kuniyu@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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
all inboxes | Powered by JetHome®