general protection fault in hsr_dev_change_mtu (2)

10 views
Skip to first unread message

syzbot

unread,
Dec 18, 2020, 7:10:12 PM12/18/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 13d2ce42 Linux 4.19.163
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12e66f9b500000
kernel config: https://syzkaller.appspot.com/x/.config?x=fac7c3360835a4e0
dashboard link: https://syzkaller.appspot.com/bug?extid=cbfb3df99d69ace5be33
compiler: gcc (GCC) 10.1.0-syz 20200507

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+cbfb3d...@syzkaller.appspotmail.com

bond0: enslaved VLAN challenged slave hsr1. Adding VLANs will be blocked as long as hsr1 is part of bond bond0
bond0: The slave device specified does not support setting the MAC address
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: 10917 Comm: syz-executor.2 Not tainted 4.19.163-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:hsr_dev_change_mtu+0xa2/0xd0 net/hsr/hsr_device.c:149
Code: 89 e0 5b 5d 41 5c 41 5d c3 e8 6a f5 8e f9 eb e1 e8 63 ca 58 f9 49 8d 7d 10 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 1d 49 8b 7d 10 ba 06 00 00 00 48 c7 c6 60 45 70 89
RSP: 0018:ffff888041ab6a28 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 00000000000005dc RCX: ffffc9000a45d000
RDX: 0000000000000002 RSI: ffffffff880c05ad RDI: 0000000000000010
RBP: ffff88804ce38e40 R08: 0000000000000000 R09: 00000000000005d6
R10: 0000000000000004 R11: 0000000000000000 R12: 00000000000005d6
R13: 0000000000000000 R14: ffff88804ce39088 R15: 0000000000000001
FS: 00007fc0b6a78700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe3338fc30 CR3: 00000000a921d000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__dev_set_mtu net/core/dev.c:7755 [inline]
dev_set_mtu_ext+0x339/0x580 net/core/dev.c:7808
dev_set_mtu+0x95/0x120 net/core/dev.c:7832
bond_enslave+0x70c/0x5230 drivers/net/bonding/bond_main.c:1530
do_set_master+0x1c8/0x220 net/core/rtnetlink.c:2321
do_setlink+0x7ec/0x3540 net/core/rtnetlink.c:2455
rtnl_newlink+0xda0/0x15b0 net/core/rtnetlink.c:3077
rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4778
netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455
netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xc3/0x120 net/socket.c:632
___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2115
__sys_sendmsg net/socket.c:2153 [inline]
__do_sys_sendmsg net/socket.c:2162 [inline]
__se_sys_sendmsg net/socket.c:2160 [inline]
__x64_sys_sendmsg+0x132/0x220 net/socket.c:2160
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45e149
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:00007fc0b6a77c68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045e149
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000005
RBP: 000000000119c110 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119c0dc
R13: 00007ffe39ecd00f R14: 00007fc0b6a789c0 R15: 000000000119c0dc
Modules linked in:
---[ end trace 6ac36c903ec30c1d ]---
RIP: 0010:hsr_dev_change_mtu+0xa2/0xd0 net/hsr/hsr_device.c:149
Code: 89 e0 5b 5d 41 5c 41 5d c3 e8 6a f5 8e f9 eb e1 e8 63 ca 58 f9 49 8d 7d 10 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 1d 49 8b 7d 10 ba 06 00 00 00 48 c7 c6 60 45 70 89
RSP: 0018:ffff888041ab6a28 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 00000000000005dc RCX: ffffc9000a45d000
RDX: 0000000000000002 RSI: ffffffff880c05ad RDI: 0000000000000010
RBP: ffff88804ce38e40 R08: 0000000000000000 R09: 00000000000005d6
R10: 0000000000000004 R11: 0000000000000000 R12: 00000000000005d6
R13: 0000000000000000 R14: ffff88804ce39088 R15: 0000000000000001
FS: 00007fc0b6a78700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b3172b000 CR3: 00000000a921d000 CR4: 00000000001406e0
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 18, 2021, 5:40:20 PM1/18/21
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: c110fed0 Linux 4.19.168
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=123f2520d00000
kernel config: https://syzkaller.appspot.com/x/.config?x=ab04f4c73d0ab4a8
dashboard link: https://syzkaller.appspot.com/bug?extid=cbfb3df99d69ace5be33
compiler: gcc (GCC) 10.1.0-syz 20200507
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11bdadaf500000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17a967e7500000

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

