Page MenuHomeFreeBSD

vm_map_growstack(): give a hint to user that stack was blown out
ClosedPublic

Authored by kib on May 6 2026, 10:56 PM.
Tags
None
Referenced Files
F159894554: D56863.diff
Fri, Jun 19, 5:25 AM
Unknown Object (File)
Mon, Jun 8, 10:00 AM
Unknown Object (File)
Thu, Jun 4, 9:12 AM
Unknown Object (File)
Thu, Jun 4, 9:08 AM
Unknown Object (File)
Thu, Jun 4, 2:38 AM
Unknown Object (File)
Thu, Jun 4, 2:30 AM
Unknown Object (File)
Wed, Jun 3, 11:10 PM
Unknown Object (File)
Wed, Jun 3, 11:05 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib requested review of this revision.May 6 2026, 10:56 PM

RACCT cases are excluded for the reason, they are self-inflicted.

sys/vm/vm_map.c
4801

Is it worth including the thread ID too?

kib marked an inline comment as done.May 7 2026, 4:02 PM
kib added inline comments.
sys/vm/vm_map.c
4801

I thought about that, and eventually decided not to, because usually the program is killed. But since you asked, lets add it.

kib marked an inline comment as done.

Print tid.
Consistently use a local variable instead of curproc.

This revision is now accepted and ready to land.May 7 2026, 4:13 PM
sys/vm/vm_map.c
4759

In the same vein as your second commit, this could use vm instead of spelling it out as p->p_vmspace.