Re: The memory occupied by bash has been increasing due to the fork bomb

2023-03-11 Thread zju
> 2023年3月11日 10:50,zju <21625...@zju.edu.cn> 写道: > > > >> 2023年3月11日 06:17,Chet Ramey > <mailto:chet.ra...@case.edu>> 写道: >> >> On 3/10/23 11:37 AM, zju wrote: >> >>> I have already set the maximum number of processes a

Re: The memory occupied by bash has been increasing due to the fork bomb

2023-03-10 Thread zju
> 2023年3月11日 06:17,Chet Ramey 写道: > > On 3/10/23 11:37 AM, zju wrote: > >> I have already set the maximum number of processes available to a single >> user "ulimit -Su”. >> But the memory occupied by bashes were increasing all the time which would >>

Re: The memory occupied by bash has been increasing due to the fork bomb

2023-03-10 Thread zju
>The Un*x convention has always been that SIGTERM kills the process but >the process can override that, and SIGKILL kills the process and the >process cannot override that. So if systemd isn't protecting the system >adequately with its current operation, it should instead send SIGKILL. As yuhang s

Re: The memory occupied by bash has been increasing due to the fork bomb

2023-03-10 Thread zju
> Interactive shells always ignore SIGTERM. I confirmed that the fork bomb through bash would cause the system oom! This indicates that anybody can use this flaw to crash the system.It is quite dangerous. If you think the behavior of ignoring the SIGTERM is reasonable. Maybe the only way to so