From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f197.google.com (mail-il1-f197.google.com [209.85.166.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9FA71E495 for ; Fri, 24 Jan 2025 11:32:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737718325; cv=none; b=WwJkA6ccpRe9TxYBZmCBePyVU2vH/Y7uR3d458pvDIxTZ8buXPtiP0RCqrZ+Ok4XfblVkaVN82gOpN/q3/6aAD5Mzb6luJSW1p1P9Jc3bRsgNvOEnsKbYq5hiHKolKjpWqLCCcRsONTTRxO1z1cfHIS+kKh/HLstmrcdhOC8HQ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737718325; c=relaxed/simple; bh=wpONFRdZ2mq5xHXRvhrKPS8307fY52nK128WI4aRfpw=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=RMdPlL+DVXu0HY+v13J4I4X8F3gi8nk2f4g2kjBegtCjPKeIEtQQwZ261Ygq/desr2cQ4kncLFxfsygMSH5LdbwYwuJNmzU2NmaXxEEjrmwT65k+RzQs/ti59bHeCkUaWrIDACL9lLt1cmLkBFXWUGUXC3oJZd7i+B4MxGJhWZw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-il1-f197.google.com with SMTP id e9e14a558f8ab-3cfc9a168ecso2968565ab.0 for ; Fri, 24 Jan 2025 03:32:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737718323; x=1738323123; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QdBJSD15qJZshueYFdkZpa+r/dbEezh3+oHb5EPhsD4=; b=qMZ66hG3nZ6mjdWQaO1i7hEk0696SPXMBsMPdzHz7l5wfFG41FO8P4taKTAx1+BQ62 zx3zynBvFKeWM8xtaSVMntl+5XQiT+v66DwcYBTsWJmVPPG5iNkhMoXErnJHcKVOA2Ox ntSQif/n83ynvsrc24mgAdn2HTNS2y7qyMhIBx22Sb6t5FbCF3Eeztmh6w4QKyQqbVXo 8tGKbIOowHYWMcyGxLd5LvGcxFHrgoPmCM2lycgC/FhoYu/QB5rv2hGP12G+SRbQhaTp SmzY4raocptng7+x0T0iR5LjxnVfsL+Q1dH3Xt+21C8RygYEfbUi3rvzLSWxSqab3UBS 8RfA== X-Forwarded-Encrypted: i=1; AJvYcCWlkLyu75pT/jJH7r60KWw474MBV73KqS9LkigpNgIyyx3kNSMCVLcQ6HkZcwF0XqJSUviL0JA6b9VbA/I=@vger.kernel.org X-Gm-Message-State: AOJu0YzOAsYYWNaVDx0CqB6Lo++zeOpbVGID8ApeVtJBMBRqtr6WT+98 IKGKHijtsCUZEmVLcAp/JXF0KRtWf1q1ELWeDAh75htOuS6OsALxKLa7SXU6MQ1uKB78FpPwOpl KfERUpRx3ur8uGe6Hptn421lMWoF9gF1FfKEFMjlwQUcoWQcNNIfrtlk= X-Google-Smtp-Source: AGHT+IGEvX206L/FE4OAqKMxRSmYazvtupRZJgmZ78Dr8Ei5pSQfX0tdoB20ySey012DKbhcNPwu4dpni3e65z6IJaIsk8pV1SHC Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:4409:b0:3cf:ad21:b7d7 with SMTP id e9e14a558f8ab-3cfad21ba46mr103968795ab.9.1737718322763; Fri, 24 Jan 2025 03:32:02 -0800 (PST) Date: Fri, 24 Jan 2025 03:32:02 -0800 In-Reply-To: <20250124111744.1807-1-hdanton@sina.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <67937a32.050a0220.2eae65.001b.GAE@google.com> Subject: Re: [syzbot] [usb?] general protection fault in status_show From: syzbot To: hdanton@sina.com, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: general protection fault in usb_hcd_is_primary_hcd Oops: general protection fault, probably for non-canonical address 0xdffffc000000007a: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x00000000000003d0-0x00000000000003d7] CPU: 0 UID: 0 PID: 6619 Comm: syz.0.16 Not tainted 6.13.0-syzkaller-gbc8198dc7ebc-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:usb_hcd_is_primary_hcd+0x26/0x70 drivers/usb/core/hcd.c:2699 Code: 90 90 90 90 f3 0f 1e fa 55 53 48 89 fb e8 72 77 b0 fa 48 8d bb d0 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 3b 48 8b ab d0 03 00 00 48 85 ed 74 1c e8 43 77 b0 RSP: 0018:ffffc90003257ac0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff875ac534 RDX: 000000000000007a RSI: ffffffff86e896be RDI: 00000000000003d0 RBP: ffff888033124000 R08: 0000000000000005 R09: 0000000000000000 R10: 000000000000000f R11: 64666b636f732020 R12: 1ffff9200064af61 R13: 0000000000000000 R14: ffff88803312402d R15: 000000000000000f FS: 00007f4de32746c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2ee5ffff CR3: 000000001e2cc000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: status_show_vhci drivers/usb/usbip/vhci_sysfs.c:79 [inline] status_show+0x2e1/0x5e0 drivers/usb/usbip/vhci_sysfs.c:162 dev_attr_show+0x53/0xe0 drivers/base/core.c:2423 sysfs_kf_seq_show+0x223/0x3e0 fs/sysfs/file.c:59 seq_read_iter+0x4f4/0x12b0 fs/seq_file.c:230 kernfs_fop_read_iter+0x414/0x580 fs/kernfs/file.c:279 new_sync_read fs/read_write.c:484 [inline] vfs_read+0x886/0xbf0 fs/read_write.c:565 ksys_read+0x12b/0x250 fs/read_write.c:708 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4de2385d29 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:00007f4de3274038 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f4de2575fa0 RCX: 00007f4de2385d29 RDX: 0000000000000062 RSI: 0000000020001080 RDI: 0000000000000003 RBP: 00007f4de2401b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f4de2575fa0 R15: 00007ffe71b07568 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:usb_hcd_is_primary_hcd+0x26/0x70 drivers/usb/core/hcd.c:2699 Code: 90 90 90 90 f3 0f 1e fa 55 53 48 89 fb e8 72 77 b0 fa 48 8d bb d0 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 3b 48 8b ab d0 03 00 00 48 85 ed 74 1c e8 43 77 b0 RSP: 0018:ffffc90003257ac0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff875ac534 RDX: 000000000000007a RSI: ffffffff86e896be RDI: 00000000000003d0 RBP: ffff888033124000 R08: 0000000000000005 R09: 0000000000000000 R10: 000000000000000f R11: 64666b636f732020 R12: 1ffff9200064af61 R13: 0000000000000000 R14: ffff88803312402d R15: 000000000000000f FS: 00007f4de32746c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5e99d20440 CR3: 000000001e2cc000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 90 nop 1: 90 nop 2: 90 nop 3: 90 nop 4: f3 0f 1e fa endbr64 8: 55 push %rbp 9: 53 push %rbx a: 48 89 fb mov %rdi,%rbx d: e8 72 77 b0 fa call 0xfab07784 12: 48 8d bb d0 03 00 00 lea 0x3d0(%rbx),%rdi 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 75 3b jne 0x6b 30: 48 8b ab d0 03 00 00 mov 0x3d0(%rbx),%rbp 37: 48 85 ed test %rbp,%rbp 3a: 74 1c je 0x58 3c: e8 .byte 0xe8 3d: 43 77 b0 rex.XB ja 0xfffffff0 Tested on: commit: bc8198dc Merge tag 'sched_ext-for-6.14' of git://git.k.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=132315df980000 kernel config: https://syzkaller.appspot.com/x/.config?x=77593a73383cac88 dashboard link: https://syzkaller.appspot.com/bug?extid=83976e47ec1ef91e66f1 compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 patch: https://syzkaller.appspot.com/x/patch.diff?x=1041e9f8580000