Taehee Yoo
bd5cd35b78
gtp: use __GFP_NOWARN to avoid memalloc warning
gtp hashtable size is received by user-space.
So, this hashtable size could be too large. If so, kmalloc will internally
print a warning message.
This warning message is actually not necessary for the gtp module.
So, this patch adds __GFP_NOWARN to avoid this message.
Splat looks like:
[ 2171.200049][ T1860] WARNING: CPU: 1 PID: 1860 at mm/page_alloc.c:4713 __alloc_pages_nodemask+0x2f3/0x740
[ 2171.238885][ T1860] Modules linked in: gtp veth openvswitch nsh nf_conncount nf_nat nf_conntrack nf_defrag_ipv]
[ 2171.262680][ T1860] CPU: 1 PID: 1860 Comm: gtp-link Not tainted 5.5.0+ #321
[ 2171.263567][ T1860] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
[ 2171.264681][ T1860] RIP: 0010:__alloc_pages_nodemask+0x2f3/0x740
[ 2171.265332][ T1860] Code: 64 fe ff ff 65 48 8b 04 25 c0 0f 02 00 48 05 f0 12 00 00 41 be 01 00 00 00 49 89 47 0
[ 2171.267301][ T1860] RSP: 0018:ffff8880b51af1f0 EFLAGS: 00010246
[ 2171.268320][ T1860] RAX: ffffed1016a35e43 RBX: 0000000000000000 RCX: 0000000000000000
[ 2171.269517][ T1860] RDX: 0000000000000000 RSI: 000000000000000b RDI: 0000000000000000
[ 2171.270305][ T1860] RBP: 0000000000040cc0 R08: ffffed1018893109 R09: dffffc0000000000
[ 2171.275973][ T1860] R10: 0000000000000001 R11: ffffed1018893108 R12: 1ffff11016a35e43
[ 2171.291039][ T1860] R13: 000000000000000b R14: 000000000000000b R15: 00000000000f4240
[ 2171.292328][ T1860] FS: 00007f53cbc83740(0000) GS:ffff8880da000000(0000) knlGS:0000000000000000
[ 2171.293409][ T1860] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2171.294586][ T1860] CR2: 000055f540014508 CR3: 00000000b49f2004 CR4: 00000000000606e0
[ 2171.295424][ T1860] Call Trace:
[ 2171.295756][ T1860] ? mark_held_locks+0xa5/0xe0
[ 2171.296659][ T1860] ? __alloc_pages_slowpath+0x21b0/0x21b0
[ 2171.298283][ T1860] ? gtp_encap_enable_socket+0x13e/0x400 [gtp]
[ 2171.298962][ T1860] ? alloc_pages_current+0xc1/0x1a0
[ 2171.299475][ T1860] kmalloc_order+0x22/0x80
[ 2171.299936][ T1860] kmalloc_order_trace+0x1d/0x140
[ 2171.300437][ T1860] __kmalloc+0x302/0x3a0
[ 2171.300896][ T1860] gtp_newlink+0x293/0xba0 [gtp]
[ ... ]
Fixes: 459aa660eb ("gtp: add initial driver for datapath of GPRS Tunneling Protocol (GTP-U)")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-02-04 12:38:50 +01:00
..
2020-01-30 08:04:01 -08:00
2020-01-29 18:53:37 -08:00
2020-01-29 18:16:16 -08:00
2020-01-28 16:02:33 -08:00
2019-12-17 13:57:54 +01:00
2020-01-29 18:16:16 -08:00
2020-01-28 16:02:33 -08:00
2020-01-29 18:16:16 -08:00
2020-01-24 19:57:53 +01:00
2020-01-29 10:35:54 -08:00
2020-01-03 09:42:52 +01:00
2020-01-29 10:35:54 -08:00
2020-01-27 13:03:00 -08:00
2020-01-27 16:47:05 -08:00
2020-01-27 13:03:00 -08:00
2020-01-23 00:35:50 +01:00
2020-01-28 16:02:33 -08:00
2020-01-16 19:14:49 +09:00
2020-01-27 13:03:00 -08:00
2020-01-03 11:43:44 +10:00
2020-01-27 13:03:00 -08:00
2019-12-16 10:23:19 +09:00
2020-01-06 09:45:59 +01:00
2020-01-29 10:35:54 -08:00
2020-01-10 12:51:56 -08:00
2020-01-29 09:51:36 -08:00
2020-01-30 08:04:01 -08:00
2020-01-30 08:04:01 -08:00
2020-01-16 19:09:02 +01:00
2020-01-27 13:03:00 -08:00
2020-01-14 15:38:28 +01:00
2020-01-27 13:03:00 -08:00
2020-01-13 10:00:05 +01:00
2020-01-30 07:39:10 -08:00
2020-01-28 12:46:42 -08:00
2020-01-22 09:05:34 +01:00
2020-01-28 16:02:33 -08:00
2020-01-27 13:03:00 -08:00
2020-01-07 09:30:09 +02:00
2020-01-27 13:03:00 -08:00
2020-01-06 09:45:59 +01:00
2020-01-27 17:22:21 -08:00
2019-12-17 08:59:57 +01:00
2020-01-22 21:08:24 +01:00
2020-01-29 18:08:49 -08:00
2020-01-30 08:04:01 -08:00
2020-01-19 22:10:04 +01:00
2020-01-03 11:47:00 +01:00
2020-01-30 08:04:01 -08:00
2020-01-27 13:03:00 -08:00
2020-01-27 13:03:00 -08:00
2020-02-04 12:38:50 +01:00
2020-01-19 22:10:04 +01:00
2020-01-27 12:38:25 -08:00
2020-01-16 20:56:49 +01:00
2020-01-31 07:46:11 -08:00
2020-01-27 13:03:00 -08:00
2020-01-06 09:45:59 +01:00
2020-01-27 13:03:00 -08:00
2020-01-15 12:48:40 +00:00
2020-01-29 10:09:44 -08:00
2020-01-29 09:51:36 -08:00
2020-01-27 13:03:00 -08:00
2020-01-23 00:26:13 +01:00
2020-01-30 07:51:24 -08:00
2020-01-13 10:32:19 +01:00
2020-01-19 22:10:04 +01:00
2020-01-27 13:03:00 -08:00
2020-01-27 13:03:00 -08:00
2020-01-26 15:20:32 +01:00
2020-01-29 18:16:16 -08:00
2020-01-06 09:45:59 +01:00
2020-01-14 21:46:53 +01:00
2020-01-14 21:46:48 +01:00
2020-01-30 08:04:01 -08:00
2020-01-16 17:34:38 +05:30
2020-01-27 13:03:00 -08:00
2020-01-06 09:45:59 +01:00
2020-01-30 08:04:01 -08:00
2020-01-29 18:16:16 -08:00
2020-01-06 09:45:59 +01:00
2020-01-30 08:04:01 -08:00
2020-01-28 16:31:08 -08:00
2020-01-14 15:37:41 +01:00
2020-01-29 10:13:27 -08:00
2020-01-14 15:27:51 +01:00
2020-01-29 10:09:44 -08:00
2020-01-06 09:45:59 +01:00
2020-01-30 08:04:01 -08:00
2020-01-14 15:30:35 +01:00
2020-01-29 10:35:54 -08:00
2020-01-29 10:35:54 -08:00
2020-01-27 13:03:00 -08:00
2020-01-30 08:04:01 -08:00
2019-12-18 15:39:18 +01:00