Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp972191imi; Fri, 22 Jul 2022 13:56:48 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s5t/H8M/w5j8CMi1Cux7q9e188AXgJU4xQhkrm8z2R0wtf0Zbdm29pnMmniXMdInje6jSf X-Received: by 2002:a17:906:7e43:b0:72b:52de:b039 with SMTP id z3-20020a1709067e4300b0072b52deb039mr1323351ejr.198.1658523408164; Fri, 22 Jul 2022 13:56:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658523408; cv=none; d=google.com; s=arc-20160816; b=0IA9maZeSVukPsFGde54W84n1nGkpXKVk3xMb+OZf/SNninZLNmU/2mPb99LMc/7l2 dI8ZD1CB2cFB35uI7DB/4rm9Hy2z8wwKt12rydiaXnRxV+9C0qBjeltf20TweEa1NSMm Az/XG8sjzSfrbO7C1cRacu8EgGgD8KTiIakvg33BqNt2AScN8X8UwdHJkRQZ7HPSrxWJ CNoF3v+7ZD6P7XpWFyK6povYhFz5sYM5mA/D6EDx1FpJ5acBL+IbJ3j70grLinVLPuQq jxUbl1kNckYEC2o/7hzxZ5Mo16wMM5eIKj5Qn86ib9259RDqgrMw5mwQA3ryOrGs7f/e VbNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=Wl5gR5vAHlXiQGvKoe9EFXSn+yArqUhIBdK+xeI6k/M=; b=aAMnAcbNUj9trx4XVrFIvhdyGKT0MZTABYXPsP6ltY5QhFXTy1uaQsxclPqlhe0lzW RaXLz2+4Lsfk/tm7AE6TI4eqhX9rqTorcAps0957Osa86N5naO5oYrdU/uOXtpp96/oK uHI7sXofwAmmlKik0vKWT8z8jWb2UqEJVutHFWNT74yXnnNp9LjE+fAk8oh9JmYciXJh oM7dMQBxNzZ59dw/1QloNdZccijW3NXER5+soEABKB5jTI7K/c0RRrLdC/HbH1XseB3+ eq6lwoIj2b4/WGiPGryu6iuAybv07hZSUNc3coc72yqWrotz0BF/pG5PnbglqKBGhqYO JMzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Lz9uJrdx; 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 d14-20020a170906c20e00b0072b61694e92si6043824ejz.350.2022.07.22.13.56.22; Fri, 22 Jul 2022 13:56:48 -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=Lz9uJrdx; 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 S235386AbiGVUlA (ORCPT + 99 others); Fri, 22 Jul 2022 16:41:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234699AbiGVUk6 (ORCPT ); Fri, 22 Jul 2022 16:40:58 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 471B9193C1; Fri, 22 Jul 2022 13:40:57 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id l23so10486095ejr.5; Fri, 22 Jul 2022 13:40:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to:cc; bh=Wl5gR5vAHlXiQGvKoe9EFXSn+yArqUhIBdK+xeI6k/M=; b=Lz9uJrdxJEztDateAo2xQ+agvqiJTi4lZnSKk/QSJuF5521OYK3I1DG4mvz491goVx /rf6//NUYX0eUOYlJTd/FwdkHz7ycQMSjyahbTePTx4/hik7KMw0XukxExbYqwX5f/wU SQlPQC+7i0ZdoYy593o74U4452LXHHiicEbEAnDJrqZhwvIPfdaLgDuBcJWO9vYPcF1f CPMFEwkfH2jz6GAS4ZJnx++VH+lQvi7HgWHTPChi8VZVdY1KZA410mxVKfZDrYuSJ58u o5dpikscTjN2s/5nlMiOl7pOm8OWw0GpRXNTlfO29KLJBWP6cL/vKg5qVa+IoFtna6YN irVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=Wl5gR5vAHlXiQGvKoe9EFXSn+yArqUhIBdK+xeI6k/M=; b=DsShzCWOR2W51wNmgh8woUtSFJvFuE8qGOMxcYoum+TkGZo0TqbVgPL4C67kHIOobV NLc1cuGnfWCzoC9DOWhOlhePtCUszDw0EexMVHBrPUWtQ7AvHMdw2nZfI5abQlZbWib/ nZ0YBbnEDLwhPA2OTTLYTWZ7G2U1NCOpipUyh+Gt7fIXOgOlOBataQ3HR1YDmGJHL3Ao sD9DOLXOt+ZeYPEapFHE4M0NK1XzrBVP7IUN+pM2BURwC2hZ4+jcG1AuX/zAo08qhheP t7DBF2KKfHz+5hKinszyCThegg4pttEfeok8sJTFQIfP1jCYXzqr78D7PngKf39COonn kfAw== X-Gm-Message-State: AJIora/r2zMz4AmjLaluwm8xArXNN84opL/o81eTzjUSJ66VEk0ULhuI m3JTMOhRqS781q6zW84IFgEN/Md3jXNZUMz+Kv0bfqXJ6tcXc3Jv X-Received: by 2002:a17:906:9be4:b0:72b:cf9:99d8 with SMTP id de36-20020a1709069be400b0072b0cf999d8mr1218367ejc.747.1658522455547; Fri, 22 Jul 2022 13:40:55 -0700 (PDT) MIME-Version: 1.0 From: Dipanjan Das Date: Fri, 22 Jul 2022 13:40:44 -0700 Message-ID: Subject: general protection fault in start_motor To: efremov@linux.com, axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Cc: syzkaller@googlegroups.com, fleischermarius@googlemail.com, its.priyanka.bose@gmail.com Content-Type: multipart/mixed; boundary="000000000000d0e73005e46ad9bf" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 --000000000000d0e73005e46ad9bf Content-Type: text/plain; charset="UTF-8" Hi, We would like to report the following bug which has been found by our modified version of syzkaller. ====================================================== description: general protection fault in start_motor affected file: drivers/block/floppy.c kernel version: 5.10.131 kernel commit: de62055f423f5dcb548f74cebd68f03c8903f73a git tree: upstream kernel config: https://syzkaller.appspot.com/x/.config?x=e49433cfed49b7d9 crash reproducer: attached ====================================================== Crash log: ====================================================== general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 PID: 8820 Comm: kworker/u4:48 Tainted: G OE 5.10.131+ #3 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.13.0-1ubuntu1.1 04/01/2014 Workqueue: floppy fd_timer_workfn RIP: 0010:start_motor+0x3a/0x3f0 drivers/block/floppy.c:1905 Code: 08 e8 4a 15 1c fd 48 8b 1d 03 30 4d 0b 48 b8 00 00 00 00 00 fc ff df 0f b6 2d 72 22 4d 0b 48 89 da 48 c1 ea 03 89 e9 41 89 ed <0f> b6 04 02 83 e1 03 41 83 e5 03 84 c0 74 08 3c 03 0f 8e be 02 00 RSP: 0018:ffffc90000a47cc0 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff845483d6 RDI: ffffffff84549f90 RBP: 0000000000000000 R08: ffff88803a2b1ac0 R09: fffffbfff19dad22 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff84549f90 R13: 0000000000000000 R14: ffff88810c148000 R15: ffff888100069800 FS: 0000000000000000(0000) GS:ffff88811a000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2fb22000 CR3: 000000002daa9001 CR4: 0000000000170ef0 Call Trace: floppy_ready+0x7f/0x1950 drivers/block/floppy.c:1932 process_one_work+0x953/0x15c0 kernel/workqueue.c:2279 worker_thread+0x96/0xe20 kernel/workqueue.c:2425 kthread+0x374/0x490 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 Modules linked in: uio_ivshmem(OE) uio(E) ---[ end trace 345300e45e5eb538 ]--- RIP: 0010:start_motor+0x3a/0x3f0 drivers/block/floppy.c:1905 Code: 08 e8 4a 15 1c fd 48 8b 1d 03 30 4d 0b 48 b8 00 00 00 00 00 fc ff df 0f b6 2d 72 22 4d 0b 48 89 da 48 c1 ea 03 89 e9 41 89 ed <0f> b6 04 02 83 e1 03 41 83 e5 03 84 c0 74 08 3c 03 0f 8e be 02 00 RSP: 0018:ffffc90000a47cc0 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff845483d6 RDI: ffffffff84549f90 RBP: 0000000000000000 R08: ffff88803a2b1ac0 R09: fffffbfff19dad22 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff84549f90 R13: 0000000000000000 R14: ffff88810c148000 R15: ffff888100069800 FS: 0000000000000000(0000) GS:ffff88811a000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fee2b352038 CR3: 00000000425db005 CR4: 0000000000170ef0 ---------------- Code disassembly (best guess): 0: 08 e8 or %ch,%al 2: 4a 15 1c fd 48 8b rex.WX adc $0xffffffff8b48fd1c,%rax 8: 1d 03 30 4d 0b sbb $0xb4d3003,%eax d: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 14: fc ff df 17: 0f b6 2d 72 22 4d 0b movzbl 0xb4d2272(%rip),%ebp # 0xb4d2290 1e: 48 89 da mov %rbx,%rdx 21: 48 c1 ea 03 shr $0x3,%rdx 25: 89 e9 mov %ebp,%ecx 27: 41 89 ed mov %ebp,%r13d * 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2e: 83 e1 03 and $0x3,%ecx 31: 41 83 e5 03 and $0x3,%r13d 35: 84 c0 test %al,%al 37: 74 08 je 0x41 39: 3c 03 cmp $0x3,%al 3b: 0f .byte 0xf 3c: 8e .byte 0x8e 3d: be .byte 0xbe 3e: 02 00 add (%rax),%al -- Thanks and Regards, Dipanjan --000000000000d0e73005e46ad9bf Content-Type: text/x-csrc; charset="US-ASCII"; name="repro.c" Content-Disposition: attachment; filename="repro.c" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_l5wxehxo0 Ly8gYXV0b2dlbmVyYXRlZCBieSBzeXprYWxsZXIgKGh0dHBzOi8vZ2l0aHViLmNvbS9nb29nbGUv c3l6a2FsbGVyKQoKI2RlZmluZSBfR05VX1NPVVJDRSAKCiNpbmNsdWRlIDxkaXJlbnQuaD4KI2lu Y2x1ZGUgPGVuZGlhbi5oPgojaW5jbHVkZSA8ZXJybm8uaD4KI2luY2x1ZGUgPGZjbnRsLmg+CiNp bmNsdWRlIDxwdGhyZWFkLmg+CiNpbmNsd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FzZSA0OgptZW1jcHkoKHZvaWQqKTB4MjAwMDAwMDAsICIvZGV2 L2ZkI1wwMDAiLCA5KTsKc3l6X29wZW5fZGV2KDB4MjAwMDAwMDAsIC0xLCAweDQwMDApOwoJCWJy ZWFrOwoJY2FzZSA1OgoJCXN5c2NhbGwoX19OUl9pb2N0bCwgclswXSwgMHgyNDEsIDApOwoJCWJy ZWFrOwoJY2FzZSA2OgoJCXN5c2NhbGwoX19OUl9pb2N0bCwgclswXSwgMHgyNDcsIDApOwoJCWJy ZWFrOwoJY2FzZSA3OgpzeXpfb3Blbl9kZXYoMCwgOCwgMHgyMDApOwoJCWJyZWFrOwoJY2FzZSA4 OgoqKHVpbnQzMl90KikweDIwMDAwMTgwID0gMjsKCQlzeXNjYWxsKF9fTlJfc2V0c29ja29wdCwg LTEsIDYsIDB4MTQsIDB4MjAwMDAxODB1bCwgNHVsKTsKCQlicmVhazsKCWNhc2UgOToKCQlzeXNj YWxsKF9fTlJfaW9jdGwsIHJbMF0sIDB4MjQ3LCAwKTsKCQlicmVhazsKCX0KCn0KaW50IG1haW4o dm9pZCkKewoJCXN5c2NhbGwoX19OUl9tbWFwLCAweDFmZmZmMDAwdWwsIDB4MTAwMHVsLCAwdWws IDB4MzJ1bCwgLTEsIDB1bCk7CglzeXNjYWxsKF9fTlJfbW1hcCwgMHgyMDAwMDAwMHVsLCAweDEw MDAwMDB1bCwgN3VsLCAweDMydWwsIC0xLCAwdWwpOwoJc3lzY2FsbChfX05SX21tYXAsIDB4MjEw MDAwMDB1bCwgMHgxMDAwdWwsIDB1bCwgMHgzMnVsLCAtMSwgMHVsKTsKCWZvciAocHJvY2lkID0g MDsgcHJvY2lkIDwgODsgcHJvY2lkKyspIHsKCQlpZiAoZm9yaygpID09IDApIHsKCQkJbG9vcCgp OwoJCX0KCX0KCXNsZWVwKDEwMDAwMDApOwoJcmV0dXJuIDA7Cn0K --000000000000d0e73005e46ad9bf Content-Type: application/octet-stream; name="repro.syz" Content-Disposition: attachment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