====================================== | [ 13.719177] #PF: supervisor write access in kernel mode | [ 13.719218] #PF: error_code(0x0002) - not-present page | [ 13.719257] PGD 0 P4D 0 | [ 13.719282] Oops: Oops: 0002 [#1] SMP [ 13.719388] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.719436] RIP: 0010:work_grab_pending (./arch/x86/include/asm/bitops.h:136 ./include/asm-generic/bitops/instrumented-atomic.h:72 kernel/workqueue.c:2072 kernel/workqueue.c:2160) [ 13.719486] Code: 83 e6 01 41 57 41 56 4c 8d 77 20 41 55 41 54 41 89 f4 55 48 89 d5 53 48 89 fb 9c 58 fa 48 89 45 00 45 85 e4 0f 85 8a 00 00 00 48 0f ba 2b 00 41 0f 92 c5 72 0e 5b 44 89 e8 5d 41 5c 41 5d 41 All code ======== 0: 83 e6 01 and $0x1,%esi 3: 41 57 push %r15 5: 41 56 push %r14 7: 4c 8d 77 20 lea 0x20(%rdi),%r14 b: 41 55 push %r13 d: 41 54 push %r12 f: 41 89 f4 mov %esi,%r12d 12: 55 push %rbp 13: 48 89 d5 mov %rdx,%rbp 16: 53 push %rbx 17: 48 89 fb mov %rdi,%rbx 1a: 9c pushf 1b: 58 pop %rax 1c: fa cli 1d: 48 89 45 00 mov %rax,0x0(%rbp) 21: 45 85 e4 test %r12d,%r12d 24: 0f 85 8a 00 00 00 jne 0xb4 2a:* f0 48 0f ba 2b 00 lock btsq $0x0,(%rbx) <-- trapping instruction 30: 41 0f 92 c5 setb %r13b 34: 72 0e jb 0x44 36: 5b pop %rbx 37: 44 89 e8 mov %r13d,%eax 3a: 5d pop %rbp 3b: 41 5c pop %r12 3d: 41 5d pop %r13 3f: 41 rex.B Code starting with the faulting instruction =========================================== 0: f0 48 0f ba 2b 00 lock btsq $0x0,(%rbx) 6: 41 0f 92 c5 setb %r13b a: 72 0e jb 0x1a c: 5b pop %rbx d: 44 89 e8 mov %r13d,%eax 10: 5d pop %rbp 11: 41 5c pop %r12 13: 41 5d pop %r13 15: 41 rex.B [ 13.719610] RSP: 0018:ffffb13840597ae8 EFLAGS: 00010046 [ 13.719648] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 0000000000100008 [ 13.719704] RDX: ffffb13840597b20 RSI: 0000000000000000 RDI: 0000000000000000 [ 13.719760] RBP: ffffb13840597b20 R08: 0000000000000000 R09: ffffffff9353c800 [ 13.719815] R10: ffff8c85847fc800 R11: 0000000000000001 R12: 0000000000000000 [ 13.719871] R13: ffffb13840597c18 R14: 0000000000000020 R15: 0000000000000000 [ 13.719930] FS: 00007fc708f5b740(0000) GS:ffff8c862a356000(0000) knlGS:0000000000000000 [ 13.719990] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 13.720042] CR2: 0000000000000000 CR3: 00000000044bf005 CR4: 0000000000772ef0 [ 13.720099] PKRU: 55555554 [ 13.720120] Call Trace: [ 13.720145] [ 13.720174] __cancel_work (kernel/workqueue.c:4366) [ 13.720208] __cancel_work_sync (kernel/workqueue.c:4381) [ 13.720240] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 13.720280] netif_close_many (net/core/dev.c:1959) [ 13.720311] unregister_netdevice_many_notify (net/core/dev.c:12476 net/core/dev.c:12537) [ 13.720358] unregister_netdevice_queue (net/core/dev.c:12452) [ 13.720401] nsim_destroy (drivers/net/netdevsim/netdevsim.h:397 (discriminator 2) drivers/net/netdevsim/netdev.c:1179 (discriminator 2)) netdevsim [ 13.720453] __nsim_dev_port_del (drivers/net/netdevsim/dev.c:443 drivers/net/netdevsim/dev.c:1528) netdevsim [ 13.720495] nsim_dev_reload_destroy (drivers/net/netdevsim/dev.c:1537 drivers/net/netdevsim/dev.c:1762) netdevsim [ 13.720538] nsim_drv_remove (drivers/net/netdevsim/dev.c:1779) netdevsim [ 13.720581] device_release_driver_internal (drivers/base/dd.c:1276 drivers/base/dd.c:1297) [ 13.720631] bus_remove_device (./include/linux/kobject.h:193 (discriminator 3) drivers/base/base.h:73 (discriminator 3) drivers/base/bus.c:586 (discriminator 3)) [ 13.720664] device_del (drivers/base/core.c:3879) [ 13.720695] device_unregister (drivers/base/core.c:3796 drivers/base/core.c:3920) [ 13.720728] del_device_store (drivers/net/netdevsim/bus.c:248) netdevsim [ 13.720772] kernfs_fop_write_iter (fs/kernfs/file.c:88 fs/kernfs/file.c:356) [ 13.720819] vfs_write (fs/read_write.c:594 fs/read_write.c:686) [ 13.720858] ksys_write (fs/read_write.c:738) [ 13.720892] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 13.720925] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 13.720968] RIP: 0033:0x7fc70913a28f [ 13.720999] Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 a9 89 f8 ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 fc 89 f8 ff 48 All code ======== 0: 89 54 24 18 mov %edx,0x18(%rsp) 4: 48 89 74 24 10 mov %rsi,0x10(%rsp) 9: 89 7c 24 08 mov %edi,0x8(%rsp) d: e8 a9 89 f8 ff call 0xfffffffffff889bb 12: 48 8b 54 24 18 mov 0x18(%rsp),%rdx 17: 48 8b 74 24 10 mov 0x10(%rsp),%rsi 1c: 41 89 c0 mov %eax,%r8d 1f: 8b 7c 24 08 mov 0x8(%rsp),%edi 23: b8 01 00 00 00 mov $0x1,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 31 ja 0x63 32: 44 89 c7 mov %r8d,%edi 35: 48 89 44 24 08 mov %rax,0x8(%rsp) 3a: e8 fc 89 f8 ff call 0xfffffffffff88a3b 3f: 48 rex.W Code starting with the faulting instruction =========================================== 0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 31 ja 0x39 8: 44 89 c7 mov %r8d,%edi b: 48 89 44 24 08 mov %rax,0x8(%rsp) 10: e8 fc 89 f8 ff call 0xfffffffffff88a11 15: 48 rex.W [ 13.721121] RSP: 002b:00007ffccbf3a9b0 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 [ 13.721177] RAX: ffffffffffffffda RBX: 00007fc708f5b6e0 RCX: 00007fc70913a28f [ 13.721234] RDX: 0000000000000005 RSI: 000055abd2a6a070 RDI: 0000000000000005 [ 13.721290] RBP: 0000000000000005 R08: 0000000000000000 R09: 0000000000000002 [ 13.721351] R10: 0000000000000002 R11: 0000000000000293 R12: 00007fc6facf9100 Finger prints: work_grab_pending:__cancel_work:__cancel_work_sync:__dev_close_many:netif_close_many