On Sun, May 12, 2013 at 8:45 PM, Toralf Förster <toralf.foers...@gmx.de> wrote:
> On 05/12/2013 06:31 PM, richard -rw- weinberger wrote:
>> Toralf, can you please replace stub_pte_fix.diff with the attached patch?
>
> Hhm,
>
> ok, now it tooks hours than minutes, but  :
>
> 013-05-12T20:37:17.000+02:00 trinity tfoerste: M=/mnt/nfs/n22
> 2013-05-12T20:37:17.000+02:00 trinity sshd[2344]: pam_unix(sshd:session): 
> session closed for user tfoerste
> 2013-05-12T20:40:01.000+02:00 trinity cron[2400]: (root) CMD (test -x 
> /usr/sbin/run-crons && /usr/sbin/run-crons)
> 2013-05-12T20:40:47.755+02:00 trinity kernel: ------------[ cut here 
> ]------------
> 2013-05-12T20:40:47.755+02:00 trinity kernel: WARNING: at mm/mmap.c:2757 
> exit_mmap+0x164/0x190()
> 2013-05-12T20:40:47.755+02:00 trinity kernel: CPU: 0 PID: 2422 Comm: 
> trinity-child0 Not tainted 3.10.0-rc1-00002-gc17b38f #6
> 2013-05-12T20:40:47.755+02:00 trinity kernel: 408f7d9c 408f7dc8 0807bfba 
> 083d51b0 083d9a6e 00000ac5 080eb8e4 080eb8e4
> 2013-05-12T20:40:47.755+02:00 trinity kernel: 000007d8 40b026c0 3fdbe93c 
> 408f7dd8 0807c083 00000009 00000000 408f7e10
> 2013-05-12T20:40:47.755+02:00 trinity kernel: 080eb8e4 083d9a6e 00000ac5 
> c0000000 00000000 25d1f5d8 40b026c0 00000000 408f7d70:  [<08060cff>] 
> show_stack+0xcf/0x100
> 2013-05-12T20:40:47.755+02:00 trinity kernel: 408f7d94:  [<0835ed89>] 
> dump_stack+0x26/0x28
> 2013-05-12T20:40:47.755+02:00 trinity kernel: 408f7da4:  [<0807bfba>] 
> warn_slowpath_common+0x5a/0x80
> 2013-05-12T20:40:47.755+02:00 trinity kernel: 408f7dcc:  [<0807c083>] 
> warn_slowpath_null+0x23/0x30
> 2013-05-12T20:40:47.755+02:00 trinity kernel: 408f7ddc:  [<080eb8e4>] 
> exit_mmap+0x164/0x190
> 2013-05-12T20:40:47.757+02:00 trinity kernel: 408f7e14:  [<0807990d>] 
> mmput+0x3d/0xb0
> 2013-05-12T20:40:47.757+02:00 trinity kernel: 408f7e28:  [<08081076>] 
> do_exit+0x2f6/0x880
> 2013-05-12T20:40:47.757+02:00 trinity kernel: 408f7e78:  [<080816e9>] 
> do_group_exit+0xa9/0xf0
> 2013-05-12T20:40:47.757+02:00 trinity kernel: 408f7ea0:  [<08081749>] 
> SyS_exit_group+0x19/0x20
> 2013-05-12T20:40:47.757+02:00 trinity kernel: 408f7eac:  [<08062ab2>] 
> handle_syscall+0x82/0xb0
> 2013-05-12T20:40:47.757+02:00 trinity kernel: 408f7ef4:  [<0807518d>] 
> userspace+0x46d/0x590
> 2013-05-12T20:40:47.757+02:00 trinity kernel: 408f7fec:  [<0805f7fc>] 
> fork_handler+0x6c/0x70
> 2013-05-12T20:40:47.757+02:00 trinity kernel: 408f7ffc:  [<00000000>] 0x0
> 2013-05-12T20:40:47.757+02:00 trinity kernel:
> 2013-05-12T20:40:47.757+02:00 trinity kernel: ---[ end trace 610449969e20fc68 
> ]---
> 2013-05-12T20:40:47.758+02:00 trinity kernel: XXX mm->nr_ptes: 4294967295
> 2013-05-12T20:40:50.000+02:00 trinity sshd[2350]: pam_unix(sshd:session): 
> session closed for user tfoerste

Damn, we've underrun the counter. :-\
Can you please test the attached 3rd debug patch?

The problem is that we have to install a mapping for the stub pages.
This mapping must not have a VMA. Otherwise a UML user process could
change this mapping.
So, we have to insert PTEs manually and play nasty games with mm->nr_ptes.

--
Thanks,
//richard

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to