From: ishare <june.tune.sea@gmail.com>
To: linux-newbie@vger.kernel.org
Subject: help with page_fault
Date: Mon, 11 Mar 2013 09:10:40 +0800 [thread overview]
Message-ID: <20130311011040.GA2791@debian.localdomain> (raw)
At boot stage , my kernel get into loop restart due to page_fault.
I have catched the source . here is the backtrace :
#3 0xc01c686e in new_inode (sb=0xc8df5800) at fs/inode.c:551
#4 0xc01d076d in get_sb_pseudo (fs_type=0xc02e1d00, name=0xc02c3747 "futex", ops=0x0, magic=195894762) at fs/libfs.c:201
#5 0xc015cbbf in futexfs_get_sb (fs_type=0xc02e1d00, flags=0, dev_name=0xc02c374d "futexfs", data=0x0) at kernel/futex.c:679
#6 0xc01a62c5 in do_kern_mount (fstype=0xc02c374d "futexfs", flags=0, name=0xc02c374d "futexfs", data=0x0) at fs/super.c:718
code at the frame 3 is :
struct inode *root = new_inode(s);
after return from the new_inode , the root->i_dentry=(0x1,0x3).
then calling the function d_instantiate(entry, root),here entry is of type struct entry*,
this calls do list_add(&entry->d_alias, root->i_dentry),
Obviously,this need to address the inode->i_dentry->next,which is ox3,
but 0x3 is low address ,addressing to it causes a page_fault ,then make system restart .
I doubt that the returned root inode need to be initialized using a applicable i_dentry .
If so ,what value can be used ? If not , where am I wrong?
thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
reply other threads:[~2013-03-11 1:10 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=20130311011040.GA2791@debian.localdomain \
--to=june.tune.sea@gmail.com \
--cc=linux-newbie@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