Skip to contentSkip to conversation

memory leak in vhost_net_ioctl

DISCUSSION Hillf Danton 2 participants 2 messages Jun 13, 2019

Subsystems (5)
Networking Network drivers KVM BPF +1 more subsystems
lore
Share & tools
lore
#0 lore raw

Hello Jason

Quoted 4 lines · On Thu, 13 Jun 2019 17:10:39 +0800 Jason Wang wrote:

This is basically a kfree(ubuf) after the second vhost_net_flush() in vhost_net_release().

Fairly good catch.

Quoted 2 lines

Could you please post a formal patch?

I'd like very much to do that; but I wont, I am afraid, until I collect a Tested-by because of reproducer without a cutting edge.

Thanks
Hillf

#1 lore raw
Quoted 9 lines · Hillf Danton

Hello Jason

Quoted 4 lines · On Thu, 13 Jun 2019 17:10:39 +0800 Jason Wang wrote:

This is basically a kfree(ubuf) after the second vhost_net_flush() in vhost_net_release().

Quoted 6 lines

Fairly good catch.

Quoted 2 lines

Could you please post a formal patch?

I'd like very much to do that; but I wont, I am afraid, until I collect a Tested-by because of reproducer without a cutting edge.

You can easily collect Tested-by from syzbot for any bug with a reproducer ;)
https://github.com/google/syzkaller/blob/master/docs/syzbot.md#testing-patches