====================================== | 0 | xx__-> [ 12.658030][ T220] ------------[ cut here ]------------ | [ 12.658405][ T220] WARNING: CPU: 3 PID: 220 at ./include/net/netdev_lock.h:52 __netdev_update_features (./include/net/netdev_lock.h:52 ./include/net/netdev_lock.h:49 net/core/dev.c:10566) | [ 12.658865][ T220] Modules linked in: netdevsim [ 12.659464][ T220] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.659746][ T220] RIP: 0010:__netdev_update_features (./include/net/netdev_lock.h:52 ./include/net/netdev_lock.h:49 net/core/dev.c:10566) [ 12.660025][ T220] Code: 00 e8 a3 4a fe ff 48 8b 5c 24 58 e9 87 fb ff ff 49 8d bf 90 0c 00 00 be ff ff ff ff e8 08 e9 78 00 85 c0 0f 85 99 00 00 00 90 <0f> 0b 90 48 b8 00 00 00 00 00 fc ff df 48 8b 54 24 20 48 c1 ea 03 All code ======== 0: 00 e8 add %ch,%al 2: a3 4a fe ff 48 8b 5c movabs %eax,0x58245c8b48fffe4a 9: 24 58 b: e9 87 fb ff ff jmp 0xfffffffffffffb97 10: 49 8d bf 90 0c 00 00 lea 0xc90(%r15),%rdi 17: be ff ff ff ff mov $0xffffffff,%esi 1c: e8 08 e9 78 00 call 0x78e929 21: 85 c0 test %eax,%eax 23: 0f 85 99 00 00 00 jne 0xc2 29: 90 nop 2a:* 0f 0b ud2 <-- trapping instruction 2c: 90 nop 2d: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 34: fc ff df 37: 48 8b 54 24 20 mov 0x20(%rsp),%rdx 3c: 48 c1 ea 03 shr $0x3,%rdx Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: 90 nop 3: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax a: fc ff df d: 48 8b 54 24 20 mov 0x20(%rsp),%rdx 12: 48 c1 ea 03 shr $0x3,%rdx [ 12.660789][ T220] RSP: 0018:ffffc90000ac7548 EFLAGS: 00010246 [ 12.661062][ T220] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000001 [ 12.661404][ T220] RDX: 0000000000000000 RSI: ffff88800ba7ac90 RDI: ffff8880090fae38 [ 12.661730][ T220] RBP: ffffffffa8928600 R08: 0000000000000000 R09: fffffbfff4cfd944 [ 12.662045][ T220] R10: ffffffffa67eca27 R11: ffff8880090fa300 R12: 0000000000000000 [ 12.662388][ T220] R13: ffff88800ba7a128 R14: ffff88800ba7a008 R15: ffff88800ba7a000 [ 12.662716][ T220] FS: 00007f6e16baf1c0(0000) GS:ffff888036180000(0000) knlGS:0000000000000000 [ 12.663092][ T220] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 12.663379][ T220] CR2: 00007f6e096038b0 CR3: 00000000023b2001 CR4: 0000000000772ef0 [ 12.663711][ T220] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 12.664035][ T220] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 12.664374][ T220] PKRU: 55555554 [ 12.664543][ T220] Call Trace: [ 12.664820][ T220] [ 12.664934][ T220] ? __netdev_update_features (./include/net/netdev_lock.h:52 ./include/net/netdev_lock.h:49 net/core/dev.c:10566) [ 12.665173][ T220] ? __warn (kernel/panic.c:748) [ 12.665341][ T220] ? __netdev_update_features (./include/net/netdev_lock.h:52 ./include/net/netdev_lock.h:49 net/core/dev.c:10566) [ 12.665556][ T220] ? report_bug (lib/bug.c:201 lib/bug.c:219) [ 12.665792][ T220] ? handle_bug (arch/x86/kernel/traps.c:285) [ 12.665983][ T220] ? exc_invalid_op (arch/x86/kernel/traps.c:309 (discriminator 1)) [ 12.666215][ T220] ? asm_exc_invalid_op (./arch/x86/include/asm/idtentry.h:621) [ 12.666476][ T220] ? __netdev_update_features (./include/net/netdev_lock.h:52 ./include/net/netdev_lock.h:49 net/core/dev.c:10566) [ 12.666695][ T220] ? __netdev_update_features (./include/net/netdev_lock.h:52 net/core/dev.c:10566) [ 12.666993][ T220] ? __pfx___netdev_update_features (net/core/dev.c:10559) [ 12.667360][ T220] ? _raw_spin_unlock_irq (./arch/x86/include/asm/irqflags.h:42 ./arch/x86/include/asm/irqflags.h:97 ./include/linux/spinlock_api_smp.h:159 kernel/locking/spinlock.c:202) [ 12.667586][ T220] ? netdev_register_kobject (net/core/net-sysfs.c:2344) [ 12.667809][ T220] register_netdevice (net/core/dev.c:11003) [ 12.668076][ T220] ? __pfx_register_netdevice (net/core/dev.c:10881) [ 12.668434][ T220] nsim_create (drivers/net/netdevsim/netdev.c:958 drivers/net/netdevsim/netdev.c:1018) netdevsim [ 12.668717][ T220] __nsim_dev_port_add (drivers/net/netdevsim/dev.c:1393) netdevsim [ 12.669003][ T220] ? __pfx___nsim_dev_port_add (drivers/net/netdevsim/dev.c:1357) netdevsim [ 12.669297][ T220] ? nsim_dev_hwstats_init (./include/linux/workqueue.h:817 drivers/net/netdevsim/hwstats.c:442) netdevsim [ 12.669581][ T220] nsim_drv_probe (drivers/net/netdevsim/dev.c:1450 drivers/net/netdevsim/dev.c:1607) netdevsim [ 12.669818][ T220] ? __pfx_nsim_drv_probe (drivers/net/netdevsim/dev.c:1528) netdevsim [ 12.670088][ T220] ? kernfs_create_link (fs/kernfs/symlink.c:48) [ 12.670317][ T220] ? kernfs_put (./arch/x86/include/asm/atomic.h:67 (discriminator 1) ./include/linux/atomic/atomic-arch-fallback.h:2278 (discriminator 1) ./include/linux/atomic/atomic-instrumented.h:1384 (discriminator 1) fs/kernfs/dir.c:557 (discriminator 1)) [ 12.670481][ T220] ? sysfs_do_create_link_sd (fs/sysfs/symlink.c:48) [ 12.670701][ T220] really_probe (drivers/base/dd.c:579 drivers/base/dd.c:658) [ 12.670921][ T220] __driver_probe_device (drivers/base/dd.c:800) [ 12.671143][ T220] driver_probe_device (drivers/base/dd.c:830) [ 12.671372][ T220] __device_attach_driver (drivers/base/dd.c:959) [ 12.671591][ T220] ? __pfx___device_attach_driver (drivers/base/dd.c:922) [ 12.671856][ T220] bus_for_each_drv (drivers/base/bus.c:462) [ 12.672071][ T220] ? __pfx_bus_for_each_drv (drivers/base/bus.c:450) [ 12.672293][ T220] ? bus_to_subsys (drivers/base/bus.c:85) [ 12.672505][ T220] ? __pfx___lock_release (kernel/locking/lockdep.c:5503) [ 12.672717][ T220] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5816) [ 12.672941][ T220] __device_attach (drivers/base/dd.c:1030) [ 12.673165][ T220] ? __pfx___device_attach (drivers/base/dd.c:1001) [ 12.673377][ T220] ? bus_to_subsys (drivers/base/bus.c:85) [ 12.673590][ T220] ? do_raw_spin_unlock (./arch/x86/include/asm/atomic.h:23 ./include/linux/atomic/atomic-arch-fallback.h:457 ./include/linux/atomic/atomic-instrumented.h:33 ./include/asm-generic/qspinlock.h:57 kernel/locking/spinlock_debug.c:101 kernel/locking/spinlock_debug.c:141) [ 12.673814][ T220] bus_probe_device (drivers/base/bus.c:537) [ 12.674030][ T220] device_add (drivers/base/core.c:3672) [ 12.674253][ T220] ? __pfx_device_add (drivers/base/core.c:3548) [ 12.674468][ T220] ? __init_waitqueue_head (./include/linux/list.h:37 kernel/sched/wait.c:12) [ 12.674687][ T220] new_device_store (drivers/net/netdevsim/bus.c:443 drivers/net/netdevsim/bus.c:173) netdevsim [ 12.674961][ T220] ? __pfx_new_device_store (drivers/net/netdevsim/bus.c:142) netdevsim [ 12.675245][ T220] ? __pfx_sysfs_kf_write (fs/sysfs/file.c:132) [ 12.675455][ T220] ? sysfs_file_ops (fs/sysfs/file.c:31 (discriminator 1)) [ 12.675675][ T220] ? __pfx_sysfs_kf_write (fs/sysfs/file.c:132) [ 12.675888][ T220] kernfs_fop_write_iter (fs/kernfs/file.c:334) [ 12.676122][ T220] vfs_write (fs/read_write.c:586 fs/read_write.c:679) [ 12.676292][ T220] ? __pfx_vfs_write (fs/read_write.c:660) [ 12.676510][ T220] ? __lock_release (kernel/locking/lockdep.c:5527) [ 12.676721][ T220] ? do_user_addr_fault (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 ./include/linux/mm.h:742 arch/x86/mm/fault.c:1339) [ 12.676944][ T220] ? __pfx___up_read (kernel/locking/rwsem.c:1337) [ 12.677177][ T220] ksys_write (fs/read_write.c:731) [ 12.677342][ T220] ? __pfx_ksys_write (fs/read_write.c:721) [ 12.677559][ T220] ? do_user_addr_fault (./include/linux/rcupdate.h:882 ./include/linux/mm.h:742 arch/x86/mm/fault.c:1339) [ 12.677785][ T220] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 12.678002][ T220] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 12.678273][ T220] RIP: 0033:0x7f6e16dc9b77 [ 12.678512][ T220] 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 [ 12.679289][ T220] RSP: 002b:00007ffed74e0bc8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 12.679618][ T220] RAX: ffffffffffffffda RBX: 00007f6e16baf140 RCX: 00007f6e16dc9b77 [ 12.679943][ T220] RDX: 0000000000000009 RSI: 000055835e9c0f80 RDI: 0000000000000005 [ 12.680284][ T220] RBP: 0000000000000009 R08: 0000000000000000 R09: 0000000000000000 [ 12.680616][ T220] R10: 0000000000000002 R11: 0000000000000246 R12: 00007f6e08ac3400 [ 12.680938][ T220] R13: 000055835e9c0f80 R14: 0000000000000005 R15: 000055835e717980 | [ 13.560934][ T220] ------------[ cut here ]------------ | [ 13.561365][ T220] WARNING: CPU: 0 PID: 220 at ./include/net/netdev_lock.h:52 __netdev_update_features (./include/net/netdev_lock.h:52 ./include/net/netdev_lock.h:49 net/core/dev.c:10566) | [ 13.561770][ T220] Modules linked in: netdevsim | [ 13.562338][ T220] Tainted: [W]=WARN [ 13.562510][ T220] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.562759][ T220] RIP: 0010:__netdev_update_features (./include/net/netdev_lock.h:52 ./include/net/netdev_lock.h:49 net/core/dev.c:10566) [ 13.563009][ T220] Code: 00 e8 a3 4a fe ff 48 8b 5c 24 58 e9 87 fb ff ff 49 8d bf 90 0c 00 00 be ff ff ff ff e8 08 e9 78 00 85 c0 0f 85 99 00 00 00 90 <0f> 0b 90 48 b8 00 00 00 00 00 fc ff df 48 8b 54 24 20 48 c1 ea 03 All code ======== 0: 00 e8 add %ch,%al 2: a3 4a fe ff 48 8b 5c movabs %eax,0x58245c8b48fffe4a 9: 24 58 b: e9 87 fb ff ff jmp 0xfffffffffffffb97 10: 49 8d bf 90 0c 00 00 lea 0xc90(%r15),%rdi 17: be ff ff ff ff mov $0xffffffff,%esi 1c: e8 08 e9 78 00 call 0x78e929 21: 85 c0 test %eax,%eax 23: 0f 85 99 00 00 00 jne 0xc2 29: 90 nop 2a:* 0f 0b ud2 <-- trapping instruction 2c: 90 nop 2d: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 34: fc ff df 37: 48 8b 54 24 20 mov 0x20(%rsp),%rdx 3c: 48 c1 ea 03 shr $0x3,%rdx Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: 90 nop 3: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax a: fc ff df d: 48 8b 54 24 20 mov 0x20(%rsp),%rdx 12: 48 c1 ea 03 shr $0x3,%rdx [ 13.563705][ T220] RSP: 0018:ffffc90000ac7548 EFLAGS: 00010246 [ 13.563954][ T220] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000001 [ 13.564254][ T220] RDX: 0000000000000000 RSI: ffff888005082c90 RDI: ffff8880090fae38 [ 13.564548][ T220] RBP: ffffffffa8928600 R08: 0000000000000000 R09: fffffbfff4cfd944 [ 13.564843][ T220] R10: ffffffffa67eca27 R11: ffff8880090fa300 R12: 0000000000000000 [ 13.565140][ T220] R13: ffff888005082128 R14: ffff888005082008 R15: ffff888005082000 [ 13.565436][ T220] FS: 00007f6e16baf1c0(0000) GS:ffff888036000000(0000) knlGS:0000000000000000 [ 13.565776][ T220] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 13.566026][ T220] CR2: 00007f6e0957c7c0 CR3: 00000000023b2001 CR4: 0000000000772ef0 [ 13.566374][ T220] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 13.566670][ T220] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 13.566965][ T220] PKRU: 55555554 [ 13.567126][ T220] Call Trace: [ 13.567275][ T220] [ 13.567376][ T220] ? __netdev_update_features (./include/net/netdev_lock.h:52 ./include/net/netdev_lock.h:49 net/core/dev.c:10566) [ 13.567574][ T220] ? __warn (kernel/panic.c:748) [ 13.567729][ T220] ? __netdev_update_features (./include/net/netdev_lock.h:52 ./include/net/netdev_lock.h:49 net/core/dev.c:10566) [ 13.567927][ T220] ? report_bug (lib/bug.c:201 lib/bug.c:219) [ 13.568141][ T220] ? handle_bug (arch/x86/kernel/traps.c:285) [ 13.568294][ T220] ? exc_invalid_op (arch/x86/kernel/traps.c:309 (discriminator 1)) [ 13.568491][ T220] ? asm_exc_invalid_op (./arch/x86/include/asm/idtentry.h:621) [ 13.568707][ T220] ? __netdev_update_features (./include/net/netdev_lock.h:52 ./include/net/netdev_lock.h:49 net/core/dev.c:10566) [ 13.568909][ T220] ? __netdev_update_features (./include/net/netdev_lock.h:52 net/core/dev.c:10566) [ 13.569129][ T220] ? __pfx___netdev_update_features (net/core/dev.c:10559) [ 13.569383][ T220] ? _raw_spin_unlock_irq (./arch/x86/include/asm/irqflags.h:42 ./arch/x86/include/asm/irqflags.h:97 ./include/linux/spinlock_api_smp.h:159 kernel/locking/spinlock.c:202) [ 13.569587][ T220] ? netdev_register_kobject (net/core/net-sysfs.c:2344) [ 13.569793][ T220] register_netdevice (net/core/dev.c:11003) [ 13.569995][ T220] ? __pfx_register_netdevice (net/core/dev.c:10881) [ 13.570214][ T220] nsim_create (drivers/net/netdevsim/netdev.c:958 drivers/net/netdevsim/netdev.c:1018) netdevsim [ 13.570430][ T220] __nsim_dev_port_add (drivers/net/netdevsim/dev.c:1393) netdevsim [ 13.570690][ T220] ? __pfx___nsim_dev_port_add (drivers/net/netdevsim/dev.c:1357) netdevsim [ 13.570954][ T220] ? nsim_dev_hwstats_init (./include/linux/workqueue.h:817 drivers/net/netdevsim/hwstats.c:442) netdevsim [ 13.571231][ T220] nsim_drv_probe (drivers/net/netdevsim/dev.c:1450 drivers/net/netdevsim/dev.c:1607) netdevsim [ 13.571448][ T220] ? __pfx_nsim_drv_probe (drivers/net/netdevsim/dev.c:1528) netdevsim [ 13.571728][ T220] ? kernfs_create_link (fs/kernfs/symlink.c:48) [ 13.571931][ T220] ? kernfs_put (./arch/x86/include/asm/atomic.h:67 (discriminator 1) ./include/linux/atomic/atomic-arch-fallback.h:2278 (discriminator 1) ./include/linux/atomic/atomic-instrumented.h:1384 (discriminator 1) fs/kernfs/dir.c:557 (discriminator 1)) [ 13.572083][ T220] ? sysfs_do_create_link_sd (fs/sysfs/symlink.c:48) [ 13.572297][ T220] really_probe (drivers/base/dd.c:579 drivers/base/dd.c:658) [ 13.572500][ T220] __driver_probe_device (drivers/base/dd.c:800) [ 13.572699][ T220] driver_probe_device (drivers/base/dd.c:830) [ 13.572894][ T220] __device_attach_driver (drivers/base/dd.c:959) [ 13.573097][ T220] ? __pfx___device_attach_driver (drivers/base/dd.c:922) [ 13.573348][ T220] bus_for_each_drv (drivers/base/bus.c:462) [ 13.573552][ T220] ? __pfx_bus_for_each_drv (drivers/base/bus.c:450) [ 13.573749][ T220] ? bus_to_subsys (drivers/base/bus.c:85) [ 13.573947][ T220] ? __pfx___lock_release (kernel/locking/lockdep.c:5503) [ 13.574154][ T220] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5816) [ 13.574358][ T220] __device_attach (drivers/base/dd.c:1030) [ 13.574558][ T220] ? __pfx___device_attach (drivers/base/dd.c:1001) [ 13.574754][ T220] ? bus_to_subsys (drivers/base/bus.c:85) [ 13.574959][ T220] ? do_raw_spin_unlock (./arch/x86/include/asm/atomic.h:23 ./include/linux/atomic/atomic-arch-fallback.h:457 ./include/linux/atomic/atomic-instrumented.h:33 ./include/asm-generic/qspinlock.h:57 kernel/locking/spinlock_debug.c:101 kernel/locking/spinlock_debug.c:141) [ 13.575177][ T220] bus_probe_device (drivers/base/bus.c:537) [ 13.575384][ T220] device_add (drivers/base/core.c:3672) [ 13.575586][ T220] ? __pfx_device_add (drivers/base/core.c:3548) [ 13.575782][ T220] ? __init_waitqueue_head (./include/linux/list.h:37 kernel/sched/wait.c:12) [ 13.575988][ T220] new_device_store (drivers/net/netdevsim/bus.c:443 drivers/net/netdevsim/bus.c:173) netdevsim [ 13.576257][ T220] ? __pfx_new_device_store (drivers/net/netdevsim/bus.c:142) netdevsim [ 13.576516][ T220] ? __pfx_sysfs_kf_write (fs/sysfs/file.c:132) [ 13.576711][ T220] ? sysfs_file_ops (fs/sysfs/file.c:31 (discriminator 1)) [ 13.576912][ T220] ? __pfx_sysfs_kf_write (fs/sysfs/file.c:132) [ 13.577107][ T220] kernfs_fop_write_iter (fs/kernfs/file.c:334) [ 13.577321][ T220] vfs_write (fs/read_write.c:586 fs/read_write.c:679) [ 13.577482][ T220] ? __pfx_vfs_write (fs/read_write.c:660) [ 13.577685][ T220] ? __lock_release (kernel/locking/lockdep.c:5527) [ 13.577879][ T220] ? do_user_addr_fault (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 ./include/linux/mm.h:742 arch/x86/mm/fault.c:1339) [ 13.578087][ T220] ? __pfx___up_read (kernel/locking/rwsem.c:1337) [ 13.578300][ T220] ksys_write (fs/read_write.c:731) [ 13.578451][ T220] ? __pfx_ksys_write (fs/read_write.c:721) [ 13.578656][ T220] ? do_user_addr_fault (./include/linux/rcupdate.h:882 ./include/linux/mm.h:742 arch/x86/mm/fault.c:1339) [ 13.578864][ T220] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 13.579065][ T220] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 13.579320][ T220] RIP: 0033:0x7f6e16dc9b77 [ 13.579526][ T220] 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 [ 13.580215][ T220] RSP: 002b:00007ffed74e0b88 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 13.580515][ T220] RAX: ffffffffffffffda RBX: 00007f6e16baf140 RCX: 00007f6e16dc9b77 [ 13.580810][ T220] RDX: 0000000000000007 RSI: 000055835e9c0f80 RDI: 0000000000000005 [ 13.581099][ T220] RBP: 0000000000000007 R08: 0000000000000000 R09: 0000000000000000 [ 13.581402][ T220] R10: 0000000000000002 R11: 0000000000000246 R12: 00007f6e08ac3400 [ 13.581698][ T220] R13: 000055835e9c0f80 R14: 0000000000000005 R15: 000055835e717980 | [ 13.984859][ T235] ------------[ cut here ]------------ | [ 13.985295][ T235] WARNING: CPU: 3 PID: 235 at ./include/net/netdev_lock.h:52 __netdev_update_features (./include/net/netdev_lock.h:52 ./include/net/netdev_lock.h:49 net/core/dev.c:10566) | [ 13.985682][ T235] Modules linked in: netdevsim | [ 13.986397][ T235] Tainted: [W]=WARN [ 13.986549][ T235] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.986785][ T235] RIP: 0010:__netdev_update_features (./include/net/netdev_lock.h:52 ./include/net/netdev_lock.h:49 net/core/dev.c:10566) [ 13.987025][ T235] Code: 00 e8 a3 4a fe ff 48 8b 5c 24 58 e9 87 fb ff ff 49 8d bf 90 0c 00 00 be ff ff ff ff e8 08 e9 78 00 85 c0 0f 85 99 00 00 00 90 <0f> 0b 90 48 b8 00 00 00 00 00 fc ff df 48 8b 54 24 20 48 c1 ea 03 All code ======== 0: 00 e8 add %ch,%al 2: a3 4a fe ff 48 8b 5c movabs %eax,0x58245c8b48fffe4a 9: 24 58 b: e9 87 fb ff ff jmp 0xfffffffffffffb97 10: 49 8d bf 90 0c 00 00 lea 0xc90(%r15),%rdi 17: be ff ff ff ff mov $0xffffffff,%esi 1c: e8 08 e9 78 00 call 0x78e929 21: 85 c0 test %eax,%eax 23: 0f 85 99 00 00 00 jne 0xc2 29: 90 nop 2a:* 0f 0b ud2 <-- trapping instruction 2c: 90 nop 2d: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 34: fc ff df 37: 48 8b 54 24 20 mov 0x20(%rsp),%rdx 3c: 48 c1 ea 03 shr $0x3,%rdx Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: 90 nop 3: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax a: fc ff df d: 48 8b 54 24 20 mov 0x20(%rsp),%rdx 12: 48 c1 ea 03 shr $0x3,%rdx [ 13.988012][ T235] RSP: 0018:ffffc900004f71f0 EFLAGS: 00010246 [ 13.988414][ T235] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000001 [ 13.988895][ T235] RDX: 0000000000000000 RSI: ffff88800b8eac90 RDI: ffff888005478b00 [ 13.989380][ T235] RBP: ffff88800b140040 R08: 0000000000000000 R09: fffffbfff4cfd944 [ 13.989848][ T235] R10: ffffffffa67eca27 R11: ffff888005478040 R12: 0000000000000000 [ 13.990337][ T235] R13: ffff88800b8ea128 R14: ffff88800b8ea008 R15: ffff88800b8ea000 [ 13.990792][ T235] FS: 00007f5cf554a800(0000) GS:ffff888036180000(0000) knlGS:0000000000000000 [ 13.991327][ T235] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 13.991710][ T235] CR2: 00007f5cf5689440 CR3: 000000000b2ae004 CR4: 0000000000772ef0 [ 13.992183][ T235] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 13.992632][ T235] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 13.993075][ T235] PKRU: 55555554 [ 13.993320][ T235] Call Trace: [ 13.993539][ T235] [ 13.993722][ T235] ? __netdev_update_features (./include/net/netdev_lock.h:52 ./include/net/netdev_lock.h:49 net/core/dev.c:10566) [ 13.994014][ T235] ? __warn (kernel/panic.c:748) [ 13.994297][ T235] ? __netdev_update_features (./include/net/netdev_lock.h:52 ./include/net/netdev_lock.h:49 net/core/dev.c:10566) [ 13.994534][ T235] ? report_bug (lib/bug.c:201 lib/bug.c:219) [ 13.994729][ T235] ? handle_bug (arch/x86/kernel/traps.c:285) [ 13.994875][ T235] ? exc_invalid_op (arch/x86/kernel/traps.c:309 (discriminator 1)) [ 13.995067][ T235] ? asm_exc_invalid_op (./arch/x86/include/asm/idtentry.h:621) [ 13.995280][ T235] ? __netdev_update_features (./include/net/netdev_lock.h:52 ./include/net/netdev_lock.h:49 net/core/dev.c:10566) [ 13.995487][ T235] ? __pfx___netdev_update_features (net/core/dev.c:10559) [ 13.995727][ T235] ? _raw_spin_unlock_irq (./arch/x86/include/asm/irqflags.h:42 ./arch/x86/include/asm/irqflags.h:97 ./include/linux/spinlock_api_smp.h:159 kernel/locking/spinlock.c:202) [ 13.995920][ T235] ? netdev_register_kobject (net/core/net-sysfs.c:2344) [ 13.996153][ T235] register_netdevice (net/core/dev.c:11003) [ 13.996351][ T235] ? __pfx_register_netdevice (net/core/dev.c:10881) [ 13.996550][ T235] nsim_create (drivers/net/netdevsim/netdev.c:958 drivers/net/netdevsim/netdev.c:1018) netdevsim [ 13.996761][ T235] __nsim_dev_port_add (drivers/net/netdevsim/dev.c:1393) netdevsim [ 13.997019][ T235] ? __pfx___nsim_dev_port_add (drivers/net/netdevsim/dev.c:1357) netdevsim [ 13.997310][ T235] ? nsim_dev_hwstats_init (./include/linux/workqueue.h:817 drivers/net/netdevsim/hwstats.c:442) netdevsim [ 13.997558][ T235] nsim_dev_reload_create (drivers/net/netdevsim/dev.c:1450 drivers/net/netdevsim/dev.c:1501) netdevsim [ 13.997800][ T235] ? __pfx_nsim_dev_reload_create (drivers/net/netdevsim/dev.c:1462) netdevsim [ 13.998048][ T235] ? devlink_params_driverinit_load_new (net/devlink/param.c:833 (discriminator 2)) [ 13.998323][ T235] devlink_reload (net/devlink/dev.c:474) [ 13.998537][ T235] ? __pfx_devlink_reload (net/devlink/dev.c:446) [ 13.998727][ T235] ? trace_cap_capable (./include/trace/events/capability.h:26 (discriminator 21)) [ 13.998921][ T235] ? cap_capable (security/commoncap.c:131) [ 13.999129][ T235] ? fdget (./include/linux/atomic/atomic-arch-fallback.h:479 ./include/linux/atomic/atomic-instrumented.h:50 fs/file.c:1146 fs/file.c:1160) [ 13.999284][ T235] devlink_nl_reload_doit (net/devlink/dev.c:584) [ 13.999479][ T235] ? __pfx_devlink_nl_reload_doit (net/devlink/dev.c:520) [ 13.999714][ T235] ? __nla_parse (lib/nlattr.c:732) [ 13.999917][ T235] genl_family_rcv_msg_doit (net/netlink/genetlink.c:1115) [ 14.000143][ T235] ? __pfx_genl_family_rcv_msg_doit (net/netlink/genetlink.c:1088) [ 14.000395][ T235] ? cap_capable (security/commoncap.c:131) [ 14.000583][ T235] ? validate_chain (kernel/locking/lockdep.c:3799 kernel/locking/lockdep.c:3819 kernel/locking/lockdep.c:3874) [ 14.000779][ T235] genl_family_rcv_msg (net/netlink/genetlink.c:1195) [ 14.000993][ T235] ? __pfx_genl_family_rcv_msg (net/netlink/genetlink.c:1160) [ 14.001201][ T235] ? __pfx_devlink_nl_pre_doit_dev_lock (net/devlink/netlink.c:257) [ 14.001435][ T235] ? __pfx_devlink_nl_reload_doit (net/devlink/dev.c:520) [ 14.001736][ T235] ? __pfx_devlink_nl_post_doit_dev_lock (net/devlink/netlink.c:288) [ 14.002111][ T235] genl_rcv_msg (net/netlink/genetlink.c:65 net/netlink/genetlink.c:1211) [ 14.002445][ T235] netlink_rcv_skb (net/netlink/af_netlink.c:2534) [ 14.002744][ T235] ? __pfx_genl_rcv_msg (net/netlink/genetlink.c:1201) [ 14.003058][ T235] ? __pfx_netlink_rcv_skb (net/netlink/af_netlink.c:2511) [ 14.003416][ T235] ? genl_rcv (net/netlink/genetlink.c:1219) [ 14.003652][ T235] ? __pfx_down_read (kernel/locking/rwsem.c:1522) [ 14.003963][ T235] ? netlink_deliver_tap (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 net/netlink/af_netlink.c:340) [ 14.004303][ T235] genl_rcv (net/netlink/genetlink.c:1220) [ 14.004535][ T235] netlink_unicast (net/netlink/af_netlink.c:1313 net/netlink/af_netlink.c:1339) [ 14.004849][ T235] ? __pfx_netlink_unicast (net/netlink/af_netlink.c:1324) [ 14.005183][ T235] ? find_held_lock (kernel/locking/lockdep.c:5341) [ 14.005485][ T235] netlink_sendmsg (net/netlink/af_netlink.c:1883) [ 14.005774][ T235] ? __pfx_netlink_sendmsg (net/netlink/af_netlink.c:1802) [ 14.006081][ T235] ? lock_acquire (kernel/locking/lockdep.c:5824) [ 14.006431][ T235] ? __might_fault (mm/memory.c:6851 mm/memory.c:6844) [ 14.006752][ T235] __sys_sendto (net/socket.c:709 net/socket.c:724 net/socket.c:2178) [ 14.007058][ T235] ? __pfx___sys_sendto (net/socket.c:2145) [ 14.007374][ T235] ? __pfx___lock_release (kernel/locking/lockdep.c:5503) [ 14.007680][ T235] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 21)) [ 14.007993][ T235] ? rseq_update_cpu_node_id (kernel/rseq.c:188 (discriminator 10)) [ 14.008305][ T235] ? __rseq_handle_notify_resume (kernel/rseq.c:420) [ 14.008687][ T235] ? __pfx___rseq_handle_notify_resume (kernel/rseq.c:403) [ 14.009077][ T235] ? __pfx___x64_sys_openat (fs/open.c:1454) [ 14.009327][ T235] __x64_sys_sendto (net/socket.c:2181) [ 14.009529][ T235] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4349 kernel/locking/lockdep.c:4408) [ 14.009763][ T235] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 14.009961][ T235] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 14.010224][ T235] RIP: 0033:0x7f5cf5756a4a [ 14.010421][ T235] Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb b8 0f 1f 00 f3 0f 1e fa 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 15 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 7e c3 0f 1f 44 00 00 41 54 48 83 ec 30 44 89 All code ======== 0: d8 64 89 02 fsubs 0x2(%rcx,%rcx,4) 4: 48 c7 c0 ff ff ff ff mov $0xffffffffffffffff,%rax b: eb b8 jmp 0xffffffffffffffc5 d: 0f 1f 00 nopl (%rax) 10: f3 0f 1e fa endbr64 14: 41 89 ca mov %ecx,%r10d 17: 64 8b 04 25 18 00 00 mov %fs:0x18,%eax 1e: 00 1f: 85 c0 test %eax,%eax 21: 75 15 jne 0x38 23: b8 2c 00 00 00 mov $0x2c,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 7e ja 0xb0 32: c3 ret 33: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 38: 41 54 push %r12 3a: 48 83 ec 30 sub $0x30,%rsp 3e: 44 rex.R 3f: 89 .byte 0x89 Code starting with the faulting instruction =========================================== 0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 7e ja 0x86 8: c3 ret 9: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) e: 41 54 push %r12 10: 48 83 ec 30 sub $0x30,%rsp 14: 44 rex.R 15: 89 .byte 0x89 [ 14.011101][ T235] RSP: 002b:00007ffe62374838 EFLAGS: 00000246 ORIG_RAX: 000000000000002c [ 14.011392][ T235] RAX: ffffffffffffffda RBX: 000000001373fb00 RCX: 00007f5cf5756a4a [ 14.011669][ T235] RDX: 0000000000000040 RSI: 000000001373fb00 RDI: 0000000000000003 [ 14.011944][ T235] RBP: 000000001373f910 R08: 00007f5cf58fa200 R09: 000000000000000c [ 14.012246][ T235] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000040f200 Finger prints: __netdev_update_features:register_netdevice:nsim_create:__nsim_dev_port_add:nsim_drv_probe __netdev_update_features:register_netdevice:nsim_create:__nsim_dev_port_add:nsim_dev_reload_create