Subject: BUG: sleeping function called from invalid context at mm/page_alloc.c:3186

From: poma <[email-masked]>
Date: Fri, 4 Sep 2015 16:05:12 +0200

Call Trace:
 [<ffffffff81847119>] dump_stack+0x4b/0x63
 [<ffffffff810d5329>] ___might_sleep+0x179/0x230
 [<ffffffff810d5429>] __might_sleep+0x49/0x80
 [<ffffffff811e541e>] __alloc_pages_nodemask+0x2fe/0xb90
 [<ffffffff81429236>] ? debug_object_activate+0xb6/0x1e0
 [<ffffffff814298c1>] ? debug_object_active_state+0x91/0x150
 [<ffffffff810218e6>] dma_generic_alloc_coherent+0x96/0x130
 [<ffffffff81069865>] x86_swiotlb_alloc_coherent+0x25/0x50
 [<ffffffff810215fd>] dma_alloc_attrs+0x6d/0xe0
 [<ffffffffa003725e>] rtl8169_map_counters+0x3e/0x70 [r8169]
 [<ffffffffa0038674>] rtl8169_update_counters+0x64/0x140 [r8169]
 [<ffffffffa00388ff>] rtl8169_get_stats64+0xbf/0x130 [r8169]
 [<ffffffff816fc694>] dev_get_stats+0x54/0x100
 [<ffffffff817254c7>] dev_seq_printf_stats+0x37/0x120
 [<ffffffff817255c4>] dev_seq_show+0x14/0x30
 [<ffffffff8128e41a>] seq_read+0x2fa/0x3e0
 [<ffffffff812dbd92>] proc_reg_read+0x42/0x70
 [<ffffffff81264c17>] __vfs_read+0x37/0x100
 [<ffffffff81384ae3>] ? security_file_permission+0xa3/0xc0
 [<ffffffff81265596>] vfs_read+0x86/0x130
 [<ffffffff81266318>] SyS_read+0x58/0xd0
 [<ffffffff81850db2>] entry_SYSCALL_64_fastpath+0x12/0x76

https://bugzilla.kernel.org/show_bug.cgi?id=104031