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: 5581 at drivers/net/netdevsim/fib.c:831 nsim_fib_event_schedule_work drivers/net/netdevsim/fib.c:1021 [inline] WARNING: CPU: 1 PID: 5581 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: 5581 Comm: syz.0.801 Not tainted syzkaller #0 PREEMPT Hardware name: linux,dummy-virt (DT) pstate: 80000005 (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:828 [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+0x384/0xa6c drivers/net/netdevsim/fib.c:1043 sp : ffff8000a0746e50 x29: ffff8000a0746e50 x28: ffff00000fd2ae80 x27: ffff8000a0747040 x26: 0000000000000001 x25: dfff800000000000 x24: ffff00001c832c00 x23: 0000000000000002 x22: ffff00001c832c00 x21: ffff00000f729cc0 x20: ffff000013eaf000 x19: 0000000000000001 x18: 0000000000000000 x17: 0000000000000000 x16: 0000000000000000 x15: ffff8000844de518 x14: ffff8000844de420 x13: ffff800080045d78 x12: ffff6000040b2806 x11: 1fffe000040b2805 x10: ffff6000040b2805 x9 : dfff800000000000 x8 : ffff00002059402f x7 : 0000000000000000 x6 : ffff6000040b2805 x5 : ffff00002059402c x4 : ffff6000040b2806 x3 : ffff00001c832c18 x2 : ffff00002059402c x1 : 0000000000000003 x0 : 0000000000000000 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: 468 hardirqs last enabled at (467): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (467): [] _raw_spin_unlock_irqrestore+0x80/0xac kernel/locking/spinlock.c:194 hardirqs last disabled at (468): [] el1_brk64+0x1c/0x48 arch/arm64/kernel/entry-common.c:574 softirqs last enabled at (462): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (462): [] __ip6_ins_rt net/ipv6/route.c:1352 [inline] softirqs last enabled at (462): [] ip6_route_multipath_add+0x30c/0x11cc net/ipv6/route.c:5483 softirqs last disabled at (460): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (460): [] __ip6_ins_rt net/ipv6/route.c:1350 [inline] softirqs last disabled at (460): [] ip6_route_multipath_add+0x2ec/0x11cc net/ipv6/route.c:5483 ---[ end trace 0000000000000000 ]---