[BUG] page allocation failure reading procfs ipv6 configuration files with cgroups

Started by Peter Geis on Feb 20, 2021 · 3 messages from 2 authors · Last reply Feb 22, 2021

open the first message on its own page

Message details and related content
Good Afternoon,

I have been tracking down a regular bug that triggers when running OpenWRT in a lxd container.
Every ten minutes I was greeted with the following splat in the kernel log:

[2122311.383389] warn_alloc: 3 callbacks suppressed
[2122311.383403] cat: page allocation failure: order:5, mode:0x40dc0(GFP_KERNEL|__GFP_COMP|__GFP_ZERO), nodemask=(null),cpuset=lxc.payload.openwrt,mems_allowed=0
[2122311.383439] CPU: 0 PID: 2034240 Comm: cat Tainted: G         C        5.10.2 #80
[2122311.383444] Hardware name: pine64 rockpro64_rk3399/rockpro64_rk3399, BIOS 2020.07-rc2-00124-g515f613253-dirty 05/19/2020
[2122311.383449] Call trace:
[2122311.383464]  dump_backtrace+0x0/0x200
[2122311.383469]  show_stack+0x20/0x68
[2122311.383479]  dump_stack+0xd0/0x12c
[2122311.383488]  warn_alloc+0x100/0x170
[2122311.383494]  __alloc_pages_slowpath.constprop.0+0xb14/0xb38
[2122311.383499]  __alloc_pages_nodemask+0x2b4/0x320
[2122311.383505]  alloc_pages_current+0x90/0x108
[2122311.383511]  kmalloc_order+0x38/0xb0
[2122311.383516]  kmalloc_order_trace+0x34/0x120
[2122311.383524]  __kmalloc+0x29c/0x2f0
[2122311.383531]  proc_sys_call_handler+0xc4/0x250
[2122311.383536]  proc_sys_read+0x1c/0x28
[2122311.383542]  generic_file_splice_read+0xd8/0x190
[2122311.383547]  do_splice_to+0x7c/0xd8
[2122311.383551]  splice_direct_to_actor+0xdc/0x260
[2122311.383556]  do_splice_direct+0x94/0xf8
[2122311.383563]  do_sendfile+0x1a4/0x400
[2122311.383568]  __arm64_sys_sendfile64+0x28c/0x350
[2122311.383576]  el0_svc_common.constprop.0+0x88/0x228
[2122311.383581]  do_el0_svc+0x2c/0x98
[2122311.383588]  el0_svc+0x28/0x68
[2122311.383593]  el0_sync_handler+0xb0/0xb8
[2122311.383598]  el0_sync+0x178/0x180
[2122311.383602] Mem-Info:
[2122311.383618] active_anon:262759 inactive_anon:143768 isolated_anon:0
                  active_file:156164 inactive_file:137753 isolated_file:0
                  unevictable:486 dirty:2 writeback:0
                  slab_reclaimable:30820 slab_unreclaimable:58730
                  mapped:41684 shmem:9443 pagetables:6742 bounce:0
                  free:34573 free_pcp:0 free_cma:194

123 more lines

Message details and related content
On Sat, Feb 20, 2021 at 12:29:18PM -0500, Peter Geis wrote:
Good Afternoon,

I have been tracking down a regular bug that triggers when running OpenWRT in a lxd container.
Every ten minutes I was greeted with the following splat in the kernel log:

[2122311.383389] warn_alloc: 3 callbacks suppressed
[2122311.383403] cat: page allocation failure: order:5, mode:0x40dc0(GFP_KERNEL|__GFP_COMP|__GFP_ZERO), nodemask=(null),cpuset=lxc.payload.openwrt,mems_allowed=0
You want this patch:

https://lore.kernel.org/linux-fsdevel/6345270a2c1160b89dd5e6715461f388176899d1.1612972413.git.josef@toxicpanda.com/
Message details and related content
On Sat, Feb 20, 2021 at 12:36 PM Matthew Wilcox [off-list ref] wrote:
On Sat, Feb 20, 2021 at 12:29:18PM -0500, Peter Geis wrote:
quoted
Good Afternoon,

I have been tracking down a regular bug that triggers when running OpenWRT in a lxd container.
Every ten minutes I was greeted with the following splat in the kernel log:

[2122311.383389] warn_alloc: 3 callbacks suppressed
[2122311.383403] cat: page allocation failure: order:5, mode:0x40dc0(GFP_KERNEL|__GFP_COMP|__GFP_ZERO), nodemask=(null),cpuset=lxc.payload.openwrt,mems_allowed=0
You want this patch:

https://lore.kernel.org/linux-fsdevel/6345270a2c1160b89dd5e6715461f388176899d1.1612972413.git.josef-DigfWCa+lFGyeJad7bwFQA@public.gmane.org/
I've tested this patch against 5.10.17 for 36 hours and can confirm it
solves the problem.
Thank you.
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help