device batadv0 left promiscuous mode
netlink: 'syz-executor146': attribute type 10 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: 0 PID: 8367 Comm: syz-executor146 Not tainted 4.19.168-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:hsr_dev_change_mtu+0xa2/0xd0 net/hsr/hsr_device.c:149
Code: 89 e0 5b 5d 41 5c 41 5d c3 e8 2a 5d b0 f9 eb e1 e8 f3 a4 7a f9 49 8d 7d 10 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 1d 49 8b 7d 10 ba 06 00 00 00 48 c7 c6 c0 4f 70 89
RSP: 0018:ffff88809572eb60 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 00000000000005dc RCX: ffffffff87e7b50b
RDX: 0000000000000002 RSI: ffffffff87e7b55d RDI: 0000000000000010
RBP: ffff8880af5ce600 R08: 0000000000000000 R09: 00000000000005d6
R10: 0000000000000004 R11: 0000000000000000 R12: 00000000000005d6
R13: 0000000000000000 R14: ffff8880af5ce848 R15: 0000000000000001
FS: 00000000016c9880(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3d9003b058 CR3: 0000000097512000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__dev_set_mtu net/core/dev.c:7755 [inline]
dev_set_mtu_ext+0x339/0x580 net/core/dev.c:7808
dev_set_mtu+0x95/0x120 net/core/dev.c:7832
team_port_add drivers/net/team/team.c:1205 [inline]
team_add_slave+0x9cb/0x1fa0 drivers/net/team/team.c:1976
do_set_master+0x1c8/0x220 net/core/rtnetlink.c:2321
do_setlink+0x7ec/0x3540 net/core/rtnetlink.c:2455
rtnl_newlink+0xda0/0x15b0 net/core/rtnetlink.c:3077
rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4778
netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455
netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xc3/0x120 net/socket.c:632
___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2115
__sys_sendmsg net/socket.c:2153 [inline]
__do_sys_sendmsg net/socket.c:2162 [inline]
__se_sys_sendmsg net/socket.c:2160 [inline]
__x64_sys_sendmsg+0x132/0x220 net/socket.c:2160
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x444149
Code: e8 6c 05 03 00 48 83 c4 18 c3 0f 1f 80 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 0f 83 9b 07 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffecd926348 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000444149
RDX: 0000000000000000 RSI: 0000000020000600 RDI: 0000000000000005
RBP: 00007ffecd926350 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000009df1
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 6a0bb17e8ada62b6 ]---
RIP: 0010:hsr_dev_change_mtu+0xa2/0xd0 net/hsr/hsr_device.c:149
Code: 89 e0 5b 5d 41 5c 41 5d c3 e8 2a 5d b0 f9 eb e1 e8 f3 a4 7a f9 49 8d 7d 10 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 1d 49 8b 7d 10 ba 06 00 00 00 48 c7 c6 c0 4f 70 89
RSP: 0018:ffff88809572eb60 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 00000000000005dc RCX: ffffffff87e7b50b
RDX: 0000000000000002 RSI: ffffffff87e7b55d RDI: 0000000000000010
RBP: ffff8880af5ce600 R08: 0000000000000000 R09: 00000000000005d6
R10: 0000000000000004 R11: 0000000000000000 R12: 00000000000005d6
R13: 0000000000000000 R14: ffff8880af5ce848 R15: 0000000000000001
FS: 00000000016c9880(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3d9003b058 CR3: 0000000097512000 CR4: 00000000001406f0

syzbot

unread,
Jan 19, 2021, 8:13:22 AM1/19/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 2762b48e Linux 4.14.216
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17340358d00000
kernel config: https://syzkaller.appspot.com/x/.config?x=e8574522d7c28056
dashboard link: https://syzkaller.appspot.com/bug?extid=2dc1234bc0d1d06ef6f6
compiler: gcc (GCC) 10.1.0-syz 20200507
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10b2dd58d00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11eb8494d00000

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

device batadv0 entered promiscuous mode
lo: Cannot use loopback or non-ethernet device as HSR slave.
device batadv0 left promiscuous mode
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
Modules linked in:
CPU: 1 PID: 8263 Comm: syz-executor087 Not tainted 4.14.216-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880b0488040 task.stack: ffff8880afe30000
RIP: 0010:hsr_dev_change_mtu+0x95/0xc0 net/hsr/hsr_device.c:149
RSP: 0018:ffff8880afe37060 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8880af056600 RCX: 1ffff11016091123
RDX: 0000000000000002 RSI: 0000000000000003 RDI: 0000000000000010
RBP: 00000000000005dc R08: 0000000000000000 R09: 0000000000000002
R10: 0000000000000000 R11: ffff8880b0488040 R12: ffff8880af0570c0
R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff86f85550
FS: 0000000001a7b880(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000040 CR3: 000000009d751000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__dev_set_mtu net/core/dev.c:6875 [inline]
dev_set_mtu+0x1f0/0x3c0 net/core/dev.c:6910
team_port_add drivers/net/team/team.c:1199 [inline]
team_add_slave+0x8de/0x1bc0 drivers/net/team/team.c:1968
do_set_master+0x19e/0x200 net/core/rtnetlink.c:1961
do_setlink+0x8b8/0x2bf0 net/core/rtnetlink.c:2098
rtnl_newlink+0x1267/0x1830 net/core/rtnetlink.c:2660
rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4316
netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2433
netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline]
netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1313
netlink_sendmsg+0x62e/0xb80 net/netlink/af_netlink.c:1878
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xb5/0x100 net/socket.c:656
___sys_sendmsg+0x6c8/0x800 net/socket.c:2062
__sys_sendmsg+0xa3/0x120 net/socket.c:2096
SYSC_sendmsg net/socket.c:2107 [inline]
SyS_sendmsg+0x27/0x40 net/socket.c:2103
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x444149
RSP: 002b:00007ffc3ec79678 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000444149
RDX: 0000000000000000 RSI: 0000000020000600 RDI: 0000000000000005
RBP: 00007ffc3ec79680 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000007b7d
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Code: 44 89 e0 5b 5d 41 5c 41 5d c3 e8 27 4c 86 fa eb e1 e8 90 cf 5c fa 49 8d 7d 10 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 1d 49 8b 7d 10 ba 06 00 00 00 48 c7 c6 e0 93 73
RIP: hsr_dev_change_mtu+0x95/0xc0 net/hsr/hsr_device.c:149 RSP: ffff8880afe37060
---[ end trace ecda4bfeca2968e8 ]---


---
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 can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches
Reply all
Reply to author
Forward
0 new messages