-
Notifications
You must be signed in to change notification settings - Fork 3k
Comparing changes
Open a pull request
base repository: freebsd/freebsd-src
base: master
head repository: rlibby/freebsd
compare: mnowait-dbg
- 9 commits
- 11 files changed
- 1 contributor
Commits on Jun 22, 2019
-
malloc/zalloc M_NOWAIT failure injection
The MALLOC_MAKE_FAILURES kernel option could be used to inject failures for malloc(9) allocations which use the M_NOWAIT flag. This is an expansion and enhancement. - Failures may now be injected for UMA zalloc instead of just malloc. - A fail(9) fail_point now controls injection instead of an ad hoc rate mechanism. - A whitelist and blacklist now allow specific malloc type and UMA zone names to be targeted or avoided. - Details about the last injection are now recorded to aid debugging. This currently still lacks a manual page and the option is not yet enabled in any kernel configurations. Reviewers: markj, rwatson Subscribers: glebius, jeff Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D20714
Configuration menu - View commit details
-
Copy full SHA for 246c314 - Browse repository at this point
Copy the full SHA 246c314View commit details
Commits on Jun 24, 2019
-
uma: trash memory when ctor/dtor supplied too
On INVARIANTS kernels, UMA has a use-after-free detection mechanism. This mechanism previously required that all of the ctor/dtor/uminit/fini arguments to uma_zcreate() be NULL in order to function. Now, it only requires that uminit and fini be NULL; now, the trash ctor and dtor will be called in addition to any supplied ctor or dtor. Also do a little refactoring for readability of the resulting logic. This enables use-after-free detection for more zones, and will allow for simplification of some callers that worked around the previous restriction (see kern_mbuf.c). Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D20722
Configuration menu - View commit details
-
Copy full SHA for bbbe967 - Browse repository at this point
Copy the full SHA bbbe967View commit details -
igmp: solve M_NOWAIT softc allocation failure
The igmp_ifsoftc allocation was done with M_NOWAIT, but it did not handle failure. It may have trapped immediately, or at detach time. Actually, the allocation does not appear to need to be M_NOWAIT at all, except for that it was being done under a mutex. Instead, do an M_WAITOK allocation outside the mutex. Sponsored by: Dell EMC Isilon Reviewers: glebius Subscribers: mmacy
Configuration menu - View commit details
-
Copy full SHA for af64ef3 - Browse repository at this point
Copy the full SHA af64ef3View commit details -
mld6: solve M_NOWAIT softc allocation failure
Apply the igmp fix to mld6. Sponsored by: Dell EMC Isilon Reviewers: glebius Subscribers: mmacy
Configuration menu - View commit details
-
Copy full SHA for 76efcf9 - Browse repository at this point
Copy the full SHA 76efcf9View commit details -
in6_joingroup_locked: need if_addr_lock around in6m_disconnect_locked
It looks like the call that requires the lock was introduced in r337866. Sponsored by: Dell EMC Isilon Reviewers: glebius Subscribers: mmacy, shurd
Configuration menu - View commit details
-
Copy full SHA for 457c26b - Browse repository at this point
Copy the full SHA 457c26bView commit details -
in_mcast.c: need if_addr_lock around inm_release_deferred
Apply a similar fix as for in6_mcast.c. Sponsored by: Dell EMC Isilon Reviewers: glebius Subscribers: mmacy, shurd
Configuration menu - View commit details
-
Copy full SHA for 0eb064b - Browse repository at this point
Copy the full SHA 0eb064bView commit details -
netipsec key_register: check for M_NOWAIT alloc failure
Sponsored by: Dell EMC Isilon Reviewers: ae Subscribers: cem
Configuration menu - View commit details
-
Copy full SHA for 11e6957 - Browse repository at this point
Copy the full SHA 11e6957View commit details -
g_eli_create: only dec g_access acw if we inc'd it
Sponsored by: Dell EMC Isilon Reviewers: pjd Subscribers: ae, cem, markj
Configuration menu - View commit details
-
Copy full SHA for 31c8091 - Browse repository at this point
Copy the full SHA 31c8091View commit details -
g_mirror_taste: avoid deadlock, always clear tasting flag
If g_mirror_taste encountered an error at g_mirror_add_disk, it might try to g_mirror_destroy the device with the G_MIRROR_DEVICE_FLAG_TASTING flag still set. This would wait on a worker to complete the destruction with g_mirror_try_destroy, but that function bails out if the tasting flag is set, resulting in a deadlock. Clear the tasting flag before trying to destroy the device. Tested with: sysctl debug.fail_point.mnowait="1%return" kyua test -k /usr/tests/sys/geom/class/mirror/Kyuafile Sponsored by: Dell EMC Isilon Reviewers: markj, pjd Subscribers: ae, cem
Configuration menu - View commit details
-
Copy full SHA for a29e8fb - Browse repository at this point
Copy the full SHA a29e8fbView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...mnowait-dbg