NetBSD-Bugs archive

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

PR/59412 CVS commit: src/sys



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

From: "Manuel Bouyer" <bouyer%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/59412 CVS commit: src/sys
Date: Mon, 19 May 2025 15:34:35 +0000

 Module Name:	src
 Committed By:	bouyer
 Date:		Mon May 19 15:34:35 UTC 2025
 
 Modified Files:
 	src/sys/sys: spl.h
 	src/sys/uvm: uvm_pdpolicy_clock.c
 
 Log Message:
 uvmpdpol_pagerealize(): ucpu->pdqhead is used by a single CPU; but
 kpreempt_disable() isn't enough to guard against concurent access;
 interrupts also need to be disabled.
 If my analysis is correct, the only place using ucpu->pdqhead which
 can be called from interrupt context it uvmpdpol_pagerealize(), and only
 from softbio().
 So:
 - introduce splsoftbio() in sys/spl.h
 - protect all accesses to ucpu->pdqhead with splsoftbio()
 
 fixes pr kern/59412: uvmpdpol_pagerealize() queue index out of bound
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.10 -r1.11 src/sys/sys/spl.h
 cvs rdiff -u -r1.40 -r1.41 src/sys/uvm/uvm_pdpolicy_clock.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index