Created attachment 205162 [details] The patch file There is no need to print the address of ifp every time when calling netmap_mem_pt_guest_ifp_del. This will leak the address of ifp to user space.
Hi Fuqian, Before you spend much more time on this effort, FreeBSD does not use KASLR; kernel pointer disclosures are widespread in FreeBSD and generally not considered a problem.
A commit references this bug: Author: vmaffione Date: Thu Jul 4 21:31:50 UTC 2019 New revision: 349753 URL: https://svnweb.freebsd.org/changeset/base/349753 Log: netmap: Remove pointer leakage in netmap_mem2.c PR: 238641 Submitted by: Fuqian Huang <huangfq.daxian@gmail.com> Reviewed by: vmaffione MFC after: 1 week Changes: head/sys/dev/netmap/netmap_mem2.c
Reopen pending MFC
A commit references this bug: Author: vmaffione Date: Thu Jul 11 20:15:00 UTC 2019 New revision: 349921 URL: https://svnweb.freebsd.org/changeset/base/349921 Log: MFC r349753 netmap: Remove pointer leakage in netmap_mem2.c PR: 238641 Submitted by: Fuqian Huang <huangfq.daxian@gmail.com> Reviewed by: vmaffione Changes: _U stable/12/ stable/12/sys/dev/netmap/netmap_mem2.c
@Vincenzo Is stable/11 affected by this? If not, set mfc-stable11 to -, otherwise we'll leave this open pending that MFC
stable/11 will have no more releases and this bug isn't.