kernel BUG in pn_socket_autobind (2)

10 views
Skip to first unread message

syzbot

unread,
Aug 22, 2021, 8:08:18 PM8/22/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 59456c9cc40c Linux 4.19.204
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1475af29300000
kernel config: https://syzkaller.appspot.com/x/.config?x=a84b4514346e13dc
dashboard link: https://syzkaller.appspot.com/bug?extid=0300748b1f334714b550
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

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

sd 0:0:1:0: [sg0] tag#3702 CDB: opcode=0xe5 (vendor)
sd 0:0:1:0: [sg0] tag#3702 CDB[00]: e5 f4 32 73 2f 4e 09 6d 26 e2 c7 35 d1 35 12 1c
sd 0:0:1:0: [sg0] tag#3702 CDB[10]: 92 1b da 40 b8 58 5b a8 d4 7d 34 f3 90 4c f1 2d
sd 0:0:1:0: [sg0] tag#3702 CDB[20]: ba
------------[ cut here ]------------
kernel BUG at net/phonet/socket.c:226!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 16592 Comm: syz-executor.0 Not tainted 4.19.204-syzkaller #0
gprs0: attached
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:pn_socket_autobind net/phonet/socket.c:226 [inline]
RIP: 0010:pn_socket_autobind+0x13c/0x160 net/phonet/socket.c:215
Code: 44 05 00 00 00 00 00 48 8b 44 24 58 65 48 2b 04 25 28 00 00 00 75 26 48 83 c4 60 44 89 e0 5b 5d 41 5c 41 5d c3 e8 94 a3 fd f9 <0f> 0b e8 fd 76 33 fa eb 9f e8 16 78 33 fa e9 6d ff ff ff e8 1c c6
RSP: 0018:ffff8880220f7c38 EFLAGS: 00010212
RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc90005f23000
RDX: 0000000000000559 RSI: ffffffff8764eefc RDI: 0000000000000003
RBP: 1ffff1100441ef87 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000010 R15: 7fffffffffffffff
FS: 00007f07de5c6700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c013179208 CR3: 0000000028954000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
pn_socket_connect+0x100/0x8c0 net/phonet/socket.c:240
__sys_connect+0x265/0x2c0 net/socket.c:1773
__do_sys_connect net/socket.c:1784 [inline]
__se_sys_connect net/socket.c:1781 [inline]
__x64_sys_connect+0x6f/0xb0 net/socket.c:1781
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4665e9
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:00007f07de5c6188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 000000000056c038 RCX: 00000000004665e9
RDX: 0000000000000010 RSI: 0000000020000040 RDI: 0000000000000003
RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c038
R13: 00007ffc3e726f7f R14: 00007f07de5c6300 R15: 0000000000022000
Modules linked in:
---[ end trace 0d6fba3d0892a8f7 ]---
RIP: 0010:pn_socket_autobind net/phonet/socket.c:226 [inline]
RIP: 0010:pn_socket_autobind+0x13c/0x160 net/phonet/socket.c:215
Code: 44 05 00 00 00 00 00 48 8b 44 24 58 65 48 2b 04 25 28 00 00 00 75 26 48 83 c4 60 44 89 e0 5b 5d 41 5c 41 5d c3 e8 94 a3 fd f9 <0f> 0b e8 fd 76 33 fa eb 9f e8 16 78 33 fa e9 6d ff ff ff e8 1c c6
RSP: 0018:ffff8880220f7c38 EFLAGS: 00010212
RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc90005f23000
RDX: 0000000000000559 RSI: ffffffff8764eefc RDI: 0000000000000003
RBP: 1ffff1100441ef87 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000010 R15: 7fffffffffffffff
FS: 00007f07de5c6700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005651ceffe000 CR3: 0000000028954000 CR4: 00000000001426e0
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,
Dec 19, 2021, 4:15:21 PM12/19/21
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15d2f693b00000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=0300748b1f334714b550
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14f0805db00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1402300db00000

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

IPv6: ADDRCONF(NETDEV_CHANGE): macvtap0: link becomes ready
batman_adv: batadv0: Interface activated: batadv_slave_1
IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready
netlink: 'syz-executor394': attribute type 2 has an invalid length.
------------[ cut here ]------------
kernel BUG at net/phonet/socket.c:226!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8101 Comm: syz-executor394 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:pn_socket_autobind net/phonet/socket.c:226 [inline]
RIP: 0010:pn_socket_autobind net/phonet/socket.c:226 [inline] net/phonet/socket.c:215
RIP: 0010:pn_socket_autobind+0x13c/0x160 net/phonet/socket.c:215 net/phonet/socket.c:215
Code: 44 05 00 00 00 00 00 48 8b 44 24 58 65 48 2b 04 25 28 00 00 00 75 26 48 83 c4 60 44 89 e0 5b 5d 41 5c 41 5d c3 e8 24 6c fd f9 <0f> 0b e8 ed 47 33 fa eb 9f e8 06 49 33 fa e9 6d ff ff ff e8 9c 8c
RSP: 0018:ffff8880b268fc38 EFLAGS: 00010293
RAX: ffff888098854540 RBX: 0000000000000000 RCX: ffffffff8765190c
RDX: 0000000000000000 RSI: ffffffff8765194c RDI: 0000000000000003
RBP: 1ffff110164d1f87 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: 7fffffffffffffff
FS: 00005555565b9300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000740 CR3: 00000000a9623000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
pn_socket_connect+0x100/0x8c0 net/phonet/socket.c:240 net/phonet/socket.c:240
__sys_connect+0x265/0x2c0 net/socket.c:1775 net/socket.c:1775
__do_sys_connect net/socket.c:1786 [inline]
__se_sys_connect net/socket.c:1783 [inline]
__do_sys_connect net/socket.c:1786 [inline] net/socket.c:1783
__se_sys_connect net/socket.c:1783 [inline] net/socket.c:1783
__x64_sys_connect+0x6f/0xb0 net/socket.c:1783 net/socket.c:1783
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7facfac394b9
Code: 28 c3 e8 4a 15 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:00007ffddc8102e8 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007ffddc8102f8 RCX: 00007facfac394b9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffddc810300
R13: 00007ffddc810320 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace c428b09b9350b47c ]---
RIP: 0010:pn_socket_autobind net/phonet/socket.c:226 [inline]
RIP: 0010:pn_socket_autobind net/phonet/socket.c:226 [inline] net/phonet/socket.c:215
RIP: 0010:pn_socket_autobind+0x13c/0x160 net/phonet/socket.c:215 net/phonet/socket.c:215
Code: 44 05 00 00 00 00 00 48 8b 44 24 58 65 48 2b 04 25 28 00 00 00 75 26 48 83 c4 60 44 89 e0 5b 5d 41 5c 41 5d c3 e8 24 6c fd f9 <0f> 0b e8 ed 47 33 fa eb 9f e8 06 49 33 fa e9 6d ff ff ff e8 9c 8c
RSP: 0018:ffff8880b268fc38 EFLAGS: 00010293
RAX: ffff888098854540 RBX: 0000000000000000 RCX: ffffffff8765190c
RDX: 0000000000000000 RSI: ffffffff8765194c RDI: 0000000000000003
RBP: 1ffff110164d1f87 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: 7fffffffffffffff
FS: 00005555565b9300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f06dec50000 CR3: 00000000a9623000 CR4: 00000000003406e0
Reply all
Reply to author
Forward
0 new messages