====================================== | [ 25.817559][ T240] 1 lock held by connect-deny_ip/240: | [ 25.817713][ T240] #0: ffff888005892a58 (sk_lock-AF_INET){+.+.}-{0:0}, at: do_tcp_getsockopt (net/ipv4/tcp.c:4631) | [ 25.818031][ T240] | [ 25.818031][ T240] stack backtrace: [ 25.818507][ T240] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 25.818858][ T240] Call Trace: [ 25.819013][ T240] [ 25.819103][ T240] dump_stack_lvl (lib/dump_stack.c:123) [ 25.819270][ T240] lockdep_rcu_suspicious (kernel/locking/lockdep.c:6822) [ 25.819436][ T240] tcp_ao_copy_mkts_to_user (net/ipv4/tcp_ao.c:2232 (discriminator 7)) [ 25.819597][ T240] ? mark_held_locks (kernel/locking/lockdep.c:4321) [ 25.819766][ T240] ? __pfx_tcp_ao_copy_mkts_to_user (net/ipv4/tcp_ao.c:2106) [ 25.819962][ T240] ? stack_depot_save_flags (lib/stackdepot.c:664) [ 25.820129][ T240] ? kasan_save_stack (mm/kasan/common.c:48) [ 25.820288][ T240] ? kasan_save_track (./arch/x86/include/asm/current.h:49 mm/kasan/common.c:60 mm/kasan/common.c:69) [ 25.820448][ T240] ? kasan_save_free_info (mm/kasan/generic.c:582) [ 25.820608][ T240] ? __kasan_slab_free (mm/kasan/common.c:271) [ 25.820767][ T240] ? kfree (mm/slub.c:4579 mm/slub.c:4727) [ 25.820895][ T240] ? tcp_ao_parse_crypto (./include/net/tcp_ao.h:67 net/ipv4/tcp_ao.c:1436) [ 25.821092][ T240] ? __lock_acquire (kernel/locking/lockdep.c:5202) [ 25.821267][ T240] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5827) [ 25.821430][ T240] ? find_held_lock (kernel/locking/lockdep.c:5315) [ 25.821595][ T240] ? __lock_release (kernel/locking/lockdep.c:5501) [ 25.821751][ T240] ? do_tcp_getsockopt (net/ipv4/tcp.c:4631) [ 25.821913][ T240] ? hlock_class (./arch/x86/include/asm/bitops.h:227 ./arch/x86/include/asm/bitops.h:239 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 kernel/locking/lockdep.c:228) [ 25.822078][ T240] ? mark_lock (kernel/locking/lockdep.c:4703 (discriminator 3)) [ 25.822210][ T240] ? do_tcp_getsockopt (net/ipv4/tcp.c:4631) [ 25.822369][ T240] do_tcp_getsockopt (net/ipv4/tcp.c:4631) [ 25.822535][ T240] ? __pfx_do_tcp_getsockopt (net/ipv4/tcp.c:4300) [ 25.822692][ T240] ? tcp_ao_add_cmd (net/ipv4/tcp_ao.c:1737) [ 25.822867][ T240] ? release_sock (net/core/sock.c:3630) [ 25.823032][ T240] ? reacquire_held_locks (kernel/locking/lockdep.c:5350) [ 25.823192][ T240] ? release_sock (net/core/sock.c:3630) [ 25.823353][ T240] ? rcu_read_lock_any_held (kernel/rcu/update.c:386 kernel/rcu/update.c:380) [ 25.823512][ T240] ? validate_chain (kernel/locking/lockdep.c:3797 kernel/locking/lockdep.c:3817 kernel/locking/lockdep.c:3872) [ 25.823669][ T240] ? find_held_lock (kernel/locking/lockdep.c:5315) [ 25.823830][ T240] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 25.823989][ T240] ? __pfx_validate_chain (kernel/locking/lockdep.c:3860) [ 25.824147][ T240] ? hlock_class (./arch/x86/include/asm/bitops.h:227 ./arch/x86/include/asm/bitops.h:239 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 kernel/locking/lockdep.c:228) [ 25.824307][ T240] ? mark_lock (kernel/locking/lockdep.c:4703 (discriminator 3)) [ 25.824433][ T240] ? __lock_acquire (kernel/locking/lockdep.c:5202) [ 25.824606][ T240] ? find_held_lock (kernel/locking/lockdep.c:5315) [ 25.824768][ T240] ? __lock_release (kernel/locking/lockdep.c:5501) [ 25.824925][ T240] ? __might_fault (mm/memory.c:6705 mm/memory.c:6698) [ 25.825087][ T240] ? __pfx___lock_release (kernel/locking/lockdep.c:5477) [ 25.825246][ T240] ? trace_lock_acquire (./include/trace/events/lock.h:24 (discriminator 52)) [ 25.825403][ T240] ? find_held_lock (kernel/locking/lockdep.c:5315) [ 25.825567][ T240] ? __might_fault (mm/memory.c:6705 mm/memory.c:6698) [ 25.825724][ T240] ? __might_fault (mm/memory.c:6705 mm/memory.c:6698) [ 25.825884][ T240] tcp_getsockopt (net/ipv4/tcp.c:4673 net/ipv4/tcp.c:4664) [ 25.826051][ T240] do_sock_getsockopt (net/socket.c:2396) [ 25.826210][ T240] ? __fget_files (./include/linux/rcupdate.h:347 ./include/linux/rcupdate.h:880 fs/file.c:1006) [ 25.826369][ T240] ? __pfx_do_sock_getsockopt (net/socket.c:2374) [ 25.826535][ T240] ? fdget (fs/file.c:1121 fs/file.c:1128) [ 25.826663][ T240] __sys_getsockopt (./include/linux/file.h:35 net/socket.c:2428) [ 25.826824][ T240] ? __pfx___sys_getsockopt (net/socket.c:2415) [ 25.826987][ T240] ? __pfx_task_work_run (kernel/task_work.c:207) [ 25.827148][ T240] ? do_user_addr_fault (./include/linux/rcupdate.h:882 ./include/linux/mm.h:729 arch/x86/mm/fault.c:1340) [ 25.827315][ T240] __x64_sys_getsockopt (net/socket.c:2432) [ 25.827473][ T240] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4347 kernel/locking/lockdep.c:4406) [ 25.827670][ T240] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 25.827834][ T240] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 25.828036][ T240] RIP: 0033:0x7f6a55f0e46e [ 25.828205][ T240] Code: 1f 44 00 00 48 8b 15 91 99 0a 00 f7 d8 64 89 02 b8 ff ff ff ff eb b8 0f 1f 44 00 00 f3 0f 1e fa 49 89 ca b8 37 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 0a c3 66 0f 1f 84 00 00 00 00 00 48 8b 15 59 All code ======== 0: 1f (bad) 1: 44 00 00 add %r8b,(%rax) 4: 48 8b 15 91 99 0a 00 mov 0xa9991(%rip),%rdx # 0xa999c b: f7 d8 neg %eax d: 64 89 02 mov %eax,%fs:(%rdx) 10: b8 ff ff ff ff mov $0xffffffff,%eax 15: eb b8 jmp 0xffffffffffffffcf 17: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 1c: f3 0f 1e fa endbr64 20: 49 89 ca mov %rcx,%r10 23: b8 37 00 00 00 mov $0x37,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 0a ja 0x3c 32: c3 ret 33: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1) 3a: 00 00 3c: 48 rex.W 3d: 8b .byte 0x8b 3e: 15 .byte 0x15 3f: 59 pop %rcx Code starting with the faulting instruction =========================================== 0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 0a ja 0x12 8: c3 ret 9: 66 0f 1f 84 00 00 00 nopw 0x0(%rax,%rax,1) 10: 00 00 12: 48 rex.W 13: 8b .byte 0x8b 14: 15 .byte 0x15 15: 59 pop %rcx [ 25.828755][ T240] RSP: 002b:00007f6a555b9998 EFLAGS: 00000246 ORIG_RAX: 0000000000000037 [ 25.828996][ T240] RAX: ffffffffffffffda RBX: 00007f6a555b9c60 RCX: 00007f6a55f0e46e [ 25.829233][ T240] RDX: 0000000000000029 RSI: 0000000000000006 RDI: 000000000000000a [ 25.829479][ T240] RBP: 00007f6a555b99b0 R08: 00007f6a555b99ac R09: 0000000000000064 [ 25.829720][ T240] R10: 00007f6a555b99b0 R11: 0000000000000246 R12: 000000000000000a [ 25.829955][ T240] R13: 0000000000000064 R14: 0000000000000020 R15: 0000000000000064 | [ 25.842466][ T240] 1 lock held by connect-deny_ip/240: | [ 25.842629][ T240] #0: ffff888005892a58 (sk_lock-AF_INET){+.+.}-{0:0}, at: inet_stream_connect (net/ipv4/af_inet.c:748) | [ 25.842933][ T240] | [ 25.842933][ T240] stack backtrace: [ 25.843481][ T240] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 25.843832][ T240] Call Trace: [ 25.843958][ T240] [ 25.844048][ T240] dump_stack_lvl (lib/dump_stack.c:123) [ 25.844216][ T240] lockdep_rcu_suspicious (kernel/locking/lockdep.c:6822) [ 25.844385][ T240] __tcp_ao_do_lookup.part.0 (net/ipv4/tcp_ao.c:208) [ 25.844553][ T240] tcp_v4_ao_lookup (net/ipv4/tcp_ao.c:200 net/ipv4/tcp_ao.c:222 net/ipv4/tcp_ao.c:720) [ 25.844717][ T240] tcp_connect (net/ipv4/tcp_output.c:4114) [ 25.844889][ T240] tcp_v4_connect (net/ipv4/tcp_ipv4.c:342) [ 25.845060][ T240] ? __pfx_tcp_v4_connect (net/ipv4/tcp_ipv4.c:220) [ 25.845225][ T240] ? mark_lock (kernel/locking/lockdep.c:4703 (discriminator 3)) [ 25.845355][ T240] __inet_stream_connect (net/ipv4/af_inet.c:677) [ 25.845516][ T240] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4347 kernel/locking/lockdep.c:4406) [ 25.845720][ T240] inet_stream_connect (net/ipv4/af_inet.c:749) [ 25.845883][ T240] __sys_connect (net/socket.c:2071 net/socket.c:2088) [ 25.846050][ T240] ? __pfx___sys_connect (net/socket.c:2078) [ 25.846211][ T240] ? do_fcntl (fs/fcntl.c:473) [ 25.846336][ T240] ? __pfx_do_fcntl (fs/fcntl.c:443) [ 25.846499][ T240] ? __fget_files (fs/file.c:1009) [ 25.846672][ T240] __x64_sys_connect (net/socket.c:2095) [ 25.846836][ T240] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 25.847005][ T240] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 25.847210][ T240] RIP: 0033:0x7f6a55f0e40b [ 25.847378][ T240] Code: 83 ec 18 89 54 24 0c 48 89 34 24 89 7c 24 08 e8 eb c7 f4 ff 8b 54 24 0c 48 8b 34 24 41 89 c0 8b 7c 24 08 b8 2a 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 08 e8 41 c8 f4 ff 8b 44 All code ======== 0: 83 ec 18 sub $0x18,%esp 3: 89 54 24 0c mov %edx,0xc(%rsp) 7: 48 89 34 24 mov %rsi,(%rsp) b: 89 7c 24 08 mov %edi,0x8(%rsp) f: e8 eb c7 f4 ff call 0xfffffffffff4c7ff 14: 8b 54 24 0c mov 0xc(%rsp),%edx 18: 48 8b 34 24 mov (%rsp),%rsi 1c: 41 89 c0 mov %eax,%r8d 1f: 8b 7c 24 08 mov 0x8(%rsp),%edi 23: b8 2a 00 00 00 mov $0x2a,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 35 ja 0x67 32: 44 89 c7 mov %r8d,%edi 35: 89 44 24 08 mov %eax,0x8(%rsp) 39: e8 41 c8 f4 ff call 0xfffffffffff4c87f 3e: 8b .byte 0x8b 3f: 44 rex.R Code starting with the faulting instruction =========================================== 0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 35 ja 0x3d 8: 44 89 c7 mov %r8d,%edi b: 89 44 24 08 mov %eax,0x8(%rsp) f: e8 41 c8 f4 ff call 0xfffffffffff4c855 14: 8b .byte 0x8b 15: 44 rex.R [ 25.847941][ T240] RSP: 002b:00007f6a555b9ae0 EFLAGS: 00000293 ORIG_RAX: 000000000000002a [ 25.848186][ T240] RAX: ffffffffffffffda RBX: 0000000000000010 RCX: 00007f6a55f0e40b [ 25.848431][ T240] RDX: 0000000000000010 RSI: 00007f6a555b9c60 RDI: 000000000000000a [ 25.848674][ T240] RBP: 000000000000000a R08: 0000000000000000 R09: 0000000000414460 [ 25.848915][ T240] R10: 00007f6a55dc6598 R11: 0000000000000293 R12: 000000000040eb20 [ 25.849155][ T240] R13: 0000000000000001 R14: 00007f6a555b9c60 R15: 00007f6a555b9c60 | [ 33.935520][ T240] 1 lock held by connect-deny_ip/240: | [ 33.935688][ T240] #0: ffff888006329d18 (sk_lock-AF_INET){+.+.}-{0:0}, at: inet_stream_connect (net/ipv4/af_inet.c:748) | [ 33.936092][ T240] | [ 33.936092][ T240] stack backtrace: [ 33.936585][ T240] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 33.936950][ T240] Call Trace: [ 33.937078][ T240] [ 33.937166][ T240] dump_stack_lvl (lib/dump_stack.c:123) [ 33.937339][ T240] lockdep_rcu_suspicious (kernel/locking/lockdep.c:6822) [ 33.937510][ T240] tcp_ao_finish_connect (net/ipv4/tcp_ao.c:1183 (discriminator 7)) [ 33.937670][ T240] tcp_finish_connect (net/ipv4/tcp_input.c:6340) [ 33.937835][ T240] tcp_rcv_synsent_state_process (net/ipv4/tcp_input.c:6576) [ 33.938034][ T240] ? hlock_class (./arch/x86/include/asm/bitops.h:227 ./arch/x86/include/asm/bitops.h:239 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 kernel/locking/lockdep.c:228) [ 33.938190][ T240] ? mark_lock (kernel/locking/lockdep.c:4703 (discriminator 3)) [ 33.938313][ T240] ? __pfx_tcp_rcv_synsent_state_process (net/ipv4/tcp_input.c:6455) [ 33.938513][ T240] ? lockdep_hardirqs_on_prepare (kernel/locking/lockdep.c:4347 kernel/locking/lockdep.c:4406) [ 33.938715][ T240] ? kvm_clock_get_cycles (./arch/x86/include/asm/preempt.h:94 arch/x86/kernel/kvmclock.c:80 arch/x86/kernel/kvmclock.c:86) [ 33.938873][ T240] ? ktime_get (kernel/time/timekeeping.c:195 (discriminator 4) kernel/time/timekeeping.c:395 (discriminator 4) kernel/time/timekeeping.c:403 (discriminator 4) kernel/time/timekeeping.c:850 (discriminator 4)) [ 33.939004][ T240] ? __lock_acquire (kernel/locking/lockdep.c:5202) [ 33.939169][ T240] tcp_rcv_state_process (net/ipv4/tcp_input.c:6796) [ 33.939323][ T240] ? __lock_release (kernel/locking/lockdep.c:5501) [ 33.939484][ T240] ? __release_sock (./include/net/sock.h:1121 net/core/sock.c:3077) [ 33.939653][ T240] ? __pfx_tcp_rcv_state_process (net/ipv4/tcp_input.c:6751) [ 33.939854][ T240] ? mark_lock (kernel/locking/lockdep.c:4703 (discriminator 3)) [ 33.939976][ T240] tcp_v4_do_rcv (net/ipv4/tcp_ipv4.c:1945) [ 33.940147][ T240] __release_sock (./include/net/sock.h:1121 net/core/sock.c:3077) [ 33.940316][ T240] release_sock (net/core/sock.c:3633) [ 33.940469][ T240] inet_stream_connect (net/ipv4/af_inet.c:751) [ 33.940635][ T240] __sys_connect (net/socket.c:2071 net/socket.c:2088) [ 33.940811][ T240] ? __pfx___sys_connect (net/socket.c:2078) [ 33.940971][ T240] ? do_fcntl (fs/fcntl.c:473) [ 33.941097][ T240] ? __pfx_do_fcntl (fs/fcntl.c:443) [ 33.941261][ T240] ? __fget_files (fs/file.c:1009) [ 33.941433][ T240] __x64_sys_connect (net/socket.c:2095) [ 33.941597][ T240] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 33.941762][ T240] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 33.941960][ T240] RIP: 0033:0x7f6a55f0e40b [ 33.942131][ T240] Code: 83 ec 18 89 54 24 0c 48 89 34 24 89 7c 24 08 e8 eb c7 f4 ff 8b 54 24 0c 48 8b 34 24 41 89 c0 8b 7c 24 08 b8 2a 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 08 e8 41 c8 f4 ff 8b 44 All code ======== 0: 83 ec 18 sub $0x18,%esp 3: 89 54 24 0c mov %edx,0xc(%rsp) 7: 48 89 34 24 mov %rsi,(%rsp) b: 89 7c 24 08 mov %edi,0x8(%rsp) f: e8 eb c7 f4 ff call 0xfffffffffff4c7ff 14: 8b 54 24 0c mov 0xc(%rsp),%edx 18: 48 8b 34 24 mov (%rsp),%rsi 1c: 41 89 c0 mov %eax,%r8d 1f: 8b 7c 24 08 mov 0x8(%rsp),%edi 23: b8 2a 00 00 00 mov $0x2a,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 35 ja 0x67 32: 44 89 c7 mov %r8d,%edi 35: 89 44 24 08 mov %eax,0x8(%rsp) 39: e8 41 c8 f4 ff call 0xfffffffffff4c87f 3e: 8b .byte 0x8b 3f: 44 rex.R Code starting with the faulting instruction =========================================== 0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 35 ja 0x3d 8: 44 89 c7 mov %r8d,%edi b: 89 44 24 08 mov %eax,0x8(%rsp) f: e8 41 c8 f4 ff call 0xfffffffffff4c855 14: 8b .byte 0x8b 15: 44 rex.R [ 33.942694][ T240] RSP: 002b:00007f6a555b9ae0 EFLAGS: 00000293 ORIG_RAX: 000000000000002a [ 33.942937][ T240] RAX: ffffffffffffffda RBX: 0000000000000010 RCX: 00007f6a55f0e40b [ 33.943178][ T240] RDX: 0000000000000010 RSI: 00007f6a555b9c60 RDI: 000000000000000a [ 33.943417][ T240] RBP: 000000000000000a R08: 0000000000000000 R09: 00000000ffffffff [ 33.943664][ T240] R10: 000000000040eb20 R11: 0000000000000293 R12: 000000000040eb20 Finger prints: lockdep_rcu_suspicious:tcp_v4_ao_lookup:tcp_connect:tcp_v4_connect:__inet_stream_connect lockdep_rcu_suspicious:tcp_ao_copy_mkts_to_user:do_tcp_getsockopt:tcp_getsockopt:do_sock_getsockopt lockdep_rcu_suspicious:tcp_ao_finish_connect:tcp_finish_connect:tcp_rcv_synsent_state_process:tcp_rcv_state_process