| From | Subject | Date |
|---|---|---|
| Nick Piggin | Re: [newbie:] Bonnie++2 hangs recent 2.6 kernels? Bash keeps...
Can you see if it is looping in userspace or kernel? Can you kill -9
the process?
Are you able to test with the latest 2.6.23-rc kernel? If not (or if it
still has the same problem), then can you get the output of sysrq+T
and three sysrq+P calls, please? (this might help work out where in
kernel it is spinning).
-
| Sep 12, 8:30 pm 2007 |
| Nick Piggin | Re: 2.6.22.6: kernel BUG at fs/locks.c:171
Thanks for the report. Is it reproduceable? It seems like the
locks_free_lock call that's oopsing is coming from __posix_lock_file.
The actual function looks fine, but the lock being freed could have
been corrupted if there was slab corruption, or a hardware corruption.
You could: try running memtest86+ overnight. And try the following
| Sep 12, 7:51 pm 2007 |
| Csengő Anna | Szia,
Szia!
Bocs a zavarasert, ha erdekel a sexnek egy teljessen mas formaja (brutalis sex)
akkor itt a helyed: Minosegi filmek, sot extrakent tomerdek animal sex film is van!
http://brutal.vipsms.org/
http://brutal.vipsms.org/
http://brutal.vipsms.org/
Nemsokara rollam is lesznek fenn videok :) Tovabbi szep napot! Anna
u.i: az emailcimedet egy levelezolistarol kaptam ahol elfogadtad hogy kapsz
hirlevelet. Ha ez megis zavar, leiratkozhatsz a http://leiratkozas.myip.hu/
oldalon.
--
Pussz...
...
| Sep 12, 11:17 pm 2007 |
| Reza Roboubi | TCP_LINGER2 TIME_WAIT
man 7 tcp says TCP_LINGER2 sets the lifetime of orphaned FIN_WAIT2 state
sockets. What about wanting to forcibly kill a "rotten" TCP socket in
any other "WAIT" state like TIME_WAIT?
Thanks.
Reza.
-
| Sep 12, 11:54 pm 2007 |
| Mike Frysinger | [patch] update CFI URI n mtd kconfig
Since AMD shunted its flash memory division, the URI in the mtd Kconfig is now
broken, so the attached patch points people to Wikipedia.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
diff --git a/drivers/mtd/chips/Kconfig b/drivers/mtd/chips/Kconfig
index 479d32b..980117a 100644
--- a/drivers/mtd/chips/Kconfig
+++ b/drivers/mtd/chips/Kconfig
@@ -11,8 +11,8 @@ config MTD_CFI
AMD and other flash manufactures that provides a universal method
for probing the capabilities of fla...
| Sep 12, 11:39 pm 2007 |
| Yinghai Lu | [PATCH] x86_64: set cfg_size for AMD Family 10h in case MMCO...
[PATCH] x86_64: set cfg_size for AMD Family 10h in case MMCONFIG is used.
reuse pci_cfg_space_size but skip check pci express and pci-x CAP ID.
Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
arch/i386/pci/fixup.c | 13 +++++++++++++
drivers/pci/probe.c | 11 ++++++++++-
include/linux/pci.h | 1 +
3 files changed, 24 insertions(+), 1 deletion(-)
===================================================================
Index: linux-2.6/arch/i386/pci/fixup.c
=======================...
| Sep 12, 10:21 pm 2007 |
| Andrew Morton | Re: [PATCH] x86_64: set cfg_size for AMD Family 10h in case ...
Please don't use the kerneldoc leadin "/**" for non-kerneldoc comments.
-
| Sep 12, 10:17 pm 2007 |
| Paul E. McKenney | [PATCH] State limits to safety of _safe iterators
The _safe list iterators make a blanket statement about how they are
safe against removal. This patch, inspired by private conversations
with people who unwisely but perhaps understandably took this blanket
statement at its word, adds comments stating limits to this safety.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
---
list.h | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff -urpNa -X dontdiff linux-2.6.22/include/linux/list.h l...
| Sep 12, 9:01 pm 2007 |
| Kees Cook | [PATCH] usb: fix unterminated usn_device_id lists
This patch against 2.6.23-rc6 fixes a unterminated list of USB device ids.
Signed-off-by: Kees Cook <kees@ubuntu.com>
---
linux-2.6.23-rc6/drivers/media/video/usbvision/usbvision-cards.c | 1 +
1 file changed, 1 insertion(+)
---
diff -urp -x '*.o' linux-2.6.23-rc6~/drivers/media/video/usbvision/usbvision-cards.c linux-2.6.23-rc6/drivers/media/video/usbvision/usbvision-cards.c
--- linux-2.6.23-rc6~/drivers/media/video/usbvision/usbvision-cards.c 2007-09-11 23:17:19.000000000 -0700
+++ lin...
| Sep 12, 8:47 pm 2007 |
| Jeff Garzik | Re: [PATCH] usb: fix unterminated usn_device_id lists
FWIW I (and several drivers) tend to prefer the more clean version,
{ },
or even
{ }, /* terminate list */
Regards,
Jeff
-
| Sep 12, 9:15 pm 2007 |
| Kees Cook | Re: [PATCH] usb: fix unterminated usn_device_id lists
Hi,
Ah, yes. I see that now in some of the other drivers. Should I re-send
this patch (and/or the other PCI patches)?
Thanks,
-Kees
--
Kees Cook
-
| Sep 12, 11:54 pm 2007 |
| Jeremy Fitzhardinge | [PATCH] xen: don't bother trying to set cr4
Xen ignores all updates to cr4, and some versions will kill the domain
if you try to change its value. Just ignore all changes.
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Cc: Andi Kleen <ak@suse.de>
---
arch/i386/xen/enlighten.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
===================================================================
--- a/arch/i386/xen/enlighten.c
+++ b/arch/i386/xen/enlighten.c
@@ -625,8 +625,8 @@ static unsigned long xen_...
| Sep 12, 7:44 pm 2007 |
| Chris Wedgwood | [RFC PATCH] Add a 'minimal tree install' target
This is a somewhat rough first-pass at making a 'minimal tree'
installation target. This installs a partial source-tree which you
can use to build external modules against. It feels pretty unclean
but I'm not aware of a much better way to do some of this.
This patch works for me, even when using O=<buildtree>. It probably
needs further cleanups.
Comments?
-----
Add a 'mintree-install' makefile target.
Red Hat and other distributions typically have some logic in their
kernel packag...
| Sep 12, 7:25 pm 2007 |
| Antoine Martin | CFS: some bad numbers with Java/database threading
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi list,
I was working on some unit tests and thought I'd give CFS a whirl to see
if it had any impact on my workloads (to see what the fuss was about),
and I came up with some pretty disturbing numbers:
http://devloop.org.uk/documentation/database-performance/Linux-Kernels/Kernels-ManyThr...
As above but also showing the load average:
[ message continues ] " title="http://devloop.org.uk/documentation/database-performance/Linux-Kernels/Kernels-ManyThre...">http://devloop.org.uk/documentation/database-performance/Linux-Kernels/Kernels-ManyThr... | Sep 12, 7:10 pm 2007 |
| Nick Piggin | Re: some bad numbers with Java/database threading
(cc's readded please reply to all when replying to lkml)
Hi David,
You might be sounding a bit too abrasive here... I understand you're
also trying to help, but your tone just might be taken the wrong way.
Antonie is really doing the right thing here to test such a new feature
early and on the code he cares about as a user. And most importantly,
reporting it here. This is probably the most useful resource we have in
Linux.
Maybe the workload is quirky, but regardless, if it is a *regressio...
| Sep 12, 7:33 pm 2007 |
| Markus Rechberger | Re: [linux-dvb] [PATCH] Userspace tuner
Let's add the LKML to this.
--
Markus Rechberger
-
| Sep 12, 7:10 pm 2007 |
| Bodo Eggert | Re: O_NOLINK for open()
Brent Casavant <bcasavan@sgi.com> wrote:
If the process can chmod the file, it can ptrace the daemon, too.
Or, using CAP_DAC_OVERRIDE, it can patch the daemon.
Having no window for creating stale temp files is nice to have. We only
need a clever fool to implement it.-) But since it's hard to get killed
just in the right moment for having a stale temp file, there is very low
interest for this feature.
--
You know you're in trouble when packet floods are competing to flood you.
...
| Sep 12, 6:33 pm 2007 |
| Jeff Dike | [PATCH 11/11] UML - Use *_PER_* definitions
There are various uses of powers of 1000, plus the odd BILLION
constant in the time code. However, there are perfectly good definitions of
*SEC_PER_*SEC in linux/time.h which can be used instaed.
These are replaced directly in kernel code. Userspace code imports
those constants as UM_*SEC_PER_*SEC and uses these.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
--
arch/um/include/common-offsets.h | 4 ++++
arch/um/include/os.h | 2 --
arch/um/kernel/time.c ...
| Sep 12, 5:17 pm 2007 |
| Jeff Dike | [PATCH 10/11] UML - Eliminate SIGALRM usage
Now that ITIMER_REAL is no longer used, there is no need for any use
of SIGALRM whatsoever. This patch removes all mention of it.
In addition, real_alarm_handler took a signal argument which is now
always SIGVTALRM. So, that is gone.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
--
arch/um/os-Linux/irq.c | 2 +-
arch/um/os-Linux/main.c | 2 +-
arch/um/os-Linux/process.c | 10 +++++-----
arch/um/os-Linux/signal.c | 28 +++++++---------------------...
| Sep 12, 5:17 pm 2007 |
| Jeff Dike | [PATCH 4/11] UML - Move timer signal initialization
Move timer signal initialization from init_irq_signals to a new
function, timer_init.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
--
arch/um/include/os.h | 1 +
arch/um/kernel/time.c | 2 ++
arch/um/os-Linux/irq.c | 4 ----
arch/um/os-Linux/signal.c | 10 ++++++++++
4 files changed, 13 insertions(+), 4 deletions(-)
Index: linux-2.6.22/arch/um/kernel/time.c
===================================================================
--- linux-2.6.22.orig/arch/um/kerne...
| Sep 12, 5:16 pm 2007 |
| Jeff Dike | [PATCH 1/11] UML - Eliminate hz()
Eliminate hz() since its only purpose was to provide a kernel-space
constant to userspace code. This can be done instead by providing the
constant directly through kernel_constants.h.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
--
arch/um/include/common-offsets.h | 2 ++
arch/um/include/kern_util.h | 1 -
arch/um/kernel/time.c | 5 -----
arch/um/os-Linux/skas/process.c | 5 +++--
arch/um/os-Linux/time.c | 7 +++----
5 files changed, 8 inserti...
| Sep 12, 5:16 pm 2007 |
| Jeff Dike | [PATCH 2/11] UML - Clean up switching between virtual and re...
Fix up the switching between virtual and real timers. The idle loop
sleeps, the timer at that point must be real time. At all other
times, the timer must be virtual. Even when userspace is running, and
the kernel is asleep, the virtual timer is correct because the process
timer will be running.
The timer switch used to be in the context switch and in the timer
handler code. This is moved to the idle loop and the signal handler,
making it much more clear why it is happening.
switch_timers now...
| Sep 12, 5:16 pm 2007 |
| Jeff Dike | [PATCH 9/11] UML - Eliminate ticking in the idle loop
Now, the idle loop now longer needs SIGALRM firing - it can just sleep
for the requisite amount of time and fake a timer interrupt when it
finishes.
Any use of ITIMER_REAL now goes away. disable_timer only turns off
ITIMER_VIRTUAL. switch_timers is no longer needed, so it, and all
calls, goes away.
disable_timer now returns the amount of time remaining on the timer.
default_idle uses this to tell idle_sleep how long to sleep.
idle_sleep will call alarm_handler if nanosleep returns 0, which is
...
| Sep 12, 5:16 pm 2007 |
| Jeff Dike | [PATCH 5/11] UML - GENERIC_TIME support
Enable CONFIG_GENERIC_TIME.
As a side-effect of this, the UML implementations of do_gettimeofday
and do_settimeofday go away, as these are provided by generic code.
set_time also goes away since it was only used by do_settimeofday.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
--
arch/um/Kconfig | 5 +++++
arch/um/kernel/ksyms.c | 3 ---
arch/um/kernel/time.c | 40 ----------------------------------------
3 files changed, 5 insertions(+), 43 deletions(-)
Index: linu...
| Sep 12, 5:16 pm 2007 |
| Jeff Dike | [PATCH 8/11] UML - Tickless support
Enable tickless support.
CONFIG_TICK_ONESHOT and CONFIG_NO_HZ are enabled.
itimer_clockevent gets CLOCK_EVT_FEAT_ONESHOT and an implementation of
.set_next_event.
CONFIG_UML_REAL_TIME_CLOCK goes away because it only makes sense when
there is a clock ticking away all the time. timer_handler now just
calls do_IRQ once without trying to figure out how many ticks to
emulate.
The idle loop now needs to turn ticking on and off.
For now, process ticks are ignored. This breaks userspace time
a...
| Sep 12, 5:16 pm 2007 |
| Jeff Dike | [PATCH 6/11] UML - GENERIC_CLOCKEVENTS support
Enable CONFIG_GENERIC_CLOCKEVENTS.
timer_irq gets its name changed to timer_handler, and becomes the
recipient of timer signals.
The clock_event_device is set up to imitate the current ticking clock,
i.e. CLOCK_EVT_FEAT_ONESHOT is not enabled yet.
disable_timer now doesn't ignore SIGALRM and SIGVTALRM because that
breaks delay calibration.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
--
arch/um/Kconfig | 4 +
arch/um/defconfig | 3 +
arch/um/kernel/time.c ...
| Sep 12, 5:16 pm 2007 |
| Jeff Dike | [PATCH 0/11] UML - Tickless and timekeeping update
This patchset modernizes UML's timekeeping system. There are a number
of cleanups, but the major items are clockevent and clocksource
support, followed by tickless support.
This is obviously 2.6.24 material.
Jeff
--
Work email - jdike at linux dot intel dot com
-
| Sep 12, 5:16 pm 2007 |
| Jeff Dike | [PATCH 3/11] UML - tidy set_interval
set_interval took a timer type as an argument, but it always specified
a virtual timer. So, it is not needed, and it is gone, and
set_interval is simplified appropriately.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
--
arch/um/include/os.h | 2 +-
arch/um/kernel/time.c | 2 +-
arch/um/os-Linux/skas/process.c | 2 +-
arch/um/os-Linux/time.c | 5 ++---
4 files changed, 5 insertions(+), 6 deletions(-)
Index: linux-2.6.22/arch/um/include/os.h
...
| Sep 12, 5:16 pm 2007 |
| Jeff Dike | [PATCH 7/11] UML - clocksource support
Add clocksource support.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
--
arch/um/kernel/time.c | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
Index: linux-2.6.22/arch/um/kernel/time.c
===================================================================
--- linux-2.6.22.orig/arch/um/kernel/time.c 2007-09-12 15:12:11.000000000 -0400
+++ linux-2.6.22/arch/um/kernel/time.c 2007-09-12 15:12:35.000000000 -0400
@@ -97,6 +97,21 @@ static irqreturn_t um_timer(int irq, voi
re...
| Sep 12, 5:16 pm 2007 |
| Mel Gorman | [PATCH 0/6] Use one zonelist per node instead of multiple zo...
Kamezawa-san,
This version implements your idea for storing a zone pointer and zone_idx
in a structure within the zonelist instead of encoding information in a
pointer. It has worked out quite well. The performance is comparable on
the tests I've run with similar gains/losses as I've seen with but pointer
packing but this code may be easier to understand. However, the zonelist
has doubled in size and consumes more cache lines.
I did not put the node_idx into the structure as it was not clear that...
| Sep 12, 5:04 pm 2007 |
| Mel Gorman | [PATCH 6/6] Use one zonelist that is filtered by nodemask
Two zonelists exist so that GFP_THISNODE allocations will be guaranteed
to use memory only from a node local to the CPU. As we can now filter the
zonelist based on a nodemask, we can filter the node slightly different
when GFP_THISNODE is specified.
When GFP_THISNODE is used, a temporary nodemask is created with only the
node local to the CPU set. This allows us to eliminate the second zonelist.
Signed-off-by: Mel Gorman <mel@csn.ul.ie>
---
drivers/char/sysrq.c | 2 -
fs/buff...
| Sep 12, 5:06 pm 2007 |
| Mel Gorman | [PATCH 5/6] Filter based on a nodemask as well as a gfp_mask
The MPOL_BIND policy creates a zonelist that is used for allocations belonging
to that thread that can use the policy_zone. As the per-node zonelist is
already being filtered based on a zone id, this patch adds a version of
__alloc_pages() that takes a nodemask for further filtering. This eliminates
the need for MPOL_BIND to create a custom zonelist. A positive benefit of
this is that allocations using MPOL_BIND now use the local-node-ordered
zonelist instead of a custom node-id-ordered zonelist.
...
| Sep 12, 5:06 pm 2007 |
| Christoph Lameter | Re: [PATCH 5/6] Filter based on a nodemask as well as a gfp_...
Minor nitpick here: "for (;" should become "for ( ;" to have correct
whitespace. However, it would be clearer to use a while here.
while (zonelist_zone_idx(z)) > highest_zoneidx)
z++;
etc.
-
| Sep 12, 5:23 pm 2007 |
| Mel Gorman | [PATCH 4/6] Have zonelist contains structs with both a zone ...
Using two zonelists per node requires very frequent use of zone_idx(). This
is costly as it involves a lookup of another structure and a substraction
operation. As the zone_idx is often required, it should be quickly accessible.
The node idx could also be stored here if it was found that accessing
zone->node is significant which may be the case on workloads where nodemasks
are heavily used.
This patch introduces a struct zoneref to store a zone pointer and a zone
index. The zonelist then cons...
| Sep 12, 5:06 pm 2007 |
| Christoph Lameter | Re: [PATCH 4/6] Have zonelist contains structs with both a z...
Well the structure is going to be 12 bytes wide. Since pointers have to be
aligned to 8 bytes we will effectively have to use 16 bytes anyways. There
is no additional memory use if we would be adding another 4 bytes.
But lets get this merged. We can sort this out later. Too many
oscillations already.
-
| Sep 12, 5:17 pm 2007 |
| Mel Gorman | [PATCH 3/6] Use two zonelist that are filtered by GFP mask
Currently a node has a number of zonelists, one for each zone type in the
system and a second set for THISNODE allocations. Based on the zones allowed
by a gfp mask, one of these zonelists is selected. All of these zonelists
occupy memory and consume cache lines.
This patch replaces the multiple zonelists per-node with two zonelists. The
first contains all populated zones in the system and the second contains all
populated zones in node suitable for GFP_THISNODE allocations. An iterator
macro is ...
| Sep 12, 5:05 pm 2007 |
| Mel Gorman | [PATCH 2/6] Introduce node_zonelist() for accessing the zone...
This patch introduces a node_zonelist() helper function. It is used to lookup
the appropriate zonelist given a node and a GFP mask. The patch on its own is
a cleanup but it helps clarify parts of the one-zonelist-per-node patchset. If
necessary, it can be merged with the next patch in this set without problems.
Signed-off-by: Mel Gorman <mel@csn.ul.ie>
---
drivers/char/sysrq.c | 3 +--
fs/buffer.c | 6 +++---
include/linux/gfp.h | 10 +++++++---
include...
| Sep 12, 5:05 pm 2007 |
| Mel Gorman | [PATCH 1/6] Use zonelists instead of zones when direct recla...
The allocator deals with zonelists which indicate the order in which zones
should be targeted for an allocation. Similarly, direct reclaim of pages
iterates over an array of zones. For consistency, this patch converts direct
reclaim to use a zonelist. No functionality is changed by this patch. This
simplifies zonelist iterators in the next patch.
Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Acked-by: Christoph Lameter <clameter@sgi.com>
---
include/linux/swap.h | 2 +-
mm/page_al...
| Sep 12, 5:05 pm 2007 |
| Brent Casavant | O_NOLINK for open()
Bear with me, I present the problem I'm trying to solve first,
and then propose O_NOLINK as a solution. Responses to either my
shared memory problem or the O_NOLINK idea would be most appreciated.
I've run into a rather unusual set of circumstances calling for
use of shared memory, but haven't found a bulletproof solution
which can be used under Linux.
I have a need to share memory between two unrelated processes,
but without the ability for any other process to attach to it,
for security reaso...
| Sep 12, 4:37 pm 2007 |
| Andreas Schwab | Re: O_NOLINK for open()
Only the owner can chmod a file, so why is that a vulnerability?
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
-
| Sep 12, 5:42 pm 2007 |
| Brent Casavant | Re: O_NOLINK for open()
In this particular case because the user may not normally have direct
access to some of the data to be contained in that file.
Decryption keys in a key management system, in particular. If the
keys are passed over secure network links such that they only ever
exist in system RAM, and are not reachable via the filesystem, these
keys can be protected from disclosure to the user (short of /proc/#/mem
type of tricks). However, if there is even a brief window when the
user can gain access to the fil...
| Sep 12, 6:44 pm 2007 |
| Al Viro | Re: O_NOLINK for open()
Give me a break. And learn about ptrace(2). This "unlinking" bullshit
buys you zero additional security, both for /proc/*/mem and for /dev/mem
(see mknod(2)).
-
| Sep 12, 6:49 pm 2007 |
| Brent Casavant | Re: O_NOLINK for open()
Yes, I fully understand that mknod can recreate the nodes -- however
only the superuser can do so, and if the superuser is attacking a
process all bets are off anyway. OK, so /dev/*mem isn't to worry
about, since it's already owned by root. Still, /proc/#/mem is owned
by the user, not root, leaving it potentially open to inspection by
third party processes.
I'm thinking out loud. Sorry to cause any grief.
My (limited) understanding of ptrace is that a parent-child
relationship is needed bet...
| Sep 12, 7:27 pm 2007 |
| Brent Casavant | Re: O_NOLINK for open()
Hmm. The solution would appear to be as simple as making the
target program set-user-id. As long as as the attacker isn't
the superuser (or has CAP_SYS_PTRACE) we should be OK.
Thanks for the heads-up,
Brent
--
Brent Casavant All music is folk music. I ain't
bcasavan@sgi.com never heard a horse sing a song.
Silicon Graphics, Inc. -- Louis Armstrong
-
| Sep 12, 7:48 pm 2007 |
| H. Peter Anvin | Re: O_NOLINK for open()
To avoid this window, typically one creates a temporary directory first,
with 0700 permissions. Make sure you verify that you actually created
the directory, and watch out for symlink attacks. Then you create the
file in that directory.
This doesn't prevent another process owned by the same user (or root)
from attaching, but such a process can ptrace you or touch yoour /proc
This link talks about file flags handling. I don't see the relevance to
this problem at all. However, this is a very ...
| Sep 12, 5:07 pm 2007 |
| Brent Casavant | Re: O_NOLINK for open()
Oops, my mistake -- I pasted the wrong URL. I meant this thread, this
post in particular:
http://marc.info/?l=linux-kernel&m=88937224115435&w=2
Still, O_NOLINK would seem to be a valuable addition, and greatly
simplify secure temporary file creation.
Brent
--
Brent Casavant All music is folk music. I ain't
bcasavan@sgi.com never heard a horse sing a song.
Silicon Graphics, Inc. -- Louis Armstrong
-
| Sep 12, 5:39 pm 2007 |
| H. Peter Anvin | Re: O_NOLINK for open()
Avoiding -- or at least detecting -- symlink racing with mkdir() is
relatively simple: run mkdir(), make sure you don't get EEXIST or
something like that, lstat() the resulting path -- it should be a
directory with all the right modes and ownerships.
I believe -- but I'm not certain -- that mkdtemp() in glibc will do all
this for you. If not, I would consider that a glibc bug.
-hpa
-
| Sep 12, 5:46 pm 2007 |
| Denys Vlasenko | [PATCH 1/2] section garbage collection for i386
Hi Sam,
This patch is preparatory: it adds a few KEEP() directives where
I forgot them in previous patch set, adds comments which explains
places where KEEP() is definitely not needed, and fixes i386 vdso generation
in an "obviously safe" way.
Please apply.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
--
vda
| Sep 12, 4:24 pm 2007 |
| Denys Vlasenko | [PATCH 2/2] section garbage collection for i386
Hi Sam,
This patch adds module linker script (completely analogous to x86_64),
and "minimally" fixes vmlinux linker script by adding KEEPs.
It also deleted an outdated comment and amends help text.
I got a few "section mismatch" warnings with .config which doesn't
show them (IIRC) on original kernel.
I took a look and I think that original kernel was actually in error
and these warnings are correct!
WARNING: vmlinux.o(.text.kmem_cache_create+0x32f): Section mismatch: reference to .init.refok...
| Sep 12, 4:30 pm 2007 |
| Denys Vlasenko | [PATCH 3/2] section garbage collection for i386 - BONUS TRACK
Hi Sam,
This patch makes i386 vmlinux linker script simpler
by minimizing number of generated sections.
For example, these sections:
21 .init.text 000204a0 78701000 00701000 00502000 2**0
CONTENTS, ALLOC, LOAD, READONLY, CODE
22 .init.data 000268db 787214a0 007214a0 005224a0 2**3
CONTENTS, ALLOC, LOAD, DATA
23 .init.setup 00000654 78747d80 00747d80 00548d80 2**2
CONTENTS, ALLOC, LOAD, DATA
24 .initcall.init 000004c...
| Sep 12, 4:45 pm 2007 |
| previous day | today | next day |
|---|---|---|
| September 11, 2007 | September 12, 2007 | September 13, 2007 |
| Amit K. Arora | [RFC] Heads up on sys_fallocate() |
| Linus Torvalds | Linux 2.6.23-rc9 and a heads-up for the 2.6.24 series.. |
| Paul Jackson | Re: cpuset-remove-sched-domain-hooks-from-cpusets |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
git: | |
| Linus Torvalds | Re: [GIT]: Networking |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | Re: [klibc] [patch] import socket defines |
