[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#218660: marked as done ([hppa][patch] fix syscalls for hppa)



Your message dated Sun, 2 Nov 2003 16:54:59 -0500
with message-id <20031102215459.GA19541@nevyn.them.org>
and subject line Patch installed
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 1 Nov 2003 23:42:37 +0000
>From randolph@tausq.org Sat Nov 01 17:42:35 2003
Return-path: <randolph@tausq.org>
Received: from gandalf.tausq.org (pippin.tausq.org) [64.81.244.94] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AG5O7-00022P-00; Sat, 01 Nov 2003 17:42:35 -0600
Received: by pippin.tausq.org (Postfix, from userid 1000)
	id 372B7CD2F8; Sat,  1 Nov 2003 15:43:35 -0800 (PST)
Date: Sat, 1 Nov 2003 15:43:35 -0800
From: Randolph Chung <tausq@debian.org>
To: submit@bugs.debian.org
Subject: [hppa][patch] fix syscalls for hppa
Message-ID: <[🔎] 20031101234335.GQ28967@tausq.org>
Reply-To: Randolph Chung <tausq@debian.org>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="FCuugMFkClbJLl1L"
Content-Disposition: inline
X-GPG: for GPG key, see http://www.tausq.org/gpg.txt
User-Agent: Mutt/1.5.3i
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-9.4 required=4.0
	tests=BAYES_10,HAS_PACKAGE,PATCH_UNIFIED_DIFF
	autolearn=ham version=2.53-bugs.debian.org_2003_11_1
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_11_1 (1.174.2.15-2003-03-30-exp)


--FCuugMFkClbJLl1L
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Package: glibc
Version: 2.3.2.ds1-8
Severity: important
Tags: patch

There are some missing paranethses in the hppa syscall code, so some
syscalls don't have their arguments loaded correctly (e.g. 
INLINE_SYSCALL(..., x<<31, ...) doesn't work for pread).
This patch fixes it.

thanks
randolph
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/

--FCuugMFkClbJLl1L
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="hppa-syscall.dpatch"

#! /bin/sh -e

# DP: Description: Make sure syscall arguments are loaded properly
# DP: Author: Randolph Chung <tausq@debian.org>
# DP: Upstream status: Pending
# DP: Date: Sat, 01 Nov 2003 15:36:04 -0800

if [ $# -ne 2 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi
case "$1" in
    -patch) patch -d "$2" -f --no-backup-if-mismatch -p0 < $0;;
    -unpatch) patch -d "$2" -f --no-backup-if-mismatch -R -p0 < $0;;
    *)
	echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
	exit 1
esac
exit 0

2003-11-01  Randolph Chung  <tausq@debian.org>

	* sysdeps/unix/sysv/linux/hppa/sysdep.h elf/Makefile (LOAD_ARGS): 
	Ensure arguments are loaded correctly

--- sysdeps/unix/sysv/linux/hppa/sysdep.h.orig	2003-11-01 14:16:40.000000000 -0800
+++ sysdeps/unix/sysv/linux/hppa/sysdep.h	2003-11-01 14:17:36.000000000 -0800
@@ -387,22 +387,22 @@
 
 #define LOAD_ARGS_0()
 #define LOAD_ARGS_1(r26)					\
-	register unsigned long __r26 __asm__("r26") = (unsigned long)r26;	\
+	register unsigned long __r26 __asm__("r26") = (unsigned long)(r26);	\
 	LOAD_ARGS_0()
 #define LOAD_ARGS_2(r26,r25)					\
-	register unsigned long __r25 __asm__("r25") = (unsigned long)r25;	\
+	register unsigned long __r25 __asm__("r25") = (unsigned long)(r25);	\
 	LOAD_ARGS_1(r26)
 #define LOAD_ARGS_3(r26,r25,r24)				\
-	register unsigned long __r24 __asm__("r24") = (unsigned long)r24;	\
+	register unsigned long __r24 __asm__("r24") = (unsigned long)(r24);	\
 	LOAD_ARGS_2(r26,r25)
 #define LOAD_ARGS_4(r26,r25,r24,r23)				\
-	register unsigned long __r23 __asm__("r23") = (unsigned long)r23;	\
+	register unsigned long __r23 __asm__("r23") = (unsigned long)(r23);	\
 	LOAD_ARGS_3(r26,r25,r24)
 #define LOAD_ARGS_5(r26,r25,r24,r23,r22)			\
-	register unsigned long __r22 __asm__("r22") = (unsigned long)r22;	\
+	register unsigned long __r22 __asm__("r22") = (unsigned long)(r22);	\
 	LOAD_ARGS_4(r26,r25,r24,r23)
 #define LOAD_ARGS_6(r26,r25,r24,r23,r22,r21)			\
-	register unsigned long __r21 __asm__("r21") = (unsigned long)r21;	\
+	register unsigned long __r21 __asm__("r21") = (unsigned long)(r21);	\
 	LOAD_ARGS_5(r26,r25,r24,r23,r22)
 
 /* Even with zero args we use r20 for the syscall number */

--FCuugMFkClbJLl1L--

---------------------------------------
Received: (at 218660-done) by bugs.debian.org; 2 Nov 2003 21:55:00 +0000
>From drow@crack.them.org Sun Nov 02 15:54:59 2003
Return-path: <drow@crack.them.org>
Received: from nevyn.them.org [66.93.172.17] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AGQBX-0008CW-00; Sun, 02 Nov 2003 15:54:59 -0600
Received: from drow by nevyn.them.org with local (Exim 4.24 #1 (Debian))
	id 1AGQBX-00055U-AU
	for <218660-done@bugs.debian.org>; Sun, 02 Nov 2003 16:54:59 -0500
Date: Sun, 2 Nov 2003 16:54:59 -0500
From: Daniel Jacobowitz <dan@debian.org>
To: 218660-done@bugs.debian.org
Subject: Patch installed
Message-ID: <20031102215459.GA19541@nevyn.them.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.1i
Delivered-To: 218660-done@bugs.debian.org
X-Spam-Status: No, hits=0.0 required=4.0
	tests=none
	version=2.53-bugs.debian.org_2003_11_1
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_11_1 (1.174.2.15-2003-03-30-exp)

Closed in ds1-9.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



Reply to: