- 25 Sep, 2003 7 commits
-
-
Greg Kroah-Hartman authored
-
Adrian Bunk authored
The USB_MOUSE help text was obviously copied from the USB_KBD help text. The patch below does a s/keyboard/mouse/g
-
David T. Hollis authored
This patch removes the ax8817x driver since all functionality has been incorporated into usbnet.
-
Greg Kroah-Hartman authored
-
Linus Torvalds authored
They are fairly ugly, but this will make it easier to merge DRI in the future by minimizing unnecessary differences.
-
Linus Torvalds authored
Major whitespace cleanups and fix a potential oops. The driver can now run with or without FB support.
-
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.
-
- 24 Sep, 2003 23 commits
-
-
Andi Kleen authored
glibc assumes that the padding in statvfs() is zeroed. Do this in the compat layer too for future safety.
-
Rusty Russell authored
Minor changes to Jamie & Hugh's excellent futex patch. 1) Remove obsolete comment above hash array decl. 2) Clarify comment about TASK_INTERRUPTIBLE. 3) Andrew Morton says spurious wakeup is a bug. Catch it. 4) Use Jenkins hash. 5) Make hash function non-inline.
-
Rusty Russell authored
From: "Hu, Boris" <boris.hu@intel.com> Andrew reminded me of this. Simple change to split the futex lock into a per-hashchain lock. Don't bother cacheline aligning: Jamie points out that increasing FUTEX_HASHBITS would have more payoff. Ulrich Drepper reports 6% improvement in on a 4way futex-thrashing benchmark.
-
Linus Torvalds authored
-
Rusty Russell authored
Kconfig cleanup megapatch from Nicolas Kaiser <nikai@nikai.net>. modules.txt no longer exists, and the common wording used to refer to it sucks. This is all by Nicolas Kaiser's: at Randy and Matthew's request, "say M" changed to "choose M" (more sense for graphical front ends, too).
-
Andrew Morton authored
check that the brk value lies in bounds.
-
Greg Kroah-Hartman authored
-
David Brownell authored
This is the latest update of the patch resolving bugs in how device configurations were reflected in the driver model. It addresses the last significant problems I know about in that area. - Moves code around so that usb_set_configuration() updates sysfs to reflect the current configuration. Previously, that only worked right for the initial configuration chosen by khubd. * Previous interfaces are inaccessible. The code to handle this moved from usb_disconnect() into usb_disable_device(), which is now called both on disconnect and set_configuration paths. * There are new interfaces. The code to handle this moved from usb_new_device() into usb_set_configuration(). * Resolves a double-refcount problem with USB interfaces, by not getting the extra reference in the first place and switching to use device_del() to disable interfaces. * Comments a similar double-refcount problem with usb devices (not interfaces). Its kerneldoc is updated appropriately. The main point being that calling usb_set_configuration() in driver probe() methods is even more of a no-no, since it'll self-deadlock. - Sysfs names for USB interfaces now include the configuation number, so that user mode code can't get as easily confused. Old style: "3-1:0" for configs 2 and 3 (interface zero). New style: "3-1:2.0" for config 2, "3-3:3.0" for config 3. - Moves usb_new_device() code around a bit, so that the device is visible in sysfs before usb_set_configuration() is called. (Before the devices for that config's interfaces appear.) - Makes the bConfigurationValue be writable through sysfs, so device configurations can be easily changed from user mode. (Or devices can be de-configured, by setting config 0.) There are devices that can benefit from this functionality; notably, cdc-acm modems need it right now, so that they can be told to use the non-proprietary configuration. (Since the old "change config in probe callback" trick won't work.)
-
Linus Torvalds authored
This cleans up the PCI vs AGP GART handling, and turning the PCI GART hardware on and off.
-
Linus Torvalds authored
-
Linus Torvalds authored
-
Linus Torvalds authored
flush after vmap.
-
Alexander Viro authored
The current seq_file code for resource handling will truncate the output if it overflows the seq_file buffer (one page). That's because it tries to traverse the resource tree in one big blob. So change that to instead traverse the resource tree one entry at a time and have a real iterator, and clean it up a bit.
-
Ian Abbott authored
Here are a couple of patches against a copy of Greg's usb-2.4 and usb-2.5 bk trees to add a VID/PID for Omnidirectional Control Technology's US101 USB to RS-232 converter. This has also been rebadged by Dick Smith Electronics (New Zealand) as a XH6361 USB to serial converter. Thanks to Donald Gordon for the info, which I have verified by checking the Windows INF files.
-
Nicolas Kaiser authored
-
Nicolas Kaiser authored
-
Nicolas Kaiser authored
-
Nicolas Kaiser authored
-
Nicolas Kaiser authored
-
Linus Torvalds authored
sanity-checking the information more carefully. The old code basically just used a random-number approach to determine how much to read.
-
Alexander Viro authored
This fixes a NULL ptr dereference in md_probe() noted by Helge Hafting. It even gets the things slightly better than they used to be, but late-boot magic in md.c is certainly a mess. Oh, well... It's _ugly_. md_probe() is misused there big way. The minimal fix is to revert the cleanup in md_probe() - replace int unit = *part; with int unit = MINOR(dev); However, that is crap solution. The problem is that md_probe() is called directly with bogus arguments - not only part is NULL (which triggers the oops), but dev (which is supposed to be dev_t value) is actually mdidx(mddev). Cleaner fix follows, but we really need to get the situation with gendisk allocations into the sane shape there. Sigh...
-
http://mdomsch.bkbits.net/linux-2.5-dellnameLinus Torvalds authored
into home.osdl.org:/home/torvalds/v2.5/linux
-
Anton Altaparmakov authored
into cantab.net:/home/aia21/ntfs-2.6
-
- 23 Sep, 2003 10 commits
-
-
Alexander Viro authored
Fix for typo in arch/mips/kernel/sysirix.c (spotted by Milton Miller)
-
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).
-
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.
-
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.
-
Andrew Morton authored
From: Krzysztof Halasa <khc@pm.waw.pl> Fix wanxl for older gcc's, and fix a couple of warnings.
-
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.
-
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.".
-
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.
-
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.
-
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.
-