protocol 88fb is buggy, dev hsr_slave_0 protocol 88fb is buggy, dev hsr_slave_1 ====================================================== WARNING: possible circular locking dependency detected 5.0.0-rc8+ #2 Not tainted ------------------------------------------------------ syz-executor.5/28782 is trying to acquire lock: 00000000b447c483 (&sb->s_type->i_mutex_key#12){+.+.}, at: inode_lock include/linux/fs.h:757 [inline] 00000000b447c483 (&sb->s_type->i_mutex_key#12){+.+.}, at: shmem_fallocate+0x15a/0xc60 mm/shmem.c:2633 but task is already holding lock: 0000000052a0e73b (ashmem_mutex){+.+.}, at: ashmem_shrink_scan+0x66/0x4f0 drivers/staging/android/ashmem.c:448 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (ashmem_mutex){+.+.}: __mutex_lock_common kernel/locking/mutex.c:925 [inline] __mutex_lock+0xf7/0x1310 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 ashmem_mmap+0x55/0x520 drivers/staging/android/ashmem.c:361 call_mmap include/linux/fs.h:1868 [inline] mmap_region+0xc37/0x1760 mm/mmap.c:1786 do_mmap+0x8e2/0x1080 mm/mmap.c:1559 do_mmap_pgoff include/linux/mm.h:2379 [inline] vm_mmap_pgoff+0x1c5/0x230 mm/util.c:350 ksys_mmap_pgoff+0x4aa/0x630 mm/mmap.c:1609 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:100 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:91 [inline] __x64_sys_mmap+0xe9/0x1b0 arch/x86/kernel/sys_x86_64.c:91 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #1 (&mm->mmap_sem){++++}: down_read+0x3b/0x90 kernel/locking/rwsem.c:24 do_user_addr_fault arch/x86/mm/fault.c:1426 [inline] __do_page_fault+0x9c2/0xd60 arch/x86/mm/fault.c:1541 do_page_fault+0x71/0x581 arch/x86/mm/fault.c:1572 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1143 fault_in_pages_readable include/linux/pagemap.h:603 [inline] iov_iter_fault_in_readable+0x1ba/0x450 lib/iov_iter.c:425 generic_perform_write+0x195/0x530 mm/filemap.c:3198 __generic_file_write_iter+0x25e/0x630 mm/filemap.c:3333 generic_file_write_iter+0x360/0x610 mm/filemap.c:3361 call_write_iter include/linux/fs.h:1863 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x613/0x8e0 fs/read_write.c:487 vfs_write+0x20c/0x580 fs/read_write.c:549 ksys_write+0xea/0x1f0 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #0 (&sb->s_type->i_mutex_key#12){+.+.}: lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3841 down_write+0x38/0x90 kernel/locking/rwsem.c:70 inode_lock include/linux/fs.h:757 [inline] shmem_fallocate+0x15a/0xc60 mm/shmem.c:2633 ashmem_shrink_scan drivers/staging/android/ashmem.c:455 [inline] ashmem_shrink_scan+0x1d7/0x4f0 drivers/staging/android/ashmem.c:439 ashmem_ioctl+0x2f0/0x11a0 drivers/staging/android/ashmem.c:797 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:509 [inline] do_vfs_ioctl+0xd6e/0x1390 fs/ioctl.c:696 ksys_ioctl+0xab/0xd0 fs/ioctl.c:713 __do_sys_ioctl fs/ioctl.c:720 [inline] __se_sys_ioctl fs/ioctl.c:718 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:718 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe other info that might help us debug this: Chain exists of: &sb->s_type->i_mutex_key#12 --> &mm->mmap_sem --> ashmem_mutex Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(ashmem_mutex); lock(&mm->mmap_sem); lock(ashmem_mutex); lock(&sb->s_type->i_mutex_key#12); *** DEADLOCK *** 1 lock held by syz-executor.5/28782: #0: 0000000052a0e73b (ashmem_mutex){+.+.}, at: ashmem_shrink_scan+0x66/0x4f0 drivers/staging/android/ashmem.c:448 stack backtrace: CPU: 0 PID: 28782 Comm: syz-executor.5 Not tainted 5.0.0-rc8+ #2 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x172/0x1f0 lib/dump_stack.c:113 print_circular_bug.isra.0.cold+0x1cc/0x28f kernel/locking/lockdep.c:1224 kobject: 'loop3' (00000000f3c9be3c): kobject_uevent_env check_prev_add kernel/locking/lockdep.c:1866 [inline] check_prevs_add kernel/locking/lockdep.c:1979 [inline] validate_chain kernel/locking/lockdep.c:2350 [inline] __lock_acquire+0x2f00/0x4700 kernel/locking/lockdep.c:3338 lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3841 down_write+0x38/0x90 kernel/locking/rwsem.c:70 kobject: 'loop3' (00000000f3c9be3c): fill_kobj_path: path = '/devices/virtual/block/loop3' inode_lock include/linux/fs.h:757 [inline] shmem_fallocate+0x15a/0xc60 mm/shmem.c:2633 ashmem_shrink_scan drivers/staging/android/ashmem.c:455 [inline] ashmem_shrink_scan+0x1d7/0x4f0 drivers/staging/android/ashmem.c:439 ashmem_ioctl+0x2f0/0x11a0 drivers/staging/android/ashmem.c:797 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:509 [inline] do_vfs_ioctl+0xd6e/0x1390 fs/ioctl.c:696 kobject: 'loop2' (00000000465ea995): kobject_uevent_env ksys_ioctl+0xab/0xd0 fs/ioctl.c:713 __do_sys_ioctl fs/ioctl.c:720 [inline] __se_sys_ioctl fs/ioctl.c:718 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:718 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457e29 Code: ad b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f767029ac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457e29 RDX: 0000000000000000 RSI: 000000000000770a RDI: 0000000000000003 kobject: 'loop2' (00000000465ea995): fill_kobj_path: path = '/devices/virtual/block/loop2' RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f767029b6d4 R13: 00000000004bf0a2 R14: 00000000004d0a40 R15: 00000000ffffffff protocol 88fb is buggy, dev hsr_slave_0 kobject: 'loop4' (000000001e5313c8): kobject_uevent_env kobject: 'loop4' (000000001e5313c8): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop4' (000000001e5313c8): kobject_uevent_env kobject: 'loop4' (000000001e5313c8): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop5' (000000006ae09005): kobject_uevent_env kobject: 'loop5' (000000006ae09005): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop1' (0000000027123556): kobject_uevent_env kobject: 'loop1' (0000000027123556): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop0' (0000000054c9bfdc): kobject_uevent_env kobject: 'loop0' (0000000054c9bfdc): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop4' (000000001e5313c8): kobject_uevent_env kobject: 'loop4' (000000001e5313c8): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop2' (00000000465ea995): kobject_uevent_env kobject: 'loop2' (00000000465ea995): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop5' (000000006ae09005): kobject_uevent_env kobject: 'loop5' (000000006ae09005): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop3' (00000000f3c9be3c): kobject_uevent_env kobject: 'loop3' (00000000f3c9be3c): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop4' (000000001e5313c8): kobject_uevent_env kobject: 'loop4' (000000001e5313c8): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop5' (000000006ae09005): kobject_uevent_env kobject: 'loop5' (000000006ae09005): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop3' (00000000f3c9be3c): kobject_uevent_env kobject: 'loop3' (00000000f3c9be3c): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop4' (000000001e5313c8): kobject_uevent_env kobject: 'loop4' (000000001e5313c8): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop0' (0000000054c9bfdc): kobject_uevent_env kobject: 'loop0' (0000000054c9bfdc): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop5' (000000006ae09005): kobject_uevent_env kobject: 'loop5' (000000006ae09005): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop4' (000000001e5313c8): kobject_uevent_env kobject: 'loop4' (000000001e5313c8): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop3' (00000000f3c9be3c): kobject_uevent_env kobject: 'loop3' (00000000f3c9be3c): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop1' (0000000027123556): kobject_uevent_env kobject: 'loop1' (0000000027123556): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop4' (000000001e5313c8): kobject_uevent_env kobject: 'loop4' (000000001e5313c8): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop5' (000000006ae09005): kobject_uevent_env kobject: 'loop5' (000000006ae09005): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'kvm' (0000000033f11039): kobject_uevent_env kobject: 'kvm' (0000000033f11039): fill_kobj_path: path = '/devices/virtual/misc/kvm' kobject: 'loop3' (00000000f3c9be3c): kobject_uevent_env kobject: 'loop3' (00000000f3c9be3c): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'kvm' (0000000033f11039): kobject_uevent_env kobject: 'loop4' (000000001e5313c8): kobject_uevent_env kobject: 'kvm' (0000000033f11039): kobject_uevent_env kobject: 'kvm' (0000000033f11039): fill_kobj_path: path = '/devices/virtual/misc/kvm' kobject: 'loop4' (000000001e5313c8): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'kvm' (0000000033f11039): fill_kobj_path: path = '/devices/virtual/misc/kvm' kobject: 'kvm' (0000000033f11039): kobject_uevent_env kobject: 'kvm' (0000000033f11039): fill_kobj_path: path = '/devices/virtual/misc/kvm' kobject: 'loop0' (0000000054c9bfdc): kobject_uevent_env kobject: 'loop0' (0000000054c9bfdc): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (00000000465ea995): kobject_uevent_env kobject: 'loop2' (00000000465ea995): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop3' (00000000f3c9be3c): kobject_uevent_env kobject: 'loop3' (00000000f3c9be3c): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop4' (000000001e5313c8): kobject_uevent_env kobject: 'loop4' (000000001e5313c8): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop5' (000000006ae09005): kobject_uevent_env kobject: 'loop5' (000000006ae09005): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop3' (00000000f3c9be3c): kobject_uevent_env kobject: 'loop3' (00000000f3c9be3c): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop1' (0000000027123556): kobject_uevent_env kobject: 'loop1' (0000000027123556): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop3' (00000000f3c9be3c): kobject_uevent_env kobject: 'loop3' (00000000f3c9be3c): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop4' (000000001e5313c8): kobject_uevent_env kobject: 'loop4' (000000001e5313c8): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop5' (000000006ae09005): kobject_uevent_env kobject: 'loop5' (000000006ae09005): fill_kobj_path: path = '/devices/virtual/block/loop5' net_ratelimit: 18 callbacks suppressed ip_tunnel: non-ECT from 172.20.255.187 with TOS=0x3 kobject: 'loop2' (00000000465ea995): kobject_uevent_env kobject: 'loop2' (00000000465ea995): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop0' (0000000054c9bfdc): kobject_uevent_env ip_tunnel: non-ECT from 172.20.255.187 with TOS=0x3 kobject: 'loop0' (0000000054c9bfdc): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop1' (0000000027123556): kobject_uevent_env kobject: 'loop1' (0000000027123556): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop5' (000000006ae09005): kobject_uevent_env kobject: 'loop5' (000000006ae09005): fill_kobj_path: path = '/devices/virtual/block/loop5' protocol 88fb is buggy, dev hsr_slave_0 protocol 88fb is buggy, dev hsr_slave_1 kobject: 'loop3' (00000000f3c9be3c): kobject_uevent_env kobject: 'loop3' (00000000f3c9be3c): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop1' (0000000027123556): kobject_uevent_env kobject: 'loop1' (0000000027123556): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop5' (000000006ae09005): kobject_uevent_env protocol 88fb is buggy, dev hsr_slave_0 kobject: 'loop5' (000000006ae09005): fill_kobj_path: path = '/devices/virtual/block/loop5' protocol 88fb is buggy, dev hsr_slave_1 kobject: 'loop0' (0000000054c9bfdc): kobject_uevent_env kobject: 'loop0' (0000000054c9bfdc): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop3' (00000000f3c9be3c): kobject_uevent_env kobject: 'loop3' (00000000f3c9be3c): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop1' (0000000027123556): kobject_uevent_env kobject: 'loop1' (0000000027123556): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop4' (000000001e5313c8): kobject_uevent_env kobject: 'loop4' (000000001e5313c8): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop3' (00000000f3c9be3c): kobject_uevent_env kobject: 'loop3' (00000000f3c9be3c): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop1' (0000000027123556): kobject_uevent_env kobject: 'loop1' (0000000027123556): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop5' (000000006ae09005): kobject_uevent_env kobject: 'loop5' (000000006ae09005): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop4' (000000001e5313c8): kobject_uevent_env kobject: 'loop4' (000000001e5313c8): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop3' (00000000f3c9be3c): kobject_uevent_env kobject: 'loop3' (00000000f3c9be3c): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop5' (000000006ae09005): kobject_uevent_env kobject: 'loop5' (000000006ae09005): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop3' (00000000f3c9be3c): kobject_uevent_env kobject: 'loop3' (00000000f3c9be3c): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop4' (000000001e5313c8): kobject_uevent_env kobject: 'loop4' (000000001e5313c8): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop0' (0000000054c9bfdc): kobject_uevent_env kobject: 'loop0' (0000000054c9bfdc): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop2' (00000000465ea995): kobject_uevent_env kobject: 'loop2' (00000000465ea995): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop4' (000000001e5313c8): kobject_uevent_env kobject: 'loop4' (000000001e5313c8): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop3' (00000000f3c9be3c): kobject_uevent_env kobject: 'loop3' (00000000f3c9be3c): fill_kobj_path: path = '/devices/virtual/block/loop3' kobject: 'loop4' (000000001e5313c8): kobject_uevent_env kobject: 'loop4' (000000001e5313c8): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop2' (00000000465ea995): kobject_uevent_env kobject: 'loop2' (00000000465ea995): fill_kobj_path: path = '/devices/virtual/block/loop2' kobject: 'loop1' (0000000027123556): kobject_uevent_env kobject: 'loop1' (0000000027123556): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop4' (000000001e5313c8): kobject_uevent_env kobject: 'loop4' (000000001e5313c8): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop0' (0000000054c9bfdc): kobject_uevent_env kobject: 'loop0' (0000000054c9bfdc): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop4' (000000001e5313c8): kobject_uevent_env kobject: 'loop4' (000000001e5313c8): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop4' (000000001e5313c8): kobject_uevent_env kobject: 'loop4' (000000001e5313c8): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop1' (0000000027123556): kobject_uevent_env kobject: 'loop1' (0000000027123556): fill_kobj_path: path = '/devices/virtual/block/loop1' kobject: 'loop5' (000000006ae09005): kobject_uevent_env kobject: 'loop5' (000000006ae09005): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop0' (0000000054c9bfdc): kobject_uevent_env kobject: 'loop0' (0000000054c9bfdc): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'loop4' (000000001e5313c8): kobject_uevent_env kobject: 'loop4' (000000001e5313c8): fill_kobj_path: path = '/devices/virtual/block/loop4' kobject: 'loop4' (000000001e5313c8): kobject_uevent_env kobject: 'loop4' (000000001e5313c8): fill_kobj_path: path = '/devices/virtual/block/loop4' kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 29052 Comm: syz-executor.4 Not tainted 5.0.0-rc8+ #2 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:xs_net include/net/xfrm.h:253 [inline] RIP: 0010:xfrmi_decode_session net/xfrm/xfrm_interface.c:82 [inline] RIP: 0010:xfrmi_decode_session+0x15c/0x6c0 net/xfrm/xfrm_interface.c:73 Code: 7c fc 08 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 2e 05 00 00 48 b8 00 00 00 00 00 fc ff df 4f 8b 64 fc 08 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 01 05 00 00 4d 8b 3c 24 e8 01 2c 5b fb e8 2c 68 RSP: 0018:ffff888076707120 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff888091e82900 RCX: ffffc90007423000 RDX: 0000000000000000 RSI: ffffffff86027610 RDI: ffff88805b420608 RBP: ffff888076707148 R08: ffff888075a12680 R09: 0000000000000000 R10: ffffed10112d9a7e R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000037 R14: ffff888091e82910 R15: ffffffffffffffff FS: 00007f5bebd0a700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000011d2188 CR3: 000000004f8f3000 CR4: 00000000001406e0 Call Trace: __xfrm_policy_check+0x1f8/0x2730 net/xfrm/xfrm_policy.c:3316 __xfrm_policy_check2 include/net/xfrm.h:1176 [inline] xfrm_policy_check include/net/xfrm.h:1181 [inline] xfrm4_policy_check include/net/xfrm.h:1186 [inline] vti_input+0x4e3/0x7b0 net/ipv4/ip_vti.c:63 vti_rcv+0x10b/0x140 net/ipv4/ip_vti.c:109 xfrm4_esp_rcv+0xd8/0x240 net/ipv4/xfrm4_protocol.c:100 ip_protocol_deliver_rcu+0x60/0x8f0 net/ipv4/ip_input.c:208 ip_local_deliver_finish+0x23b/0x390 net/ipv4/ip_input.c:234 NF_HOOK include/linux/netfilter.h:289 [inline] NF_HOOK include/linux/netfilter.h:283 [inline] ip_local_deliver+0x1e9/0x520 net/ipv4/ip_input.c:255 dst_input include/net/dst.h:450 [inline] ip_rcv_finish+0x1e1/0x300 net/ipv4/ip_input.c:414 NF_HOOK include/linux/netfilter.h:289 [inline] NF_HOOK include/linux/netfilter.h:283 [inline] ip_rcv+0xe8/0x3f0 net/ipv4/ip_input.c:524 __netif_receive_skb_one_core+0x115/0x1a0 net/core/dev.c:4973 __netif_receive_skb+0x2c/0x1c0 net/core/dev.c:5083 netif_receive_skb_internal+0x117/0x660 net/core/dev.c:5186 napi_frags_finish net/core/dev.c:5753 [inline] napi_gro_frags+0xade/0xd10 net/core/dev.c:5827 tun_get_user+0x2c0e/0x3dd0 drivers/net/tun.c:1974 tun_chr_write_iter+0xbd/0x160 drivers/net/tun.c:2019 call_write_iter include/linux/fs.h:1863 [inline] do_iter_readv_writev+0x5e0/0x8e0 fs/read_write.c:680 do_iter_write fs/read_write.c:956 [inline] do_iter_write+0x184/0x610 fs/read_write.c:937 vfs_writev+0x1b3/0x2f0 fs/read_write.c:1001 do_writev+0xf6/0x290 fs/read_write.c:1036 __do_sys_writev fs/read_write.c:1109 [inline] __se_sys_writev fs/read_write.c:1106 [inline] __x64_sys_writev+0x75/0xb0 fs/read_write.c:1106 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457ce1 Code: 75 14 b8 14 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 e4 b9 fb ff c3 48 83 ec 08 e8 1a 2d 00 00 48 89 04 24 b8 14 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 63 2d 00 00 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007f5bebd09ba0 EFLAGS: 00000293 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 0000000000000066 RCX: 0000000000457ce1 RDX: 0000000000000001 RSI: 00007f5bebd09bf0 RDI: 00000000000000f0 RBP: 0000000020000140 R08: 00000000000000f0 R09: 0000000000000000 R10: 00007f5bebd0a9d0 R11: 0000000000000293 R12: 00007f5bebd0a6d4 R13: 00000000004c64e1 R14: 00000000004db9c0 R15: 00000000ffffffff Modules linked in: ---[ end trace 72b1151314079fe1 ]--- RIP: 0010:xs_net include/net/xfrm.h:253 [inline] RIP: 0010:xfrmi_decode_session net/xfrm/xfrm_interface.c:82 [inline] RIP: 0010:xfrmi_decode_session+0x15c/0x6c0 net/xfrm/xfrm_interface.c:73 Code: 7c fc 08 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 2e 05 00 00 48 b8 00 00 00 00 00 fc ff df 4f 8b 64 fc 08 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 01 05 00 00 4d 8b 3c 24 e8 01 2c 5b fb e8 2c 68 RSP: 0018:ffff888076707120 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff888091e82900 RCX: ffffc90007423000 RDX: 0000000000000000 RSI: ffffffff86027610 RDI: ffff88805b420608 RBP: ffff888076707148 R08: ffff888075a12680 R09: 0000000000000000 R10: ffffed10112d9a7e R11: 0000000000000000 R12: 0000000000000000 kobject: 'loop5' (000000006ae09005): kobject_uevent_env R13: 0000000000000037 R14: ffff888091e82910 R15: ffffffffffffffff FS: 00007f5bebd0a700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000011d2188 CR3: 000000004f8f3000 CR4: 00000000001406e0