From: selvakumar nagendran <kernelselva@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Kernel panic Attempted to kill init while intercepting close syscall
Date: Sun, 9 Jan 2005 22:33:38 -0800 (PST) [thread overview]
Message-ID: <20050110063338.40429.qmail@web60604.mail.yahoo.com> (raw)
Hello linux-experts,
I am intercepting syscall in kernel 2.4.28. While,
I was intercepting close() syscall, I got the
following message:
Kernel panic: Attempted to kill init !
I have also attached the code here. What could be
the problem? I am storing files opened in a hash table
and then while a particular file descriptor is closed,
I am calling find_pipe_fd to clean the associated
structure in my hash table.
Thanks,
selva
----------------
void find_pipe_fd(unsigned int fd)
{
unsigned long tfd, tinode, hashkey;
unsigned int taccess;
struct list_head *p, *taskp;
struct resource *my;
struct my_process *my_task;
tfd = (long) fd;
tinode = getinode(tfd);
taccess = READACCESS;
//Evaluate for read access resource descriptor
hashkey = eval_hashkey(tfd, tinode, taccess);
printk("\nHash key evaluated..[%ld]",hashkey);
/* Clean the memory using kmalloc */
}
static int my_sys_close(unsigned int fd)
{
int ret,err;
unsigned int tfd = fd;
MOD_INC_USE_COUNT;
ret = sys_close_saved(tfd);
/*Upon successful close find and delete the file
descriptor resource from the hash table */
if (ret == 0)
find_pipe_fd(tfd);
MOD_DEC_USE_COUNT;
return ret;
}
__________________________________
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250
reply other threads:[~2005-01-10 6:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20050110063338.40429.qmail@web60604.mail.yahoo.com \
--to=kernelselva@yahoo.com \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®