Skip to contentSkip to conversation

unhandlable pages

DISCUSSION Luck, Tony 4 participants 7 messages Mar 21, 2022 – Mar 22, 2022 Memory management

lore
Share & tools
lore

Luck, Tony

author
#0 lore raw

Validation folks are seeing this on a v5.16 kernel. I don't see any changes in v5.17 that look like they address it.

Mar 04 14:05:05 JF5300-07B181T kernel: page:00000000696b0b6a refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x195cda44
Mar 04 14:05:05 JF5300-07B181T kernel: flags: 0x57ffffc0801000(reserved|hwpoison|node=1|zone=2|lastcpupid=0x1fffff)
Mar 04 14:05:05 JF5300-07B181T kernel: raw: 0057ffffc0801000 ffff6ea817369108 ffff6ea817369108 0000000000000000
Mar 04 14:05:05 JF5300-07B181T kernel: raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
Mar 04 14:05:05 JF5300-07B181T kernel: page dumped because: hwpoison: unhandlable page
Mar 04 14:05:05 JF5300-07B181T kernel: Memory failure: 0x195cda44: recovery action for unknown page: Ignored

Som debugging shows this is an anon page (expected ... that's the type of page where the error was injected. They see shake_page() called three times, but it doesn't change anything, so the page is reported as unhandlable.

-Tony

#1 lore raw
Quoted 10 lines · Tony

Validation folks are seeing this on a v5.16 kernel. I don't see any changes in v5.17 that look like they address it.

Mar 04 14:05:05 JF5300-07B181T kernel: page:00000000696b0b6a refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x195cda44
Mar 04 14:05:05 JF5300-07B181T kernel: flags: 0x57ffffc0801000(reserved|hwpoison|node=1|zone=2|lastcpupid=0x1fffff)
Mar 04 14:05:05 JF5300-07B181T kernel: raw: 0057ffffc0801000 ffff6ea817369108 ffff6ea817369108 0000000000000000
Mar 04 14:05:05 JF5300-07B181T kernel: raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
Mar 04 14:05:05 JF5300-07B181T kernel: page dumped because: hwpoison: unhandlable page
Mar 04 14:05:05 JF5300-07B181T kernel: Memory failure: 0x195cda44: recovery action for unknown page: Ignored
Quoted 4 lines

Som debugging shows this is an anon page (expected ... that's the type of page where the error was injected. They see shake_page() called three times, but it doesn't change anything, so the page is reported as unhandlable.

Uhm, that's not PageAnon. page->mapping is NULL, and anon pages have the bottom bit set with the rest of the page->mapping pointing to its anon_vma. Why do you think it's an anon page?

author
#2 lore raw
Quoted 11 lines · Matthew Wilcox
Quoted 10 lines · Tony

Validation folks are seeing this on a v5.16 kernel. I don't see any changes in v5.17 that look like they address it.

Mar 04 14:05:05 JF5300-07B181T kernel: page:00000000696b0b6a refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x195cda44
Mar 04 14:05:05 JF5300-07B181T kernel: flags: 0x57ffffc0801000(reserved|hwpoison|node=1|zone=2|lastcpupid=0x1fffff)
Mar 04 14:05:05 JF5300-07B181T kernel: raw: 0057ffffc0801000 ffff6ea817369108 ffff6ea817369108 0000000000000000
Mar 04 14:05:05 JF5300-07B181T kernel: raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
Mar 04 14:05:05 JF5300-07B181T kernel: page dumped because: hwpoison: unhandlable page
Mar 04 14:05:05 JF5300-07B181T kernel: Memory failure: 0x195cda44: recovery action for unknown page: Ignored
Quoted 8 lines
Quoted 4 lines

Som debugging shows this is an anon page (expected ... that's the type of page where the error was injected. They see shake_page() called three times, but it doesn't change anything, so the page is reported as unhandlable.

Uhm, that's not PageAnon. page->mapping is NULL, and anon pages have the bottom bit set with the rest of the page->mapping pointing to its anon_vma. Why do you think it's an anon page?

Sorry. I didn't do that decode ... just copied what was in the internal report. If it isn't anon, then does that page dump give info on what type the page is?

-Tony

#3 lore raw
Quoted 17 lines · Tony
Quoted 16 lines · Matthew Wilcox
Quoted 14 lines · Tony

Validation folks are seeing this on a v5.16 kernel. I don't see any changes in v5.17 that look like they address it.

Mar 04 14:05:05 JF5300-07B181T kernel: page:00000000696b0b6a refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x195cda44
Mar 04 14:05:05 JF5300-07B181T kernel: flags: 0x57ffffc0801000(reserved|hwpoison|node=1|zone=2|lastcpupid=0x1fffff)
Mar 04 14:05:05 JF5300-07B181T kernel: raw: 0057ffffc0801000 ffff6ea817369108 ffff6ea817369108 0000000000000000
Mar 04 14:05:05 JF5300-07B181T kernel: raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
Mar 04 14:05:05 JF5300-07B181T kernel: page dumped because: hwpoison: unhandlable page
Mar 04 14:05:05 JF5300-07B181T kernel: Memory failure: 0x195cda44: recovery action for unknown page: Ignored

Som debugging shows this is an anon page (expected ... that's the type of page where the error was injected. They see shake_page() called three times, but it doesn't change anything, so the page is reported as unhandlable.

Quoted 7 lines
Quoted 3 lines

Uhm, that's not PageAnon. page->mapping is NULL, and anon pages have the bottom bit set with the rest of the page->mapping pointing to its anon_vma. Why do you think it's an anon page?

Sorry. I didn't do that decode ... just copied what was in the internal report. If it isn't anon, then does that page dump give info on what type the page is?

No (I would have volunteered that if it had a type!) It could be a truncated page cache page. But it has the Reserved bit set, which makes me think it's a device driver or something?

#4 lore raw
In reply to Luck, Tony
Quoted 18 lines · Tony
Quoted 16 lines · Matthew Wilcox
Quoted 14 lines · Tony

Validation folks are seeing this on a v5.16 kernel. I don't see any changes in v5.17 that look like they address it.

Mar 04 14:05:05 JF5300-07B181T kernel: page:00000000696b0b6a refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x195cda44
Mar 04 14:05:05 JF5300-07B181T kernel: flags: 0x57ffffc0801000(reserved|hwpoison|node=1|zone=2|lastcpupid=0x1fffff)
Mar 04 14:05:05 JF5300-07B181T kernel: raw: 0057ffffc0801000 ffff6ea817369108 ffff6ea817369108 0000000000000000
Mar 04 14:05:05 JF5300-07B181T kernel: raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
Mar 04 14:05:05 JF5300-07B181T kernel: page dumped because: hwpoison: unhandlable page
Mar 04 14:05:05 JF5300-07B181T kernel: Memory failure: 0x195cda44: recovery action for unknown page: Ignored

Som debugging shows this is an anon page (expected ... that's the type of page where the error was injected. They see shake_page() called three times, but it doesn't change anything, so the page is reported as unhandlable.

Quoted 7 lines
Quoted 3 lines

Uhm, that's not PageAnon. page->mapping is NULL, and anon pages have the bottom bit set with the rest of the page->mapping pointing to its anon_vma. Why do you think it's an anon page?

Sorry. I didn't do that decode ... just copied what was in the internal report. If it isn't anon, then does that page dump give info on what type the page is?

As Willy said we can't tell what type the page is. Per the dumped information, the page has:
- 1 refcount, likely get from hwpoison
- 0 mapcount, unmapped and not unmapped by hwpoison since
dump_page() is called before that,
- NULL mapping
- PG_reserved flag is set and no other flag is set

So I just can say it is very unlikely to be an anonymous page. It is not slab either. And neither anonymous/page cache nor slab should be reserved flag set, so it should be some other types.

Quoted 2 lines

-Tony

author
#5 lore raw
Quoted 3 lines

So I just can say it is very unlikely to be an anonymous page. It is not slab either. And neither anonymous/page cache nor slab should be reserved flag set, so it should be some other types.

Thanks to both of you.

Will get folks to dig deeper into which page they injected the UC error into. That may take a bit as this test runs for a while injecting and recovering until it hits this unhandlable page case.

-Tony

#6 lore raw
In reply to Yang Shi
Quoted 35 lines · Yang Shi
Quoted 18 lines · Tony
Quoted 16 lines · Matthew Wilcox
Quoted 14 lines · Tony

Validation folks are seeing this on a v5.16 kernel. I don't see any changes in v5.17 that look like they address it.

Mar 04 14:05:05 JF5300-07B181T kernel: page:00000000696b0b6a refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x195cda44
Mar 04 14:05:05 JF5300-07B181T kernel: flags: 0x57ffffc0801000(reserved|hwpoison|node=1|zone=2|lastcpupid=0x1fffff)
Mar 04 14:05:05 JF5300-07B181T kernel: raw: 0057ffffc0801000 ffff6ea817369108 ffff6ea817369108 0000000000000000
Mar 04 14:05:05 JF5300-07B181T kernel: raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
Mar 04 14:05:05 JF5300-07B181T kernel: page dumped because: hwpoison: unhandlable page
Mar 04 14:05:05 JF5300-07B181T kernel: Memory failure: 0x195cda44: recovery action for unknown page: Ignored

Som debugging shows this is an anon page (expected ... that's the type of page where the error was injected. They see shake_page() called three times, but it doesn't change anything, so the page is reported as unhandlable.

Quoted 7 lines
Quoted 3 lines

Uhm, that's not PageAnon. page->mapping is NULL, and anon pages have the bottom bit set with the rest of the page->mapping pointing to its anon_vma. Why do you think it's an anon page?

Sorry. I didn't do that decode ... just copied what was in the internal report. If it isn't anon, then does that page dump give info on what type the page is?

As Willy said we can't tell what type the page is. Per the dumped information, the page has:
- 1 refcount, likely get from hwpoison
- 0 mapcount, unmapped and not unmapped by hwpoison since
dump_page() is called before that,
- NULL mapping
- PG_reserved flag is set and no other flag is set

Quoted 3 lines

So I just can say it is very unlikely to be an anonymous page. It is not slab either. And neither anonymous/page cache nor slab should be reserved flag set, so it should be some other types.

Tony,

Agreed with Matthew, it might have been a device page. So we have pfn:0x195cda44, does /proc/iomem leave any clue?

thanks,
-jane

Quoted 4 lines
Quoted 3 lines

-Tony