Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3030836rwb; Thu, 29 Sep 2022 19:46:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6wYxVdiszQ0UrOrMw6R4hLYqhtUMCP2VQeR7ZN7kNPNi0saEws9bW9vx09OWecZrCkZRFA X-Received: by 2002:a62:1e83:0:b0:545:6896:188 with SMTP id e125-20020a621e83000000b0054568960188mr6643617pfe.51.1664505967024; Thu, 29 Sep 2022 19:46:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664505967; cv=none; d=google.com; s=arc-20160816; b=jcXW7kE+ImPrfQF3UnW8UI4ONyMj/EjkyHvyXuWtyULL3qYokMDA+RP3GPSoZY6ZwD QajyOiy/dmAT7o1KwFik7TUiw7YBUOXdT5qThIY1dharA7oZ+onGF17TiHeG1Wrukw6u O3FcMVGyDmKR4BZCTGuKT87Ymw2rgy92nVmqGcs9jDkY492Vr5ED0PtdPXwlDQzgZtLi M80/kDOs8FJnqADS4GptDAV3K0Kv2yAwy1TVtUP1a1q0KDtu+mo/1z+EAZGaRV6d5nqR 1VbZVmPHC2spKFJERSgIqHpCB4wGF0L/8xX7vKzsntD7PooYvkrb3n96MVSkcCStnOhJ NTEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=4g3YHNpfxlB/eJVQrFFakm9FFjJ5nHaZOVZkew3DpWQ=; b=gw5IA0e5mS8C8x0sZF+5y8hpmgdos4ZSeKr0RJ8+kPGUSYZ2tUqQ3MLHI96eyKp6FO JmzSN8SlqL41C9VKvzs4BORCTH0BH6Ohy6Pq4l8qZvL8L5M4c6gKCIv2qsFCi7cZrdLF jy9k4dLBv7h+DPOoT99pMA0Ix5uyHd62T6U65j2lvWMl+VIhsx8mcPqH9ijjxoKbX9mi PJW+EGicdjBhSKx05c37eol6K2eZVSWeyU36Px5RX3Iy4Zarn9ZCQFM/xrvXdk94qOAM VF9PsXWWflBkSEwpjrW2LFNPHtKJE+VTIZrD4inKOumdYMRzu6pQiK0DM90/S7vLaMvq dqpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=D2d9Hh3R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q21-20020a056a00089500b005409634a162si1323183pfj.317.2022.09.29.19.45.54; Thu, 29 Sep 2022 19:46:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=D2d9Hh3R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229642AbiI3CXi (ORCPT + 99 others); Thu, 29 Sep 2022 22:23:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229723AbiI3CXf (ORCPT ); Thu, 29 Sep 2022 22:23:35 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09DDF1F9C96 for ; Thu, 29 Sep 2022 19:23:35 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id 9so3017696pfz.12 for ; Thu, 29 Sep 2022 19:23:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date; bh=4g3YHNpfxlB/eJVQrFFakm9FFjJ5nHaZOVZkew3DpWQ=; b=D2d9Hh3RNiPYUYTG1BeeCSnshp5oqZunoQG5ed/nujwcAebjSeRv6kN8PnNd8hqzyX X7x8SZGJ6QsVYm+1fiF+vAbLouOsh/CYRmrEl14I0nppfyIF0K5CEo9BkIuH0hxAB25J nwbcxp0EkYBTS2v2yCWXCQlPEW2e3fjJ1jQjW48TGVth6/1Hq5WMZGmazI56jV6px3ii gNWrlv/oSoFTmbajwNXZVE/GCxuSIV1IJ5vbbWxoPDlp80rxymAlxqoxtk/mS/Twy/jc s3fvZnS7+6RmqMj7w5ohsfinPAxo2UzeQnfWaHmgcLizlyrDCN1nE0MLltV8TRElNeYe 31dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=4g3YHNpfxlB/eJVQrFFakm9FFjJ5nHaZOVZkew3DpWQ=; b=0xqa9F5OXRa4KCvdDYw8D9946ZgIkU2ndt2UyYHH4+U5w6/oIpmO8/0+11Z2BV/BHp 7urDqfu8CIpaxM8jInQ93R62+t31J1sQ4mBtLf6Y1ND99mKREGI//xDanHSB31II/3hK hOL+S5CQqp8jq0TAvGnjtFeJldXGdzWiozAWylgwPN9d9JzBUi3+Srf6OB982FS1IflA SEvv5owap3T4drSpnXZseNBP/lVZnu68/XDbQqTiXNokl33cTxCztyoe9Q+E7dA7KOcO /h8H5D2MnAp+8Vzgh8L0dbrZVvmd94KDazfJFAR+d8dsj2lbTVU62p2hqwaAGMqWB8wu 8J+w== X-Gm-Message-State: ACrzQf1DXdKrTUYuytjuvLb4W7cN521Ig7ZR1KWzqFH9w6iwLrSVkHFv 7d8yWSaMeEPcvNQFXQUtABZ19BIX1l3R7tVInuwQ1fvjjWy+43uTYOQ= X-Received: by 2002:a63:6909:0:b0:41c:9f4f:a63c with SMTP id e9-20020a636909000000b0041c9f4fa63cmr5782951pgc.76.1664504614451; Thu, 29 Sep 2022 19:23:34 -0700 (PDT) MIME-Version: 1.0 From: "Sabri N. Ferreiro" Date: Fri, 30 Sep 2022 10:23:23 +0800 Message-ID: Subject: general protection fault in release_urbs To: perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, When I used fuzz testing to test Linux kernel 6.0.0-rc6, the kernel triggered the following error: HEAD commit: 521a547ced6477c54b4b0cc206000406c221b4d6 git tree: upstream kernel config: https://pastebin.com/raw/hekxU61F console log: https://pastebin.com/KVwW9VQs It seems that the fuzzer failed to extract any C reproducer, but I would so appreciate it if you have any idea how to solve this bug. general protection fault, probably for non-canonical address 0xdffffc000000000d: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000068-0x000000000000006f] CPU: 1 PID: 29906 Comm: syz-executor.4 Not tainted 6.0.0-rc6+ #3 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.13.0-1ubuntu1.1 04/01/2014 RIP: 0010:release_urb_ctx sound/usb/endpoint.c:97 [inline] RIP: 0010:release_urbs sound/usb/endpoint.c:1046 [inline] RIP: 0010:release_urbs+0x254/0x5a0 sound/usb/endpoint.c:1031 Code: 44 89 fe 48 c1 e0 08 4c 8b 74 03 58 e8 75 b4 53 fa 45 85 ff 0f 84 29 ff ff ff e8 07 b3 53 fa 49 8d 7e 68 48 89 f8 48 c1 e8 03 <42> 80 3c 20 00 0f 85 32 03 00 00 49 8d 7e 60 49 8b 4e 68 48 89 f8 RSP: 0018:ffffc9001698f8d0 EFLAGS: 00010212 RAX: 000000000000000d RBX: ffff88805fc44000 RCX: 0000000000040000 RDX: ffffc900169d1000 RSI: ffff888018c21d40 RDI: 0000000000000068 RBP: 0000000000000000 R08: ffffffff87273539 R09: 0000000000000000 R10: 0000000000000005 R11: ffffed100bf88805 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000120 FS: 00007febd6e4e700(0000) GS:ffff88807ec00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055555663ddc8 CR3: 0000000065e07000 CR4: 0000000000350ee0 Call Trace: snd_usb_endpoint_set_params+0x1aab/0x2550 snd_mask_min include/sound/pcm_params.h:49 [inline] params_format include/sound/pcm_params.h:315 [inline] snd_usb_hw_params+0x934/0x1180 sound/usb/pcm.c:503 snd_pcm_hw_params+0xbad/0x1da0 sound/core/pcm_native.c:767 snd_pcm_kernel_ioctl+0x164/0x310 sound/core/pcm_native.c:3437 snd_pcm_oss_change_params_locked+0x1834/0x3860 sound/core/oss/pcm_oss.c:976 snd_pcm_oss_change_params+0x76/0xd0 sound/core/oss/pcm_oss.c:1116 snd_pcm_oss_make_ready+0xb7/0x170 sound/core/oss/pcm_oss.c:1175 snd_pcm_oss_get_ptr sound/core/oss/pcm_oss.c:2208 [inline] snd_pcm_oss_ioctl+0x3cd/0x3270 sound/core/oss/pcm_oss.c:2729 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7febd66a80fd Code: 02 b8 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007febd6e4dbf8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007febd679c340 RCX: 00007febd66a80fd RDX: 00000000200000c0 RSI: 00000000800c5011 RDI: 0000000000000003 RBP: 00007febd6e4dc50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000005f R13: 00007ffc28c4cf7f R14: 00007ffc28c4d120 R15: 00007febd6e4dd80 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:release_urb_ctx sound/usb/endpoint.c:97 [inline] RIP: 0010:release_urbs sound/usb/endpoint.c:1046 [inline] RIP: 0010:release_urbs+0x254/0x5a0 sound/usb/endpoint.c:1031 Code: 44 89 fe 48 c1 e0 08 4c 8b 74 03 58 e8 75 b4 53 fa 45 85 ff 0f 84 29 ff ff ff e8 07 b3 53 fa 49 8d 7e 68 48 89 f8 48 c1 e8 03 <42> 80 3c 20 00 0f 85 32 03 00 00 49 8d 7e 60 49 8b 4e 68 48 89 f8 RSP: 0018:ffffc9001698f8d0 EFLAGS: 00010212 RAX: 000000000000000d RBX: ffff88805fc44000 RCX: 0000000000040000 RDX: ffffc900169d1000 RSI: ffff888018c21d40 RDI: 0000000000000068 RBP: 0000000000000000 R08: ffffffff87273539 R09: 0000000000000000 R10: 0000000000000005 R11: ffffed100bf88805 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000120 FS: 00007febd6e4e700(0000) GS:ffff88807ec00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b31424000 CR3: 0000000065e07000 CR4: 0000000000350ee0 ---------------- Code disassembly (best guess): 0: 44 89 fe mov %r15d,%esi 3: 48 c1 e0 08 shl $0x8,%rax 7: 4c 8b 74 03 58 mov 0x58(%rbx,%rax,1),%r14 c: e8 75 b4 53 fa callq 0xfa53b486 11: 45 85 ff test %r15d,%r15d 14: 0f 84 29 ff ff ff je 0xffffff43 1a: e8 07 b3 53 fa callq 0xfa53b326 1f: 49 8d 7e 68 lea 0x68(%r14),%rdi 23: 48 89 f8 mov %rdi,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction 2f: 0f 85 32 03 00 00 jne 0x367 35: 49 8d 7e 60 lea 0x60(%r14),%rdi 39: 49 8b 4e 68 mov 0x68(%r14),%rcx 3d: 48 89 f8 mov %rdi,%rax