====================================== | [ 14.975173][ T71] ================================================================== | [ 14.975484][ 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) | [ 14.975812][ T71] Write of size 8 at addr 0000000000000000 by task kworker/u16:1/71 | [ 14.976072][ T71] [ 14.976177][ T71] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.976180][ T71] Workqueue: netns cleanup_net [ 14.976206][ T71] Call Trace: [ 14.976210][ T71] [ 14.976212][ T71] dump_stack_lvl (lib/dump_stack.c:123) [ 14.976229][ T71] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 14.976232][ T71] kasan_report (mm/kasan/report.c:597) [ 14.976252][ T71] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 14.976260][ T71] kasan_check_range (mm/kasan/generic.c:194 mm/kasan/generic.c:200) [ 14.976264][ T71] try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 14.976266][ T71] ? netif_close_many (net/core/dev.c:1959) [ 14.976273][ T71] ? unregister_netdevice_many_notify (net/core/dev.c:12545) [ 14.976283][ T71] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 14.976286][ T71] ? enable_delayed_work (kernel/workqueue.c:4359) [ 14.976290][ T71] ? queue_delayed_work_on (kernel/workqueue.c:2565 (discriminator 1)) [ 14.976295][ T71] __cancel_work_sync (kernel/workqueue.c:4383) [ 14.976298][ T71] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 14.976302][ T71] ? netdev_notify_peers (net/core/dev.c:1891) [ 14.976308][ T71] ? netif_close_many (net/core/dev.c:1959) [ 14.976312][ T71] netif_close_many (net/core/dev.c:1959) [ 14.976315][ T71] ? __mutex_handoff (kernel/locking/mutex.c:88) [ 14.976328][ T71] ? __dev_close_many (net/core/dev.c:1949) [ 14.976331][ T71] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 14.976336][ T71] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 14.976340][ T71] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 14.976347][ T71] ? mutex_is_locked (./arch/x86/include/asm/atomic64_64.h:15 ./include/linux/atomic/atomic-arch-fallback.h:2583 ./include/linux/atomic/atomic-long.h:38 ./include/linux/atomic/atomic-instrumented.h:3189 kernel/locking/mutex.h:47 kernel/locking/mutex.c:67) [ 14.976350][ T71] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 14.976353][ T71] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 14.976357][ T71] ? unregister_netdevice_queue (net/core/dev.c:12442) [ 14.976361][ T71] ? unregister_netdevice_many (net/core/dev.c:12441) [ 14.976364][ T71] ? unregister_netdevice_many (net/core/dev.c:12441) [ 14.976370][ T71] default_device_exit_batch (net/core/dev.c:13229) [ 14.976374][ T71] ? unregister_netdev (net/core/dev.c:13204) [ 14.976380][ T71] ops_undo_list (net/core/net_namespace.c:251) [ 14.976385][ T71] ? netns_get (net/core/net_namespace.c:223) [ 14.976387][ T71] ? cleanup_net (./include/linux/list.h:191 net/core/net_namespace.c:693) [ 14.976392][ T71] cleanup_net (net/core/net_namespace.c:698) [ 14.976395][ T71] ? net_passive_dec (net/core/net_namespace.c:660) [ 14.976399][ T71] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 14.976411][ T71] process_one_work (kernel/workqueue.c:3268) [ 14.976418][ T71] ? pwq_dec_nr_in_flight (kernel/workqueue.c:3165) [ 14.976424][ T71] ? assign_work (kernel/workqueue.c:1206) [ 14.976428][ T71] worker_thread (kernel/workqueue.c:3340 kernel/workqueue.c:3427) [ 14.976433][ T71] ? rescuer_thread (kernel/workqueue.c:3373) [ 14.976437][ T71] kthread (kernel/kthread.c:463) [ 14.976441][ T71] ? kthread_is_per_cpu (kernel/kthread.c:412) [ 14.976443][ T71] ? ret_from_fork (arch/x86/kernel/process.c:157) [ 14.976463][ T71] ? __lock_release (kernel/locking/lockdep.c:5536) [ 14.976468][ T71] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 14.976470][ T71] ? kthread_is_per_cpu (kernel/kthread.c:412) [ 14.976474][ T71] ret_from_fork (arch/x86/kernel/process.c:164) [ 14.976477][ T71] ? kthread_is_per_cpu (kernel/kthread.c:412) [ 14.976479][ T71] ret_from_fork_asm (arch/x86/entry/entry_64.S:255) | [ 14.986806][ T71] #PF: error_code(0x0002) - not-present page | [ 14.987015][ T71] PGD 0 P4D 0 | [ 14.987153][ T71] Oops: Oops: 0002 [#1] SMP KASAN | [ 14.987721][ T71] Tainted: [B]=BAD_PAGE [ 14.987850][ T71] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.988067][ T71] Workqueue: netns cleanup_net [ 14.988264][ 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) [ 14.988501][ 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 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 [ 14.989125][ T71] RSP: 0018:ffffc900004c7690 EFLAGS: 00010046 [ 14.989381][ T71] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffffa923f90a [ 14.989634][ T71] RDX: fffffbfff5a8b6cd RSI: 0000000000000008 RDI: ffffffffad45b660 [ 14.989898][ T71] RBP: ffffc900004c76f8 R08: 0000000000000001 R09: fffffbfff5a8b6cc [ 14.990155][ T71] R10: ffffffffad45b667 R11: ffffc900004c7180 R12: 0000000000000000 [ 14.990426][ T71] R13: 0000000000000286 R14: ffff88800e164000 R15: dffffc0000000000 [ 14.990677][ T71] FS: 0000000000000000(0000) GS:ffff888088e10000(0000) knlGS:0000000000000000 [ 14.990977][ T71] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 14.991196][ T71] CR2: 0000000000000000 CR3: 0000000011d35006 CR4: 0000000000772ef0 [ 14.991459][ T71] PKRU: 55555554 [ 14.991589][ T71] Call Trace: [ 14.991723][ T71] [ 14.991809][ T71] ? netif_close_many (net/core/dev.c:1959) [ 14.991982][ T71] ? unregister_netdevice_many_notify (net/core/dev.c:12545) [ 14.992199][ T71] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 14.992380][ T71] ? enable_delayed_work (kernel/workqueue.c:4359) [ 14.992546][ T71] ? queue_delayed_work_on (kernel/workqueue.c:2565 (discriminator 1)) [ 14.992713][ T71] __cancel_work_sync (kernel/workqueue.c:4383) [ 14.992881][ T71] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 14.993053][ T71] ? netdev_notify_peers (net/core/dev.c:1891) [ 14.993225][ T71] ? netif_close_many (net/core/dev.c:1959) [ 14.993396][ T71] netif_close_many (net/core/dev.c:1959) [ 14.993558][ T71] ? __mutex_handoff (kernel/locking/mutex.c:88) [ 14.993724][ T71] ? __dev_close_many (net/core/dev.c:1949) [ 14.993886][ T71] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 14.994094][ T71] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 14.994327][ T71] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 14.994494][ T71] ? mutex_is_locked (./arch/x86/include/asm/atomic64_64.h:15 ./include/linux/atomic/atomic-arch-fallback.h:2583 ./include/linux/atomic/atomic-long.h:38 ./include/linux/atomic/atomic-instrumented.h:3189 kernel/locking/mutex.h:47 kernel/locking/mutex.c:67) [ 14.994657][ T71] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 14.994820][ T71] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 14.994984][ T71] ? unregister_netdevice_queue (net/core/dev.c:12442) [ 14.995197][ T71] ? unregister_netdevice_many (net/core/dev.c:12441) [ 14.995374][ T71] ? unregister_netdevice_many (net/core/dev.c:12441) [ 14.995544][ T71] default_device_exit_batch (net/core/dev.c:13229) [ 14.995712][ T71] ? unregister_netdev (net/core/dev.c:13204) [ 14.995875][ T71] ops_undo_list (net/core/net_namespace.c:251) [ 14.996041][ T71] ? netns_get (net/core/net_namespace.c:223) [ 14.996212][ T71] ? cleanup_net (./include/linux/list.h:191 net/core/net_namespace.c:693) [ 14.996385][ T71] cleanup_net (net/core/net_namespace.c:698) [ 14.996547][ T71] ? net_passive_dec (net/core/net_namespace.c:660) [ 14.996719][ T71] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 14.996891][ T71] process_one_work (kernel/workqueue.c:3268) [ 14.997072][ T71] ? pwq_dec_nr_in_flight (kernel/workqueue.c:3165) [ 14.997244][ T71] ? assign_work (kernel/workqueue.c:1206) [ 14.997422][ T71] worker_thread (kernel/workqueue.c:3340 kernel/workqueue.c:3427) [ 14.997587][ T71] ? rescuer_thread (kernel/workqueue.c:3373) [ 14.997755][ T71] kthread (kernel/kthread.c:463) [ 14.997878][ T71] ? kthread_is_per_cpu (kernel/kthread.c:412) [ 14.998049][ T71] ? ret_from_fork (arch/x86/kernel/process.c:157) [ 14.998223][ T71] ? __lock_release (kernel/locking/lockdep.c:5536) [ 14.998399][ T71] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 14.998561][ T71] ? kthread_is_per_cpu (kernel/kthread.c:412) [ 14.998728][ T71] ret_from_fork (arch/x86/kernel/process.c:164) [ 14.998891][ 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