* [PATCH 2.4][SPARC64] fix sys32_utimes(somefile, NULL)
@ 2005-06-14 19:23 Jakub Bogusz
2005-06-14 19:41 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Jakub Bogusz @ 2005-06-14 19:23 UTC (permalink / raw)
To: linux-kernel, sparclinux
This patch fixes utimes(somefile, NULL) syscalls on sparc64 kernel with
32-bit userland - use of uninitialized value resulted in making random
timestamps, which confused e.g. sudo.
It has been already fixed (by davem) in linux-2.6 tree 30 months ago.
Signed-off-by: Jakub Bogusz <qboosh@pld-linux.org>
--- linux-2.4.31/arch/sparc64/kernel/sys_sparc32.c.orig 2005-06-06 14:55:31.000000000 +0200
+++ linux-2.4.31/arch/sparc64/kernel/sys_sparc32.c 2005-06-14 12:00:15.000000000 +0200
@@ -4267,7 +4267,7 @@
old_fs = get_fs();
set_fs(KERNEL_DS);
- ret = sys_utimes(kfilename, &ktvs[0]);
+ ret = sys_utimes(kfilename, (tvs ? &ktvs[0] : NULL));
set_fs(old_fs);
putname(kfilename);
--
Jakub Bogusz http://qboosh.cs.net.pl/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2.4][SPARC64] fix sys32_utimes(somefile, NULL)
2005-06-14 19:23 [PATCH 2.4][SPARC64] fix sys32_utimes(somefile, NULL) Jakub Bogusz
@ 2005-06-14 19:41 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2005-06-14 19:41 UTC (permalink / raw)
To: qboosh; +Cc: linux-kernel, sparclinux
From: Jakub Bogusz <qboosh@pld-linux.org>
Date: Tue, 14 Jun 2005 21:23:06 +0200
> This patch fixes utimes(somefile, NULL) syscalls on sparc64 kernel with
> 32-bit userland - use of uninitialized value resulted in making random
> timestamps, which confused e.g. sudo.
> It has been already fixed (by davem) in linux-2.6 tree 30 months ago.
>
> Signed-off-by: Jakub Bogusz <qboosh@pld-linux.org>
Thanks a lot Jakub, I'll push this to Marcelo as soon as he
opens up his 2.4.x GIT tree.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-06-14 19:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-14 19:23 [PATCH 2.4][SPARC64] fix sys32_utimes(somefile, NULL) Jakub Bogusz
2005-06-14 19:41 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®