syzbot


WARNING in xfrm_policy_insert_list

Status: fixed on 2019/03/06 07:43
Reported-by: syzbot+25c4e5e89a6ce4bf7e9a@syzkaller.appspotmail.com
Fix commit: 12750abad517 xfrm: policy: fix infinite loop when merging src-nodes
First crash: 1312d, last: 1301d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in xfrm_policy_insert_list (2) C done error 64 808d 1067d 0/23 upstream: reported C repro on 2019/09/06 17:08

Sample crash report:
WARNING: CPU: 1 PID: 31343 at net/xfrm/xfrm_policy.c:1537 xfrm_policy_insert_list+0x4ec/0xfb0 net/xfrm/xfrm_policy.c:1537
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 31343 Comm: syz-executor4 Not tainted 4.20.0+ #19
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+0x1db/0x2d0 lib/dump_stack.c:113
 panic+0x2cb/0x589 kernel/panic.c:189
kobject: 'loop0' (00000000279f8c13): kobject_uevent_env
 __warn.cold+0x20/0x4b kernel/panic.c:544
kobject: 'loop0' (00000000279f8c13): fill_kobj_path: path = '/devices/virtual/block/loop0'
 report_bug+0x263/0x2b0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:271
 do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:290
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:973
RIP: 0010:xfrm_policy_insert_list+0x4ec/0xfb0 net/xfrm/xfrm_policy.c:1537
Code: 14 20 48 89 f8 83 e0 07 83 c0 03 38 d0 0f 8c 23 fd ff ff 84 d2 0f 84 1b fd ff ff e8 be dd 07 fb e9 11 fd ff ff e8 d4 ea c3 fa <0f> 0b 48 8b 85 40 ff ff ff 0f b6 10 48 8b 85 48 ff ff ff 83 e0 07
RSP: 0018:ffff8880590573d0 EFLAGS: 00010216
RAX: 0000000000040000 RBX: ffff8880a8420000 RCX: ffffc9000de59000
RDX: 000000000000050d RSI: ffffffff86be120c RDI: ffff8880a8420220
RBP: ffff8880590574d0 R08: ffff88808d91e440 R09: 0000000000000003
R10: 0000000000000000 R11: 0000000000000001 R12: dffffc0000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 xfrm_policy_inexact_insert+0x155/0xda0 net/xfrm/xfrm_policy.c:1195
 xfrm_policy_insert+0x623/0x910 net/xfrm/xfrm_policy.c:1570
 pfkey_spdadd+0x111a/0x19a0 net/key/af_key.c:2339
 pfkey_process+0x6d2/0x810 net/key/af_key.c:2844
 pfkey_sendmsg+0x5bb/0xfc0 net/key/af_key.c:3683
 sock_sendmsg_nosec net/socket.c:621 [inline]
 sock_sendmsg+0xdd/0x130 net/socket.c:631
 ___sys_sendmsg+0x7ec/0x910 net/socket.c:2116
 __sys_sendmsg+0x112/0x270 net/socket.c:2154
 __do_sys_sendmsg net/socket.c:2163 [inline]
 __se_sys_sendmsg net/socket.c:2161 [inline]
 __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2161
 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457ec9
Code: 6d b7 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 3b b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fe9441b5c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457ec9
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe9441b66d4
R13: 00000000004c53bc R14: 00000000004d8fd8 R15: 00000000ffffffff
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-net-this-kasan-gce 2019/01/15 11:21 net 2f960bd05640 ebacf5cb .config log report
ci-upstream-net-this-kasan-gce 2019/01/04 04:00 net c5ee066333eb 7da23925 .config log report