Log, or optionally panic, on zero-length kmem allocations
Joyent bug OS-4297 implements a tracking of zero-length kmem allocations in the kernel. We generally want to discourage these.
Additional fixes to that are needed, and are filed-but-not-fixed as Joyent bug OS-8018. This upstream-it bug should contain both.
Updated by Dan McDonald 10 days ago
This is actually three SmartOS bugs, OS-4194 (initial change with cleanups), OS-8018 (not yet fixed), AND OS-4297 (reduction to log-only in DEBUG by default, vs. panic).
These fixes have been in SmartOS since August of 2015.
Author: Bryan Cantrill <email@example.com>
AuthorDate: Fri Jul 31 07:14:02 2015 +0000
Commit: Bryan Cantrill <firstname.lastname@example.org>
CommitDate: Fri Jul 31 07:14:02 2015 +0000
OS-4297 zero-sized allocations should be logged but not warned about