Re: [PATCH v2] man/man2/clone.2: Use munmap() to free child stack

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Chen,

On Tue, Feb 04, 2025 at 12:13:02AM +0800, Chen Linxuan wrote:
> > This is too complex for an example program.  A goto alternative might be
> > easier.
> 
> I am agree, but I couldn't figure out a simple way to implement this.
> Do you have any suggestion?

I have applied a patch adding the munmap(2) call after the error
handling of clone(2).  It wasn't worth trying something complex here,
IMO.
<https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=00b0a007208d8bbbde0caff15f7bf95dc4e03319>

Thanks the report and the suggested patches!


Have a lovely night!
Alex

-- 
<https://www.alejandro-colomar.es/>

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux