From: TAO HU <tghk48@motorola.com>
To: Minchan Kim <minchan.kim@gmail.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
TAO HU <taohu@motorola.com>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org,
"Ye Yuan.Bo-A22116" <yuan-bo.ye@motorola.com>,
Chang Qing-A21550 <Qing.Chang@motorola.com>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [Question] race condition in mm/page_alloc.c regarding page->lru?
Date: Fri, 2 Apr 2010 15:00:52 +0800 [thread overview]
Message-ID: <z2w5f4a33681004020000td60331aam2c6947954d78e46@mail.gmail.com> (raw)
In-Reply-To: <z2x28c262361004012215h2b2ea3dbu5260724f97f55b95@mail.gmail.com>
Hi, kamezawa hiroyu
Thanks for the hint!
Hi, Minchan Kim
Sorry. Not exactly sure your idea about <grep "page handling">.
Below is a result of $ grep -n -r "list_del(&page->lru)" * in our src tree
arch/s390/mm/pgtable.c:83: list_del(&page->lru);
arch/s390/mm/pgtable.c:226: list_del(&page->lru);
arch/x86/mm/pgtable.c:60: list_del(&page->lru);
drivers/xen/balloon.c:154: list_del(&page->lru);
drivers/virtio/virtio_balloon.c:143: list_del(&page->lru);
fs/cifs/file.c:1780: list_del(&page->lru);
fs/btrfs/extent_io.c:2584: list_del(&page->lru);
fs/mpage.c:388: list_del(&page->lru);
include/linux/mm_inline.h:37: list_del(&page->lru);
include/linux/mm_inline.h:47: list_del(&page->lru);
kernel/kexec.c:391: list_del(&page->lru);
kernel/kexec.c:711: list_del(&page->lru);
mm/migrate.c:69: list_del(&page->lru);
mm/migrate.c:695: list_del(&page->lru);
mm/hugetlb.c:467: list_del(&page->lru);
mm/hugetlb.c:509: list_del(&page->lru);
mm/hugetlb.c:836: list_del(&page->lru);
mm/hugetlb.c:844: list_del(&page->lru);
mm/hugetlb.c:900: list_del(&page->lru);
mm/hugetlb.c:1130: list_del(&page->lru);
mm/hugetlb.c:1809: list_del(&page->lru);
mm/vmscan.c:597: list_del(&page->lru);
mm/vmscan.c:1148: list_del(&page->lru);
mm/vmscan.c:1246: list_del(&page->lru);
mm/slub.c:827: list_del(&page->lru);
mm/slub.c:1249: list_del(&page->lru);
mm/slub.c:1263: list_del(&page->lru);
mm/slub.c:2419: list_del(&page->lru);
mm/slub.c:2809: list_del(&page->lru);
mm/readahead.c:65: list_del(&page->lru);
mm/readahead.c:100: list_del(&page->lru);
mm/page_alloc.c:532: list_del(&page->lru);
mm/page_alloc.c:679: list_del(&page->lru);
mm/page_alloc.c:741: list_del(&page->lru);
mm/page_alloc.c:820: list_del(&page->lru);
mm/page_alloc.c:1107: list_del(&page->lru);
mm/page_alloc.c:4784: list_del(&page->lru);
On Fri, Apr 2, 2010 at 1:15 PM, Minchan Kim <minchan.kim@gmail.com> wrote:
> On Fri, Apr 2, 2010 at 2:04 PM, KAMEZAWA Hiroyuki
> <kamezawa.hiroyu@jp.fujitsu.com> wrote:
>> On Fri, 2 Apr 2010 11:51:33 +0800
>> TAO HU <tghk48@motorola.com> wrote:
>>
>>> 2 patches related to page_alloc.c were applied.
>>> Does anyone see a connection between the 2 patches and the panic?
>>> NOTE: the full patches are attached.
>>>
>>
>> I don't think there are relationship between patches and your panic.
>>
>> BTW, there is other case about the backlog rather than race in alloc_pages()
>> itself. If someone list_del(&page->lru) and the page is already freed,
>> you'll see the same backlog later.
>> Then, I doubt use-after-free case rather than complicated races.
>
> It does make sense.
> Please, grep "page handling" by out-of-mainline code.
> If you found out, Please, post it.
>
> --
> Kind regards,
> Minchan Kim
>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2010-04-02 7:00 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-01 4:05 [Question] race condition in mm/page_alloc.c regarding page->lru? TAO HU
2010-04-02 3:51 ` TAO HU
2010-04-02 5:03 ` KOSAKI Motohiro
2010-04-02 5:19 ` TAO HU
2010-04-02 9:48 ` Mel Gorman
2010-04-03 0:59 ` Arve Hjønnevåg
2010-04-04 22:45 ` KOSAKI Motohiro
2010-04-05 10:14 ` Mel Gorman
2010-04-05 10:49 ` Minchan Kim
2010-04-06 3:09 ` [PATCH] mm: Check if any page in a pageblock is reserved before marking it MIGRATE_RESERVE Arve Hjønnevåg
2010-04-06 4:15 ` Minchan Kim
2010-04-06 15:11 ` Mel Gorman
2010-04-02 5:04 ` [Question] race condition in mm/page_alloc.c regarding page->lru? KAMEZAWA Hiroyuki
2010-04-02 5:15 ` Minchan Kim
2010-04-02 7:00 ` TAO HU [this message]
2010-04-02 7:22 ` Minchan Kim
2010-04-02 5:13 ` Minchan Kim
2010-04-02 6:48 ` TAO HU
2010-04-02 7:06 ` Daniel Mack
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=z2w5f4a33681004020000td60331aam2c6947954d78e46@mail.gmail.com \
--to=tghk48@motorola.com \
--cc=Qing.Chang@motorola.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=minchan.kim@gmail.com \
--cc=taohu@motorola.com \
--cc=yuan-bo.ye@motorola.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;
as well as URLs for NNTP newsgroup(s).