syzbot


WARNING in xfrm_alloc_compat (2)

Status: fixed on 2021/11/10 00:50
Reported-by: syzbot+834ffd1afc7212eb8147@syzkaller.appspotmail.com
Fix commit: ef19e111337f xfrm/compat: Cleanup WARN()s that can be user-triggered
First crash: 681d, last: 667d

Cause bisection: introduced by (bisect log) :
commit 5f3eea6b7e8f58cf5c8a9d4b9679dc19e9e67ba3
Author: Dmitry Safonov <dima@arista.com>
Date: Mon Sep 21 14:36:53 2020 +0000

  xfrm/compat: Attach xfrm dumps to 64=>32 bit translator

Crash: WARNING in xfrm_alloc_compat (log)
Repro: C syz .config
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in xfrm_alloc_compat C done 130 709d 831d 21/24 fixed on 2021/03/10 01:48

Sample crash report:
netlink: 208 bytes leftover after parsing attributes in process `syz-executor193'.
------------[ cut here ]------------
unsupported nla_type 356
WARNING: CPU: 1 PID: 8423 at net/xfrm/xfrm_compat.c:280 xfrm_xlate64_attr net/xfrm/xfrm_compat.c:280 [inline]
WARNING: CPU: 1 PID: 8423 at net/xfrm/xfrm_compat.c:280 xfrm_xlate64 net/xfrm/xfrm_compat.c:301 [inline]
WARNING: CPU: 1 PID: 8423 at net/xfrm/xfrm_compat.c:280 xfrm_alloc_compat+0xf39/0x10d0 net/xfrm/xfrm_compat.c:328
Modules linked in:
CPU: 1 PID: 8423 Comm: syz-executor193 Not tainted 5.12.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:xfrm_xlate64_attr net/xfrm/xfrm_compat.c:280 [inline]
RIP: 0010:xfrm_xlate64 net/xfrm/xfrm_compat.c:301 [inline]
RIP: 0010:xfrm_alloc_compat+0xf39/0x10d0 net/xfrm/xfrm_compat.c:328
Code: de e8 5b d7 c3 f9 84 db 0f 85 b0 f8 ff ff e8 9e d0 c3 f9 8b 74 24 08 48 c7 c7 80 42 76 8a c6 05 39 2e 02 06 01 e8 74 b7 16 01 <0f> 0b e9 8d f8 ff ff e8 7b d0 c3 f9 8b 14 24 48 c7 c7 40 42 76 8a
RSP: 0018:ffffc90000fff4b8 EFLAGS: 00010282
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff88801b1554c0 RSI: ffffffff815c4d75 RDI: fffff520001ffe89
RBP: 00000000000000d8 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff815bdb0e R11: 0000000000000000 R12: 00000000ffffffa1
R13: ffff8880248eb8f8 R14: ffff888013256dc0 R15: ffff8880132568c0
FS:  000000000092f300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200001e0 CR3: 0000000023271000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 xfrm_alloc_userspi+0x66a/0xa30 net/xfrm/xfrm_user.c:1448
 xfrm_user_rcv_msg+0x42c/0x8b0 net/xfrm/xfrm_user.c:2812
 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2502
 xfrm_netlink_rcv+0x6b/0x90 net/xfrm/xfrm_user.c:2824
 netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1338
 netlink_sendmsg+0x856/0xd90 net/netlink/af_netlink.c:1927
 sock_sendmsg_nosec net/socket.c:654 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:674
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2350
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2404
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2433
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x43f009
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe0986bcb8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000400488 RCX: 000000000043f009
RDX: 0000000000000000 RSI: 0000000020000580 RDI: 0000000000000003
RBP: 0000000000402ff0 R08: 0000000000000000 R09: 0000000000400488
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000403080
R13: 0000000000000000 R14: 00000000004ac018 R15: 0000000000400488

Crashes (47):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-net-kasan-gce 2021/03/26 09:52 net-next 6c996e19949b 6a383ecf .config console log report syz C WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce-selinux-root 2021/04/08 18:52 upstream 454859c552da 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce-selinux-root 2021/04/08 08:01 upstream 3a22981230f9 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce-selinux-root 2021/04/07 20:24 upstream 2d743660786e 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce 2021/04/07 19:56 upstream 2d743660786e 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce 2021/04/05 15:29 upstream e49d033bddf5 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce-selinux-root 2021/04/05 05:37 upstream e49d033bddf5 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce-root 2021/04/05 05:37 upstream e49d033bddf5 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce-smack-root 2021/04/05 05:36 upstream e49d033bddf5 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce-selinux-root 2021/04/05 05:31 upstream e49d033bddf5 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce-root 2021/04/05 05:30 upstream e49d033bddf5 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce 2021/04/05 05:29 upstream e49d033bddf5 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce-smack-root 2021/04/05 05:26 upstream e49d033bddf5 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce 2021/04/05 05:22 upstream e49d033bddf5 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce-root 2021/04/03 13:06 upstream d93a0d43e3d0 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce 2021/04/03 13:05 upstream d93a0d43e3d0 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce 2021/04/03 13:03 upstream d93a0d43e3d0 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce-smack-root 2021/04/03 13:03 upstream d93a0d43e3d0 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce-selinux-root 2021/04/03 13:03 upstream d93a0d43e3d0 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce-root 2021/04/03 12:59 upstream d93a0d43e3d0 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce-smack-root 2021/04/03 12:57 upstream d93a0d43e3d0 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce-selinux-root 2021/04/03 12:56 upstream d93a0d43e3d0 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce 2021/04/03 12:53 upstream d93a0d43e3d0 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce-selinux-root 2021/03/29 19:07 upstream a5e13c6df0e4 a8529b82 .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce-smack-root 2021/03/29 17:56 upstream a5e13c6df0e4 a8529b82 .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce-root 2021/03/29 17:49 upstream a5e13c6df0e4 a8529b82 .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce 2021/03/29 15:16 upstream a5e13c6df0e4 a8529b82 .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce-386 2021/03/30 11:57 upstream 1e43c377a79f 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce-386 2021/03/30 11:51 upstream 1e43c377a79f 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-kasan-gce-386 2021/03/29 17:07 upstream a5e13c6df0e4 a8529b82 .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-net-this-kasan-gce 2021/03/29 13:40 net 1b479fb80160 a8529b82 .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-net-kasan-gce 2021/04/08 06:46 net-next 0b35e0deb5be 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-net-kasan-gce 2021/04/07 19:55 net-next be107538c529 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-net-kasan-gce 2021/04/05 09:54 net-next 7d42e84eb99d 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-net-kasan-gce 2021/04/05 05:37 net-next 7d42e84eb99d 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-net-kasan-gce 2021/04/05 05:18 net-next 7d42e84eb99d 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-net-kasan-gce 2021/04/02 18:44 net-next bd78980be1a6 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-net-kasan-gce 2021/03/31 18:31 net-next 37f368d8d09d 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-net-kasan-gce 2021/03/30 15:56 net-next 37f368d8d09d 6a81331a .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-net-kasan-gce 2021/03/29 13:47 net-next 72642f4127c3 a8529b82 .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-net-kasan-gce 2021/03/26 17:06 net-next 6c996e19949b a8529b82 .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-net-kasan-gce 2021/03/26 09:26 net-next 6c996e19949b 6a383ecf .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-net-kasan-gce 2021/03/25 22:11 net-next 84c7f6c33f42 6a383ecf .config console log report info WARNING in xfrm_alloc_compat
ci-upstream-linux-next-kasan-gce-root 2021/03/29 15:24 linux-next 931294922e65 a8529b82 .config console log report info WARNING in xfrm_alloc_compat
* Struck through repros no longer work on HEAD.