general protection fault in icmp_timeout_obj_to_nlattr

9 views
Skip to first unread message

syzbot

unread,
Apr 10, 2019, 3:44:08 PM4/10/19
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 4d552acf Linux 4.19.34
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=145a9eaf200000
kernel config: https://syzkaller.appspot.com/x/.config?x=c95a88291f095edd
dashboard link: https://syzkaller.appspot.com/bug?extid=49fe421ccb70e8e92862
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

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

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+49fe42...@syzkaller.appspotmail.com

delete_channel: no stack
netlink: 'syz-executor.1': attribute type 3 has an invalid length.
netlink: 'syz-executor.1': attribute type 2 has an invalid length.
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 24039 Comm: syz-executor.1 Not tainted 4.19.34 #2
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:icmp_timeout_obj_to_nlattr+0x77/0x120
net/netfilter/nf_conntrack_proto_icmp.c:304
Code: b5 41 c7 00 f1 f1 f1 f1 c7 40 04 04 f3 f3 f3 65 48 8b 04 25 28 00 00
00 48 89 45 d0 31 c0 e8 80 83 d4 fb 4c 89 e0 48 c1 e8 03 <42> 0f b6 14 38
4c 89 e0 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 74
RSP: 0018:ffff88806d27f3d8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 1ffff1100da4fe7b RCX: ffffc90008090000
RDX: 000000000001ab36 RSI: ffffffff8596b3c0 RDI: ffff888094d4dbc0
RBP: ffff88806d27f460 R08: ffff888062c86700 R09: ffff8880a0d06528
R10: ffffed10141a0ca4 R11: ffff8880a0d06520 R12: 0000000000000000
R13: ffff88806d27f438 R14: ffff888094d4dbc0 R15: dffffc0000000000
FS: 00007f888529d700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004dc108 CR3: 000000005ff55000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
cttimeout_default_fill_info net/netfilter/nfnetlink_cttimeout.c:424
[inline]
cttimeout_default_get+0x69a/0xa80 net/netfilter/nfnetlink_cttimeout.c:471
nfnetlink_rcv_msg+0xd12/0xfe0 net/netfilter/nfnetlink.c:228
netlink_rcv_skb+0x180/0x460 net/netlink/af_netlink.c:2454
nfnetlink_rcv+0x1c0/0x460 net/netfilter/nfnetlink.c:560
netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
netlink_unicast+0x53c/0x720 net/netlink/af_netlink.c:1343
netlink_sendmsg+0x8ae/0xd70 net/netlink/af_netlink.c:1908
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xdd/0x130 net/socket.c:632
___sys_sendmsg+0x806/0x930 net/socket.c:2115
__sys_sendmsg+0x105/0x1d0 net/socket.c:2153
__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+0x103/0x610 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4582f9
Code: ad b8 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 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f888529cc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004582f9
RDX: 0000000000000000 RSI: 0000000020dddfc8 RDI: 0000000000000004
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f888529d6d4
R13: 00000000004c5958 R14: 00000000004d9c48 R15: 00000000ffffffff
Modules linked in:
kobject: 'loop5' (00000000f5fff9ec): kobject_uevent_env
---[ end trace 33e65a28054c195d ]---
kobject: 'loop5' (00000000f5fff9ec): fill_kobj_path: path
= '/devices/virtual/block/loop5'
RIP: 0010:icmp_timeout_obj_to_nlattr+0x77/0x120
net/netfilter/nf_conntrack_proto_icmp.c:304
Code: b5 41 c7 00 f1 f1 f1 f1 c7 40 04 04 f3 f3 f3 65 48 8b 04 25 28 00 00
00 48 89 45 d0 31 c0 e8 80 83 d4 fb 4c 89 e0 48 c1 e8 03 <42> 0f b6 14 38
4c 89 e0 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 74
RSP: 0018:ffff88806d27f3d8 EFLAGS: 00010246
kobject: 'loop3' (00000000493c10c5): kobject_uevent_env
RAX: 0000000000000000 RBX: 1ffff1100da4fe7b RCX: ffffc90008090000
kobject: 'loop3' (00000000493c10c5): fill_kobj_path: path
= '/devices/virtual/block/loop3'
kobject: 'loop4' (00000000ae37e1ee): kobject_uevent_env
delete_channel: no stack
kobject: 'loop4' (00000000ae37e1ee): fill_kobj_path: path
= '/devices/virtual/block/loop4'
RDX: 000000000001ab36 RSI: ffffffff8596b3c0 RDI: ffff888094d4dbc0
RBP: ffff88806d27f460 R08: ffff888062c86700 R09: ffff8880a0d06528
R10: ffffed10141a0ca4 R11: ffff8880a0d06520 R12: 0000000000000000
R13: ffff88806d27f438 R14: ffff888094d4dbc0 R15: dffffc0000000000
kobject: 'loop5' (00000000f5fff9ec): kobject_uevent_env
FS: 00007f888529d700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
kobject: 'loop5' (00000000f5fff9ec): fill_kobj_path: path
= '/devices/virtual/block/loop5'
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000070b158 CR3: 000000005ff55000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600


