Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1207758rbb; Mon, 26 Feb 2024 02:05:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX7dXsJTkBijWBY5s1ruLaLKQem0qLMyH/ub/p9O/ecWRrX3SaklfVcD0m2Y5FEaENbW1QEyl9kol8LXMSRB5x+xN/ci/HuvEeBDPL3yg== X-Google-Smtp-Source: AGHT+IHa2GMIElH/ndm5D6Qrs0GdrAYgK5rt+vQpGDSHDSZPbvZIjtJkw3/1TRFTep++BUikqjAD X-Received: by 2002:a17:906:ce30:b0:a3f:bd94:4d80 with SMTP id sd16-20020a170906ce3000b00a3fbd944d80mr4162758ejb.76.1708941950043; Mon, 26 Feb 2024 02:05:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708941950; cv=pass; d=google.com; s=arc-20160816; b=QypzHIyDdS9o1uvQx8Jd6o5kG+LX66sKnFYkXjHQfRobfDFBiLDaxHyXKZq1uz43Cm VyJ9T3AqVge4yF2uhi6gNBotpZIYgO1PF2JLdxzkXEjG+cKjUL6m4SYxd6oNAUq+Qv9L k1DIKgwPkhKQvPUuZ/fOqKmDMnBs9d+1RUNMUxQJA7qab3JL9aQnwpwaDyYbWObaV4T2 xbRYYpXO6R4m7aeXe1OyKI226m2zhkozKvN2ScdL9qhy7PDPZjESCH2+4TubVUlPBoTl jf/g8zh/VZ1XDap/shBz7BZ6prL9CeBDUtdH7xGHViRAAyvoYLwUf/QN64Xtw2nV3I8s lOeA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=6mzm746klVmYl18EiU1HABrzvIW1GEwskKuL2oGrXzc=; fh=AqUHGOi+CUawrgwSyTOV+d9ICywxtVF7PTDlVaHzk3w=; b=Bkg6E9Y8slgLbef7OWGJAANplnEjakzWJjMHG0g/+6WWtwxrWBjkORrvsBoKBbxHth bIt5HAx58hc5rpLnlXNUDwcuzGkI8Bsk1R9b2U+mE5bNUGFqQWkLHDaDFK/3JwYfdX3M yO1j1LC/dARrFiS0KjfW+MM00EkSuoz0yimKzha1B8VfFPe62anASMsUvxWVmK2LSiwV +aw4RK5c/GO1Bx0sxy/nkSesTRZpGsI0lwkJjt+eINIv7S8aDrAXMZBQBx/9XO0pnKzQ XroppfUQdaeZuZFNNGhWY5BapA+3uf846NN7kppSIHEjGXwmY6EZGphvyudG1qfqQUax L9yg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-81078-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81078-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lm21-20020a170906981500b00a3e9fec0241si1976131ejb.848.2024.02.26.02.05.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 02:05:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81078-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-81078-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81078-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9DE8A1F269E4 for ; Mon, 26 Feb 2024 10:05:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 14D525FF17; Mon, 26 Feb 2024 09:42:30 +0000 (UTC) Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) (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 B7563224CE for ; Mon, 26 Feb 2024 09:42:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708940549; cv=none; b=KqnLIyrToka2EUB0P+mwxYuMnjckvHtO7C97YpSFWSLaZoW7y+LNUzqE29b5bd7lzpaEFm9EWwcvsHfNKXqwIRhg820Os8GFkMfjjCTTtUKYzIm/FiF62QGE1H2Vu8vBF+3J6tA1o9OphzhcPQxTwEt/8tDYOky+ivufT3nDxAI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708940549; c=relaxed/simple; bh=2r+Jg4IirYez90/CeN3v3u34PFYDkfTtbokSRqIaL/M=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=uY6vUyM6bK3SOJoKgNgxvWBeHOISeOjscGEV/+wDGxQ/ixL8QTctlKk8xtr/O1XP0+WeP6zC4gNJrhkKVruqLUA96LITZRpkrm1jo7pItiNVHHPX6NEt4PbLjz1aE7XN0DgYSBmIdG2O4aipkVWqZjjmakZznYbZikdKhL8Kf/I= 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.198 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-f198.google.com with SMTP id e9e14a558f8ab-36512fcf643so19076795ab.1 for ; Mon, 26 Feb 2024 01:42:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708940547; x=1709545347; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=6mzm746klVmYl18EiU1HABrzvIW1GEwskKuL2oGrXzc=; b=C3o5RrDkft03GH/M7DdC0Y0RwbxBY3G13Y4cvZLKsfhFNHeDqeCmBVyAbZe0LvvF2r gm3QUk4ZUD9wFYUo0OUjrock1E8gh7mIzZXlv0UD/X8hVOlj56qAfuYbUJJIZeYz69qP xnNkB2T6CzoLroKhcLy3+1XX/f/gx5ZEVX1Qd2wyr6SLSOkkiNX7h46miHix28ZTj3FW blA7kEmMM7dHUATdB2DKT+Nsuqau3PN3V2lpBpgRD3GKGUGM7+ZdGzvPirLbg38i1TXx CIHrYLSQQwMDbWz7mkeYUylfNSHzCEgLyG97blVpkYkhz6VxzV+ddQqesJ8vybkx5ztT T25g== X-Forwarded-Encrypted: i=1; AJvYcCXdTy4YBqAD4VQ8OySCQgooY0U10AO1H6jqXhmqCNmG93si81tjxileDonzzYQyTASsomkwQX94lWPfHNGnLNI1CiCx4pQC5VPpdwIp X-Gm-Message-State: AOJu0YxcJP6Lqdh8seJCYWhzaS1yLVygD2y+6vyPnENTcodeuT8hpyGD m2EJlSAgKbOOB0LkqEqIkcBDh/BKlbAQmlVmlBYOyQ39sMtN1eJdkIFwYw+iWn++sUWPLGmda9W QP09FvPdZuOMrrJ8+JVTWFMEWAkw04K7dcTI0PYJLOlaTN9zFzuC0UpE= 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:1d86:b0:365:26e3:6e48 with SMTP id h6-20020a056e021d8600b0036526e36e48mr515484ila.0.1708940546977; Mon, 26 Feb 2024 01:42:26 -0800 (PST) Date: Mon, 26 Feb 2024 01:42:26 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000003eb868061245ba7f@google.com> Subject: [syzbot] [usb-storage?] divide error in isd200_ata_command From: syzbot To: bvanassche@acm.org, emilne@redhat.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, martin.petersen@oracle.com, stern@rowland.harvard.edu, syzkaller-bugs@googlegroups.com, tasos@tasossah.com, usb-storage@lists.one-eyed-alien.net Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: f2e367d6ad3b Merge tag 'for-6.8/dm-fix-3' of git://git.ker.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=114e10e4180000 kernel config: https://syzkaller.appspot.com/x/.config?x=eff9f3183d0a20dd dashboard link: https://syzkaller.appspot.com/bug?extid=28748250ab47a8f04100 compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1064b372180000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10aca6ac180000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/c55ca1fdc5ad/disk-f2e367d6.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/4556a82fb4ed/vmlinux-f2e367d6.xz kernel image: https://storage.googleapis.com/syzbot-assets/95338ed9dad1/bzImage-f2e367d6.xz The issue was bisected to: commit 321da3dc1f3c92a12e3c5da934090d2992a8814c Author: Martin K. Petersen Date: Tue Feb 13 14:33:06 2024 +0000 scsi: sd: usb_storage: uas: Access media prior to querying device properties bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=15a3934a180000 final oops: https://syzkaller.appspot.com/x/report.txt?x=17a3934a180000 console output: https://syzkaller.appspot.com/x/log.txt?x=13a3934a180000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+28748250ab47a8f04100@syzkaller.appspotmail.com Fixes: 321da3dc1f3c ("scsi: sd: usb_storage: uas: Access media prior to querying device properties") divide error: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 PID: 5070 Comm: usb-storage Not tainted 6.8.0-rc5-syzkaller-00297-gf2e367d6ad3b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 RIP: 0010:isd200_scsi_to_ata drivers/usb/storage/isd200.c:1318 [inline] RIP: 0010:isd200_ata_command+0x776/0x2380 drivers/usb/storage/isd200.c:1529 Code: 62 fa 49 8d 7c 24 0c 48 89 f8 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 85 00 18 00 00 41 0f b7 5c 24 0c 48 8b 7c 24 18 89 f8 31 d2 f3 41 89 d0 49 83 c4 06 4c 89 e0 48 c1 e8 03 42 0f b6 04 28 84 RSP: 0018:ffffc900043ffc00 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff888023230000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900043ffd50 R08: ffffffff873161fd R09: ffffffff87315c95 R10: 0000000000000008 R11: ffff888023230000 R12: ffff88807f7a0000 R13: dffffc0000000000 R14: ffff888021da1000 R15: ffff88807c10a110 FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000563828985bd8 CR3: 000000002e0cc000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: usb_stor_control_thread+0x4b1/0xa50 drivers/usb/storage/usb.c:368 kthread+0x2ef/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:242 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:isd200_scsi_to_ata drivers/usb/storage/isd200.c:1318 [inline] RIP: 0010:isd200_ata_command+0x776/0x2380 drivers/usb/storage/isd200.c:1529 Code: 62 fa 49 8d 7c 24 0c 48 89 f8 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 85 00 18 00 00 41 0f b7 5c 24 0c 48 8b 7c 24 18 89 f8 31 d2 f3 41 89 d0 49 83 c4 06 4c 89 e0 48 c1 e8 03 42 0f b6 04 28 84 RSP: 0018:ffffc900043ffc00 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff888023230000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900043ffd50 R08: ffffffff873161fd R09: ffffffff87315c95 R10: 0000000000000008 R11: ffff888023230000 R12: ffff88807f7a0000 R13: dffffc0000000000 R14: ffff888021da1000 R15: ffff88807c10a110 FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000563828985bd8 CR3: 000000000df32000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: fa cli 1: 49 8d 7c 24 0c lea 0xc(%r12),%rdi 6: 48 89 f8 mov %rdi,%rax 9: 48 c1 e8 03 shr $0x3,%rax d: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax 12: 84 c0 test %al,%al 14: 0f 85 00 18 00 00 jne 0x181a 1a: 41 0f b7 5c 24 0c movzwl 0xc(%r12),%ebx 20: 48 8b 7c 24 18 mov 0x18(%rsp),%rdi 25: 89 f8 mov %edi,%eax 27: 31 d2 xor %edx,%edx * 29: f7 f3 div %ebx <-- trapping instruction 2b: 41 89 d0 mov %edx,%r8d 2e: 49 83 c4 06 add $0x6,%r12 32: 4c 89 e0 mov %r12,%rax 35: 48 c1 e8 03 shr $0x3,%rax 39: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax 3e: 84 .byte 0x84 --- 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 syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#bisection If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing. If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup