====================================== | [ 60.206085][ T71] ================================================================== | [ 60.206592][ T71] 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) | [ 60.207123][ T71] Write of size 8 at addr 0000000000000000 by task kworker/u16:1/71 | [ 60.207576][ T71] [ 60.207747][ T71] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 60.207755][ T71] Workqueue: netns cleanup_net [ 60.207783][ T71] Call Trace: [ 60.207787][ T71] [ 60.207791][ T71] dump_stack_lvl (lib/dump_stack.c:123) [ 60.207812][ T71] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 60.207821][ T71] kasan_report (mm/kasan/report.c:597) [ 60.207839][ T71] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 60.207849][ T71] kasan_check_range (mm/kasan/generic.c:194 mm/kasan/generic.c:200) [ 60.207857][ T71] try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 60.207866][ T71] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 60.207872][ T71] ? enable_delayed_work (kernel/workqueue.c:4359) [ 60.207886][ T71] __cancel_work_sync (kernel/workqueue.c:4383) [ 60.207893][ T71] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 60.207902][ T71] ? netdev_notify_peers (net/core/dev.c:1891) [ 60.207908][ T71] ? netif_close_many (net/core/dev.c:1959) [ 60.207917][ T71] netif_close_many (net/core/dev.c:1959) [ 60.207923][ T71] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 60.207939][ T71] ? __dev_close_many (net/core/dev.c:1949) [ 60.207946][ T71] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 60.207958][ T71] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 60.207965][ T71] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 60.207995][ T71] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 60.208002][ T71] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 60.208008][ T71] ? unregister_netdevice_many (net/core/dev.c:12441) [ 60.208016][ T71] ? br_dev_delete (net/bridge/br_if.c:397) [ 60.208029][ T71] ops_undo_list (net/core/net_namespace.c:189 net/core/net_namespace.c:248) [ 60.208039][ T71] ? rtnl_net_dumpid_one (net/core/net_namespace.c:223) [ 60.208045][ T71] ? cleanup_net (./include/linux/list.h:191 net/core/net_namespace.c:693) [ 60.208055][ T71] cleanup_net (net/core/net_namespace.c:698) [ 60.208062][ T71] ? net_passive_dec (net/core/net_namespace.c:660) [ 60.208071][ T71] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 60.208081][ T71] process_one_work (kernel/workqueue.c:3268) [ 60.208098][ T71] ? pwq_dec_nr_in_flight (kernel/workqueue.c:3165) [ 60.208109][ T71] ? assign_work (kernel/workqueue.c:1206) [ 60.208117][ T71] worker_thread (kernel/workqueue.c:3340 kernel/workqueue.c:3427) [ 60.208128][ T71] ? rescuer_thread (kernel/workqueue.c:3373) [ 60.208135][ T71] kthread (kernel/kthread.c:463) [ 60.208146][ T71] ? kthread_is_per_cpu (kernel/kthread.c:412) [ 60.208150][ T71] ? ret_from_fork (arch/x86/kernel/process.c:157) [ 60.208168][ T71] ? __lock_release (kernel/locking/lockdep.c:5536) [ 60.208174][ T71] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 60.208180][ T71] ? kthread_is_per_cpu (kernel/kthread.c:412) [ 60.208187][ T71] ret_from_fork (arch/x86/kernel/process.c:164) [ 60.208192][ T71] ? kthread_is_per_cpu (kernel/kthread.c:412) [ 60.208197][ T71] ret_from_fork_asm (arch/x86/entry/entry_64.S:255) | [ 60.223671][ T71] #PF: error_code(0x0002) - not-present page | [ 60.224026][ T71] PGD 0 P4D 0 | [ 60.224250][ T71] Oops: Oops: 0002 [#1] SMP KASAN | [ 60.225195][ T71] Tainted: [B]=BAD_PAGE [ 60.225448][ T71] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 60.225800][ T71] Workqueue: netns cleanup_net [ 60.226104][ T71] 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) [ 60.226504][ T71] 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 1f 93 82 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 1f 93 82 00 call 0x829349 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 [ 60.227538][ T71] RSP: 0018:ffffc900004c7720 EFLAGS: 00010046 [ 60.227909][ T71] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff8a049b8a [ 60.228318][ T71] RDX: fffffbfff1dacacd RSI: 0000000000000008 RDI: ffffffff8ed65660 [ 60.228741][ T71] RBP: ffffc900004c7788 R08: 0000000000000001 R09: fffffbfff1dacacc [ 60.229158][ T71] R10: ffffffff8ed65667 R11: ffffc900004c7200 R12: 0000000000000000 [ 60.229610][ T71] R13: 0000000000000282 R14: ffff888004ee2000 R15: dffffc0000000000 [ 60.230052][ T71] FS: 0000000000000000(0000) GS:ffff8880de387000(0000) knlGS:0000000000000000 [ 60.230566][ T71] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 60.230929][ T71] CR2: 0000000000000000 CR3: 0000000022f49001 CR4: 0000000000772ef0 [ 60.231405][ T71] PKRU: 55555554 [ 60.231622][ T71] Call Trace: [ 60.232019][ T71] [ 60.232170][ T71] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 60.232463][ T71] ? enable_delayed_work (kernel/workqueue.c:4359) [ 60.232760][ T71] __cancel_work_sync (kernel/workqueue.c:4383) [ 60.233221][ T71] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 60.233511][ T71] ? netdev_notify_peers (net/core/dev.c:1891) [ 60.233812][ T71] ? netif_close_many (net/core/dev.c:1959) [ 60.234096][ T71] netif_close_many (net/core/dev.c:1959) [ 60.234555][ T71] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 60.234831][ T71] ? __dev_close_many (net/core/dev.c:1949) [ 60.235109][ T71] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 60.235453][ T71] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 60.235980][ T71] ? lockdep_hardirqs_on (kernel/locking/lockdep.c:4472) [ 60.236267][ T71] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 60.236564][ T71] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 60.236867][ T71] ? unregister_netdevice_many (net/core/dev.c:12441) [ 60.237334][ T71] ? br_dev_delete (net/bridge/br_if.c:397) [ 60.237620][ T71] ops_undo_list (net/core/net_namespace.c:189 net/core/net_namespace.c:248) [ 60.237908][ T71] ? rtnl_net_dumpid_one (net/core/net_namespace.c:223) [ 60.238193][ T71] ? cleanup_net (./include/linux/list.h:191 net/core/net_namespace.c:693) [ 60.238656][ T71] cleanup_net (net/core/net_namespace.c:698) [ 60.238958][ T71] ? net_passive_dec (net/core/net_namespace.c:660) [ 60.239243][ T71] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 60.239580][ T71] process_one_work (kernel/workqueue.c:3268) [ 60.240063][ T71] ? pwq_dec_nr_in_flight (kernel/workqueue.c:3165) [ 60.240336][ T71] ? assign_work (kernel/workqueue.c:1206) [ 60.240599][ T71] worker_thread (kernel/workqueue.c:3340 kernel/workqueue.c:3427) [ 60.240900][ T71] ? rescuer_thread (kernel/workqueue.c:3373) [ 60.241370][ T71] kthread (kernel/kthread.c:463) [ 60.241636][ T71] ? kthread_is_per_cpu (kernel/kthread.c:412) [ 60.241922][ T71] ? ret_from_fork (arch/x86/kernel/process.c:157) [ 60.242209][ T71] ? __lock_release (kernel/locking/lockdep.c:5536) [ 60.242677][ T71] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 60.242963][ T71] ? kthread_is_per_cpu (kernel/kthread.c:412) [ 60.243251][ T71] ret_from_fork (arch/x86/kernel/process.c:164) [ 60.243538][ T71] ? kthread_is_per_cpu (kernel/kthread.c:412) Finger prints: kasan_report:kasan_check_range:try_to_grab_pending:__cancel_work:__cancel_work_sync try_to_grab_pending:__cancel_work:__cancel_work_sync:__dev_close_many:netif_close_many