An error occurred fetching the project authors.
  1. 20 Mar, 2004 1 commit
  2. 16 Mar, 2004 1 commit
  3. 29 Feb, 2004 1 commit
    • Jens Axboe's avatar
      [PATCH] fix CDROM_SEND_PACKET 32 -> 64-bit translation · ab1b2b63
      Jens Axboe authored
      Here's a much better version.  The real bug was of course that the
      get_user/put_user for data_direction were transposed.
      
      This patch also fixes the translation of "quiet" and "timeout" to be
      safer and clearer (instead of memcpying them as two ints and knowing
      that "quiet" is first and assuming that "compat_int_t" is always the
      same as the native "int", the code now handles them explicitly).
      
      We should use "access_ok()" and __get_user/__put_user to generate better
      code for this, but it's not performance-critical, so we don't care.
      Some other day, perhaps.
      ab1b2b63
  4. 25 Feb, 2004 1 commit
    • Andrew Morton's avatar
      [PATCH] add syscalls.h · 0bab0642
      Andrew Morton authored
      From: "Randy.Dunlap" <rddunlap@osdl.org>
      
      Add syscalls.h, which contains prototypes for the kernel's system calls.
      Replace open-coded declarations all over the place.  This patch found a
      couple of prior bugs.  It appears to be more important with -mregparm=3 as we
      discover more asmlinkage mismatches.
      
      Some syscalls have arch-dependent arguments, so their prototypes are in the
      arch-specific unistd.h.  Maybe it should have been asm/syscalls.h, but there
      were already arch-specific syscall prototypes in asm/unistd.h...
      
      Tested on x86, ia64, x86_64, ppc64, s390 and sparc64.  May cause
      trivial-to-fix build breakage on other architectures.
      0bab0642
  5. 04 Feb, 2004 1 commit
    • Andrew Morton's avatar
      [PATCH] Fix more gcc 3.4 warnings · d75cb184
      Andrew Morton authored
      From: Andi Kleen <ak@muc.de>
      
      Just many more warning fixes for a gcc 3.4 snapshot.
      
      It warns for a lot of things now, e.g.  for ?: and ({ ...  }) and casts as
      lvalues.  And for functions marked inline in headers, but no body.
      
      Actually there are more warnings, i stopped fixing at some point.  Some of
      the warnings seem to be dubious (e.g.  the binfmt_elf.c one, which looks
      more like a compiler bug to me)
      
      I also fixed the _exit() prototype to be void because gcc was complaining
      about this.
      d75cb184
  6. 01 Feb, 2004 1 commit
  7. 24 Jan, 2004 1 commit
    • Andrew Morton's avatar
      [PATCH] The RAW_GETBIND compat_ioctl fails · 4b4447c9
      Andrew Morton authored
      From: James Cross <jscross@veritas.com>
      
      The RAW_GETBIND compatibility ioctl call does convert properly between the
      32bit/64bit version of raw_config_request due to a trivial error, and the
      ioctl call fails.
      4b4447c9
  8. 19 Jan, 2004 1 commit
    • Andrew Morton's avatar
      [PATCH] s390: 32 bit ioctl emulation fixes. · b72570f1
      Andrew Morton authored
      From: Martin Schwidefsky <schwidefsky@de.ibm.com>
      
      - audit all 32 bit pointer accesses and make them use compat_ioctl(),
        because of the necessary conversion on s390
      - introduce ULONG_IOCTL() which is used instead of COMPATIBLE_IOCTL()
        for all ioctls that have their argument encoded in 'arg' instead
        of the memory pointed to by arg. Same reason as above.
      - remove most #ifdefs in <linux/compat_ioctl.h>: They don't make
        any sense if the respective handlers in fs/compat_ioctl.c are
        not disabled as well and they are potentially harmful (the
        CONFIG_BLK_DEV_DM e.g. was insufficient).
      - comment out  COMPATIBLE_IOCTL(SIOCSIFBR) and
        COMPATIBLE_IOCTL(SIOCGIFBR), they appear to require a handler
      - implement copy_in_user for s390, as needed for many handlers in
        fs/compat_ioctl.c
      - get rid of all duplicate stuff in arch/s390/kernel/compat_ioctl.c
        that is also in fs/compat_ioctl.c
      b72570f1
  9. 13 Jan, 2004 1 commit
  10. 29 Dec, 2003 2 commits
    • Andrew Morton's avatar
      [PATCH] Minor bug fixes to the compat layer · 14209d06
      Andrew Morton authored
      From: Arun Sharma <arun.sharma@intel.com>
      
      - Several instances where we were using pid_t instead of uid_t
      
      - If the caller passed a NULL `oldact' pointer into sys_sigprocmask then
        don't try to write the old sigmask there.
      14209d06
    • Andrew Morton's avatar
      [PATCH] compat_ioctl for i2c · 9b1ace8b
      Andrew Morton authored
      From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      
      I needed those for the G5 on ppc64, so here they are, I was only
      able to test the SMBUS stuff though.
      9b1ace8b
  11. 09 Oct, 2003 1 commit
    • Linus Torvalds's avatar
      Revert the process group accessor functions. They are buggy, and · 06349d9d
      Linus Torvalds authored
      cause NULL pointer references in /proc.
      
      Moreover, it's questionable whether the whole thing makes sense at all. 
      Per-thread state is good.
      
      Cset exclude: davem@nuts.ninka.net|ChangeSet|20031005193942|01097
      Cset exclude: akpm@osdl.org[torvalds]|ChangeSet|20031005180420|42200
      Cset exclude: akpm@osdl.org[torvalds]|ChangeSet|20031005180411|42211
      06349d9d
  12. 05 Oct, 2003 2 commits
    • Andrew Morton's avatar
      [PATCH] fix "compat ioctl consolidation" for "move job · 3479607f
      Andrew Morton authored
      A little fix which is needed if both the "compat ioctl consolidation" and
      "move job control fields from task_struct to signal_struct" patches are
      applied.
      3479607f
    • Andrew Morton's avatar
      [PATCH] compat ioctl consolidation · f7719648
      Andrew Morton authored
      From: Arun Sharma <arun.sharma@intel.com>, kevin.tian@intel.com
      
      Move a whole bunch of filesystem ioctl conversion functions out of per-arch
      files and into fs/compat_ioctl.c
      
      It moves linux32_dirent to compat.h and renames it as compat_dirent. 
      linux32_dirent has been eliminated from ia64.  Other archs should do the
      same.
      
      We'll leave old_linux_dirent32 as is, since it seems to be arch specific
      (ia64 doesn't use it for example).
      f7719648
  13. 01 Oct, 2003 2 commits
  14. 26 Sep, 2003 1 commit
    • Randy Dunlap's avatar
      [PATCH] janitor: cleanup includes in fs/ · acf658db
      Randy Dunlap authored
      From: Randy Hron <rwhron@earthlink.net>
      
      Remove duplicate #includes in fs/
      Remove version.h includes where they aren't necessary.
      Test compiled on 2.6.0-test5-bk9.
      acf658db
  15. 31 Aug, 2003 1 commit
  16. 17 Jul, 2003 1 commit
    • Adrian Bunk's avatar
      [PATCH] remove all #include <blk.h>'s · 117b5e29
      Adrian Bunk authored
      This causes blk.h to print a warning and removes all uses of blk.h.
      I've tested the compilation in 2.6.0-test1 with a .config that tries to
      compile as many drivers as possible.
      117b5e29
  17. 27 Jun, 2003 1 commit
    • David Gibson's avatar
      [PATCH] Fix compile with !CONFIG_VT · f6700539
      David Gibson authored
      Architectures using the generic 32/64-bit ioctl() compatibility shims
      will get a link error if CONFIG_VT is not defined, since the
      compatbility ioctl() code calls functions in drivers/char/vt.c which
      is only included in the build if CONFIG_VT is set.
      
      This fixes the compile with a couple of #ifdefs:
      f6700539
  18. 15 Jun, 2003 1 commit
  19. 07 Jun, 2003 1 commit
    • Andrew Morton's avatar
      [PATCH] common 32-bit ioctl code · 7c069681
      Andrew Morton authored
      From: Pavel Machek <pavel@suse.cz>
      
      Various 64-bit architectures are duplicating a ton of 32-bit compat code.
      
      Pavel's patch creates a generic 32-bit ioctl file in fs/compat_ioctl.c which
      architectures will #include from within their arch/ layer.
      
      Has been reviewed by everyone and tested on sparc64, x86_64, ppc64 and ia32.
      7c069681
  20. 26 May, 2003 1 commit
  21. 25 May, 2003 2 commits
  22. 23 May, 2003 1 commit
    • Andi Kleen's avatar
      [PATCH] x86-64 merge · 47e4079c
      Andi Kleen authored
      Lots of changes that have accumulated over the last weeks.
      
      This makes it compile and boot again, Lots of bug fixes, including
      security fixes.  Several speedups.
      
      Only changes x86-64 specific files.
      
       - Use private copy of siginfo.h (for si_band)
       - Align 32bit vsyscall coredump (from Roland McGrath)
       - First steps towards 64bit vsyscall coredump (not working yet)
       - Use in kernel trampoline for signals
       - Merge APIC pm update from Pavel/Mikael
       - Security fix for ioperm (from i386)
       - Reenable vsyscall dumping for 32bit coredumps
       - Fix bugs in 32bit coredump that could lead to oopses.
       - Fix 64bit vsyscalls
       - Revert change in pci-gart.c: pci_alloc_consistent must use an
         0xffffffff mask hardcoded.
       - Fix bug in noexec= option handling
       - Export fake_node
       - Cleanups from Pavel
       - Disable 32bit vsyscall coredump again.  Still has some problems.
       - Implement new noexec= and noexec32= options to give a wide choice
         of support for non executable mappings for 32bit and 64bit processes.
         The default is now to honor PROT_EXEC, but mark stack and heap
         PROT_EXEC.
       - 32bit emulation changes from Pavel: use compat_* types.
       - (2.4) Use physical address for GART register.
       - Convert debugreg array to individual members and clean up ptrace
         access.  This saves 16 byte per task.
       - (2.4) Use new streamlined context switch code.  This avoids a
         pipeline stall and pushes the register saving to C code.
       - Save flags register in context switch
       - Clean up SMP early bootup.  Remove some unnecessary code.
       - (2.4) Process numa= option early
       - (2.4) Merge 2.4 clear_page, copy_*_user, copy_page, memcpy, memset.
         These are much faster.  clear/copy_page don't force the new page out
         of memory now which should speed up user processes.  Also full
         workaround for errata #91.
       - Some cleanup in pageattr.c code.
       - Fix warning in i387.h
       - Fix wrong PAGE_KERNEL_LARGE define.  This fixes a security hole and
         makes AGP work again.
       - Fix wrong segment exception handler to not crash.
       - Fix incorrect swapgs handling in bad iret exception handling
       - Clean up some boot printks
       - Micro optimize exception handling preamble.
       - New reboot handling.  Supports warm reboot and BIOS reboot vector
         reboot now.
       - (2.4) Use MTRRs by default in vesafb
       - Fix bug in put_dirty_page: use correct page permissions for the stack
       - Fix type of si_band in asm-generic/siginfo.h to match POSIX/glibc
         (needs checking with other architecture maintainers)
       - (2.4) Define ARCH_HAS_NMI_WATCHDOG
       - Minor cleanup in calling.h
       - IOMMU tuning: only flush the GART TLB when the IOMMU aperture area
         allocation wraps.  Also don't clear entries until needed.  This
         should increase IO performance for IOMMU devices greatly.  Still a
         bit experimental, handle with care.
       - Unmap the IOMMU aperture from kernel mapping to prevent unwanted CPU
         prefetches.
       - Make IOMMU_LEAK_TRACE depend on IOMMU_DEBUG
       - Fix minor bug in pci_alloc_consistent - always check against the dma
         mask of the device, not 0xffffffff.
       - Remove streamining mapping delayed flush in IOMMU: not needed anymore
         and didn't work correctly in 2.5 anyways.
       - Fix the bad pte warnings caused by the SMP/APIC bootup.
       - Forward port 2.4 fix: ioperm was changing the wrong io ports in some
         cases.
       - Minor cleanups
       - Some cleanups in pageattr.c (still buggy)
       - Fix some bugs in the AGP driver.
       - Forward port from 2.4: mask all reserved bits in debug register in
         ptrace.  Previously gdb could crash the kernel by passing invalid
         values.
       - Security fix: make sure FPU is in a defined state after an
         FXSAVE/FXRSTOR exception occurred.
       - Eats keys on panic (works around a buggy KVM)
       - Make user.h user includeable.
       - Disable sign compare warnings for gcc 3.3-hammer
       - Use DSO for 32bit vsyscalls and dump it in core dumps.  Add dwarf2
         information for the vsyscalls.
         Thanks to Richard Henderson for helping me with the nasty parts of
         it.  I had to do some changes over his patch and it's currently only
         lightly tested.  Handle with care.  This only affects 32bit programs
         that use a glibc 3.2 with sysenter support.
       - Security fixes for the 32bit ioctl handlers.  Also some simplications
         and speedups.
       - gcc 3.3-hammer compile fixes for inline assembly
       - Remove acpi.c file corpse.
       - Lots of warning fixes
       - Disable some Dprintks to make the bootup quieter again
       - Clean up ptrace a bit (together with warning fixes)
       - Merge with i386 (handle ACPI dynamic irq entries properly)
       - Disable change_page_attr in pci-gart for now.  Strictly that's
         incorrect, need to do more testing for the root cause of the current
         IOMMU problems.
       - Update defconfig
       - Disable first prefetch in copy_user that is likely to trigger Opteron
         Errata #91
       - More irqreturn_t fixes
       - Add pte_user and fix the vsyscall ptrace hack in generic code.
         It's still partly broken
       - Port verbose MCE handler from 2.4
      47e4079c
  23. 19 May, 2003 1 commit
  24. 30 Apr, 2003 2 commits
    • Andi Kleen's avatar
      [PATCH] x86-64 update · d33334d3
      Andi Kleen authored
      Just make x86-64/amd64 compile again.  Only architecture specific
      changes.
      
      And a workaround for the Opteron prefetch bug.
      
      Also remove the obsolete LVM1 ioctl emulation code.
      d33334d3
    • Pavel Machek's avatar
      [PATCH] ioctl32 cleanups · cbfce4a9
      Pavel Machek authored
      ioctl32 cleanups are pretty neccessary (we have 6+ copies of 600+
      lines tables, all getting slightly out of sync, not speaking about
      surrounding code produced by cut-and-paste).
      cbfce4a9
  25. 23 Apr, 2003 2 commits
    • Alexander Viro's avatar
      [PATCH] tty cleanups (11/12) · 2b4107a8
      Alexander Viro authored
      	tty->device switched to dev_t
      	There are very few uses of tty->device left by now; most of
      them actually want dev_t (process accounting, proc/<pid>/stat, several
      ioctls, slip.c logics, etc.) and the rest will go away shortly.
      2b4107a8
    • Alexander Viro's avatar
      [PATCH] tty cleanups (2/12) · 27e8099f
      Alexander Viro authored
      	Instead of copying tty_driver into tty_struct we put a reference
      in there.  tty->driver turned into a pointer, users updated.  Large, but
      trivial
      27e8099f
  26. 05 Apr, 2003 1 commit
    • Andi Kleen's avatar
      [PATCH] x86-64 merge · 2ba74897
      Andi Kleen authored
      Make it compile again and various cleanups and a few bug fixes.  Only
      changes x86-64 specific files.
      
      Most of it are S3 suspend changes from Pavel and comment spelling fixes
      from Steven Cole.
      
      - Remove now obsolete check_cpu function
      - Fix sys_ioctl prototype
      - Small optimization - use SYSCALL for 32bit signal handling.
      - Fix S3 suspend handling and split into individual files like i386 (Pavel)
      - Merge from i386 (pci fixes etc.)
      - Set correct paging attributes for IOMMU aperture
      - Fix disable apic option
      2ba74897
  27. 25 Mar, 2003 1 commit
    • Andi Kleen's avatar
      [PATCH] x86-64 updates · b4f6270e
      Andi Kleen authored
      Lots of x86-64 updates. Merge with 2.4 and NUMA works now. Also reenabled
      the preemptive kernel. And some other bug fixes.
      IOMMU disabled by default now because it has problems.
      
       - Add more CONFIG options for device driver debugging and iommu
         force/debug.  (don't enable iommu force currently)
       - Some S3/ACPI fixes/cleanups from Pavel.
       - Set MSG_COMPAT_* in msg_flags for networking 32bit emulation.
         This unfortunately still doesn't fix the fd passing problems.
       - Sync PCI IOMMU code with 2.4 (minor fixes, flush less often)
       - Really fix UP compilation (Pavel)
       - Reenable preempt
       - Fix CONFIG_DISCONTIGMEM bootup and enable.  Still needs more tuning.
       - Fix some bugs in topology discovery and clean code up.
       - Don't put unwind tables into object files
       - Some kernel debugging hooks
       - Move CPU detection into early real mode code to better interact with
         vesafb consoles
       - Initialize mode in real mode character output
       - New 32bit FPU signal save/restore
       - Various fixes in FPU handling in ptrace
       - Fix security holes in ptrace (32bit and 64bit)
       - Fix serial ioctl (including security hole)
       - Add bluetooth ioctls to 32bit emu (from sparc64)
       - Correctly enable si_val in queued signals in 32bit emulation
       - Rework SEM_STAT emulation.  LTP still fails unfortunately.
       - Fix error case in msg* emulation
       - Fix debug register access from ptrace (Michal Ludvig, me)
       - Fix handling of NULL arguments in 32bit execve
       - Fix some error cases for 32bit readv/writev (LTP still complains)
       - Remove rate control from unimplemented syscall warnings
       - Fix error message for missing aperture
       - Turn some APIC printks into Dprintk to make the bootup more quiet
       - Some fixes for no APIC (probably still broken), add disableapic
         option (untested)
       - Sync K8 MCE handler with 2.4.  Should work a lot better now.
       - Remove never used KDB hooks
       - Fix buffer overflow in command line copying
       - Merge from i386: use separate status word for lazy FPU state
       - Don't force the IOMMU for dma masks < 4GB.
       - Print backtrace in Sysrq-T (from Andrea)
       - Merge from i386: fix FPU race in fork.
       - Disable NX mode by default for now
       - Rewrite dump_pagetable
       - Fix off by one bug in ioremap (i386 merge)
       - Merge from i386: handle VIA pci bridge bugs
       - Disable NUMA ACPI support (no SRAT support yet)
       - Fix aio 32bit emulation
       - Increase 32bit address space to nearly 4GB
       - Add exit_group syscall
       - Fix TLS setting in clone (Ulrich Drepper)
      b4f6270e
  28. 25 Feb, 2003 1 commit
    • Steven Cole's avatar
      [PATCH] replace it's with its where appropriate. · 25c1aa5c
      Steven Cole authored
      This patch replaces it's (it is) with its (possessive of it)
      in the following cases where the possessive of it is meant.
      
      to it's      -> to its
      into it's    -> into its
      from it's    -> from its
      of it's      -> of its
      with it's    -> with its
      under it's   -> under its
      about it's   -> about its
      25c1aa5c
  29. 18 Feb, 2003 1 commit
  30. 13 Jan, 2003 1 commit
    • Jens Axboe's avatar
      [PATCH] rbtree core for io scheduler · 68fc0a78
      Jens Axboe authored
      This patch has a bunch of io scheduler goodies that are, by now, well
      tested in -mm and by self and Nick Piggin. In order of interest:
      
      - Use rbtree data structure for sorting of requests. Even with the
        default queue lengths that are fairly short, this cuts a lot of run
        time for io scheduler intensive work loads. If we go to longer queue
        lengths, it very quickly becomes a necessity.
      
      - Add sysfs interface for the tunables. At the same time, finally kill
        the BLKELVGET/BLKELVSET completely. I made these return -ENOTTY in
        2.5.1, but there are left-overs around the kernel. This old interface
        was never any good, it was centered around just one io scheduler.
      
      The io scheduler core itself has received count less hours of tuning by
      myself and Nick, should be in pretty good shape. Please apply.
      
      Andrew, I made some sysfs changes to the version from 2.5.56-mm1. It
      didn't even compile without warnings (or work, for that matter), as the
      sysfs store/show procedures needed updating. Hmm?
      68fc0a78
  31. 05 Jan, 2003 1 commit
    • Andi Kleen's avatar
      [PATCH] x86-64 updates for 2.5.54 · 717db2f9
      Andi Kleen authored
      More x86-64 updates for 2.5.54.  Most noticeable change is that the
      64bit X server works again.
      
      This only changes x86-64 specific files.  It requires some AGP driver
      changes I'm sending separately.
      
       - Some Makefile cleanups from Sam Ravnborg
       - Make sure extended registers in 32bit processes are zeroed and not
         accessible/changeable from ptrace.  This is to avoid potential
         security bugs with non 64bit clean 32bit emulation functions (they
         often are overflow prone etc.)
       - Some 32bit emulation cleanups from Stephen Rothwell
       - Make copy_*_user source const to fix warnings.
       - Set fs/gs to dummy values when the 64bit segment base is set to not
         confuse the context switch (Karsten Keil, me)
      	* still one mysterious bug in this area unfortunately.
       - Make MAP_32BIT for 64bit processes only map in the first 31bit,
         because it is usually used to map small model code.  This fixes the X
         server crashes.  Some cleanups in this area.
       - Don't set O_LARGEFILE for 32bit open
       - Handle ptregs calls from 32bit syscall correctly.
       - Implement aio io_getevents for 32bit.
       - Remove buggy unused command handler in nfsd 32bit emulation.
       - Convert timespec in semtimedop (thanks to Anton for telling me about
         this)
       - Ignore long mode flag from 32bit modify_ldt.  This fixes Wine, which
         left it uninitialized (bug found by Karsten Keil)
       - Merge with i386
       - Handle new kallsyms
       - Remove some superfluous bootup printks
      717db2f9
  32. 20 Dec, 2002 1 commit
    • Andi Kleen's avatar
      [PATCH] x86-64 merge · f3081f5b
      Andi Kleen authored
      This patch depends on the i386 MTRR driver cleanup I sent earlier.
      
       - Support non executable mappings for x86-64. data/heap are non executable
         by default now.
       - Beginnings of software suspend from Pavel (not working yet)
       - Support generic compat functions and remove some shared code
         in the 32bit emulation (Stephen Rothwell)
       - Support hugetlbfs
       - Some makefile updates
       - Make sure all 32bit emulation functions return long, not int.
         This fixes some problems with ERESTARTNOSYS.et.al. leaking to userspace.
       - Add new system calls.
       - Fix long standing fs/gs context switch bugs (thanks to Karsten Keil
         for helping to fix that mess). Also make sure the gs selector is
         set to 0 after an exec.
       - Simplify TLS switching
       - Paranoid CPUID check at bootup
       - Reorder scatterlist to be more space efficient (Jes Soerensen)
       - Enlarge 32bit address space to full 4GB.
       - Beginnings of 32bit SYSCALL support (not completely working yet
         and vsyscall page miss yet)
       - Various merges from i386
       - New module loader
       - Support threaded core dump (XMM saving for 32bit programs doesn't
         work, but it appears to be broken on i386 too)
       - Fix bug in signal stack rounding
       - Remove DRM 32bit emulation.
       - Use MTRR driver from i386
       - Use bootflag.c from i386
       - Various other fixes and cleanups.
      f3081f5b
  33. 18 Oct, 2002 1 commit
    • Andi Kleen's avatar
      [PATCH] x86-64 updates for 2.5.43 · 3428c8d1
      Andi Kleen authored
      This fixes a few files that got lost with the last merge and merges
      with 2.5.43/i386.  Only changes architecture specific files.
      
      It depends on one other patch (for linux/ioctl32.h) which I'm sending
      separately.
      
      Changes:
      - Include missing files (pageattr.c) and Makefile changes
      - Update IA32 subsystem. Various small fixes and a big merge
        with sparc64.
      - Change HZ to 1000
      - Merge some of the 2.5.43/i386 profiling changes. No full oprofile yet.
      - Fix many warnings
      - Update defconfig
      - Various other smaller cleanups and bugfixes.
      3428c8d1
  34. 15 Oct, 2002 1 commit