1. 07 Aug, 2004 4 commits
    • Andrew Morton's avatar
      [PATCH] jbd: journal_head unmapping race fix · 9d294bd8
      Andrew Morton authored
      Fix a race identified by Chris Mason <mason@suse.com>
      
      journal_unmap_buffer -> __dispose_buffers has the j_list_lock and the
      jbd_lock_bh_state held.
      
      journal_get_write_access calls journal_put_journal_head, which takes
      jbd_lock_bh_journal_head(bh) and doesn't seem to have any other locks held.
      
      Since journal_unmap_buffers trusts the buffer_jbd bit to see if we need to
      call __dispose_buffer, and nobody seems to test buffer_jbd after taking
      jbd_lock_bh_journal_head.  The kernel dereferences a null jh pointer in
      __journal_remove_journal_head.
      
      
      The patch fixes this by using journal_grab_journal_head() in
      journal_unmap_buffer().  It ensures that we either grab and pin the
      journal_head if the bh has one, or we bale out if the bh doesn't have a
      journal_head.
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      9d294bd8
    • Paul Mackerras's avatar
      [PATCH] Restore PPP filtering · aa524be4
      Paul Mackerras authored
      Karsten Keil's patch entitled "[ISDN]: Fix kernel PPP/IPPP active/passiv
      filter code" that went in back in April was an attempt to solve a real
      problem - namely that the libpcap maintainers have removed useful
      functionality that pppd was using - but his fix broke existing pppd
      binaries and IMO didn't end up actually solving the problem.
      
      This patch reverts the change to ppp_generic.c so that existing pppd
      binaries work again.  I am going to have to work out a proper fix, which
      may involve further changes to ppp_generic.c, but I will make sure existing
      pppd binaries still work.
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      aa524be4
    • Sam Ravnborg's avatar
      [PATCH] kbuild: Remove LANG preset in top-level Makefile · c279ca27
      Sam Ravnborg authored
      In the top-level Makefile a number of locale related environment
      variables were preset to give a small speed up when building the kernel.
      
      Unfortunately this had the bad sideeffect that the variable
      CFLAGS_vmlinux.lds.o lost the exported vaule in some setups (obviously
      not mine).  This smells like a make issue - but the best solution is
      simply to drop presetting the locale related variables.
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      c279ca27
    • Linus Torvalds's avatar
      Add infrastructure for the VFS layer to mark files seekable. · 4a47ae69
      Linus Torvalds authored
      We use a FMODE_LSEEK flag to match the existing read/write
      bits. This allows us to check for seekability on a VFS level
      for lseek/pread/pwrite, and cleans things up.
      
      Update some sites that used the numeric constants to use 
      the symbolic values instead.
      4a47ae69
  2. 06 Aug, 2004 14 commits
  3. 05 Aug, 2004 22 commits