-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
Somewhat similar to the previous fix, but specifically tailored for ALTQ and not generally hogging system resources...
- Loading branch information
There are no files selected for viewing
11 comments
on commit 6cec108
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/freebsd/freebsd/blob/stable/10/sys/netpfil/pf/pf.c#L6295-6299 sets drop, but dereferences unconditionally below... pew pew pew
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@opntr I didn't look for the STABLE patch until I patched this so I don't have REASON_SET() in there. A mix of both patches (really only the the else condition) should be added to STABLE. I can patch this if on top of HardenedBSD 10-STABLE if you want?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm mostly fine what the current the current status is, but the REASON_SET() is not mandatory? What affect when this set to foo or not set to foo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw, I've added you to our contributors group, this means you have access to our playground repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw, do you notified the FreeBSD about this issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@opntr nope, FreeBSD isn't in the loop yet. I've cooked up a patch for all the spots that have this sloppy behaviour: HardenedBSD/hardenedBSD-playground@6c36a04 (for 10-STABLE)
how do we get this upstream?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please create a FreeBSD bugzilla account? I like to add you to CC list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc'ed myself, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good, thanks!
I'm not familiar with pf's code, but the REASON_SET(&reason, PFRES_MEMORY) was not missing from this patch here?