Hello,
syzbot found the following crash on:
HEAD commit: db2d0b7c Linux 4.19.73
git tree: linux-4.19.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=159ba4ad600000
kernel config:
https://syzkaller.appspot.com/x/.config?x=1515ac7d82731bf1
dashboard link:
https://syzkaller.appspot.com/bug?extid=a4c3057a46b912d61f69
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro:
https://syzkaller.appspot.com/x/repro.syz?x=1625991d600000
IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by:
syzbot+a4c305...@syzkaller.appspotmail.com
netlink: 12 bytes leftover after parsing attributes in process
`syz-executor.1'.
netlink: 12 bytes leftover after parsing attributes in process
`syz-executor.0'.
netlink: 12 bytes leftover after parsing attributes in process
`syz-executor.4'.
------------[ cut here ]------------
WARNING: CPU: 0 PID: 9612 at net/xfrm/xfrm_policy.c:761
xfrm_policy_insert.cold+0x11/0x8c net/xfrm/xfrm_policy.c:761
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 9612 Comm: syz-executor.5 Not tainted 4.19.73 #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+0x172/0x1f0 lib/dump_stack.c:113
panic+0x263/0x507 kernel/panic.c:185
__warn.cold+0x20/0x4a kernel/panic.c:540
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+0x204/0x360 arch/x86/kernel/traps.c:296
kobject: 'loop2' (000000000f894d3f): kobject_uevent_env
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1037
RIP: 0010:xfrm_policy_insert.cold+0x11/0x8c net/xfrm/xfrm_policy.c:761
kobject: 'loop2' (000000000f894d3f): fill_kobj_path: path
= '/devices/virtual/block/loop2'
Code: ff e8 40 9c 78 fb 48 c7 c7 80 3d e9 87 e8 f8 02 63 fb 0f 0b e9 c2 c5
fe ff e8 28 9c 78 fb 48 c7 c7 80 3d e9 87 e8 e0 02 63 fb <0f> 0b 48 8b 45
c0 42 0f b6 14 20 48 8b 45 d0 83 e0 07 83 c0 03 38
RSP: 0018:ffff8880865ff468 EFLAGS: 00010286
RAX: 0000000000000024 RBX: ffff888091a5d6c0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8155dbd6 RDI: ffffed1010cbfe7f
RBP: ffff8880865ff508 R08: 0000000000000024 R09: ffffed1015d05079
R10: ffffed1015d05078 R11: ffff8880ae8283c7 R12: dffffc0000000000
R13: 0000000000000000 R14: 0000000000000000 R15: ffff8880a54f3200
xfrm_add_policy+0x28f/0x530 net/xfrm/xfrm_user.c:1669
kobject: 'loop1' (00000000d3ab1ba3): kobject_uevent_env
xfrm_user_rcv_msg+0x450/0x720 net/xfrm/xfrm_user.c:2677
kobject: 'loop1' (00000000d3ab1ba3): fill_kobj_path: path
= '/devices/virtual/block/loop1'
kobject: 'loop3' (00000000fb96f020): kobject_uevent_env
netlink_rcv_skb+0x17d/0x460 net/netlink/af_netlink.c:2454
kobject: 'loop3' (00000000fb96f020): fill_kobj_path: path
= '/devices/virtual/block/loop3'
kobject: 'loop2' (000000000f894d3f): kobject_uevent_env
xfrm_netlink_rcv+0x70/0x90 net/xfrm/xfrm_user.c:2685
kobject: 'loop2' (000000000f894d3f): fill_kobj_path: path
= '/devices/virtual/block/loop2'
netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
netlink_unicast+0x537/0x720 net/netlink/af_netlink.c:1343
netlink_sendmsg+0x8ae/0xd70 net/netlink/af_netlink.c:1908
kobject: 'loop4' (00000000a06016ef): kobject_uevent_env
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xd7/0x130 net/socket.c:632
kobject: 'loop4' (00000000a06016ef): fill_kobj_path: path
= '/devices/virtual/block/loop4'
___sys_sendmsg+0x803/0x920 net/socket.c:2115
kobject: 'loop1' (00000000d3ab1ba3): kobject_uevent_env
__sys_sendmsg+0x105/0x1d0 net/socket.c:2153
kobject: 'loop1' (00000000d3ab1ba3): fill_kobj_path: path
= '/devices/virtual/block/loop1'
__do_sys_sendmsg net/socket.c:2162 [inline]
__se_sys_sendmsg net/socket.c:2160 [inline]
__x64_sys_sendmsg+0x78/0xb0 net/socket.c:2160
do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4598e9
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
kobject: 'loop3' (00000000fb96f020): kobject_uevent_env
RSP: 002b:00007f01dd508c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004598e9
RDX: 0000000000000000 RSI: 0000000020000280 RDI: 0000000000000003
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f01dd5096d4
R13: 00000000004c7812 R14: 00000000004dd0b0 R15: 00000000ffffffff
Kernel Offset: disabled
Rebooting in 86400 seconds..
---
This bug is generated by a bot. It may contain errors.
See
https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at
syzk...@googlegroups.com.
syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches