syzbot


WARNING in xfrm_policy_inexact_list_reinsert

Status: fixed on 2019/10/09 10:54
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+8cc27ace5f6972910b31@syzkaller.appspotmail.com
Fix commit: 769a807d0b41 xfrm: policy: avoid warning splat when merging nodes
First crash: 1731d, last: 1695d
Discussions (4)
Title Replies (including bot) Last reply
[PATCH 5.2 00/45] 5.2.18-stable review 54 (54) 2019/10/01 22:58
[PATCH 5/5] xfrm: policy: avoid warning splat when merging nodes 1 (1) 2019/09/05 10:22
[PATCH ipsec] xfrm: policy: avoid warning splat when merging nodes 2 (2) 2019/08/21 06:41
WARNING in xfrm_policy_inexact_list_reinsert 0 (1) 2019/08/08 16:45

Sample crash report:
WARNING: CPU: 0 PID: 11590 at net/xfrm/xfrm_policy.c:877 xfrm_policy_inexact_list_reinsert+0x625/0x6e0 net/xfrm/xfrm_policy.c:877
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 11590 Comm: syz-executor.3 Not tainted 5.3.0-rc7+ #0
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+0x1d8/0x2f8 lib/dump_stack.c:113
 panic+0x25c/0x799 kernel/panic.c:219
 __warn+0x22f/0x230 kernel/panic.c:576
 report_bug+0x190/0x290 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:179 [inline]
 do_error_trap+0xd7/0x440 arch/x86/kernel/traps.c:272
 do_invalid_op+0x36/0x40 arch/x86/kernel/traps.c:291
 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1028
RIP: 0010:xfrm_policy_inexact_list_reinsert+0x625/0x6e0 net/xfrm/xfrm_policy.c:877
Code: ef e8 df d5 35 fb 4d 8b 6d 00 4c 39 6d 90 0f 85 81 fa ff ff e9 b0 00 00 00 e8 97 da fc fa 0f 0b e9 fa fa ff ff e8 8b da fc fa <0f> 0b e9 75 ff ff ff e8 7f da fc fa 0f 0b eb a9 44 89 f1 80 e1 07
RSP: 0018:ffff8880979bf4b8 EFLAGS: 00010287
RAX: ffffffff8676b255 RBX: 000000000000001f RCX: 0000000000040000
RDX: ffffc90008553000 RSI: 000000000002c6ba RDI: 000000000002c6bb
RBP: ffff8880979bf548 R08: ffffffff8676b18c R09: ffffffff8676aa2c
R10: ffff88805be0e6c0 R11: 0000000000000002 R12: 0000000000000000
R13: ffff8880a7fb77e0 R14: 0000000000000010 R15: 000000000000000a
 xfrm_policy_inexact_node_reinsert net/xfrm/xfrm_policy.c:922 [inline]
 xfrm_policy_inexact_node_merge net/xfrm/xfrm_policy.c:958 [inline]
 xfrm_policy_inexact_insert_node+0x537/0xb50 net/xfrm/xfrm_policy.c:1023
 xfrm_policy_inexact_alloc_chain+0x62b/0xbd0 net/xfrm/xfrm_policy.c:1139
 xfrm_policy_inexact_insert+0xe8/0x1540 net/xfrm/xfrm_policy.c:1182
 xfrm_policy_insert+0xdf/0xce0 net/xfrm/xfrm_policy.c:1574
 xfrm_add_policy+0x420/0x8a0 net/xfrm/xfrm_user.c:1670
 xfrm_user_rcv_msg+0x3e6/0x650 net/xfrm/xfrm_user.c:2676
 netlink_rcv_skb+0x19e/0x3d0 net/netlink/af_netlink.c:2477
 xfrm_netlink_rcv+0x74/0x90 net/xfrm/xfrm_user.c:2684
 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline]
 netlink_unicast+0x787/0x900 net/netlink/af_netlink.c:1328
 netlink_sendmsg+0x993/0xc50 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:637 [inline]
 sock_sendmsg net/socket.c:657 [inline]
 ___sys_sendmsg+0x60d/0x910 net/socket.c:2311
 __sys_sendmsg net/socket.c:2356 [inline]
 __do_sys_sendmsg net/socket.c:2365 [inline]
 __se_sys_sendmsg net/socket.c:2363 [inline]
 __x64_sys_sendmsg+0x17c/0x200 net/socket.c:2363
 do_syscall_64+0xfe/0x140 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x459879
Code: fd 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 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f9514fa8c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459879
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9514fa96d4
R13: 00000000004c77d9 R14: 00000000004dd030 R15: 00000000ffffffff
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/09/05 07:05 upstream 3b47fd5ca9ea 040fda58 .config console log report ci-upstream-kasan-gce-smack-root
2019/08/01 01:24 upstream 4010b622f1d2 c692b5bd .config console log report ci-upstream-kasan-gce-smack-root
* Struck through repros no longer work on HEAD.