public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
To: Luciano Rocha <strange@nsk.no-ip.org>, linux-kernel@vger.kernel.org
Cc: Ingo Molnar <mingo@elte.hu>, dhaval@linux.vnet.ibm.com
Subject: Re: can't change euid 0 to uid != running user
Date: Fri, 5 Oct 2007 21:29:35 +0530	[thread overview]
Message-ID: <20071005155935.GA8148@linux.vnet.ibm.com> (raw)
In-Reply-To: <20071005142541.GA9224@bit.office.eurotux.com>

On Fri, Oct 05, 2007 at 03:25:43PM +0100, Luciano Rocha wrote:
> I have the following problem:
> $ sudo -u ie -s # or sudo su ie
> unable to change to runas uid: Resource temporarily unavailable
> 
> Works:
> $ sudo su, followed by su ie
> 
> The first sudo also worked while I had a shell under user ie.
> 
> When I exited, it stopped working, but it is now working every time I
> trie it.
> 
> dmesg shows:
> 
> [82602.729330] kobject_add failed for 504 with -EEXIST, don't try to
>                register things with the same name in the same directory.
> [82602.729365]  [<c04b9195>] kobject_shadow_add+0x16e/0x1a0
> [82602.729383]  [<c04b9480>] kobject_set_name+0x29/0x92
> [82602.729504]  [<c04238ea>] user_kobject_create+0x6a/0x90
> [82602.729520]  [<c0423cce>] alloc_uid+0x18f/0x1d7
> [82602.729530]  [<c0427030>] set_user+0x1c/0x8f
> [82602.729539]  [<c0428b5f>] sys_setresuid+0xd5/0x162
> [82602.729552]  [<c0403e6a>] syscall_call+0x7/0xb
> [82602.729575]  =======================

This seems to be similar to the problem Ingo reported
(http://marc.info/?l=linux-kernel&m=119125007102969). We have sent a fix
for it subsequently (http://marc.info/?l=linux-kernel&m=119143193812026).

Can you resync to Ingo's latest cfs-devel tree (which will remove the
bad patch you have), then apply the patch at
http://marc.info/?l=linux-kernel&m=119143193812026 and verify if the
problem goes away?


-- 
Regards,
vatsa

      parent reply	other threads:[~2007-10-05 15:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-05 14:25 can't change euid 0 to uid != running user Luciano Rocha
2007-10-05 15:28 ` Ray Lee
2007-10-05 19:29   ` Luciano Rocha
2007-10-07 16:49   ` Luciano Rocha
2007-10-07 23:56     ` Ray Lee
2007-10-05 15:59 ` Srivatsa Vaddagiri [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071005155935.GA8148@linux.vnet.ibm.com \
    --to=vatsa@linux.vnet.ibm.com \
    --cc=dhaval@linux.vnet.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=strange@nsk.no-ip.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox