IPv6: NLM_F_CREATE should be set when creating new route IPv6: NLM_F_CREATE should be set when creating new route ------------[ cut here ]------------ WARNI WARNING: CPU: 0 PID: 4326 at drivers/net/netdevsim/fib.c:831 nsim_fib6_event_init drivers/net/netdevsim/fib.c:831 [inline] WARNING: CPU: 0 PID: 4326 at drivers/net/netdevsim/fib.c:831 nsim_fib6_prepare_event drivers/net/netdevsim/fib.c:947 [inline] WARNING: CPU: 0 PID: 4326 at drivers/net/netdevsim/fib.c:831 nsim_fib_event_schedule_work drivers/net/netdevsim/fib.c:1003 [inline] WARNING: CPU: 0 PID: 4326 at drivers/net/netdevsim/fib.c:831 nsim_fib_event_nb+0x3a8/0x478 drivers/net/netdevsim/fib.c:1043 Modules linked in: CPU: 0 UID: 0 PID: 4326 Comm: syz.0.264 Not tainted syzkaller #0 PREEMPT Hardware name: linux,dummy-virt (DT) pstate: 61402009 (nZCv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=--) pc : nsim_fib6_event_init drivers/net/netdevsim/fib.c:831 [inline] pc : nsim_fib6_prepare_event drivers/net/netdevsim/fib.c:947 [inline] pc : nsim_fib_event_schedule_work drivers/net/netdevsim/fib.c:1003 [inline] pc : nsim_fib_event_nb+0x3a8/0x478 drivers/net/netdevsim/fib.c:1043 lr : kmalloc_noprof include/linux/slab.h:961 [inline] lr : kmalloc_array_noprof include/linux/slab.h:1003 [inline] lr : nsim_fib6_event_init drivers/net/netdevsim/fib.c:810 [inline] lr : nsim_fib6_prepare_event drivers/net/netdevsim/fib.c:947 [inline] lr : nsim_fib_event_schedule_work drivers/net/netdevsim/fib.c:1003 [inline] lr : nsim_fib_event_nb+0x11c/0x478 drivers/net/netdevsim/fib.c:1043 sp : ffff800088ecb550 x29: ffff800088ecb550 x28: fbf000000b13f400 x27: 0000000000000001 x26: f4f0000006662b90 x25: f5f000000b13f200 x24: 0000000000000000 x23: f4f0000007ec6ea0 x22: f7f0000007e8ec00 x21: f5f000000b13f200 x20: ffff800088ecb648 x19: 0000000000000001 x18: 0000000000000000 x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000002 x14: 00000000000000b1 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000000 x10: ffffffffffffffff x9 : 0000000000000920 x8 : 00000000ffff8000 x7 : dead000000000100 x6 : 000000000000001c x5 : 0000000000000002 x4 : 0000000000002a80 x3 : 0000000000000000 x2 : 0000000000000003 x1 : 0000000000000001 x0 : f5f000000b13f22c Call trace: nsim_fib6_event_init drivers/net/netdevsim/fib.c:831 [inline] (P) nsim_fib6_prepare_event drivers/net/netdevsim/fib.c:947 [inline] (P) nsim_fib_event_schedule_work drivers/net/netdevsim/fib.c:1003 [inline] (P) nsim_fib_event_nb+0x3a8/0x478 drivers/net/netdevsim/fib.c:1043 (P) notifier_call_chain kernel/notifier.c:85 [inline] atomic_notifier_call_chain+0x60/0x90 kernel/notifier.c:223 call_fib_notifiers+0x48/0x70 net/core/fib_notifier.c:35 call_fib6_notifiers+0x18/0x24 net/ipv6/fib6_notifier.c:22 call_fib6_multipath_entry_notifiers+0x48/0x70 net/ipv6/ip6_fib.c:425 ip6_route_multipath_add+0x56c/0x7d0 net/ipv6/route.c:5525 inet6_rtm_newroute+0x74/0xd8 net/ipv6/route.c:5647 rtnetlink_rcv_msg+0x304/0x398 net/core/rtnetlink.c:6954 netlink_rcv_skb+0x5c/0x128 net/netlink/af_netlink.c:2552 rtnetlink_rcv+0x18/0x24 net/core/rtnetlink.c:6981 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x328/0x3ac net/netlink/af_netlink.c:1346 netlink_sendmsg+0x194/0x3fc net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg+0x54/0x60 net/socket.c:742 ____sys_sendmsg+0x234/0x29c net/socket.c:2630 ___sys_sendmsg+0xac/0x100 net/socket.c:2684 __sys_sendmsg+0x98/0xf8 net/socket.c:2716 __do_sys_sendmsg net/socket.c:2721 [inline] __se_sys_sendmsg net/socket.c:2719 [inline] __arm64_sys_sendmsg+0x24/0x30 net/socket.c:2719 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x48/0x110 arch/arm64/kernel/syscall.c:49 el0_svc_common.constprop.0+0x40/0xe0 arch/arm64/kernel/syscall.c:132 do_el0_svc+0x1c/0x28 arch/arm64/kernel/syscall.c:151 el0_svc+0x34/0x10c arch/arm64/kernel/entry-common.c:746 el0t_64_sync_handler+0xa0/0xe4 arch/arm64/kernel/entry-common.c:765 el0t_64_sync+0x1a4/0x1a8 arch/arm64/kernel/entry.S:596 ---[ end trace 0000000000000000 ]---