====================================== | [ 1467.498133] #PF: supervisor read access in kernel mode | [ 1467.498170] #PF: error_code(0x0000) - not-present page | [ 1467.498205] PGD 0 P4D 0 | [ 1467.498232] Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI [ 1467.498318] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 1467.498363] RIP: 0010:hrtimer_active (./include/linux/seqlock.h:226 kernel/time/hrtimer.c:1727) [ 1467.498405] Code: 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 0f 1f 44 00 00 48 8b 47 30 <8b> 50 10 f6 c2 01 75 23 80 7f 38 00 75 29 48 39 78 18 74 23 8b 48 All code ======== 0: 66 66 2e 0f 1f 84 00 data16 cs nopw 0x0(%rax,%rax,1) 7: 00 00 00 00 b: 66 90 xchg %ax,%ax d: 90 nop e: 90 nop f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: f3 0f 1e fa endbr64 21: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 26: 48 8b 47 30 mov 0x30(%rdi),%rax 2a:* 8b 50 10 mov 0x10(%rax),%edx <-- trapping instruction 2d: f6 c2 01 test $0x1,%dl 30: 75 23 jne 0x55 32: 80 7f 38 00 cmpb $0x0,0x38(%rdi) 36: 75 29 jne 0x61 38: 48 39 78 18 cmp %rdi,0x18(%rax) 3c: 74 23 je 0x61 3e: 8b .byte 0x8b 3f: 48 rex.W Code starting with the faulting instruction =========================================== 0: 8b 50 10 mov 0x10(%rax),%edx 3: f6 c2 01 test $0x1,%dl 6: 75 23 jne 0x2b 8: 80 7f 38 00 cmpb $0x0,0x38(%rdi) c: 75 29 jne 0x37 e: 48 39 78 18 cmp %rdi,0x18(%rax) 12: 74 23 je 0x37 14: 8b .byte 0x8b 15: 48 rex.W [ 1467.498518] RSP: 0018:ffff9e1240827b38 EFLAGS: 00010202 [ 1467.498555] RAX: 0000000000000000 RBX: ffff9167832ad5d0 RCX: 0000000000000003 [ 1467.498606] RDX: 0000000000000000 RSI: 0000000000000006 RDI: ffff9167832ad5d0 [ 1467.498658] RBP: 0000000000000001 R08: 0000000000000008 R09: 0000000000000002 [ 1467.498704] R10: ffff9167bed2f580 R11: ffff9167832c5c90 R12: ffff916784f12000 [ 1467.498757] R13: ffff916784f12000 R14: ffff916784f12000 R15: 0000000000000000 [ 1467.498811] FS: 00007f887a6271c0(0000) GS:ffff9167bed00000(0000) knlGS:0000000000000000 [ 1467.498864] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1467.498908] CR2: 0000000000000010 CR3: 000000000864e003 CR4: 0000000000772ef0 [ 1467.498962] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 1467.499014] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 1467.499060] PKRU: 55555554 [ 1467.499082] Call Trace: [ 1467.499100] [ 1467.499121] ? __die (arch/x86/kernel/dumpstack.c:421 arch/x86/kernel/dumpstack.c:434) [ 1467.499154] ? page_fault_oops (arch/x86/mm/fault.c:714) [ 1467.499186] ? check_preempt_wakeup_fair (kernel/sched/fair.c:8810) [ 1467.499224] ? exc_page_fault (./arch/x86/include/asm/irqflags.h:37 ./arch/x86/include/asm/irqflags.h:92 arch/x86/mm/fault.c:1488 arch/x86/mm/fault.c:1538) [ 1467.499259] ? asm_exc_page_fault (./arch/x86/include/asm/idtentry.h:623) [ 1467.499291] ? hrtimer_active (./include/linux/seqlock.h:226 kernel/time/hrtimer.c:1727) [ 1467.499319] hrtimer_cancel (kernel/time/hrtimer.c:1373 kernel/time/hrtimer.c:1502) [ 1467.499350] nsim_stop (drivers/net/netdevsim/netdev.c:483 drivers/net/netdevsim/netdev.c:504) netdevsim [ 1467.499395] __dev_close_many (net/core/dev.c:1720) [ 1467.499429] dev_close_many (net/core/dev.c:1747) [ 1467.499460] unregister_netdevice_many_notify (net/core/dev.c:11828) [ 1467.499497] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:2934 kernel/rcu/tree.c:2950 kernel/rcu/tree.c:3089) [ 1467.499537] unregister_netdevice_queue (net/core/dev.c:11777) [ 1467.499573] nsim_destroy (drivers/net/netdevsim/netdevsim.h:387 (discriminator 2) drivers/net/netdevsim/netdev.c:1039 (discriminator 2)) netdevsim [ 1467.499613] __nsim_dev_port_del (drivers/net/netdevsim/dev.c:426 drivers/net/netdevsim/dev.c:1429) netdevsim [ 1467.499656] nsim_dev_reload_destroy (drivers/net/netdevsim/dev.c:1438 drivers/net/netdevsim/dev.c:1661) netdevsim [ 1467.499695] nsim_drv_remove (drivers/net/netdevsim/dev.c:1678) netdevsim [ 1467.499738] device_release_driver_internal (drivers/base/dd.c:1275 drivers/base/dd.c:1296) [ 1467.499778] bus_remove_device (./include/linux/kobject.h:193 (discriminator 3) drivers/base/base.h:73 (discriminator 3) drivers/base/bus.c:586 (discriminator 3)) [ 1467.499806] device_del (drivers/base/core.c:3855) [ 1467.499835] device_unregister (drivers/base/core.c:3772 drivers/base/core.c:3896) [ 1467.499864] del_device_store (drivers/net/netdevsim/bus.c:230) netdevsim [ 1467.499906] kernfs_fop_write_iter (fs/kernfs/file.c:334) [ 1467.499946] vfs_write (fs/read_write.c:586 fs/read_write.c:679) [ 1467.499975] ksys_write (fs/read_write.c:731) [ 1467.500003] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 1467.500032] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 1467.500068] RIP: 0033:0x7f887a841b77 [ 1467.500096] Code: 0b 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 48 89 54 24 18 48 89 74 24 All code ======== 0: 0b 00 or (%rax),%eax 2: f7 d8 neg %eax 4: 64 89 02 mov %eax,%fs:(%rdx) 7: 48 c7 c0 ff ff ff ff mov $0xffffffffffffffff,%rax e: eb b7 jmp 0xffffffffffffffc7 10: 0f 1f 00 nopl (%rax) 13: f3 0f 1e fa endbr64 17: 64 8b 04 25 18 00 00 mov %fs:0x18,%eax 1e: 00 1f: 85 c0 test %eax,%eax 21: 75 10 jne 0x33 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 51 ja 0x83 32: c3 ret 33: 48 83 ec 28 sub $0x28,%rsp 37: 48 89 54 24 18 mov %rdx,0x18(%rsp) 3c: 48 rex.W 3d: 89 .byte 0x89 3e: 74 24 je 0x64 Code starting with the faulting instruction =========================================== 0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 51 ja 0x59 8: c3 ret 9: 48 83 ec 28 sub $0x28,%rsp d: 48 89 54 24 18 mov %rdx,0x18(%rsp) 12: 48 rex.W 13: 89 .byte 0x89 14: 74 24 je 0x3a [ 1467.500207] RSP: 002b:00007ffce5b36a28 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 1467.500259] RAX: ffffffffffffffda RBX: 00007f887a627140 RCX: 00007f887a841b77 [ 1467.500304] RDX: 0000000000000005 RSI: 000055b676386f50 RDI: 0000000000000006 [ 1467.500355] RBP: 0000000000000005 R08: 0000000000000000 R09: 0000000000000000 [ 1467.500400] R10: 0000000000000002 R11: 0000000000000246 R12: 00007f886c57d100 Finger prints: hrtimer_active:hrtimer_cancel:nsim_stop:__dev_close_many:dev_close_many