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

Bug#503821: Purpose of features/all/xen/workaround-pte-file.patch?



On Tue, 2008-11-04 at 17:43 +0100, Bastian Blank wrote:
> On Tue, Nov 04, 2008 at 02:26:33PM +0000, Ian Campbell wrote:
> > On Tue, 2008-11-04 at 14:02 +0100, Bastian Blank wrote:
> > > Maybe its the best to remove the workaround and instead cripple mprotect
> > > to not allow PROT_NONE for now. And then hope that this can't be
> > > triggered by mmap with PROT_NONE.
> > I was thinking of going down the path of removing the workaround then
> > fixing mprotect, so your suggestion would be a consistant first step I
> > think.
> 
> Unchecked patch attached. It disallows changes from and to PROT_NONE.

It boots but I cannot login, it hangs after MOTD.

I added some debug and I see an aweful lot of transitions to prot ==
0x0, seemingly for every process... I think this login has hung although
I don't get a debug message from it:

           43.350538] login         S ffffffff8037fea0     0  1087      1
        [   43.350538]  ffff880007de7b78 0000000000000286 ffff880007de7ab0 0000000000000000
        [   43.350538]  ffff880007d1b810 ffffffff803d4460 ffff880007d1ba48 0000000007802b50
        [   43.350538]  00000000000480fd ffffffff80292c42 0000000000000000 00000000000480fd
        [   43.350538] Call Trace:
        [   43.350538]  [<ffffffff80292c42>] __find_get_block_slow+0xec/0xf8
        [   43.350538]  [<ffffffff802c8d73>] do_get_write_access+0x39e/0x3e9
        [   43.350538]  [<ffffffff8036b28a>] schedule_timeout+0x1e/0xad
        [   43.350538]  [<ffffffff80293036>] __getblk+0x1d/0x230
        [   43.350538]  [<ffffffff8023c5e4>] prepare_to_wait_exclusive+0x15/0x5e
        [   43.350538]  [<ffffffff803628aa>] unix_wait_for_peer+0xb0/0xcc
        [   43.350538]  [<ffffffff8023c521>] autoremove_wake_function+0x0/0x2e
        [   43.350538]  [<ffffffff80320631>] memcpy_fromiovec+0x36/0x66
        [   43.350538]  [<ffffffff80362e65>] unix_dgram_sendmsg+0x3b7/0x4e4
        [   43.350538]  [<ffffffff8031995d>] sock_sendmsg+0xcb/0xe3
        [   43.350538]  [<ffffffff8023c521>] autoremove_wake_function+0x0/0x2e
        [   43.350538]  [<ffffffff802877c1>] mntput_no_expire+0x20/0x15d
        [   43.350538]  [<ffffffff803629d8>] unix_find_other+0x112/0x1e8
        [   43.350538]  [<ffffffff8027bd4a>] do_path_lookup+0x14c/0x170
        [   43.350538]  [<ffffffff802877c1>] mntput_no_expire+0x20/0x15d
        [   43.350538]  [<ffffffff80319241>] sockfd_lookup_light+0x1a/0x52
        [   43.350538]  [<ffffffff80319cf2>] sys_sendto+0xf3/0x127
        [   43.350538]  [<ffffffff803645df>] unix_dgram_connect+0x14d/0x182
        [   43.350538]  [<ffffffff80319464>] sys_connect+0x6c/0x9c
        [   43.350538]  [<ffffffff8020b4d8>] system_call+0x68/0x6d
        [   43.350538]  [<ffffffff8020b470>] system_call+0x0/0x6d

Ian.
-- 
Ian Campbell

True to our past we work with an inherited, observed, and accepted vision of
personal futility, and of the beauty of the world.
		-- David Mamet

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: