====================================== | [ 12.166691] #PF: supervisor write access in kernel mode | [ 12.166732] #PF: error_code(0x0002) - not-present page | [ 12.166762] PGD 1ec3067 P4D 1ec3067 PUD 1ebe067 PMD 0 | [ 12.166799] Oops: Oops: 0002 [#1] SMP [ 12.166901] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.166944] 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) [ 12.166984] 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 [ 12.167095] RSP: 0018:ffffb333008936b8 EFLAGS: 00010046 [ 12.167131] RAX: 0000000000000246 RBX: 0000000000000000 RCX: 0000000000000004 [ 12.167181] RDX: ffffb333008936f0 RSI: 0000000000000000 RDI: 0000000000000000 [ 12.167231] RBP: ffffb333008936f0 R08: ffff8ee141396473 R09: ffffffffb4c6cc80 [ 12.167281] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 12.167326] R13: 0000000000000000 R14: 0000000000000020 R15: 0000000000000001 [ 12.167377] FS: 00007f92a337e800(0000) GS:ffff8ee1c98da000(0000) knlGS:0000000000000000 [ 12.167430] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 12.167471] CR2: 0000000000000000 CR3: 00000000073d1005 CR4: 0000000000772ef0 [ 12.167517] PKRU: 55555554 [ 12.167536] Call Trace: [ 12.167553] [ 12.167575] __cancel_work (kernel/workqueue.c:4366) [ 12.167604] ? linkwatch_urgent_event (net/core/link_watch.c:114) [ 12.167640] __cancel_work_sync (kernel/workqueue.c:4381) [ 12.167668] __dev_close_many (net/core/dev.c:1879 (discriminator 2) net/core/dev.c:1932 (discriminator 2)) [ 12.167696] __dev_change_flags (./include/linux/list.h:226 ./include/linux/list.h:237 net/core/dev.c:1945 net/core/dev.c:9924) [ 12.167724] netif_change_flags (net/core/dev.c:9989) [ 12.167751] do_setlink.constprop.0 (net/core/rtnetlink.c:3158) [ 12.167787] ? __nla_validate_parse (./include/net/netlink.h:1307 (discriminator 1) lib/nlattr.c:622 (discriminator 1)) [ 12.167826] ? __kmalloc_cache_noprof (./include/linux/kernel.h:61 ./include/linux/sched/mm.h:321 mm/slub.c:4929 mm/slub.c:5264 mm/slub.c:5766) [ 12.167865] rtnl_newlink (net/core/rtnetlink.c:3776 net/core/rtnetlink.c:3935 net/core/rtnetlink.c:4072) [ 12.167897] ? virtio_fs_enqueue_req (fs/fuse/virtio_fs.c:1473) [ 12.167935] ? netdev_run_todo (./include/linux/list.h:381 net/core/dev.c:11853) [ 12.167962] ? rtnl_setlink (net/core/rtnetlink.c:3963) [ 12.167990] rtnetlink_rcv_msg (net/core/rtnetlink.c:6959) [ 12.168018] ? get_page_from_freelist (mm/page_alloc.c:1226 mm/page_alloc.c:1848 mm/page_alloc.c:1858 mm/page_alloc.c:3884) [ 12.168056] ? rtnl_calcit.isra.0 (net/core/rtnetlink.c:6861) [ 12.168092] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 12.168125] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 12.168162] ? __alloc_skb (net/core/skbuff.c:706) [ 12.168197] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 12.168227] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 12.168257] ? copy_msghdr_from_user (net/socket.c:2570) [ 12.168293] ___sys_sendmsg (net/socket.c:2686) [ 12.168322] ? do_wp_page (./include/linux/mmu_notifier.h:468 mm/memory.c:3787 mm/memory.c:4141) [ 12.168353] ? ___pte_offset_map (./include/linux/pgtable.h:347 ./include/linux/pgtable.h:635 mm/pgtable-generic.c:288) [ 12.168381] ? nfulnl_rcv_nl_event (net/netfilter/nfnetlink_log.c:836) [ 12.168417] ? fsnotify_grab_connector (fs/notify/mark.c:709) [ 12.168452] ? fsnotify_destroy_marks (fs/notify/mark.c:937) [ 12.168487] __sys_sendmsg (net/socket.c:2716) [ 12.168516] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 12.168544] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 12.168579] RIP: 0033:0x7f92a354c1d7 [ 12.168607] Code: 0e 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b9 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 89 54 24 1c 48 89 74 24 10 All code ======== 0: 0e (bad) 1: 00 f7 add %dh,%bh 3: d8 64 89 02 fsubs 0x2(%rcx,%rcx,4) 7: 48 c7 c0 ff ff ff ff mov $0xffffffffffffffff,%rax e: eb b9 jmp 0xffffffffffffffc9 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 2e 00 00 00 mov $0x2e,%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: 89 54 24 1c mov %edx,0x1c(%rsp) 3b: 48 89 74 24 10 mov %rsi,0x10(%rsp) 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: 89 54 24 1c mov %edx,0x1c(%rsp) 11: 48 89 74 24 10 mov %rsi,0x10(%rsp) [ 12.168716] RSP: 002b:00007ffcc510a978 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 12.168766] RAX: ffffffffffffffda RBX: 00007ffcc510b0a0 RCX: 00007f92a354c1d7 [ 12.168810] RDX: 0000000000000000 RSI: 00007ffcc510a9e0 RDI: 0000000000000005 [ 12.168860] RBP: 0000000000000003 R08: 0000000000000003 R09: 0000000000000078 [ 12.168911] R10: 00007f92a3448f60 R11: 0000000000000246 R12: 0000000000000003 Finger prints: work_grab_pending:__cancel_work:__cancel_work_sync:__dev_close_many:__dev_change_flags