]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv6: Fix gfp_flags arg to addrconf_prefix_route
authorDavid Ahern <dsahern@gmail.com>
Wed, 18 Apr 2018 22:39:06 +0000 (15:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2018 19:40:13 +0000 (15:40 -0400)
commit138b938b9bdcba2a6ab4006225be46e3e266c172
tree504ed375719927585a42c3a24742207ad410d9ce
parente5775ff20d8c5942093a01719569bf72924eec40
net/ipv6: Fix gfp_flags arg to addrconf_prefix_route

Eric noticed that __ipv6_ifa_notify is called under rcu_read_lock, so
the gfp argument to addrconf_prefix_route can not be GFP_KERNEL.

While scrubbing other calls I noticed addrconf_addr_gen has one
place with GFP_ATOMIC that can be GFP_KERNEL.

Fixes: 9c7a8949d62f2 ("net/ipv6: Add gfp_flags to route add functions")
Reported-by: syzbot+2add39b05179b31f912f@syzkaller.appspotmail.com
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c