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
F163040290: D56863.id177371.diff
Sun, Jul 19, 12:44 PM
Unknown Object (File)
Sat, Jul 18, 8:31 PM
Unknown Object (File)
Sat, Jul 18, 7:00 AM
Unknown Object (File)
Sat, Jul 18, 5:23 AM
Unknown Object (File)
Thu, Jul 16, 2:38 AM
Unknown Object (File)
Wed, Jul 15, 7:21 AM
Unknown Object (File)
Wed, Jul 15, 7:21 AM
Unknown Object (File)
Thu, Jul 9, 10:36 AM
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.