1. 09 8月, 2006 2 次提交
  2. 08 8月, 2006 6 次提交
  3. 06 8月, 2006 2 次提交
    • N
      [PATCH] knfsd: fix race related problem when adding items to and svcrpc auth cache · 2f34931f
      Neil Brown 提交于
      If we don't find the item we are lookng for, we allocate a new one, and
      then grab the lock again and search to see if it has been added while we
      did the alloc.  If it had been added we need to 'cache_put' the newly
      created item that we are never going to use.  But as it hasn't been
      initialised properly, putting it can cause an oops.
      
      So move the ->init call earlier to that it will always be fully initilised
      if we have to put it.
      
      Thanks to Philipp Matthias Hahn <pmhahn@svs.Informatik.Uni-Oldenburg.de>
      for reporting the problem.
      Signed-off-by: NNeil Brown <neilb@suse.de>
      Cc: <stable@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      2f34931f
    • D
      [LAPB]: Fix windowsize check · 558e10a5
      Diego Calleja 提交于
      In bug #6954, Norbert Reinartz reported the following issue:
      
      "Function lapb_setparms() in file net/lapb/lapb_iface.c checks if the given
      parameters are valid. If the given window size is in the range of 8 .. 127,
      lapb_setparms() fails and returns an error value of LAPB_INVALUE, even if bit
      LAPB_EXTENDED in parms->mode is set.
      If bit LAPB_EXTENDED in parms->mode is set and the window size is in the range
      of 8 .. 127, the first check "(parms->mode & LAPB_EXTENDED)" results true  and
      the second check "(parms->window < 1 || parms->window > 127)" results false.
      Both checks in conjunction result to false, thus the third check "(parms->window
      < 1 || parms->window > 7)" is done by fault.
      This third check results true, so that we leave lapb_setparms() by 'goto out_put'.
      Seems that this bug doesn't cause any problems, because lapb_setparms() isn't
      used to change the default values of LAPB. We are using kernel lapb in our
      software project and also change the default parameters of lapb, so we found
      this bug"
      
      He also pasted a fix, that I've transformated into a patch:
      Signed-off-by: NDiego Calleja <diegocg@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      558e10a5
  4. 05 8月, 2006 4 次提交
  5. 04 8月, 2006 2 次提交
  6. 03 8月, 2006 24 次提交