IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE IPv6: NLM_F_CREATE should be set when creating new route IPv6: NLM_F_CREATE should be set when creating new route ------------[ cut here ]------------ WARNING: CPU: 1 PID: 6941 at drivers/net/netdevsim/fib.c:831 nsim_fib_event_schedule_work drivers/net/netdevsim/fib.c:1021 [inline] WARNING: CPU: 1 PID: 6941 at drivers/net/netdevsim/fib.c:831 nsim_fib_event_nb+0x89c/0xa6c drivers/net/netdevsim/fib.c:1043 Modules linked in: CPU: 1 UID: 0 PID: 6941 Comm: syz.2.1264 Not tainted syzkaller #0 PREEMPT Hardware name: linux,dummy-virt (DT) pstate: 60000005 (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+0x89c/0xa6c drivers/net/netdevsim/fib.c:1043 lr : instrument_atomic_read_write include/linux/instrumented.h:96 [inline] lr : atomic_fetch_add_relaxed include/linux/atomic/atomic-instrumented.h:252 [inline] lr : __refcount_add include/linux/refcount.h:283 [inline] lr : __refcount_inc include/linux/refcount.h:366 [inline] lr : refcount_inc include/linux/refcount.h:383 [inline] lr : fib6_info_hold include/net/ip6_fib.h:332 [inline] lr : nsim_fib6_event_init drivers/net/netdevsim/fib.c:818 [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+0x2d8/0xa6c drivers/net/netdevsim/fib.c:1043 sp : ffff80008e2f6e50 x29: ffff80008e2f6e50 x28: ffff000044344b80 x27: ffff80008e2f7040 x26: 0000000000000000 x25: ffff80008e2f7040 x24: ffff00000f6a3800 x23: 0000000000000001 x22: ffff00000f6a3800 x21: ffff000018438b00 x20: ffff0000343c7000 x19: 0000000000000001 x18: 0000000000000000 x17: 0000000000000000 x16: ffff00006a0ad4c4 x15: ffff8000844de660 x14: ffff8000844de568 x13: ffff800080045c28 x12: ffff600001ed4706 x11: 1fffe00001ed4705 x10: ffff600001ed4705 x9 : dfff800000000000 x8 : ffff00000f6a382f x7 : 0000000000000001 x6 : ffff600001ed4705 x5 : ffff00000f6a382c x4 : ffff600001ed4706 x3 : ffff00000f6a3818 x2 : 1fffe00001ed4703 x1 : 0000000000000000 x0 : ffff00000f6a3818 Call trace: nsim_fib_event_schedule_work drivers/net/netdevsim/fib.c:1021 [inline] (P) nsim_fib_event_nb+0x89c/0xa6c drivers/net/netdevsim/fib.c:1043 (P) notifier_call_chain+0x11c/0x49c kernel/notifier.c:85 atomic_notifier_call_chain+0x70/0x134 kernel/notifier.c:223 call_fib_notifiers+0x34/0x58 net/core/fib_notifier.c:35 call_fib6_notifiers+0x44/0x70 net/ipv6/fib6_notifier.c:22 call_fib6_multipath_entry_notifiers+0xcc/0x13c net/ipv6/ip6_fib.c:425 ip6_route_multipath_add+0x6e4/0x11cc net/ipv6/route.c:5527 inet6_rtm_newroute+0xc0/0x138 net/ipv6/route.c:5649 rtnetlink_rcv_msg+0x65c/0x8d4 net/core/rtnetlink.c:6946 netlink_rcv_skb+0x19c/0x338 net/netlink/af_netlink.c:2552 rtnetlink_rcv+0x18/0x24 net/core/rtnetlink.c:6973 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x424/0x700 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x644/0xa54 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg+0xc8/0x168 net/socket.c:729 ____sys_sendmsg+0x500/0x764 net/socket.c:2614 ___sys_sendmsg+0x11c/0x19c net/socket.c:2668 __sys_sendmsg+0x114/0x19c net/socket.c:2700 __do_sys_sendmsg net/socket.c:2705 [inline] __se_sys_sendmsg net/socket.c:2703 [inline] __arm64_sys_sendmsg+0x70/0xa0 net/socket.c:2703 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x6c/0x258 arch/arm64/kernel/syscall.c:49 el0_svc_common.constprop.0+0xac/0x230 arch/arm64/kernel/syscall.c:132 do_el0_svc+0x40/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x50/0x1a0 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0xa0/0xe4 arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 irq event stamp: 644 hardirqs last enabled at (643): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (643): [] _raw_spin_unlock_irqrestore+0x80/0xac kernel/locking/spinlock.c:194 hardirqs last disabled at (644): [] el1_brk64+0x1c/0x48 arch/arm64/kernel/entry-common.c:574 softirqs last enabled at (638): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (638): [] __ip6_ins_rt net/ipv6/route.c:1352 [inline] softirqs last enabled at (638): [] ip6_route_multipath_add+0x30c/0x11cc net/ipv6/route.c:5483 softirqs last disabled at (636): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (636): [] __ip6_ins_rt net/ipv6/route.c:1350 [inline] softirqs last disabled at (636): [] ip6_route_multipath_add+0x2ec/0x11cc net/ipv6/route.c:5483 ---[ end trace 0000000000000000 ]---