kernel BUG in pfkey_send_acquire

16 views
Skip to first unread message

syzbot

unread,
Jan 17, 2021, 10:19:20 AM1/17/21
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: dc044639 UPSTREAM: mm/ksm: Remove reuse_ksm_page()
git tree: android12-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=10ea5a9f500000
kernel config: https://syzkaller.appspot.com/x/.config?x=63043a451b4568fd
dashboard link: https://syzkaller.appspot.com/bug?extid=6de5df89079c9ffe8cac
compiler: Android (6032204 based on r370808) clang version 10.0.1 (https://android.googlesource.com/toolchain/llvm-project 6e765c10313d15c02ab29977a82938f66742c3a9)

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+6de5df...@syzkaller.appspotmail.com

------------[ cut here ]------------
kernel BUG at net/core/skbuff.c:109!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 2410 Comm: syz-executor.0 Not tainted 5.4.89-syzkaller-00264-gdc04463953b2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:skb_panic+0x14d/0x150 net/core/skbuff.c:105
Code: 48 8b 74 24 08 48 8b 54 24 10 8b 0c 24 44 8b 44 24 04 49 89 e9 b8 00 00 00 00 53 41 55 41 54 41 57 e8 f3 34 dc fd 48 83 c4 20 <0f> 0b 90 55 41 57 41 56 41 55 41 54 53 48 83 ec 70 4c 89 cb 4c 89
RSP: 0018:ffff8881e490eca0 EFLAGS: 00010286
RAX: 0000000000000086 RBX: ffffffff8529f7fe RCX: 245e3d4e3463c500
RDX: ffffc900003d5000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffff8881bb6f6000 R08: ffffffff814e4601 R09: ffffed103ee25e08
R10: ffffed103ee25e08 R11: 0000000000000000 R12: 00000000000000e8
R13: 00000000000000c0 R14: dffffc0000000000 R15: ffff8881bb6f6000
FS: 00007f8a04f11700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33328000 CR3: 00000001b90df000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
skb_over_panic+0x25/0x30 net/core/skbuff.c:114
skb_put+0x1e0/0x1e0 net/core/skbuff.c:1868
dump_esp_combs net/key/af_key.c:3006 [inline]
pfkey_send_acquire+0x18ee/0x2d60 net/key/af_key.c:3227
km_query net/xfrm/xfrm_state.c:2200 [inline]
xfrm_state_find+0x2e3f/0x4820 net/xfrm/xfrm_state.c:1136
xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2381 [inline]
xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:2426 [inline]
xfrm_resolve_and_create_bundle+0x6a3/0x2ec0 net/xfrm/xfrm_policy.c:2717
xfrm_lookup_with_ifid+0x93c/0x2080 net/xfrm/xfrm_policy.c:3040
xfrm_lookup net/xfrm/xfrm_policy.c:3164 [inline]
xfrm_lookup_route+0x37/0x170 net/xfrm/xfrm_policy.c:3175
ip_route_output_flow+0x20c/0x340 net/ipv4/route.c:2733
udp_sendmsg+0x180c/0x2f60 net/ipv4/udp.c:1147
sock_sendmsg_nosec net/socket.c:638 [inline]
sock_sendmsg net/socket.c:658 [inline]
____sys_sendmsg+0x587/0x8d0 net/socket.c:2298
___sys_sendmsg net/socket.c:2352 [inline]
__sys_sendmmsg+0x39a/0x700 net/socket.c:2455
__do_sys_sendmmsg net/socket.c:2484 [inline]
__se_sys_sendmmsg net/socket.c:2481 [inline]
__x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2481
do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45e219
Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f8a04f10c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000045e219
RDX: 000000000800001d RSI: 0000000020007fc0 RDI: 0000000000000003
RBP: 000000000119c070 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119c034
R13: 00007fffba14c8ef R14: 00007f8a04f119c0 R15: 000000000119c034
Modules linked in:
---[ end trace dd7fc1de810f4169 ]---
RIP: 0010:skb_panic+0x14d/0x150 net/core/skbuff.c:105
Code: 48 8b 74 24 08 48 8b 54 24 10 8b 0c 24 44 8b 44 24 04 49 89 e9 b8 00 00 00 00 53 41 55 41 54 41 57 e8 f3 34 dc fd 48 83 c4 20 <0f> 0b 90 55 41 57 41 56 41 55 41 54 53 48 83 ec 70 4c 89 cb 4c 89
RSP: 0018:ffff8881e490eca0 EFLAGS: 00010286
RAX: 0000000000000086 RBX: ffffffff8529f7fe RCX: 245e3d4e3463c500
RDX: ffffc900003d5000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffff8881bb6f6000 R08: ffffffff814e4601 R09: ffffed103ee25e08
R10: ffffed103ee25e08 R11: 0000000000000000 R12: 00000000000000e8
R13: 00000000000000c0 R14: dffffc0000000000 R15: ffff8881bb6f6000
FS: 00007f8a04f11700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2ec6dd0000 CR3: 00000001b90df000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This report 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 issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Jan 26, 2021, 9:40:21 PM1/26/21
to syzkaller-a...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 73d140dc ANDROID: GKI: update .xml file
git tree: android12-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=1275872cd00000
kernel config: https://syzkaller.appspot.com/x/.config?x=a0d2c3d63b61293f
dashboard link: https://syzkaller.appspot.com/bug?extid=6de5df89079c9ffe8cac
compiler: Android (6032204 based on r370808) clang version 10.0.1 (https://android.googlesource.com/toolchain/llvm-project 6e765c10313d15c02ab29977a82938f66742c3a9)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1491a6bf500000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+6de5df...@syzkaller.appspotmail.com

skbuff: skb_over_panic: text:000000003b7bc9e1 len:1744 put:72 head:000000009a38aa6d data:000000009a38aa6d tail:0x6d0 end:0x6c0 dev:<NULL>
------------[ cut here ]------------
kernel BUG at net/core/skbuff.c:109!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 434 Comm: syz-executor.5 Not tainted 5.4.92-syzkaller-00491-g73d140dc8abe #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:skb_panic+0x14d/0x150 net/core/skbuff.c:105
Code: 48 8b 74 24 08 48 8b 54 24 10 8b 0c 24 44 8b 44 24 04 49 89 e9 b8 00 00 00 00 53 41 55 41 54 41 57 e8 03 1a dc fd 48 83 c4 20 <0f> 0b 90 55 41 57 41 56 41 55 41 54 53 48 83 ec 70 4c 89 cb 4c 89
RSP: 0018:ffff8881e50a6ca0 EFLAGS: 00010286
RAX: 0000000000000089 RBX: ffffffff8529fbde RCX: 898b58e77542fc00
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffff8881e5673000 R08: ffffffff814e45f1 R09: ffffed103ee05e08
R10: ffffed103ee05e08 R11: 0000000000000000 R12: 00000000000006d0
R13: 00000000000006c0 R14: dffffc0000000000 R15: ffff8881e5673000
FS: 00007f01e9a50700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5934039088 CR3: 00000001e5412000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
skb_over_panic+0x25/0x30 net/core/skbuff.c:114
skb_put+0x1e0/0x1e0 net/core/skbuff.c:1873
dump_esp_combs net/key/af_key.c:3006 [inline]
pfkey_send_acquire+0x18ee/0x2d60 net/key/af_key.c:3227
km_query net/xfrm/xfrm_state.c:2200 [inline]
xfrm_state_find+0x2e3f/0x4820 net/xfrm/xfrm_state.c:1136
xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2381 [inline]
xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:2426 [inline]
xfrm_resolve_and_create_bundle+0x6a3/0x2ec0 net/xfrm/xfrm_policy.c:2717
xfrm_lookup_with_ifid+0x93c/0x2080 net/xfrm/xfrm_policy.c:3040
xfrm_lookup net/xfrm/xfrm_policy.c:3164 [inline]
xfrm_lookup_route+0x37/0x170 net/xfrm/xfrm_policy.c:3175
ip_route_output_flow+0x20c/0x340 net/ipv4/route.c:2733
udp_sendmsg+0x180c/0x2f60 net/ipv4/udp.c:1147
sock_sendmsg_nosec net/socket.c:638 [inline]
sock_sendmsg net/socket.c:658 [inline]
____sys_sendmsg+0x587/0x8d0 net/socket.c:2298
___sys_sendmsg net/socket.c:2352 [inline]
__sys_sendmmsg+0x39a/0x700 net/socket.c:2455
__do_sys_sendmmsg net/socket.c:2484 [inline]
__se_sys_sendmmsg net/socket.c:2481 [inline]
__x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2481
do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45e219
Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f01e9a4fc68 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 000000000045e219
RDX: 000000000800001d RSI: 0000000020007fc0 RDI: 0000000000000003
RBP: 000000000119c070 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119c034
R13: 00007ffe22f9d2ef R14: 00007f01e9a509c0 R15: 000000000119c034
Modules linked in:
---[ end trace 9fb5ed760d652e6b ]---
RIP: 0010:skb_panic+0x14d/0x150 net/core/skbuff.c:105
Code: 48 8b 74 24 08 48 8b 54 24 10 8b 0c 24 44 8b 44 24 04 49 89 e9 b8 00 00 00 00 53 41 55 41 54 41 57 e8 03 1a dc fd 48 83 c4 20 <0f> 0b 90 55 41 57 41 56 41 55 41 54 53 48 83 ec 70 4c 89 cb 4c 89
RSP: 0018:ffff8881e50a6ca0 EFLAGS: 00010286
RAX: 0000000000000089 RBX: ffffffff8529fbde RCX: 898b58e77542fc00
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffff8881e5673000 R08: ffffffff814e45f1 R09: ffffed103ee05e08
R10: ffffed103ee05e08 R11: 0000000000000000 R12: 00000000000006d0
R13: 00000000000006c0 R14: dffffc0000000000 R15: ffff8881e5673000
FS: 00007f01e9a50700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5934039088 CR3: 00000001e5412000 CR4: 00000000001406f0

syzbot

unread,
Sep 8, 2022, 7:05:35 PM9/8/22
to syzkaller-a...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 704c7d053806 BACKPORT: scsi: ufs: core: Increase fDeviceIn..
git tree: android12-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=14a5af9d080000
kernel config: https://syzkaller.appspot.com/x/.config?x=d60ce76287fc97c0
dashboard link: https://syzkaller.appspot.com/bug?extid=6de5df89079c9ffe8cac
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1382d877080000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13f5f225080000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+6de5df...@syzkaller.appspotmail.com

skbuff: skb_over_panic: text:ffffffff83bf4035 len:664 put:72 head:ffff8881ef78c800 data:ffff8881ef78c800 tail:0x298 end:0x280 dev:<NULL>
------------[ cut here ]------------
kernel BUG at net/core/skbuff.c:109!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 363 Comm: syz-executor195 Not tainted 5.4.197-syzkaller-00005-g704c7d053806 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
RIP: 0010:skb_panic+0x14a/0x150 net/core/skbuff.c:105
Code: f2 ee 84 48 8b 74 24 08 48 8b 54 24 10 8b 0c 24 44 8b 44 24 04 49 89 e9 31 c0 53 41 55 41 54 41 57 e8 bf 62 c5 00 48 83 c4 20 <0f> 0b 0f 1f 40 00 55 41 57 41 56 41 55 41 54 53 48 83 ec 68 4d 89
RSP: 0018:ffff8881da6af350 EFLAGS: 00010286
RAX: 0000000000000088 RBX: ffffffff84eef280 RCX: a947b947f9301200
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffff8881ef78c800 R08: ffffffff814a983a R09: ffffed103edcaa08
R10: ffffed103edcaa08 R11: 1ffff1103edcaa07 R12: 0000000000000298
R13: 0000000000000280 R14: dffffc0000000000 R15: ffff8881ef78c800
FS: 00007f195de90700(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200d2030 CR3: 00000001da441000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
skb_over_panic net/core/skbuff.c:114 [inline]
skb_put+0x148/0x1f0 net/core/skbuff.c:1877
dump_esp_combs net/key/af_key.c:3010 [inline]
pfkey_send_acquire+0x18f5/0x2cf0 net/key/af_key.c:3231
km_query+0x79/0xe0 net/xfrm/xfrm_state.c:2206
xfrm_state_find+0x2074/0x2de0 net/xfrm/xfrm_state.c:1135
xfrm_tmpl_resolve_one net/xfrm/xfrm_policy.c:2397 [inline]
xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:2442 [inline]
xfrm_resolve_and_create_bundle+0x68e/0x30e0 net/xfrm/xfrm_policy.c:2733
xfrm_lookup_with_ifid+0xe65/0x2050 net/xfrm/xfrm_policy.c:3056
xfrm_lookup net/xfrm/xfrm_policy.c:3180 [inline]
xfrm_lookup_route+0x37/0x170 net/xfrm/xfrm_policy.c:3191
ip_route_output_flow+0x19b/0x2a0 net/ipv4/route.c:2756
udp_sendmsg+0x1446/0x2560 net/ipv4/udp.c:1154
sock_sendmsg_nosec net/socket.c:638 [inline]
sock_sendmsg net/socket.c:658 [inline]
____sys_sendmsg+0x4ee/0x7c0 net/socket.c:2287
___sys_sendmsg net/socket.c:2341 [inline]
__sys_sendmmsg+0x32b/0x640 net/socket.c:2444
__do_sys_sendmmsg net/socket.c:2473 [inline]
__se_sys_sendmmsg net/socket.c:2470 [inline]
__x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2470
do_syscall_64+0xcb/0x1c0 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f195df45579
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 15 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f195de90308 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007f195dfce518 RCX: 00007f195df45579
RDX: 0400000000000354 RSI: 0000000020000180 RDI: 0000000000000005
RBP: 00007f195dfce510 R08: 0000000000000000 R09: 0000000000000000
R10: 000002873dedf99c R11: 0000000000000246 R12: 00007f195dfce51c
R13: 00007f195df9b554 R14: 0100000000000000 R15: 0000000000022000
Modules linked in:
---[ end trace b3ccfeb7ad2b0c33 ]---
RIP: 0010:skb_panic+0x14a/0x150 net/core/skbuff.c:105
Code: f2 ee 84 48 8b 74 24 08 48 8b 54 24 10 8b 0c 24 44 8b 44 24 04 49 89 e9 31 c0 53 41 55 41 54 41 57 e8 bf 62 c5 00 48 83 c4 20 <0f> 0b 0f 1f 40 00 55 41 57 41 56 41 55 41 54 53 48 83 ec 68 4d 89
RSP: 0018:ffff8881da6af350 EFLAGS: 00010286
RAX: 0000000000000088 RBX: ffffffff84eef280 RCX: a947b947f9301200
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffff8881ef78c800 R08: ffffffff814a983a R09: ffffed103edcaa08
R10: ffffed103edcaa08 R11: 1ffff1103edcaa07 R12: 0000000000000298
R13: 0000000000000280 R14: dffffc0000000000 R15: ffff8881ef78c800
FS: 00007f195de90700(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200d2030 CR3: 00000001da441000 CR4: 00000000003406f0

syzbot

unread,
Apr 19, 2023, 10:24:51 AM4/19/23
to syzkaller-a...@googlegroups.com
Auto-closing this bug as obsolete.
No recent activity, existing reproducers are no longer triggering the issue.
Reply all
Reply to author
Forward
0 new messages