linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] Re: SKAS0 test tree against 2.6.12
       [not found] <20050707182817.9601389260@sc8-sf-spam1.sourceforge.net>
@ 2005-07-08 10:29 ` antoine
  2005-07-09 10:40   ` Blaisorblade
  0 siblings, 1 reply; 4+ messages in thread
From: antoine @ 2005-07-08 10:29 UTC (permalink / raw)
  To: user-mode-linux-devel

> Ok, it's there. I've simply adapted the two SKAS0 patches for 2.6.12 
> (backporting a cleanup and fixing some trivial rejects). More info at the web 
> page.
> 
> Testing is welcome. In particular, any regression in SKAS3 mode should be 
> prompty reported to me and Jeff, because they are not expected at all.
> 
> I'll add a simplified "proc_mm=0" switch (it's not the Bodo's patch because 
> that is more intrusive and splits that further into proc_mm and faultinfo 
> switches).
Don't know if you're interested in this report but it does not build for
x86_64:
  SYMLINK arch/um/sys-x86_64/semaphore.c
  CC      arch/um/sys-x86_64/semaphore.o
  CC      arch/um/sys-x86_64/sigcontext.o
  CC      arch/um/sys-x86_64/signal.o
arch/um/sys-x86_64/signal.c: In function ‘setup_signal_stack_si’:
arch/um/sys-x86_64/signal.c:171: error: invalid lvalue in assignment
make[1]: *** [arch/um/sys-x86_64/signal.o] Error 1
make: *** [arch/um/sys-x86_64] Error 2

Could you include the pcap patch in bb?
Thanks
Antoine



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [uml-devel] Re: SKAS0 test tree against 2.6.12
  2005-07-08 10:29 ` [uml-devel] Re: SKAS0 test tree against 2.6.12 antoine
@ 2005-07-09 10:40   ` Blaisorblade
  2005-07-11 21:46     ` Blaisorblade
  0 siblings, 1 reply; 4+ messages in thread
From: Blaisorblade @ 2005-07-09 10:40 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: antoine

[-- Attachment #1: Type: text/plain, Size: 1560 bytes --]

On Friday 08 July 2005 12:29, antoine wrote:
> > Ok, it's there. I've simply adapted the two SKAS0 patches for 2.6.12
> > (backporting a cleanup and fixing some trivial rejects). More info at the
> > web page.
> >
> > Testing is welcome. In particular, any regression in SKAS3 mode should be
> > prompty reported to me and Jeff, because they are not expected at all.
> >
> > I'll add a simplified "proc_mm=0" switch (it's not the Bodo's patch
> > because that is more intrusive and splits that further into proc_mm and
> > faultinfo switches).

> Don't know if you're interested in this report but it does not build for
> x86_64:
>   SYMLINK arch/um/sys-x86_64/semaphore.c
>   CC      arch/um/sys-x86_64/semaphore.o
>   CC      arch/um/sys-x86_64/sigcontext.o
>   CC      arch/um/sys-x86_64/signal.o
> arch/um/sys-x86_64/signal.c: In function ‘setup_signal_stack_si’:
> arch/um/sys-x86_64/signal.c:171: error: invalid lvalue in assignment
> make[1]: *** [arch/um/sys-x86_64/signal.o] Error 1
> make: *** [arch/um/sys-x86_64] Error 2
I remember this report, only I just suggested the fix and didn't post it (was 
busy at that time). It's SKAS0 - unrelated I think (I may be wrong, but the 
whole patchset does not include it) but triggered by GCC4.

> Could you include the pcap patch in bb?
Yes, I'll do.
> Thanks
> Antoine

-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

[-- Attachment #2: uml-fix-for-gcc4-lvalue.patch --]
[-- Type: text/x-diff, Size: 847 bytes --]


This is refused by GCC 4, so here's the fix.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
---

 vanilla-linux-2.6.12-paolo/arch/um/sys-x86_64/signal.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN arch/um/sys-x86_64/signal.c~uml-fix-for-gcc4-lvalue arch/um/sys-x86_64/signal.c
--- vanilla-linux-2.6.12/arch/um/sys-x86_64/signal.c~uml-fix-for-gcc4-lvalue	2005-07-09 12:02:27.000000000 +0200
+++ vanilla-linux-2.6.12-paolo/arch/um/sys-x86_64/signal.c	2005-07-09 12:02:51.000000000 +0200
@@ -168,7 +168,7 @@ int setup_signal_stack_si(unsigned long 
 
 	frame = (struct rt_sigframe __user *)
 		round_down(stack_top - sizeof(struct rt_sigframe), 16) - 8;
-	((unsigned char *) frame) -= 128;
+	frame -= 128 / sizeof(frame);
 
 	if (!access_ok(VERIFY_WRITE, fp, sizeof(struct _fpstate)))
 		goto out;
_

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [uml-devel] Re: SKAS0 test tree against 2.6.12
  2005-07-09 10:40   ` Blaisorblade
