NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/60037: Const data storage type in npf reads unmapped memory



The following reply was made to PR bin/60037; it has been noted by GNATS.

From: Emmanuel Nyarko <emmankoko519%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: gnats-admin%netbsd.org@localhost,
 netbsd-bugs%netbsd.org@localhost
Subject: Re: bin/60037: Const data storage type in npf reads unmapped memory
Date: Wed, 25 Feb 2026 11:53:45 +0000

 Hi,
 
 Hi, your patch looks good. what was actually happening was that thhe =
 content of the memory-mapped file wasn't sent for serialization  by the =
 malloc'ed buffer and so the cdbr fails with EINVAL and returned NULL. =
 (probably due to size of buffer). copying to make sure the contents of =
 the of the file are sent to kernel by buffer is the right thing to do. =
 looks fine to be committed and request pullup to 10 and 11 i guess.
 
 
 
 A scoffer seeks wisdom in vain, but knowledge is easy for a man of =
 understanding.
 Emmanuel
 
 
 
 
 


Home | Main Index | Thread Index | Old Index