---
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

unread,
Apr 10, 2019, 4:35:08 PM4/10/19
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: 4d552acf Linux 4.19.34
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=127e62bf200000
kernel config: https://syzkaller.appspot.com/x/.config?x=c95a88291f095edd
dashboard link: https://syzkaller.appspot.com/bug?extid=49fe421ccb70e8e92862
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=105e334b200000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=122794e3200000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+49fe42...@syzkaller.appspotmail.com

netlink: 'syz-executor306': attribute type 2 has an invalid length.
audit: type=1400 audit(1554928203.773:38): avc: denied { write } for
pid=7889 comm="syz-executor306"
scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023
tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023
tclass=netlink_netfilter_socket permissive=1
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 7889 Comm: syz-executor306 Not tainted 4.19.34 #2
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:icmp_timeout_obj_to_nlattr+0x77/0x120
net/netfilter/nf_conntrack_proto_icmp.c:304
Code: b5 41 c7 00 f1 f1 f1 f1 c7 40 04 04 f3 f3 f3 65 48 8b 04 25 28 00 00
00 48 89 45 d0 31 c0 e8 80 83 d4 fb 4c 89 e0 48 c1 e8 03 <42> 0f b6 14 38
4c 89 e0 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 74
RSP: 0018:ffff888093d273d8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 1ffff110127a4e7b RCX: ffffffff8599425b
RDX: 0000000000000000 RSI: ffffffff8596b3c0 RDI: ffff88808feb4ac0
RBP: ffff888093d27460 R08: ffff888097086100 R09: ffff888096fcc828
R10: ffffed1012df9904 R11: ffff888096fcc820 R12: 0000000000000000
R13: ffff888093d27438 R14: ffff88808feb4ac0 R15: dffffc0000000000
FS: 000000000070e880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000280 CR3: 00000000a5f9f000 CR4: 00000000001406f0
Call Trace:
cttimeout_default_fill_info net/netfilter/nfnetlink_cttimeout.c:424
[inline]
cttimeout_default_get+0x69a/0xa80 net/netfilter/nfnetlink_cttimeout.c:471
nfnetlink_rcv_msg+0xd12/0xfe0 net/netfilter/nfnetlink.c:228
netlink_rcv_skb+0x180/0x460 net/netlink/af_netlink.c:2454
nfnetlink_rcv+0x1c0/0x460 net/netfilter/nfnetlink.c:560
netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
netlink_unicast+0x53c/0x720 net/netlink/af_netlink.c:1343
netlink_sendmsg+0x8ae/0xd70 net/netlink/af_netlink.c:1908
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xdd/0x130 net/socket.c:632
___sys_sendmsg+0x806/0x930 net/socket.c:2115
__sys_sendmsg+0x105/0x1d0 net/socket.c:2153
__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+0x103/0x610 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4401e9
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffcad173118 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004401e9
RDX: 0000000000000000 RSI: 0000000020dddfc8 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a70
R13: 0000000000401b00 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 9bcf58594e267ea9 ]---
RIP: 0010:icmp_timeout_obj_to_nlattr+0x77/0x120
net/netfilter/nf_conntrack_proto_icmp.c:304
Code: b5 41 c7 00 f1 f1 f1 f1 c7 40 04 04 f3 f3 f3 65 48 8b 04 25 28 00 00
00 48 89 45 d0 31 c0 e8 80 83 d4 fb 4c 89 e0 48 c1 e8 03 <42> 0f b6 14 38
4c 89 e0 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 74
RSP: 0018:ffff888093d273d8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 1ffff110127a4e7b RCX: ffffffff8599425b
RDX: 0000000000000000 RSI: ffffffff8596b3c0 RDI: ffff88808feb4ac0
RBP: ffff888093d27460 R08: ffff888097086100 R09: ffff888096fcc828
R10: ffffed1012df9904 R11: ffff888096fcc820 R12: 0000000000000000
R13: ffff888093d27438 R14: ffff88808feb4ac0 R15: dffffc0000000000
FS: 000000000070e880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffff600400 CR3: 00000000a5f9f000 CR4: 00000000001406f0

syzbot

unread,
Nov 27, 2019, 3:34:01 PM11/27/19
to syzkaller...@googlegroups.com
syzbot suspects this bug was fixed by commit:

commit ab69a230421065b48ef93d3e6daf332e71c931dc
Author: David S. Miller <da...@davemloft.net>
Date: Fri May 17 19:15:05 2019 +0000

Revert "tipc: fix modprobe tipc failed after switch order of device
registration"

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=108c2fcae00000
start commit: 4d552acf Linux 4.19.34
git tree: linux-4.19.y
If the result looks correct, please mark the bug fixed by replying with:

#syz fix: Revert "tipc: fix modprobe tipc failed after switch order of
device registration"

For information about bisection process see: https://goo.gl/tpsmEJ#bisection
Reply all
Reply to author
Forward
0 new messages