syzbot


general protection fault in phy_start_cable_test_tdr

Status: auto-obsoleted due to no activity on 2024/11/07 09:15
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+5cf270e2069645b6bd2c@syzkaller.appspotmail.com
First crash: 119d, last: 114d
Cause bisection: introduced by (bisect log) :
commit 3688ff3077d3f334cee1d4b61d8bfb6a9508c2d2
Author: Maxime Chevallier <maxime.chevallier@bootlin.com>
Date: Wed Aug 21 15:10:05 2024 +0000

  net: ethtool: cable-test: Target the command to the requested PHY

Crash: BUG: unable to handle kernel NULL pointer dereference in phy_start_cable_test_tdr (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit ad78337cb20c1a52781a7b329b1a747d91be3491
Author: Maxime Chevallier <maxime.chevallier@bootlin.com>
Date: Tue Aug 27 09:23:13 2024 +0000

  net: ethtool: cable-test: Release RTNL when the PHY isn't found

  
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] [net?] general protection fault in phy_start_cable_test_tdr 2 (6) 2024/10/04 02:26
[patch net-next v2] ethtool: cabletest: fix wrong conditional check 2 (2) 2024/08/28 02:33
Last patch testing requests (12)
Created Duration User Patch Repo Result
2024/09/14 13:50 27m retest repro net-next OK log
2024/09/14 03:25 3h39m retest repro net-next OK log
2024/09/14 03:25 23m retest repro net-next OK log
2024/09/14 03:25 23m retest repro net-next OK log
2024/09/14 03:25 24m retest repro net-next OK log
2024/09/14 03:25 32m retest repro net-next OK log
2024/09/13 23:55 23m retest repro net-next OK log
2024/09/13 23:55 23m retest repro net-next OK log
2024/09/13 23:55 25m retest repro net-next OK log
2024/09/13 23:55 24m retest repro net-next OK log
2024/08/28 01:35 18m djahchankoike@gmail.com patch net-next report log
2024/08/28 01:35 16m eadavis@qq.com patch net-next report log

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc00000000f8: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x00000000000007c0-0x00000000000007c7]
CPU: 0 UID: 0 PID: 6918 Comm: syz.0.381 Not tainted 6.11.0-rc4-syzkaller-00686-ge24a6c874601 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:phy_start_cable_test_tdr+0x3a/0x5c0 drivers/net/phy/phy.c:885
Code: ec 38 48 89 54 24 18 49 89 f6 48 89 fb 49 bd 00 00 00 00 00 fc ff df e8 74 26 2b fb 48 8d bb c0 07 00 00 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 74 05 e8 2a 68 92 fb 48 8b 83 c0 07 00 00 48 89 44
RSP: 0018:ffffc900098ef230 EFLAGS: 00010202
RAX: 00000000000000f8 RBX: 0000000000000000 RCX: 0000000000040000
RDX: ffffc90009361000 RSI: 0000000000000e11 RDI: 00000000000007c0
RBP: ffffc900098ef470 R08: ffffffff89cb171d R09: 1ffff110045afc15
R10: dffffc0000000000 R11: ffffffff866864a0 R12: ffffc900098ef3f0
R13: dffffc0000000000 R14: ffffc900098ef740 R15: 0000000000000000
FS:  00007fd6e59826c0(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3673717a8c CR3: 000000002f390000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ethnl_act_cable_test_tdr+0x607/0x10d0 net/ethtool/cabletest.c:360
 genl_family_rcv_msg_doit net/netlink/genetlink.c:1115 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:1195 [inline]
 genl_rcv_msg+0xb14/0xec0 net/netlink/genetlink.c:1210
 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2550
 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1219
 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline]
 netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1357
 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1901
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg+0x221/0x270 net/socket.c:745
 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2597
 ___sys_sendmsg net/socket.c:2651 [inline]
 __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2680
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd6e4b79ef9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fd6e5982038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fd6e4d15f80 RCX: 00007fd6e4b79ef9
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000004
RBP: 00007fd6e4be793e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fd6e4d15f80 R15: 00007fff4d14fd38
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:phy_start_cable_test_tdr+0x3a/0x5c0 drivers/net/phy/phy.c:885
Code: ec 38 48 89 54 24 18 49 89 f6 48 89 fb 49 bd 00 00 00 00 00 fc ff df e8 74 26 2b fb 48 8d bb c0 07 00 00 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 74 05 e8 2a 68 92 fb 48 8b 83 c0 07 00 00 48 89 44
RSP: 0018:ffffc900098ef230 EFLAGS: 00010202
RAX: 00000000000000f8 RBX: 0000000000000000 RCX: 0000000000040000
RDX: ffffc90009361000 RSI: 0000000000000e11 RDI: 00000000000007c0
RBP: ffffc900098ef470 R08: ffffffff89cb171d R09: 1ffff110045afc15
R10: dffffc0000000000 R11: ffffffff866864a0 R12: ffffc900098ef3f0
R13: dffffc0000000000 R14: ffffc900098ef740 R15: 0000000000000000
FS:  00007fd6e59826c0(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000559884a91048 CR3: 000000002f390000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	ec                   	in     (%dx),%al
   1:	38 48 89             	cmp    %cl,-0x77(%rax)
   4:	54                   	push   %rsp
   5:	24 18                	and    $0x18,%al
   7:	49 89 f6             	mov    %rsi,%r14
   a:	48 89 fb             	mov    %rdi,%rbx
   d:	49 bd 00 00 00 00 00 	movabs $0xdffffc0000000000,%r13
  14:	fc ff df
  17:	e8 74 26 2b fb       	call   0xfb2b2690
  1c:	48 8d bb c0 07 00 00 	lea    0x7c0(%rbx),%rdi
  23:	48 89 f8             	mov    %rdi,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1) <-- trapping instruction
  2f:	74 05                	je     0x36
  31:	e8 2a 68 92 fb       	call   0xfb926860
  36:	48 8b 83 c0 07 00 00 	mov    0x7c0(%rbx),%rax
  3d:	48                   	rex.W
  3e:	89                   	.byte 0x89
  3f:	44                   	rex.R

Crashes (57):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/29 09:14 net-next e24a6c874601 ef3de9e8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/28 17:48 net-next e5899b60f52a 940f38c1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/28 14:31 net-next e5899b60f52a 940f38c1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/28 11:17 net-next e5899b60f52a 940f38c1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/27 13:38 net-next 2c163922de69 9aee4e0b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/27 07:38 net-next 2c163922de69 9aee4e0b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/26 20:43 net-next 18aaa82bd36a 9aee4e0b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/26 19:02 net-next 18aaa82bd36a 9aee4e0b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/26 17:56 net-next 18aaa82bd36a 9aee4e0b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/26 16:39 net-next 18aaa82bd36a 9aee4e0b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/26 12:24 net-next 18aaa82bd36a d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/26 12:24 net-next 18aaa82bd36a d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/26 12:24 net-next 18aaa82bd36a d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/26 12:24 net-next 18aaa82bd36a d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/26 05:42 net-next 7d3aed652d09 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/25 21:07 net-next 7d3aed652d09 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/25 20:11 net-next 7d3aed652d09 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/25 20:11 net-next 7d3aed652d09 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/25 20:06 net-next 7d3aed652d09 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/25 07:01 net-next 7d3aed652d09 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/25 06:50 net-next 7d3aed652d09 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/25 06:50 net-next 7d3aed652d09 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/24 23:00 net-next 7d3aed652d09 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/24 23:00 net-next 7d3aed652d09 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/24 12:19 net-next f9db28bb09f4 d7d32352 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/24 10:50 net-next f9db28bb09f4 d7d32352 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/24 09:24 net-next f9db28bb09f4 d7d32352 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/24 07:44 net-next f9db28bb09f4 d7d32352 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/24 06:00 net-next f9db28bb09f4 d7d32352 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/24 04:36 net-next f9db28bb09f4 d7d32352 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/24 02:33 net-next f9db28bb09f4 d7d32352 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/24 00:51 net-next f9db28bb09f4 d7d32352 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/23 23:20 net-next f9db28bb09f4 d7d32352 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/23 21:50 net-next f9db28bb09f4 d7d32352 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/23 20:42 net-next f9db28bb09f4 d7d32352 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/23 19:05 net-next f9db28bb09f4 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/23 19:05 net-next f9db28bb09f4 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/23 19:04 net-next f9db28bb09f4 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/23 19:02 net-next f9db28bb09f4 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/23 19:01 net-next f9db28bb09f4 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/23 18:59 net-next f9db28bb09f4 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/23 18:53 net-next f9db28bb09f4 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/23 18:53 net-next f9db28bb09f4 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/23 18:44 net-next f9db28bb09f4 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/23 18:43 net-next f9db28bb09f4 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/23 18:18 net-next f9db28bb09f4 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/23 18:18 net-next f9db28bb09f4 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in phy_start_cable_test_tdr
2024/08/28 02:53 linux-next 6f923748057a 6c853ff9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in phy_start_cable_test_tdr
2024/08/27 19:14 linux-next 6f923748057a 6c853ff9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in phy_start_cable_test_tdr
* Struck through repros no longer work on HEAD.