syzbot


WARNING in xfrm_policy_insert

Status: public: reported C repro on 2019/09/06 10:33
Reported-by: syzbot+0b54a130f1dc6b817b6b@syzkaller.appspotmail.com
First crash: 1700d, last: 1612d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in xfrm_policy_insert net C inconclusive done 6 1416d 2269d 15/26 fixed on 2020/07/28 19:58
linux-4.14 WARNING in xfrm_policy_insert syz done 8 1447d 1706d 1/1 fixed on 2020/06/15 08:02
linux-4.19 WARNING in xfrm_policy_insert C error 8 1440d 1688d 0/1 upstream: reported C repro on 2019/09/17 18:21
android-44 WARNING in xfrm_policy_insert C 13 1653d 1845d 0/2 public: reported C repro on 2019/04/14 00:02
android-49 WARNING in xfrm_policy_insert C 27 1612d 1845d 0/3 public: reported C repro on 2019/04/14 00:00

Sample crash report:
audit: type=1400 audit(1568029462.484:7): avc:  denied  { map } for  pid=1770 comm="syz-executor958" path="/root/syz-executor958126311" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
netlink: 12 bytes leftover after parsing attributes in process `syz-executor958'.
netlink: 12 bytes leftover after parsing attributes in process `syz-executor958'.
------------[ cut here ]------------
WARNING: CPU: 1 PID: 1778 at net/xfrm/xfrm_policy.c:761 xfrm_policy_insert+0x717/0x1000 net/xfrm/xfrm_policy.c:761
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 1778 Comm: syz-executor958 Not tainted 4.14.142+ #0
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0xca/0x134 lib/dump_stack.c:53
 panic+0x1ea/0x3d3 kernel/panic.c:182
 __warn.cold+0x2f/0x3a kernel/panic.c:546
 report_bug+0x20a/0x248 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x1bf/0x2d0 arch/x86/kernel/traps.c:295
 invalid_op+0x18/0x40 arch/x86/entry/entry_64.S:963
RIP: 0010:xfrm_policy_insert+0x717/0x1000 net/xfrm/xfrm_policy.c:761
RSP: 0018:ffff8881d0ac74c0 EFLAGS: 00010297
RAX: ffff8881d2388000 RBX: ffff8881d185d680 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881c53dd74c
RBP: dffffc0000000000 R08: 00000000000006d2 R09: fffffbfff4075af0
R10: fffffbfff4075aef R11: ffffffffa03ad77b R12: ffff8881c53dd680
R13: 0000000000000000 R14: 0000000000000000 R15: ffff8881d185d788
 xfrm_add_policy+0x21d/0x480 net/xfrm/xfrm_user.c:1675
 xfrm_user_rcv_msg+0x2ef/0x550 net/xfrm/xfrm_user.c:2676
 netlink_rcv_skb+0x137/0x3a0 net/netlink/af_netlink.c:2432
 xfrm_netlink_rcv+0x6b/0x90 net/xfrm/xfrm_user.c:2684
 netlink_unicast_kernel net/netlink/af_netlink.c:1286 [inline]
 netlink_unicast+0x478/0x650 net/netlink/af_netlink.c:1312
 netlink_sendmsg+0x66a/0xbe0 net/netlink/af_netlink.c:1877
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg+0xb7/0x100 net/socket.c:656
 ___sys_sendmsg+0x752/0x890 net/socket.c:2062
 __sys_sendmsg+0xb6/0x150 net/socket.c:2096
 SYSC_sendmsg net/socket.c:2107 [inline]
 SyS_sendmsg+0x27/0x40 net/socket.c:2103
 do_syscall_64+0x19b/0x520 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x441819
RSP: 002b:00007fffde403198 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441819
RDX: 0000000000000000 RSI: 0000000020000280 RDI: 0000000000000003
RBP: 0000000000005778 R08: 00000000004002c8 R09: 00000000004002c8
R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000402640
R13: 00000000004026d0 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: 0x1cc00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
Rebooting in 86400 seconds..

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/09/09 11:47 android-4.14 4eccd8013349 a60cb4cd .config console log report syz C ci-android-414-kasan-gce-root
2019/09/24 12:04 android-4.14 8ae37de3fa03 c68252d2 .config console log report syz ci-android-414-kasan-gce-root
2019/09/06 09:32 android-4.14 38733badc0e6 040fda58 .config console log report syz ci-android-414-kasan-gce-root
2019/12/03 11:40 android-4.14 e6b1fb0e83b2 ab342da3 .config console log report ci-android-414-kasan-gce-root
2019/11/26 07:09 android-4.14 f9b4ab5c8e99 f746151a .config console log report ci-android-414-kasan-gce-root
2019/10/12 09:34 android-4.14 1d75f58e4e19 426631dd .config console log report ci-android-414-kasan-gce-root
2019/09/09 10:56 android-4.14 4eccd8013349 a60cb4cd .config console log report ci-android-414-kasan-gce-root
* Struck through repros no longer work on HEAD.