Skip to contentSkip to conversation

Needed arch_copy_tls? Not done by dup_task_struct?

uml-devel Blaisorblade 2 participants 5 messages Jan 18, 2006 – Jan 19, 2006 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

I looked at my patch's comment and noticed that arch_copy_tls, your introduction, shouldn't indeed be needed, because dup_task_struct should do that (it copies the whole task_struct, and it seems that arch_thread is included in that blob rather than pointed too).

I'm fairly puzzled at that. Have you any idea on this?

Also, since you have a good test FS (Fedora), can I send you the updated versions I put out / can you test them? My Sarge isn't good any more, likely because glibc was updated by apt-get, and it works well with the LDT fallback.

I've just uploaded 2.6.15-bs1-tls for people to test.

Signature · 23 lines
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! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#1 lore raw
Quoted 6 lines · Blaisorblade

I looked at my patch's comment and noticed that arch_copy_tls, your introduction, shouldn't indeed be needed, because dup_task_struct should do that (it copies the whole task_struct, and it seems that arch_thread is included in that blob rather than pointed too).

I'm fairly puzzled at that. Have you any idea on this?

I wondered about that, too, but hadn't bothered looking into it yet. I'm suspicious that we initialize p.thread with INIT_THREAD, which would obviously wipe it out.

Quoted 4 lines

Also, since you have a good test FS (Fedora), can I send you the updated versions I put out / can you test them? My Sarge isn't good any more, likely because glibc was updated by apt-get, and it works well with the LDT fallback.

I have - they are on my patches page. I added back the user_desc -> modify_ldt_t thing because I don't have a user_desc here.

Other than that (and the O_FORCE succeeded message), it seems to be working fine.

Quoted 1 line

I've just uploaded 2.6.15-bs1-tls for people to test.

What I grabbed is what was there this morning. If you changed anything significant, let me know, and I'll pull again.

Jeff

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#2 lore raw
Quoted 17 lines · Jeff Dike
Quoted 6 lines · Blaisorblade

I looked at my patch's comment and noticed that arch_copy_tls, your introduction, shouldn't indeed be needed, because dup_task_struct should do that (it copies the whole task_struct, and it seems that arch_thread is included in that blob rather than pointed too).

I'm fairly puzzled at that. Have you any idea on this?

I wondered about that, too, but hadn't bothered looking into it yet. I'm suspicious that we initialize p.thread with INIT_THREAD, which would obviously wipe it out.

Quoted 4 lines

Also, since you have a good test FS (Fedora), can I send you the updated versions I put out / can you test them? My Sarge isn't good any more, likely because glibc was updated by apt-get, and it works well with the LDT fallback.

Quoted 6 lines

I have - they are on my patches page. I added back the user_desc -> modify_ldt_t thing because I don't have a user_desc here.

Other than that

(and the O_FORCE succeeded message),

Uff, I want to remove load_TLS(O_FORCE) from there altogether.

Could you unapply

patches/tls/uml-add-tls-support-debug-check-never-works

and verify it works correctly however? I want that to work :-) !

Quoted 7 lines

it seems to be working
fine.

Quoted 1 line

I've just uploaded 2.6.15-bs1-tls for people to test.

What I grabbed is what was there this morning. If you changed anything significant, let me know, and I'll pull again.

Ok, don't think anything changed for now. I'm changing things however, so please stick modification in different patches so we merge easily.

Signature · 23 lines
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! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#4 lore raw
In reply to Jeff Dike
Quoted 12 lines · Jeff Dike
Quoted 6 lines · Blaisorblade

I looked at my patch's comment and noticed that arch_copy_tls, your introduction, shouldn't indeed be needed, because dup_task_struct should do that (it copies the whole task_struct, and it seems that arch_thread is included in that blob rather than pointed too).

I'm fairly puzzled at that. Have you any idea on this?

I wondered about that, too, but hadn't bothered looking into it yet. I'm suspicious that we initialize p.thread with INIT_THREAD, which would obviously wipe it out.

Quoted 7 lines
Quoted 4 lines

Also, since you have a good test FS (Fedora), can I send you the updated versions I put out / can you test them? My Sarge isn't good any more, likely because glibc was updated by apt-get, and it works well with the LDT fallback.

I have - they are on my patches page. I added back the user_desc -> modify_ldt_t thing because I don't have a user_desc here.

I'm fixing this by copying the structure definition into sysdep/tls.h header files with a different name and using that one in os-Linux/tls.c.

Quoted 7 lines

Other than that (and the O_FORCE succeeded message), it seems to be working fine.

Quoted 1 line

I've just uploaded 2.6.15-bs1-tls for people to test.

What I grabbed is what was there this morning. If you changed anything significant, let me know, and I'll pull again.

I'll notify you when needed.

Signature · 20 lines
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 with Voice: chiama da PC a telefono a tariffe esclusive 
http://it.messenger.yahoo.com



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#3 lore raw
In reply to Blaisorblade
Quoted 5 lines · Blaisorblade

Could you unapply

patches/tls/uml-add-tls-support-debug-check-never-works

and verify it works correctly however? I want that to work :-) !

Sill seems OK.

Quoted 2 lines

Ok, don't think anything changed for now. I'm changing things however, so please stick modification in different patches so we merge easily.

Yeah, I'm leaving yours alone and keeping my changes in their own patches.

Jeff

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel