syzbot


kernel BUG at net/phonet/socket.c:LINE!

Status: fixed on 2022/03/08 16:11
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+2dc91e7fc3dea88b1e8a@syzkaller.appspotmail.com
Fix commit: 75a2f3152009 phonet/pep: refuse to enable an unbound pipe
First crash: 1475d, last: 853d
Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: kernel BUG in pn_socket_autobind (log)
Repro: C syz .config
  
Discussions (16)
Title Replies (including bot) Last reply
[PATCH 4.4 00/17] 4.4.297-rc1 review 26 (26) 2022/01/19 18:03
[PATCH 5.10 00/76] 5.10.89-rc1 review 94 (94) 2022/01/05 08:10
[PATCH 4.19 00/38] 4.19.223-rc1 review 47 (47) 2021/12/30 10:52
[PATCH 4.9 00/19] 4.9.295-rc1 review 24 (24) 2021/12/28 21:30
[PATCH 5.4 00/47] 5.4.169-rc1 review 54 (54) 2021/12/28 21:28
[PATCH 5.15 000/128] 5.15.12-rc1 review 138 (138) 2021/12/28 21:26
[PATCH 4.14 00/29] 4.14.260-rc1 review 32 (32) 2021/12/28 17:05
[PATCH AUTOSEL 4.4 1/3] ax25: NPD bug when detaching AX25 device 3 (3) 2021/12/27 19:06
[PATCH AUTOSEL 4.9 1/4] hwmon: (lm90) Do not report 'busy' status bit as alarm 4 (4) 2021/12/27 19:06
[PATCH AUTOSEL 4.14 1/4] hwmon: (lm90) Do not report 'busy' status bit as alarm 4 (4) 2021/12/27 19:06
[PATCH AUTOSEL 4.19 1/6] Input: i8042 - add deferred probe support 6 (6) 2021/12/27 19:06
[PATCH AUTOSEL 5.4 1/9] pinctrl: mediatek: fix global-out-of-bounds issue 9 (9) 2021/12/27 19:05
[PATCH AUTOSEL 5.10 01/14] pinctrl: mediatek: fix global-out-of-bounds issue 14 (14) 2021/12/27 19:04
[PATCH AUTOSEL 5.15 01/26] pinctrl: mediatek: fix global-out-of-bounds issue 26 (26) 2021/12/27 19:03
[PATCH] phonet/pep: refuse to enable an unbound pipe 2 (2) 2021/12/20 12:00
kernel BUG at net/phonet/socket.c:LINE! 6 (8) 2021/12/19 21:09
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 kernel BUG in pn_socket_autobind (2) C error 27 564d 974d 0/1 upstream: reported C repro on 2021/08/23 00:08
linux-4.19 kernel BUG in pn_socket_autobind 1 1109d 1109d 0/1 auto-closed as invalid on 2021/08/07 18:14

Sample crash report:
netlink: 'syz-executor185': attribute type 2 has an invalid length.
------------[ cut here ]------------
kernel BUG at net/phonet/socket.c:213!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3620 Comm: syz-executor185 Not tainted 5.16.0-rc5-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:213 [inline]
RIP: 0010:pn_socket_autobind net/phonet/socket.c:213 [inline] net/phonet/socket.c:202
RIP: 0010:pn_socket_autobind+0x13c/0x160 net/phonet/socket.c:202 net/phonet/socket.c:202
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 64 60 1e f9 <0f> 0b e8 2d 25 65 f9 eb 9f e8 46 25 65 f9 e9 6d ff ff ff e8 8c 2b
RSP: 0018:ffffc90001bafc40 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff88801c748000 RSI: ffffffff8859516c RDI: 0000000000000003
RBP: 1ffff92000375f88 R08: 00000000ffffffea R09: 0000000000000000
R10: ffffffff8859512c R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff88801c748000
FS:  0000555556878300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000740 CR3: 0000000018a78000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 pn_socket_connect+0xfc/0x970 net/phonet/socket.c:227 net/phonet/socket.c:227
 __sys_connect_file+0x155/0x1a0 net/socket.c:1896 net/socket.c:1896
 __sys_connect+0x161/0x190 net/socket.c:1913 net/socket.c:1913
 __do_sys_connect net/socket.c:1923 [inline]
 __se_sys_connect net/socket.c:1920 [inline]
 __do_sys_connect net/socket.c:1923 [inline] net/socket.c:1920
 __se_sys_connect net/socket.c:1920 [inline] net/socket.c:1920
 __x64_sys_connect+0x6f/0xb0 net/socket.c:1920 net/socket.c:1920
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_x64 arch/x86/entry/common.c:50 [inline] arch/x86/entry/common.c:80
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f9bf1080159
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff1adca428 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f9bf1080159
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000013355
R13: 00007fff1adca490 R14: 00007fff1adca480 R15: 00007fff1adca44c
 </TASK>
Modules linked in:
---[ end trace 16a4e3e11e1ba5b9 ]---
RIP: 0010:pn_socket_autobind net/phonet/socket.c:213 [inline]
RIP: 0010:pn_socket_autobind net/phonet/socket.c:213 [inline] net/phonet/socket.c:202
RIP: 0010:pn_socket_autobind+0x13c/0x160 net/phonet/socket.c:202 net/phonet/socket.c:202
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 64 60 1e f9 <0f> 0b e8 2d 25 65 f9 eb 9f e8 46 25 65 f9 e9 6d ff ff ff e8 8c 2b
RSP: 0018:ffffc90001bafc40 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff88801c748000 RSI: ffffffff8859516c RDI: 0000000000000003
RBP: 1ffff92000375f88 R08: 00000000ffffffea R09: 0000000000000000
R10: ffffffff8859512c R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff88801c748000
FS:  0000555556878300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000740 CR3: 0000000018a78000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (168):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/19 14:58 net-old 60ec7fcfe768 44068e19 .config console log report syz C ci-upstream-net-this-kasan-gce kernel BUG in pn_socket_autobind
2021/12/19 15:31 net-next-old f85b244ee395 44068e19 .config console log report syz C ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/12/21 20:24 upstream 6e0567b73052 a938f0b8 .config console log report info ci-upstream-kasan-gce-root kernel BUG in pn_socket_autobind
2021/12/19 13:13 net-old 60ec7fcfe768 44068e19 .config console log report info ci-upstream-net-this-kasan-gce kernel BUG in pn_socket_autobind
2021/12/06 15:48 net-old 2be6d4d16a08 579a8754 .config console log report info ci-upstream-net-this-kasan-gce kernel BUG in pn_socket_autobind
2021/12/04 20:25 net-old 2be6d4d16a08 a617004c .config console log report info ci-upstream-net-this-kasan-gce kernel BUG in pn_socket_autobind
2021/11/21 21:44 net-old f9390b249c90 4eb20a4e .config console log report info ci-upstream-net-this-kasan-gce kernel BUG in pn_socket_autobind
2021/11/19 02:35 net-old c7521d3aa2fa 31a30fc0 .config console log report info ci-upstream-net-this-kasan-gce kernel BUG in pn_socket_autobind
2021/11/16 21:57 net-old 848e5d66fa31 600426bd .config console log report info ci-upstream-net-this-kasan-gce kernel BUG in pn_socket_autobind
2021/11/15 04:26 net-old 1aa3b2207e88 83f5c9b5 .config console log report info ci-upstream-net-this-kasan-gce kernel BUG in pn_socket_autobind
2021/11/14 12:37 net-old 70701b83e208 83f5c9b5 .config console log report info ci-upstream-net-this-kasan-gce kernel BUG in pn_socket_autobind
2021/11/14 06:55 net-old 70701b83e208 83f5c9b5 .config console log report info ci-upstream-net-this-kasan-gce kernel BUG in pn_socket_autobind
2021/11/12 15:08 net-old 5833291ab6de 75b04091 .config console log report info ci-upstream-net-this-kasan-gce kernel BUG in pn_socket_autobind
2021/11/11 01:52 net-old 8f1bc38bbb51 75b04091 .config console log report info ci-upstream-net-this-kasan-gce kernel BUG in pn_socket_autobind
2021/11/09 20:31 net-old 0b9111922b1f 59bcaf9a .config console log report info ci-upstream-net-this-kasan-gce kernel BUG in pn_socket_autobind
2021/11/07 04:41 net-old 70bf363d7adb 4c1be0be .config console log report info ci-upstream-net-this-kasan-gce kernel BUG in pn_socket_autobind
2021/11/07 02:04 net-old 70bf363d7adb 4c1be0be .config console log report info ci-upstream-net-this-kasan-gce kernel BUG in pn_socket_autobind
2021/11/06 23:37 net-old 70bf363d7adb 4c1be0be .config console log report info ci-upstream-net-this-kasan-gce kernel BUG in pn_socket_autobind
2021/11/04 14:47 net-old 92f62485b371 4c1be0be .config console log report info ci-upstream-net-this-kasan-gce kernel BUG in pn_socket_autobind
2020/04/09 03:56 net-old b93cfb9cd3af db9bcd4b .config console log report ci-upstream-net-this-kasan-gce
2021/12/14 02:48 net-next-old a3c62a042237 5d14b1ea .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/12/08 06:15 net-next-old 1c5526968e27 0230ba3e .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/12/06 00:01 net-next-old ce83278f313c a617004c .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/12/05 09:16 net-next-old ce83278f313c a617004c .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/12/05 05:04 net-next-old ce83278f313c a617004c .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/12/03 10:54 net-next-old fc993be36f9e 61f86278 .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/30 23:39 net-next-old 72a2ff567fc3 80270552 .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/28 15:25 net-next-old d40ce48cb3a6 63eeac02 .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/21 07:57 net-next-old 89f971182417 4eb20a4e .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/20 23:12 net-next-old 520fbdf7fb19 4eb20a4e .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/18 19:01 net-next-old bb8cecf8ba12 31a30fc0 .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/18 12:28 net-next-old 75082e7f4680 cafff8b6 .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/17 07:58 net-next-old 62803fec52f8 cafff8b6 .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/16 23:30 net-next-old 62803fec52f8 cafff8b6 .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/16 07:40 net-next-old 3ad4b7c81a99 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/15 10:14 net-next-old 1274a4eb318d 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/15 05:18 net-next-old 1274a4eb318d 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/14 16:33 net-next-old 1274a4eb318d 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/14 08:04 net-next-old 66f4beaa6c1d 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/12 21:54 net-next-old 5833291ab6de 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/12 06:35 net-next-old 5833291ab6de 75b04091 .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/11 19:40 net-next-old cc0356d6a02e 75b04091 .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/09 11:15 net-next-old cc0356d6a02e 8ab17e57 .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/08 21:10 net-next-old cc0356d6a02e d29682f1 .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/08 13:05 net-next-old cc0356d6a02e d29682f1 .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/06 09:39 net-next-old cc0356d6a02e 4c1be0be .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/06 07:02 net-next-old cc0356d6a02e 4c1be0be .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/06 01:37 net-next-old cc0356d6a02e 4c1be0be .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/05 10:26 net-next-old cc0356d6a02e 4c1be0be .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/04 19:17 net-next-old cc0356d6a02e 4c1be0be .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/11/04 17:39 net-next-old cc0356d6a02e 4c1be0be .config console log report info ci-upstream-net-kasan-gce kernel BUG in pn_socket_autobind
2021/01/17 02:45 net-next-old 9ab7e76aefc9 65a7a854 .config console log report info ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.