====================================== | [ 30.828269][ T70] ================================================================== | [ 30.828630][ T70] 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) | [ 30.828935][ T70] Write of size 8 at addr 0000000000000000 by task kworker/u16:1/70 | [ 30.829213][ T70] [ 30.829315][ T70] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 30.829318][ T70] Workqueue: netns cleanup_net [ 30.829328][ T70] Call Trace: [ 30.829330][ T70] [ 30.829333][ T70] dump_stack_lvl (lib/dump_stack.c:123) [ 30.829340][ T70] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 30.829343][ T70] kasan_report (mm/kasan/report.c:597) [ 30.829352][ T70] ? try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 30.829358][ T70] kasan_check_range (mm/kasan/generic.c:194 mm/kasan/generic.c:200) [ 30.829362][ T70] try_to_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072) [ 30.829367][ T70] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 30.829370][ T70] ? enable_delayed_work (kernel/workqueue.c:4359) [ 30.829375][ T70] ? queue_delayed_work_on (kernel/workqueue.c:2565 (discriminator 1)) [ 30.829380][ T70] __cancel_work_sync (kernel/workqueue.c:4383) [ 30.829384][ T70] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 30.829389][ T70] ? netdev_notify_peers (net/core/dev.c:1891) [ 30.829392][ T70] ? netif_close_many (net/core/dev.c:1959) [ 30.829396][ T70] netif_close_many (net/core/dev.c:1959) [ 30.829399][ T70] ? __mutex_handoff (kernel/locking/mutex.c:88) [ 30.829404][ T70] ? __dev_close_many (net/core/dev.c:1949) [ 30.829408][ T70] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 30.829410][ T70] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 21)) [ 30.829415][ T70] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 30.829419][ T70] ? default_device_exit_batch (net/core/dev.c:13215) [ 30.829424][ T70] ? 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) [ 30.829427][ T70] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 30.829430][ T70] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 30.829434][ T70] ? unregister_netdevice_queue (net/core/dev.c:12442) [ 30.829437][ T70] ? unregister_netdevice_many (net/core/dev.c:12441) [ 30.829440][ T70] ? unregister_netdevice_many (net/core/dev.c:12441) [ 30.829446][ T70] default_device_exit_batch (net/core/dev.c:13229) [ 30.829450][ T70] ? unregister_netdev (net/core/dev.c:13204) [ 30.829456][ T70] ops_undo_list (net/core/net_namespace.c:251) [ 30.829461][ T70] ? rtnl_net_dumpid_one (net/core/net_namespace.c:223) [ 30.829464][ T70] ? cleanup_net (./include/linux/list.h:191 net/core/net_namespace.c:693) [ 30.829470][ T70] cleanup_net (net/core/net_namespace.c:698) [ 30.829475][ T70] ? net_passive_dec (net/core/net_namespace.c:660) [ 30.829479][ T70] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 30.829485][ T70] process_one_work (kernel/workqueue.c:3268) [ 30.829492][ T70] ? pwq_dec_nr_in_flight (kernel/workqueue.c:3165) [ 30.829498][ T70] ? assign_work (kernel/workqueue.c:1206) [ 30.829502][ T70] worker_thread (kernel/workqueue.c:3340 kernel/workqueue.c:3427) [ 30.829508][ T70] ? rescuer_thread (kernel/workqueue.c:3373) [ 30.829512][ T70] kthread (kernel/kthread.c:463) [ 30.829518][ T70] ? kthread_is_per_cpu (kernel/kthread.c:412) [ 30.829521][ T70] ? ret_from_fork (arch/x86/kernel/process.c:157) [ 30.829525][ T70] ? __lock_release (kernel/locking/lockdep.c:5536) [ 30.829528][ T70] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 30.829531][ T70] ? kthread_is_per_cpu (kernel/kthread.c:412) [ 30.829535][ T70] ret_from_fork (arch/x86/kernel/process.c:164) [ 30.829537][ T70] ? kthread_is_per_cpu (kernel/kthread.c:412) [ 30.829540][ T70] ret_from_fork_asm (arch/x86/entry/entry_64.S:255) | [ 30.839966][ T70] #PF: error_code(0x0002) - not-present page | [ 30.840183][ T70] PGD 0 P4D 0 | [ 30.840317][ T70] Oops: Oops: 0002 [#1] SMP KASAN | [ 30.840892][ T70] Tainted: [B]=BAD_PAGE [ 30.841040][ T70] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 30.841266][ T70] Workqueue: netns cleanup_net [ 30.841459][ T70] 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) [ 30.841680][ T70] 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 [ 30.842314][ T70] RSP: 0018:ffffc900004b7680 EFLAGS: 00010046 [ 30.842532][ T70] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffffaa049b8a [ 30.842789][ T70] RDX: fffffbfff5dacacd RSI: 0000000000000008 RDI: ffffffffaed65660 [ 30.843113][ T70] RBP: ffffc900004b76e8 R08: 0000000000000001 R09: fffffbfff5dacacc [ 30.843368][ T70] R10: ffffffffaed65667 R11: ffffc900004b7140 R12: 0000000000000000 [ 30.843622][ T70] R13: 0000000000000282 R14: ffff8880098e1000 R15: dffffc0000000000 [ 30.843875][ T70] FS: 0000000000000000(0000) GS:ffff8880be307000(0000) knlGS:0000000000000000 [ 30.844198][ T70] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 30.844414][ T70] CR2: 0000000000000000 CR3: 000000000c902003 CR4: 0000000000772ef0 [ 30.844672][ T70] PKRU: 55555554 [ 30.844801][ T70] Call Trace: [ 30.844934][ T70] [ 30.845035][ T70] __cancel_work (kernel/workqueue.c:2161 kernel/workqueue.c:4364) [ 30.845213][ T70] ? enable_delayed_work (kernel/workqueue.c:4359) [ 30.845393][ T70] ? queue_delayed_work_on (kernel/workqueue.c:2565 (discriminator 1)) [ 30.845568][ T70] __cancel_work_sync (kernel/workqueue.c:4383) [ 30.845739][ T70] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 30.845910][ T70] ? netdev_notify_peers (net/core/dev.c:1891) [ 30.846108][ T70] ? netif_close_many (net/core/dev.c:1959) [ 30.846277][ T70] netif_close_many (net/core/dev.c:1959) [ 30.846454][ T70] ? __mutex_handoff (kernel/locking/mutex.c:88) [ 30.846627][ T70] ? __dev_close_many (net/core/dev.c:1949) [ 30.846806][ T70] ? netif_close_many_and_unlock (net/core/dev.c:12476) [ 30.847031][ T70] ? trace_contention_end (./include/trace/events/lock.h:122 (discriminator 21)) [ 30.847201][ T70] unregister_netdevice_many_notify (net/core/dev.c:12545) [ 30.847424][ T70] ? default_device_exit_batch (net/core/dev.c:13215) [ 30.847591][ T70] ? 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) [ 30.847763][ T70] ? dev_ingress_queue_create (net/core/dev.c:12499) [ 30.847935][ T70] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 30.848170][ T70] ? unregister_netdevice_queue (net/core/dev.c:12442) [ 30.848514][ T70] ? unregister_netdevice_many (net/core/dev.c:12441) [ 30.848680][ T70] ? unregister_netdevice_many (net/core/dev.c:12441) [ 30.848860][ T70] default_device_exit_batch (net/core/dev.c:13229) [ 30.849137][ T70] ? unregister_netdev (net/core/dev.c:13204) [ 30.849408][ T70] ops_undo_list (net/core/net_namespace.c:251) [ 30.849579][ T70] ? rtnl_net_dumpid_one (net/core/net_namespace.c:223) [ 30.849755][ T70] ? cleanup_net (./include/linux/list.h:191 net/core/net_namespace.c:693) [ 30.850006][ T70] cleanup_net (net/core/net_namespace.c:698) [ 30.850424][ T70] ? net_passive_dec (net/core/net_namespace.c:660) [ 30.850593][ T70] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 30.850840][ T70] process_one_work (kernel/workqueue.c:3268) [ 30.851052][ T70] ? pwq_dec_nr_in_flight (kernel/workqueue.c:3165) [ 30.851346][ T70] ? assign_work (kernel/workqueue.c:1206) [ 30.851660][ T70] worker_thread (kernel/workqueue.c:3340 kernel/workqueue.c:3427) [ 30.851833][ T70] ? rescuer_thread (kernel/workqueue.c:3373) [ 30.852027][ T70] kthread (kernel/kthread.c:463) [ 30.852327][ T70] ? kthread_is_per_cpu (kernel/kthread.c:412) [ 30.852492][ T70] ? ret_from_fork (arch/x86/kernel/process.c:157) [ 30.852663][ T70] ? __lock_release (kernel/locking/lockdep.c:5536) [ 30.852941][ T70] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 30.853207][ T70] ? kthread_is_per_cpu (kernel/kthread.c:412) [ 30.853377][ T70] ret_from_fork (arch/x86/kernel/process.c:164) [ 30.853619][ T70] ? 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