lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <001a114aa95cfa4339055cd4e8e0@google.com>
Date:   Tue, 31 Oct 2017 03:06:35 -0700
From:   syzbot 
        <bot+1ff6f9fcc3c35f1c72a95e26528c8e7e3276e4da@...kaller.appspotmail.com>
To:     linux-ide@...r.kernel.org, linux-kernel@...r.kernel.org,
        syzkaller-bugs@...glegroups.com, tj@...nel.org
Subject: BUG: unable to handle kernel paging request in ata_bmdma_qc_prep

Hello,

syzkaller hit the following crash on  
1f183459b5144384e2669a3f757d36bacab108cf
git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master
compiler: gcc (GCC) 7.1.1 20170620
.config is attached
Raw console output is attached.
C reproducer is attached
syzkaller reproducer is attached. See https://goo.gl/kgGztJ
for information about syzkaller reproducers


IP: ata_bmdma_fill_sg drivers/ata/libata-sff.c:2650 [inline]
IP: ata_bmdma_qc_prep+0x30a/0x3d0 drivers/ata/libata-sff.c:2727
PGD 7fff6067 P4D 7fff6067 PUD 0
Oops: 0000 [#1] SMP KASAN
Dumping ftrace buffer:
    (ftrace buffer empty)
Modules linked in:
CPU: 0 PID: 2984 Comm: syzkaller781870 Not tainted 4.13.0-next-20170915+ #5
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011
task: ffff88006afb03c0 task.stack: ffff88006caa0000
RIP: 0010:ata_bmdma_fill_sg drivers/ata/libata-sff.c:2650 [inline]
RIP: 0010:ata_bmdma_qc_prep+0x30a/0x3d0 drivers/ata/libata-sff.c:2727
RSP: 0018:ffff88006caa7040 EFLAGS: 00010807
RAX: dffffc0000000000 RBX: ffff88086b6d7ff8 RCX: ffff88003ae23340
RDX: 1ffff1010d6dafff RSI: 0000000000000001 RDI: ffff88086b6d7ffc
RBP: ffff88006caa70a0 R08: ffff88006b710234 R09: ffff88006b710238
R10: 0000000000000003 R11: ffffed000d6e2043 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: dffffc0000000000
FS:  0000000001071880(0000) GS:ffff88003ec00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed010d6dafff CR3: 000000003d9a9000 CR4: 00000000000006f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
  ata_qc_issue+0x625/0xea0 drivers/ata/libata-core.c:5410
  ata_scsi_translate+0x34a/0x5e0 drivers/ata/libata-scsi.c:2023
  __ata_scsi_queuecmd drivers/ata/libata-scsi.c:4325 [inline]
  ata_scsi_queuecmd+0x2ae/0x6b0 drivers/ata/libata-scsi.c:4374
  scsi_dispatch_cmd+0x432/0xb60 drivers/scsi/scsi_lib.c:1712
  scsi_request_fn+0xdf0/0x1e50 drivers/scsi/scsi_lib.c:1847
  __blk_run_queue_uncond block/blk-core.c:376 [inline]
  __blk_run_queue+0x1a6/0x370 block/blk-core.c:396
  blk_execute_rq_nowait+0x200/0x310 block/blk-exec.c:78
  sg_common_write.isra.17+0xbf8/0x1cb0 drivers/scsi/sg.c:806
  sg_write+0x7a6/0xca0 drivers/scsi/sg.c:677
  __vfs_write+0xef/0x970 fs/read_write.c:479
  vfs_write+0x18f/0x510 fs/read_write.c:543
  SYSC_write fs/read_write.c:588 [inline]
  SyS_write+0xef/0x220 fs/read_write.c:580
  entry_SYSCALL_64_fastpath+0x1f/0xbe
RIP: 0033:0x4391a9
RSP: 002b:00007ffdb9e3ae48 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004391a9
RDX: 00000000000000c7 RSI: 0000000020515000 RDI: 0000000000000003
RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000000000fe R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000401e00 R14: 0000000000401e90 R15: 0000000000000000
Code: 41 8d 5e ff e8 18 5c 07 fe 48 c1 e3 03 e8 0f 5c 07 fe 48 03 5d c8 48  
b8 00 00 00 00 00 fc ff df 48 8d 7b 04 48 89 fa 48 c1 ea 03 <0f> b6 14 02  
48 89 f8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 0c
RIP: ata_bmdma_fill_sg drivers/ata/libata-sff.c:2650 [inline] RSP:  
ffff88006caa7040
RIP: ata_bmdma_qc_prep+0x30a/0x3d0 drivers/ata/libata-sff.c:2727 RSP:  
ffff88006caa7040
CR2: ffffed010d6dafff
---[ end trace f22b269ecd4dbac4 ]---


---
This bug is generated by a dumb bot. It may contain errors.
See https://goo.gl/tpsmEJ for details.
Direct all questions to syzkaller@...glegroups.com.
Please credit me with: Reported-by: syzbot

syzbot will keep track of this bug report.
Once a fix for this bug is committed, please reply to this email with:
#syz fix: exact-commit-title
To mark this as a duplicate of another syzbot report, please reply with:
#syz dup: exact-subject-of-another-report
If it's a one-off invalid bug report, please reply with:
#syz invalid
Note: if the crash happens again, it will cause creation of a new bug  
report.
Note: all commands must start from beginning of the line.

View attachment "config.txt" of type "text/plain" (123749 bytes)

Download attachment "raw.log" of type "application/octet-stream" (5760 bytes)

View attachment "repro.txt" of type "text/plain" (977 bytes)

Download attachment "repro.c" of type "application/octet-stream" (5018 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