🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by Jakub Kicinski Thu, 19 Nov 2026 02:16
Re: [PATCH net v2] ptp: vmclock: keep the device state until the last file is closed
#18903
Author: Jakub Kicinski
Date: Thu, 19 Nov 2026 02:16
15 lines
8512 bytes
On Thu, 12 Nov 2026 16:15:27 +0000 Chad Aldreda wrote:
> vmclock_probe() allocates struct vmclock_state with devm_kzalloc() and
> maps the shared page with devm_memremap(), so both are released when
> the driver is unbound, but an open /dev/vmclockN keeps using them
> through its file state. After an unbind, read() runs on the freed
> struct and reads through the released mapping, and a poll() in
> progress sleeps on a wait queue in the freed struct. KASAN reports a
> slab-use-after-free in vmclock_miscdev_read(). In testing, the same
> read() faulted on the unmapped page once the device had been bound
> again.

this patch needs a rebase after recent mass rename of kmalloc
-- 
pw-bot: cr
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads