Neil Brown [Tue, 5 Aug 2003 06:19:58 +0000 (23:19 -0700)]
[PATCH] Protect against NFS requests to create symlinks bigger than one page
Such a request would cause the nul terminator to be written
to some other page, and cause havoc.
Also rearrange two tests to avoid the possibility of testing the byte
just past the end of a buffer - doing so can causes an oops with appropriate
kernel-debug config options
Neil Brown [Tue, 5 Aug 2003 06:19:41 +0000 (23:19 -0700)]
[PATCH] Remove some unused export flags and reserve a new one.
The 'acl' folks would like an export flag, so this patch
reserves one and also discards some that aren't used and never
will be (for the named purpose).
Neil Brown [Tue, 5 Aug 2003 06:19:29 +0000 (23:19 -0700)]
[PATCH] Change NFSEXP_CROSSMNT to NFSEXP_CROSSMOUNT
NFSEXP_CROSSMNT used to mean something different, so
using a different name reduces the chance of confusion.
Also there is currently a surplus of vowels, so there is
no need to be frugal
Neil Brown [Tue, 5 Aug 2003 06:19:20 +0000 (23:19 -0700)]
[PATCH] Make sure sunrpc/cache doesn't confuse writers with readers.
When a sunrpc/cache channel is not open for reading, the
cache doesn't bother making and waiting for up-calls.
However it doesn't currently distingish between open-for-read/write
and open-for-write, so an op-for-write will look like a reader
and will cause inappropriate waiting.
This patch checks if a file is open-for-read and will only register
a file as a reader if it really is one.
Linus Torvalds [Tue, 5 Aug 2003 03:13:37 +0000 (20:13 -0700)]
Make "static const" initializer to zero explicit, since truly
constant values should not end up in the BSS.
We're better off having the compiler put it in the .rodata
section (which it will, thanks to the initializer and the
"const"), since that will result in it being nicely cacheable
in shared SMP caches.
use module_param, removed __setup code,
general cleanup (mostly of comments and trailing spaces, also removed include of config.h),
made the watchdog's timeout a module_param.
Chas Williams [Mon, 4 Aug 2003 10:49:39 +0000 (03:49 -0700)]
[ATM]: Minor LANAI fixes from mitch@sfgoth.com.
1. pci_device_id structures shouldn't be __devinitdata. Greg removed
all of the instances of this in the 2.6.0-test1 tree, but unforunately
my recent coversion of lanai.c introduced another one.
2. The lanai PCI id constants have now been merged into the kernel headers
so we don't need to define our own copies.
3. The ioctl's exported by lanai shouldn't be - they were intended for
debugging only, never for release. For now they're just '#if 0'ed out.
They're somewhat dangerous since they don't check any capabilities so
any user could DoS the interface.
Patrick Mochel [Mon, 4 Aug 2003 10:35:30 +0000 (03:35 -0700)]
[power] Divorce suspend console code from swsusp.
- Create kernel/power/console.c
- Rename prepare_suspend_console() to pm_prepare_console() and
restore_console() to pm_restore_console().
- Add prototypes to include/linux/suspend.h.
- Make kernel/power/console.o dependent only on CONFIG_PM
- Simplify logic for SUSPEND_CONSOLE define
- Make software_resume() prepare console much earlier, so we can localize
the loglevel variables in console.c.
- Remove #ifdef CONFIG_VT from console.c, and just check for SUSPEND_CONSOLE.
(Perhaps we should make entire file dependent on CONFIG_VT_CONSOLE?)
- Add kernel/power/power.h to share things across local files.
Patrick Mochel [Mon, 4 Aug 2003 10:14:08 +0000 (03:14 -0700)]
[power] Minor swsusp cleanups.
- Call blk_run_queues() from do_software_suspend() directly, instead of
wrapping it in helper function.
- Get rid of ominous compiler warning.
- Change BUG_ON(in_interrupt()) to might_sleep() in software_suspend(), so
we still get back trace, but don't actually BUG().
Russell King [Tue, 5 Aug 2003 00:15:49 +0000 (01:15 +0100)]
[ARM] Fix do_settimeofday()
ARM seems to have missed an update for the time keeping code; this
cset fixes a problem where the altering the system time changes the
reported uptime.
Jens Axboe [Mon, 4 Aug 2003 02:32:01 +0000 (19:32 -0700)]
[PATCH] AS barrier bug
There's a bug in AS, it sets HARDBARRIER on a request when it should be
setting it as a softbarrier. IO scheduler has no business using that
bit, if it needs to put barriers there they should be soft. Hard
barriers involve hardware operations.
David S. Miller [Sun, 3 Aug 2003 13:57:46 +0000 (06:57 -0700)]
[TG3]: Only call tg3_init_rings() after hardware has been reset.
In tg3_init_rings() we might write out to the NIC SRAM area,
thus we should only run it when the chip is in a known state.
Also, fix comments above tg3_init_rings() wrt. locking state.
David S. Miller [Sat, 2 Aug 2003 11:24:41 +0000 (04:24 -0700)]
[TG3]: More Sun onboard 5704 fixes.
- Add TG3_FLG2_SUN_5704, set it at probe time.
- Do not try to use NVRAM on Sun 5704 chips.
- Handle lack of firmware on Sun 5704 chips.
David S. Miller [Sat, 2 Aug 2003 11:23:41 +0000 (04:23 -0700)]
[SPARC64]: More tomatillo PCI controller fixes.
- Use ino-bitmap property to figure out which PCI bus
module each interrupt gets routed through.
- Fix timeout setting in PCI control register
- Do not enable DTO interrupts.
- Use the correct IGN in INOs on Tomatillo.
Hirofumi Ogawa [Sat, 2 Aug 2003 11:09:04 +0000 (04:09 -0700)]
[PATCH] Consolidate dot-stripping code
From Ren <l.s.r@web.de>
there are several places inside fs/vfat/namei.c where the length of a
struct qstr without any trailing dots is calculated. The patch below
adds a function vfat_striptail_len() which does that and makes use of it.