====================================== | [ 23.851698][ T349] ================================================================== | [ 23.852055][ T349] BUG: KASAN: null-ptr-deref in try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) | [ 23.852361][ T349] Write of size 8 at addr 0000000000000000 by task ip/349 | [ 23.852618][ T349] [ 23.852732][ T349] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 23.852734][ T349] Call Trace: [ 23.852736][ T349] [ 23.852739][ T349] dump_stack_lvl (lib/dump_stack.c:123) [ 23.852748][ T349] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 23.852751][ T349] kasan_report (mm/kasan/report.c:597) [ 23.852758][ T349] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 23.852764][ T349] kasan_check_range (mm/kasan/generic.c:194 mm/kasan/generic.c:200) [ 23.852767][ T349] try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 23.852770][ T349] ? lock_acquire.part.0 (kernel/locking/lockdep.c:470 kernel/locking/lockdep.c:5870) [ 23.852778][ T349] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 23.852781][ T349] ? enable_delayed_work (kernel/workqueue.c:4359) [ 23.852784][ T349] ? linkwatch_urgent_event (./arch/x86/include/asm/bitops.h:202 ./arch/x86/include/asm/bitops.h:232 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 ./include/linux/netdevice.h:4040 net/core/link_watch.c:111) [ 23.852791][ T349] ? linkwatch_fire_event (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 net/core/link_watch.c:313) [ 23.852795][ T349] __cancel_work_sync (kernel/workqueue.c:4383) [ 23.852799][ T349] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 23.852806][ T349] ? netdev_notify_peers (net/core/dev.c:1891) [ 23.852811][ T349] ? __local_bh_enable_ip (./arch/x86/include/asm/irqflags.h:42 ./arch/x86/include/asm/irqflags.h:119 kernel/softirq.c:455) [ 23.852817][ T349] __dev_change_flags (./include/linux/list.h:119 ./include/linux/list.h:223 ./include/linux/list.h:237 net/core/dev.c:1945 net/core/dev.c:9924) [ 23.852821][ T349] ? netif_set_allmulti (net/core/dev.c:9890) [ 23.852827][ T349] netif_change_flags (net/core/dev.c:9989) [ 23.852831][ T349] dev_change_flags (./include/net/netdev_lock.h:30 ./include/net/netdev_lock.h:47 net/core/dev_api.c:69) [ 23.852835][ T349] cycle_netdev (drivers/net/vrf.c:1052) vrf [ 23.852842][ T349] vrf_add_slave (drivers/net/vrf.c:1083 drivers/net/vrf.c:1102) vrf [ 23.852847][ T349] do_set_master (./include/net/netdev_lock.h:30 ./include/net/netdev_lock.h:41 net/core/rtnetlink.c:2964) [ 23.852850][ T349] ? rtnl_configure_link (net/core/rtnetlink.c:3607) [ 23.852852][ T349] ? nla_strscpy (lib/nlattr.c:798) [ 23.852860][ T349] rtnl_newlink_create (net/core/rtnetlink.c:3855) [ 23.852865][ T349] ? rtnl_create_link (net/core/rtnetlink.c:3806) [ 23.852867][ T349] ? __dev_get_by_name (net/core/dev.c:865) [ 23.852870][ T349] ? rtnl_dev_get (net/core/rtnetlink.c:3419) [ 23.852874][ T349] ? rtnl_validate_mdb_entry_del_bulk (net/core/rtnetlink.c:3419) [ 23.852880][ T349] ? rtnl_newlink (net/core/rtnetlink.c:343 net/core/rtnetlink.c:4071) [ 23.852882][ T349] ? reacquire_held_locks (kernel/locking/lockdep.c:5385) [ 23.852888][ T349] __rtnl_newlink (net/core/rtnetlink.c:3957) [ 23.852894][ T349] rtnl_newlink (net/core/rtnetlink.c:351 net/core/rtnetlink.c:4073) [ 23.852899][ T349] ? __rtnl_newlink (net/core/rtnetlink.c:3963) [ 23.852906][ T349] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 23.852909][ T349] ? __lock_release (kernel/locking/lockdep.c:5536) [ 23.852913][ T349] ? __rtnl_newlink (net/core/rtnetlink.c:3963) [ 23.852916][ T349] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 23.852920][ T349] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 23.852922][ T349] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 23.852929][ T349] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 23.852934][ T349] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 23.852937][ T349] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 23.852944][ T349] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 23.852946][ T349] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 ./include/net/netns/generic.h:48 net/netlink/af_netlink.c:333) [ 23.852950][ T349] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 23.852954][ T349] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 23.852958][ T349] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 23.852964][ T349] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 23.852968][ T349] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 23.852972][ T349] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 23.852977][ T349] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 23.852981][ T349] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 23.852986][ T349] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 23.852989][ T349] ? __copy_msghdr (net/socket.c:2556) [ 23.852996][ T349] ___sys_sendmsg (net/socket.c:2686) [ 23.853001][ T349] ? copy_msghdr_from_user (net/socket.c:2673) [ 23.853005][ T349] ? rcu_read_lock_any_held (kernel/rcu/update.c:386 kernel/rcu/update.c:380) [ 23.853011][ T349] ? rcu_read_lock_any_held (kernel/rcu/update.c:386 kernel/rcu/update.c:380) [ 23.853014][ T349] ? validate_chain (kernel/locking/lockdep.c:3801 kernel/locking/lockdep.c:3821 kernel/locking/lockdep.c:3876) [ 23.853023][ T349] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 23.853028][ T349] __sys_sendmsg (net/socket.c:2716) [ 23.853032][ T349] ? __sys_sendmsg_sock (net/socket.c:2701) [ 23.853035][ T349] ? __rseq_handle_notify_resume (kernel/rseq.c:442) [ 23.853044][ T349] ? do_user_addr_fault (./include/linux/mmap_lock.h:396 arch/x86/mm/fault.c:1415) [ 23.853051][ T349] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 23.853056][ T349] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 23.853062][ T349] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 23.853066][ T349] RIP: 0033:0x7fb40dc031d7 [ 23.853074][ T349] Code: Unable to access opcode bytes at 0x7fb40dc031ad. Code starting with the faulting instruction =========================================== [ 23.853076][ T349] RSP: 002b:00007ffd68a72768 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 23.853080][ T349] RAX: ffffffffffffffda RBX: 00007ffd68a72e90 RCX: 00007fb40dc031d7 [ 23.853082][ T349] RDX: 0000000000000000 RSI: 00007ffd68a727d0 RDI: 0000000000000005 [ 23.853084][ T349] RBP: 0000000000000002 R08: 0000000000000054 R09: 0000000000000000 [ 23.853086][ T349] R10: 00007fb40dc91ac0 R11: 0000000000000246 R12: 00007ffd68a72ed8 [ 23.853087][ T349] R13: 00000000691cd96e R14: 0000000000499600 R15: 00007ffd68a728c8 | [ 23.870363][ T349] #PF: error_code(0x0002) - not-present page | [ 23.870610][ T349] PGD b9b8067 P4D b9b8067 PUD c9d0067 PMD 0 | [ 23.870848][ T349] Oops: Oops: 0002 [#1] SMP KASAN | [ 23.871426][ T349] Tainted: [B]=BAD_PAGE [ 23.871587][ T349] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 23.871826][ T349] RIP: 0010:try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 23.872070][ T349] Code: 00 41 89 c0 b8 01 00 00 00 45 85 c0 74 0f 48 83 c4 10 5b 5d 41 5c 41 5d 41 5e 41 5f c3 be 08 00 00 00 48 89 df e8 7f 7f 81 00 48 0f ba 2b 00 72 11 48 83 c4 10 31 c0 5b 5d 41 5c 41 5d 41 5e All code ======== 0: 00 41 89 add %al,-0x77(%rcx) 3: c0 b8 01 00 00 00 45 sarb $0x45,0x1(%rax) a: 85 c0 test %eax,%eax c: 74 0f je 0x1d e: 48 83 c4 10 add $0x10,%rsp 12: 5b pop %rbx 13: 5d pop %rbp 14: 41 5c pop %r12 16: 41 5d pop %r13 18: 41 5e pop %r14 1a: 41 5f pop %r15 1c: c3 ret 1d: be 08 00 00 00 mov $0x8,%esi 22: 48 89 df mov %rbx,%rdi 25: e8 7f 7f 81 00 call 0x817fa9 2a:* f0 48 0f ba 2b 00 lock btsq $0x0,(%rbx) <-- trapping instruction 30: 72 11 jb 0x43 32: 48 83 c4 10 add $0x10,%rsp 36: 31 c0 xor %eax,%eax 38: 5b pop %rbx 39: 5d pop %rbp 3a: 41 5c pop %r12 3c: 41 5d pop %r13 3e: 41 5e pop %r14 Code starting with the faulting instruction =========================================== 0: f0 48 0f ba 2b 00 lock btsq $0x0,(%rbx) 6: 72 11 jb 0x19 8: 48 83 c4 10 add $0x10,%rsp c: 31 c0 xor %eax,%eax e: 5b pop %rbx f: 5d pop %rbp 10: 41 5c pop %r12 12: 41 5d pop %r13 14: 41 5e pop %r14 [ 23.872740][ T349] RSP: 0018:ffffc9000089eff8 EFLAGS: 00010046 [ 23.872994][ T349] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff8644090a [ 23.873272][ T349] RDX: fffffbfff14cf2cd RSI: 0000000000000008 RDI: ffffffff8a679660 [ 23.873556][ T349] RBP: ffffc9000089f060 R08: 0000000000000001 R09: fffffbfff14cf2cc [ 23.873838][ T349] R10: ffffffff8a679667 R11: ffffc9000089eac0 R12: 0000000000000000 [ 23.874122][ T349] R13: 0000000000000282 R14: ffff88800bd64000 R15: dffffc0000000000 [ 23.874401][ T349] FS: 00007fb40da35800(0000) GS:ffff8880abd72000(0000) knlGS:0000000000000000 [ 23.874733][ T349] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 23.874974][ T349] CR2: 0000000000000000 CR3: 0000000009f99003 CR4: 0000000000772ef0 [ 23.875252][ T349] PKRU: 55555554 [ 23.875398][ T349] Call Trace: [ 23.875545][ T349] [ 23.875646][ T349] ? lock_acquire.part.0 (kernel/locking/lockdep.c:470 kernel/locking/lockdep.c:5870) [ 23.875839][ T349] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 23.876027][ T349] ? enable_delayed_work (kernel/workqueue.c:4359) [ 23.876225][ T349] ? linkwatch_urgent_event (./arch/x86/include/asm/bitops.h:202 ./arch/x86/include/asm/bitops.h:232 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 ./include/linux/netdevice.h:4040 net/core/link_watch.c:111) [ 23.876414][ T349] ? linkwatch_fire_event (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 net/core/link_watch.c:313) [ 23.876609][ T349] __cancel_work_sync (kernel/workqueue.c:4383) [ 23.876802][ T349] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 23.876990][ T349] ? netdev_notify_peers (net/core/dev.c:1891) [ 23.877174][ T349] ? __local_bh_enable_ip (./arch/x86/include/asm/irqflags.h:42 ./arch/x86/include/asm/irqflags.h:119 kernel/softirq.c:455) [ 23.877361][ T349] __dev_change_flags (./include/linux/list.h:119 ./include/linux/list.h:223 ./include/linux/list.h:237 net/core/dev.c:1945 net/core/dev.c:9924) [ 23.877552][ T349] ? netif_set_allmulti (net/core/dev.c:9890) [ 23.877738][ T349] netif_change_flags (net/core/dev.c:9989) [ 23.877918][ T349] dev_change_flags (./include/net/netdev_lock.h:30 ./include/net/netdev_lock.h:47 net/core/dev_api.c:69) [ 23.878106][ T349] cycle_netdev (drivers/net/vrf.c:1052) vrf [ 23.878293][ T349] vrf_add_slave (drivers/net/vrf.c:1083 drivers/net/vrf.c:1102) vrf [ 23.878480][ T349] do_set_master (./include/net/netdev_lock.h:30 ./include/net/netdev_lock.h:41 net/core/rtnetlink.c:2964) [ 23.878663][ T349] ? rtnl_configure_link (net/core/rtnetlink.c:3607) [ 23.878845][ T349] ? nla_strscpy (lib/nlattr.c:798) [ 23.879028][ T349] rtnl_newlink_create (net/core/rtnetlink.c:3855) [ 23.879212][ T349] ? rtnl_create_link (net/core/rtnetlink.c:3806) [ 23.879396][ T349] ? __dev_get_by_name (net/core/dev.c:865) [ 23.879589][ T349] ? rtnl_dev_get (net/core/rtnetlink.c:3419) [ 23.879776][ T349] ? rtnl_validate_mdb_entry_del_bulk (net/core/rtnetlink.c:3419) [ 23.880007][ T349] ? rtnl_newlink (net/core/rtnetlink.c:343 net/core/rtnetlink.c:4071) [ 23.880189][ T349] ? reacquire_held_locks (kernel/locking/lockdep.c:5385) [ 23.880378][ T349] __rtnl_newlink (net/core/rtnetlink.c:3957) [ 23.880570][ T349] rtnl_newlink (net/core/rtnetlink.c:351 net/core/rtnetlink.c:4073) [ 23.880753][ T349] ? __rtnl_newlink (net/core/rtnetlink.c:3963) [ 23.880937][ T349] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 23.881121][ T349] ? __lock_release (kernel/locking/lockdep.c:5536) [ 23.881308][ T349] ? __rtnl_newlink (net/core/rtnetlink.c:3963) [ 23.881496][ T349] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 23.881678][ T349] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 23.881859][ T349] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 23.882044][ T349] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 23.882242][ T349] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 23.882425][ T349] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 23.882618][ T349] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 23.882800][ T349] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 ./include/net/netns/generic.h:48 net/netlink/af_netlink.c:333) [ 23.882982][ T349] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 23.883174][ T349] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 23.883361][ T349] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 23.883555][ T349] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 23.883739][ T349] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 23.883926][ T349] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 23.884124][ T349] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 23.884309][ T349] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 23.884520][ T349] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 23.884753][ T349] ? __copy_msghdr (net/socket.c:2556) [ 23.884942][ T349] ___sys_sendmsg (net/socket.c:2686) [ 23.885137][ T349] ? copy_msghdr_from_user (net/socket.c:2673) [ 23.885326][ T349] ? rcu_read_lock_any_held (kernel/rcu/update.c:386 kernel/rcu/update.c:380) [ 23.885528][ T349] ? rcu_read_lock_any_held (kernel/rcu/update.c:386 kernel/rcu/update.c:380) [ 23.885713][ T349] ? validate_chain (kernel/locking/lockdep.c:3801 kernel/locking/lockdep.c:3821 kernel/locking/lockdep.c:3876) [ 23.885904][ T349] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 23.886109][ T349] __sys_sendmsg (net/socket.c:2716) [ 23.886314][ T349] ? __sys_sendmsg_sock (net/socket.c:2701) [ 23.886510][ T349] ? __rseq_handle_notify_resume (kernel/rseq.c:442) [ 23.886752][ T349] ? do_user_addr_fault (./include/linux/mmap_lock.h:396 arch/x86/mm/fault.c:1415) [ 23.886944][ T349] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 23.887144][ T349] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 23.887340][ T349] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 23.887578][ T349] RIP: 0033:0x7fb40dc031d7 [ 23.887783][ T349] Code: Unable to access opcode bytes at 0x7fb40dc031ad. Code starting with the faulting instruction =========================================== [ 23.888035][ T349] RSP: 002b:00007ffd68a72768 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 23.888340][ T349] RAX: ffffffffffffffda RBX: 00007ffd68a72e90 RCX: 00007fb40dc031d7 [ 23.888624][ T349] RDX: 0000000000000000 RSI: 00007ffd68a727d0 RDI: 0000000000000005 [ 23.889026][ T349] RBP: 0000000000000002 R08: 0000000000000054 R09: 0000000000000000 [ 23.889325][ T349] R10: 00007fb40dc91ac0 R11: 0000000000000246 R12: 00007ffd68a72ed8 Finger prints: try_to_grab_pending:__cancel_work:__cancel_work_sync:__dev_close_many:__dev_change_flags kasan_report:kasan_check_range:try_to_grab_pending:__cancel_work:__cancel_work_sync