From: David Howells <dhowells@redhat.com>
To: Toshiyuki Okajima <toshi.okajima@jp.fujitsu.com>
Cc: dhowells@redhat.com, keyrings@linux-nfs.org, security@kernel.org,
linux-security-module@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/1][BUG][IMPORTANT] KEYRINGS: find_keyring_by_name() can gain the freed keyring
Date: Fri, 23 Apr 2010 09:39:04 +0100 [thread overview]
Message-ID: <17087.1272011944@redhat.com> (raw)
In-Reply-To: <20100422163633.de233f25.toshi.okajima@jp.fujitsu.com>
Toshiyuki Okajima <toshi.okajima@jp.fujitsu.com> wrote:
> #!/bin/sh
>
> LOOP=100000
> USER=dummy_user
> # add
> /bin/su -c "exit;" $USER || { /usr/sbin/adduser -m $USER; add=1; }
>
> for ((i=0; i<LOOP; i++))
> do
> /bin/su -c "echo '$i' > /dev/null" $USER
> done
>
> # del
> (( add == 1 )) && /usr/sbin/userdel -r $USER
> exit
Doing:
for ((i=0; i<100000; i++)); do keyctl session wibble /bin/true || break; done
ought to work too.
David
prev parent reply other threads:[~2010-04-23 8:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-22 7:36 [PATCH 0/1][BUG][IMPORTANT] KEYRINGS: find_keyring_by_name() can gain the freed keyring Toshiyuki Okajima
2010-04-23 8:39 ` David Howells [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=17087.1272011944@redhat.com \
--to=dhowells@redhat.com \
--cc=keyrings@linux-nfs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=security@kernel.org \
--cc=toshi.okajima@jp.fujitsu.com \
/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