1. 25 Sep, 2003 3 commits
    • Linus Torvalds's avatar
      DRI CVS merge: portability defines · 2a98ed00
      Linus Torvalds authored
      They are fairly ugly, but this will make it easier to merge
      DRI in the future by minimizing unnecessary differences. 
      2a98ed00
    • Linus Torvalds's avatar
      DRI CVS merge: SiS driver updates from Eric Anholt. · b4b6051a
      Linus Torvalds authored
      Major whitespace cleanups and fix a potential oops.
      
      The driver can now run with or without FB support.
      b4b6051a
    • Roland McGrath's avatar
      [PATCH] PROT_GROWSDOWN/PROT_GROWSUP flags for mprotect · c1dd5958
      Roland McGrath authored
      There is currently no clean and efficient way to apply mprotect to all of a
      program's stack, i.e. to the moving edge of a GROWSDOWN or GROWSUP mapping.
      Some processes want to change these protections, particularly to set or
      clear the PROT_EXEC bits on stack space.  As it is, an mprotect done to
      cover the precise edge page of the mapping will have the desired effect of
      changing the protection for existing pages and having that new protection
      carried over to new pages grown later.  But there is no very reasonable way
      of ascertaining where the edge of the mapping is if it might have grown in
      the past beyond the usage at the moment.  An mprotect call that doesn't
      cover the edge page splits the mapping and doesn't do what we need.
      
      This patch adds flags that can be OR'd into the protection bits in an
      mprotect system call.  PROT_GROWSDOWN means the memory lies in a GROWSDOWN
      mapping and the start address of the region to be changed should be
      extended down to the current low page of that mapping.  Similarly,
      PROT_GROWSUP means the pages lie in a GROWSUP mapping and the length of the
      region to be changed should be extended up to include its highest page.
      These flags also explicitly request the (already implicit) behavior that
      the protection change applied to the lowest/highest page of a growing
      mapping is passed on to new pages grown later.  There are no other changes
      to the mprotect behavior; in particular, the boundary in the non-growing
      direction (the end address computed from the start+len arguments in the
      GROWSDOWN case, and the start argument in the GROWSUP case) is as given by
      the arguments to the system call.  This is desireable in the use of this
      call by a process on its stack, so it can change the protections of the
      growing mapping used for program stack distinctly from the protections on
      the arguments, environment, and AT_* data from exec.
      c1dd5958
  2. 24 Sep, 2003 15 commits
  3. 23 Sep, 2003 22 commits
    • Alexander Viro's avatar
      [PATCH] 32-bit dev_t fallout: mips/kernel/sysirix.c · 350667d7
      Alexander Viro authored
      	Fix for typo in arch/mips/kernel/sysirix.c (spotted by Milton Miller)
      350667d7
    • Andrew Morton's avatar
      [PATCH] SELinux leak fixes · 07c9e4a4
      Andrew Morton authored
      From: Stephen Smalley <sds@epoch.ncsc.mil>
      
      I believe that the patch below fixes the legitimate leaks in the SELinux
      code.  In some cases, it rearranges the code (moving the allocation later
      to reduce the need for further cleanup or linking the object into a
      containing structure earlier so that the policydb_destroy will handle it
      upon any subsequent errors).
      07c9e4a4
    • Andrew Morton's avatar
      [PATCH] asm/softirq.h is dead · b5ec6dea
      Andrew Morton authored
      From: Christoph Hellwig <hch@lst.de>
      
      Still three arches keep an unused copy around and quite a few places refer
      to it in comments still.
      
      Two of the two arches also include it in their _ksyms.c file, but given
      that softirq.h only contains macros (which are in hardirq.c as well) that's
      just a leftover as well.
      b5ec6dea
    • Andrew Morton's avatar
      [PATCH] use "normalized" syntax for lgdt/lidt · a84d3317
      Andrew Morton authored
      From: "Randy.Dunlap" <rddunlap@osdl.org>
      
      Use common (normalized) asm syntax for lidt/lgdt, specifying that the
      operand is an input value instead of output.
      a84d3317
    • Andrew Morton's avatar
      [PATCH] wanxl compile and warning fixes · 2a8fc938
      Andrew Morton authored
      From: Krzysztof Halasa <khc@pm.waw.pl>
      
      Fix wanxl for older gcc's, and fix a couple of warnings.
      2a8fc938
    • Andrew Morton's avatar
      [PATCH] DAC960: remove redundant (and uninitialized) · b7f6576c
      Andrew Morton authored
      From: Dave Olien <dmo@osdl.org>
      
      this patch fixes a bug that appeared only on Alpha hardware with
      DAC960 controllers.  The Command->PciDevice structure member was
      never initialized.  This was passed to the pci scatter/gather functions.
      This didn't cause a problem for x86 platforms because the scatter/gather
      funtions never really used that information.  Alpha platforms do use
      that pointer.
      
      The Command->PciDevice field was also redundant with the Controller->PCIDevice
      field, which IS initialized properly.  So, eliminating the redundant
      structure member and substituting the Controller's member fixes the bug.
      b7f6576c
    • Andrew Morton's avatar
      [PATCH] remove CONFIG_SERIAL_21285_OLD · eb73c88b
      Andrew Morton authored
      From: Adrian Bunk <bunk@fs.tum.de>
      
      CONFIG_SERIAL_21285_OLD depends on the non-existent option CONFIG_OBSOLETE,
      IOW it's not selectable, and the help text says "This is obsolete and will
      be removed during later 2.5 development.".
      eb73c88b
    • Andrew Morton's avatar
      [PATCH] setuid clearing fix · f7d25a8e
      Andrew Morton authored
      From: Andries.Brouwer@cwi.nl
      
      jpcartal@free.fr writes:
      
      	I noticed that contrary to what was happening with 2.4.x kernel, suid
      	root files don't loose their suid bit when they get overwritten by a
      	normal user (see example below)
      
      	Is this the intended behaviour or a bug ?
      
      	Example :
      
      	[root@localhost test]# chown root ~cartaljp/test/suid_test
      	[root@localhost test]# chmod 4775 ~cartaljp/test/suid_test
      	[root@localhost test]# exit
      	[cartaljp@localhost test]$ cp /bin/ls suid_test
      	[cartaljp@localhost test]$ ls -l
      	total 72
      	-rwsrwxr-x    1 root     cartaljp    67668 Sep 19 07:56 suid_test <-
      	Suid bit is still set whereas with 2.4.x kernel it was reset.
      
      Yes. Here 2.4 had the terrible code
      
           mode = (inode->i_mode & S_IXGRP)*(S_ISGID/S_IXGRP) | S_ISUID;
      
      while 2.6 does things via notify_change().  However, in 2.6 notify_change()
      does not allow removal of the SUID bit because you are not owner of the
      file :-).  So, we have to convince inode_change_ok() to do it anyway.
      f7d25a8e
    • Andrew Morton's avatar
      [PATCH] make CONFIG_HUGETLB_PAGE mirror CONFIG_HUGETLBFS · 829d1232
      Andrew Morton authored
      At present you can set CONFIG_HUGETLB_PAGE and not CONFIG_HUGETLBFS, which
      give the kernel low-level hugepage support, but no userspace API with which
      to access it.
      
      And with the recent hugetlbfs-accounting fix, the low-level code needs
      functions which are in hugetlbfs, so CONFIG_HUGETLBFS=n,
      CONFIG_HUGETLB_PAGE=y doesn't even link.
      
      So we flip things around: CONFIG_HUGETLB_PAGE is set if CONFIG_HUGETLBFS is
      set and CONFIG_HUGETLB_PAGE is unset if CONFIG_HUGETLBFS is unset.  The
      CONFIG_HUGETLB_PAGE option hence disappears from the per-arch configuration
      menus.
      829d1232
    • Andrew Morton's avatar
      [PATCH] Hugetlb FS quota accounting problem · 41cffedc
      Andrew Morton authored
      From: "Chen, Kenneth W" <kenneth.w.chen@intel.com>
      
      We found a problem in hugetlbfs file system quota when using huge page
      via mmap.  The mmap method in hugetlbfs_file_operation always takes
      quota for every mmap even for pages that are already allocated on that
      inode.  This results in taxing the same hugepage multiple times and
      causing mmap to fail on existing file when quota mistakenly runs out.
      41cffedc
    • Andrew Morton's avatar
      [PATCH] misc fixes · 257e2ce7
      Andrew Morton authored
      - modules need blk_rq_prep_restart()  (Florian Schanda <ma1flfs@bath.ac.uk>)
      
      - Remove unneeded inclusions from configs.c (Randy Dunlap)
      
      - The agp_setup() ifdef was backwards (Stephen Hemminger <shemminger@osdl.org>)
      
      - makefiles.txt typo fix (Paolo Ornati <ornati@despammed.com>)
      257e2ce7
    • Andrew Morton's avatar
      [PATCH] switch remaining serial drivers to initcalls · f751e52a
      Andrew Morton authored
      From: Christoph Hellwig <hch@lst.de>
      
      All drivers that compile on ppc with CONFIG_ISA set (= all but
      some m68-only drivers), I looked at the compile warnings very
      closely and there are no new warnings or even errors this time :)
      
      drivers/char/Makefile needed to be reordered big time to keep
      the intialization order the same.
      f751e52a
    • Andrew Morton's avatar
      [PATCH] disallow utime{s}() on immutable or append-only files · 905f90fe
      Andrew Morton authored
      From: Ethan Benson <erbenson@alaska.net>
      
      Currently Linux allows the use of the utime() and utimes() syscalls on
      immutable or append-only files, this is incorrect.
      
      utime{s}() is not supposed to work if you lack write access to a file,
      in the case of an immutable file NOBODY has write access.
      
      for an append-only file it only makes sense to be able to update its
      time to present, not the past.
      
      I have checked BSD, and they implement the behavior I propose, for
      immutable files utime() and utimes() fail.  for append-only files they
      fail if the time argument is not NULL.
      905f90fe
    • Andrew Morton's avatar
      [PATCH] add -Wdeclaration-after-statement · 535231e8
      Andrew Morton authored
      From: John Levon <levon@movementarian.org>
      
      Not that many people are going to be using GCC 3.4 currently, but it
      might help a bit to prevent compilation bugs like that just witnessed
      in procfs.
      
      (And it consolidates the check_gcc implementation nicely)
      535231e8
    • Andrew Morton's avatar
      [PATCH] kill some leftovers from the big sysrq syncing rewrite · 6921bb18
      Andrew Morton authored
      From: Christoph Hellwig <hch@lst.de>
      
      Some junk which was needed before we did the big cleansweep for the sysrq
      syncing stuff.
      6921bb18
    • Andrew Morton's avatar
      [PATCH] mark devfs obsolete · 71c53af4
      Andrew Morton authored
      From: Christoph Hellwig <hch@lst.de>
      
      Richard hasn't touched it for about a year and since then only bugfixes and
      my changes to the kernel interface went in.  No one has stepped up to
      maintain it and with udev we have a proper replacement now.
      
      I will do some more work before 2.6 (mainly trying to implement Al's
      refcounting scheme to avoid stale entries), but that's it.
      71c53af4
    • Andrew Morton's avatar
      [PATCH] Try harder in IRQ context before falling back to ksoftirqd · e4e9bd23
      Andrew Morton authored
      From: "David S. Miller" <davem@redhat.com>
      
      It's from Ingo Molnar.  ksoftirqd kicks in way too early, so do more work in
      interrupt context before falling back.
      
      We can probably sysctl this thing, that way everyone gets what they want
      probably...
      
      (has been in -mm since 2.5.71 and I haven't heard a peep).
      e4e9bd23
    • Andrew Morton's avatar
      [PATCH] slab: hexdump structures when things go wrong · b4aaf1ab
      Andrew Morton authored
      From: Manfred Spraul <manfred@colorfullife.com>
      
      - Remove cache_alloc_one_tail and cache_alloc_listfixup - there is no
        reason for their existance.
      
      - Print a bit more debugging info when slab corruption is detected.
      b4aaf1ab
    • Alexander Viro's avatar
      [PATCH] 32-bit dev_t fixups · 9d5fab50
      Alexander Viro authored
      	Argh.  A couple of places where we needed ..._encode_dev() had
      been lost in reordering the patchset - the most notable being ctty number in
      /proc/<pid>/stat.  Fix follows:
      9d5fab50
    • Anton Altaparmakov's avatar
      Merge cantab.net:/home/aia21/bklinux-2.5 · d9704d82
      Anton Altaparmakov authored
      into cantab.net:/home/aia21/ntfs-2.6
      d9704d82
    • Adam Radford's avatar
      [PATCH] 3ware driver update · 117991c5
      Adam Radford authored
      This fixes several things including fixing the character ioctl polling
      to use wait_event_interruptible_timeout() instead of
      interruptible_sleep_on_timeout() and several other fixes.
      
      These changes were already applied to 2.4.22.
      117991c5
    • Matt Domsch's avatar
      s/Dell Computer Corporation/Dell Inc./ · e3cac9df
      Matt Domsch authored
      Necessary due to company name change.
      e3cac9df