syzbot


general protection fault in bond_ipsec_add_sa (2)

Status: fixed on 2021/11/10 00:50
Subsystems: net
[Documentation on labels]
Fix commit: 105cd17a8660 bonding: fix null dereference in bond_ipsec_add_sa()
First crash: 1023d, last: 1023d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in bond_ipsec_add_sa net 1 1227d 1223d 0/26 auto-closed as invalid on 2021/04/12 16:53

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 PID: 9912 Comm: syz-executor.2 Tainted: G        W         5.13.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:bond_ipsec_add_sa+0x9e/0x240 drivers/net/bonding/bond_main.c:412
Code: 04 31 ff 89 c3 89 c6 e8 70 25 c1 fc 85 db 0f 85 f6 00 00 00 e8 23 1e c1 fc 4c 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 5f 01 00 00 48 8d bd d8 02 00 00 49 8b 5d 00 48
RSP: 0018:ffffc9000271f480 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90016f68000
RDX: 0000000000000000 RSI: ffffffff84b4665d RDI: 0000000000000003
RBP: ffff88808a94de00 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff84b46650 R11: 0000000000000000 R12: ffff8880167b0000
R13: 0000000000000000 R14: ffff88808a94e0d0 R15: ffff88808a94e0e8
FS:  00007f80b964f700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000544038 CR3: 000000006e700000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 xfrm_dev_state_add+0x2e2/0x890 net/xfrm/xfrm_device.c:266
 xfrm_state_construct net/xfrm/xfrm_user.c:655 [inline]
 xfrm_add_sa+0x229e/0x35f0 net/xfrm/xfrm_user.c:684
 xfrm_user_rcv_msg+0x42c/0x8b0 net/xfrm/xfrm_user.c:2812
 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2504
 xfrm_netlink_rcv+0x6b/0x90 net/xfrm/xfrm_user.c:2824
 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1340
 netlink_sendmsg+0x85b/0xda0 net/netlink/af_netlink.c:1929
 sock_sendmsg_nosec net/socket.c:702 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:722
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2385
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2439
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2468
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x4665d9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f80b964f188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000056c0f0 RCX: 00000000004665d9
RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000003
RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c0f0
R13: 00007ffcfddfdf6f R14: 00007f80b964f300 R15: 0000000000022000
Modules linked in:
---[ end trace 82b5f1a31e5cf54d ]---
RIP: 0010:bond_ipsec_add_sa+0x9e/0x240 drivers/net/bonding/bond_main.c:412
Code: 04 31 ff 89 c3 89 c6 e8 70 25 c1 fc 85 db 0f 85 f6 00 00 00 e8 23 1e c1 fc 4c 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 5f 01 00 00 48 8d bd d8 02 00 00 49 8b 5d 00 48
RSP: 0018:ffffc9000271f480 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90016f68000
RDX: 0000000000000000 RSI: ffffffff84b4665d RDI: 0000000000000003
RBP: ffff88808a94de00 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff84b46650 R11: 0000000000000000 R12: ffff8880167b0000
R13: 0000000000000000 R14: ffff88808a94e0d0 R15: ffff88808a94e0e8
FS:  00007f80b964f700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3adb949718 CR3: 000000006e700000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/05 17:53 net-next-old 5e437416ff66 55aa55c2 .config console log report info ci-upstream-net-kasan-gce general protection fault in bond_ipsec_add_sa
* Struck through repros no longer work on HEAD.