@ 2005-07-11 21:46     ` Blaisorblade
  2005-07-11 22:04       ` Blaisorblade
  0 siblings, 1 reply; 4+ messages in thread
From: Blaisorblade @ 2005-07-11 21:46 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: antoine

[-- Attachment #1: Type: text/plain, Size: 1336 bytes --]

On Saturday 09 July 2005 12:40, Blaisorblade wrote:
> On Friday 08 July 2005 12:29, antoine wrote:
> >
> > Don't know if you're interested in this report but it does not build for
> > x86_64:
> >   SYMLINK arch/um/sys-x86_64/semaphore.c
> >   CC      arch/um/sys-x86_64/semaphore.o
> >   CC      arch/um/sys-x86_64/sigcontext.o
> >   CC      arch/um/sys-x86_64/signal.o
> > arch/um/sys-x86_64/signal.c: In function ‘setup_signal_stack_si’:
> > arch/um/sys-x86_64/signal.c:171: error: invalid lvalue in assignment
> > make[1]: *** [arch/um/sys-x86_64/signal.o] Error 1
> > make: *** [arch/um/sys-x86_64] Error 2
>
> I remember this report, only I just suggested the fix and didn't post it
> (was busy at that time). It's SKAS0 - unrelated I think (I may be wrong,
> but the whole patchset does not include it) but triggered by GCC4.
Please keep remembering I *am* stupid, as just noted by Russell King (ARM 
maintainer) :-(.

The attached patch makes more sense... however it seems that the affected code 
is anyway buggy, so I hope Jeff will help fixing this (unless I get to 
understand this magically).
-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

[-- Attachment #2: uml-fix-for-gcc4-lvalue.patch --]
[-- Type: text/x-diff, Size: 848 bytes --]


This is refused by GCC 4, so here's the fix.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
---

 vanilla-linux-2.6.12-paolo/arch/um/sys-x86_64/signal.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN arch/um/sys-x86_64/signal.c~uml-fix-for-gcc4-lvalue arch/um/sys-x86_64/signal.c
--- vanilla-linux-2.6.12/arch/um/sys-x86_64/signal.c~uml-fix-for-gcc4-lvalue	2005-07-11 23:23:27.000000000 +0200
+++ vanilla-linux-2.6.12-paolo/arch/um/sys-x86_64/signal.c	2005-07-11 23:23:41.000000000 +0200
@@ -168,7 +168,7 @@ int setup_signal_stack_si(unsigned long 
 
 	frame = (struct rt_sigframe __user *)
 		round_down(stack_top - sizeof(struct rt_sigframe), 16) - 8;
-	((unsigned char *) frame) -= 128;
+	frame -= 128 / sizeof(*frame);
 
 	if (!access_ok(VERIFY_WRITE, fp, sizeof(struct _fpstate)))
 		goto out;
_

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [uml-devel] Re: SKAS0 test tree against 2.6.12
  2005-07-11 21:46     ` Blaisorblade
@ 2005-07-11 22:04       ` Blaisorblade
  0 siblings, 0 replies; 4+ messages in thread
From: Blaisorblade @ 2005-07-11 22:04 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: antoine

On Monday 11 July 2005 23:46, Blaisorblade wrote:
> On Saturday 09 July 2005 12:40, Blaisorblade wrote:
> > On Friday 08 July 2005 12:29, antoine wrote:
> > > Don't know if you're interested in this report but it does not build
> > > for x86_64:
> > >   SYMLINK arch/um/sys-x86_64/semaphore.c
> > >   CC      arch/um/sys-x86_64/semaphore.o
> > >   CC      arch/um/sys-x86_64/sigcontext.o
> > >   CC      arch/um/sys-x86_64/signal.o
> > > arch/um/sys-x86_64/signal.c: In function ‘setup_signal_stack_si’:
> > > arch/um/sys-x86_64/signal.c:171: error: invalid lvalue in assignment
> > > make[1]: *** [arch/um/sys-x86_64/signal.o] Error 1
> > > make: *** [arch/um/sys-x86_64] Error 2
> >
> > I remember this report, only I just suggested the fix and didn't post it
> > (was busy at that time). It's SKAS0 - unrelated I think (I may be wrong,
> > but the whole patchset does not include it) but triggered by GCC4.
>
> Please keep remembering I *am* stupid, as just noted by Russell King (ARM
> maintainer) :-(.
>
> The attached patch makes more sense... however it seems that the affected
> code is anyway buggy, so I hope Jeff will help fixing this (unless I get to
> understand this magically).
Correction: the affected should be improved, but it anyway works.
-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

		
___________________________________ 
Yahoo! Messenger: chiamate gratuite in tutto il mondo 
http://it.beta.messenger.yahoo.com



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-07-11 21:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20050707182817.9601389260@sc8-sf-spam1.sourceforge.net>
2005-07-08 10:29 ` [uml-devel] Re: SKAS0 test tree against 2.6.12 antoine
2005-07-09 10:40   ` Blaisorblade
2005-07-11 21:46     ` Blaisorblade
2005-07-11 22:04       ` Blaisorblade

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox