[lkml]   [2002]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Subject[PATCH] Fix for get_pid hang
    On Thu, 2002-03-07 at 16:11, Paul Larson wrote:
    > On Thu, 2002-03-07 at 14:45, Patrick O'Rourke wrote:
    > > It is possible on large memory systems that the default process limits
    > > can exceed PID_MAX. This will allow a non-root user to consume all pids
    > > resulting in the kernel to basically hang in get_pid().
    > >
    > > + /* don't let threads go beyond PID_MAX */
    > > + if (max_threads > PID_MAX) {
    > > + max_threads = PID_MAX;
    > > + }
    > > +
    > The problem with this approach is that it doesn't take into account
    > pgrp, tgids, etc... I submitted the following patch a couple of weeks
    > ago that fixes the problem a better way.
    > Thanks,
    > Paul Larson

    Marcelo, any chance of getting this accepted into the next 2.4.19-pre?
    It is obviously a bug that is afecting several others as well. I think
    the LSE team is looking at some performance enhancements to get_pid, but
    from what I've seen so far they will be working on top of this bug fix.
    I just verified that the patch still applies cleanly against

    Paul Larson

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:24    [W:0.022 / U:0.032 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site