CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]  2023/07/04 08:23:38

Modified files:
        sys/net        : pf_ioctl.c 

Log message:
This diff limits the number of transactions/tickets
pf_open_trans() can issue for each clone of /dev/pf
to 512. The pf_open_trans() is currently being used
by DIOCGETRULES ioctl(2). The limit avoids processes
to consume all kernel memory by asking DIOCGETRULES
for more tickets. If DIOCGETRULES hits the limit, then
the application will see EBUSY error.

This diff was fine tuned with feedback from cluadio@,
deraadt@ and kn@.

OK kn@

Reply via email to