Received: by 10.213.65.68 with SMTP id h4csp1983699imn; Thu, 29 Mar 2018 15:03:34 -0700 (PDT) X-Google-Smtp-Source: AIpwx48Ya77i0pMcArZv8NyzAbXI8vLeqn2pIMTcwDabwC+Ephle3jj7xZ5SdsVc3/Aq5trPcrdw X-Received: by 2002:a17:902:86:: with SMTP id a6-v6mr10366266pla.298.1522361014753; Thu, 29 Mar 2018 15:03:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522361014; cv=none; d=google.com; s=arc-20160816; b=ur3NYhPvvLW2ws39ykLxHe7uX4ExcM0qQJau+Kcg/B0AkOtViYrIXnh5vErDR+emuj g7ZsfHqXPgzd6GeX48uCI+ivIJOJSJ4vN8KtMxddzr1ZzR9cR4Idve8cQQYEgE/AMj+5 41te9PGGTun26psVzSSzCZNFzBHMNu+1riPbi8u80D+ZwnS/RTvKfStZqXVCxUVTaKyr l+NzjK8WIfwOhz7mWF48vk4j5NAm9qXanPetQZBai0avUtNSvV0bNg2xVQtEDCwzQtFo qp2IPSAlkikVCEtA1bHGijN0lbmLI48zCGYA0Tf9MX6vVWk/JrElHPFIyD4HLu6RlBqR 3eJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:date :mime-version:arc-authentication-results; bh=rTITDGwDMzb9wz59t4J29aq8ZznSEfFH9TYHUM0CAfE=; b=mg91VSZ/F11bdj/6jEW0RVz8yQ8CebSGzoxE9afeiWVn2D/f/NEkGTqcETQkSHPrso /v0Qdb/KkpVVtN9qtb94Z2sBNefCGN20iZorKPdDuZx6VXMwPxH07BM0EF2tJr2Srr23 q4gMrLoX9eF+jhOHhkC/8ICey+qhEP05ZYT0NBHgJebliSFeYT9WtWsOKfiYVdrHmd1M k/m8d4oMwrxnjGZNoP1TNFh7jEWg8MLBd9Op30mqplRk3w1zSI+nYXa9fj/a+HFu+5aP UTVn10erhpGrFgQuSPEvnk6cO6he8C5QWEDpHEXudqlOyEE+WaBlQmctOpd5OXsfG2Jr zhlA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g22-v6si7019209pli.527.2018.03.29.15.03.20; Thu, 29 Mar 2018 15:03:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752247AbeC2WBG (ORCPT + 99 others); Thu, 29 Mar 2018 18:01:06 -0400 Received: from mail-io0-f199.google.com ([209.85.223.199]:42324 "EHLO mail-io0-f199.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750735AbeC2WBD (ORCPT ); Thu, 29 Mar 2018 18:01:03 -0400 Received: by mail-io0-f199.google.com with SMTP id t18so3655260ioa.9 for ; Thu, 29 Mar 2018 15:01:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=rTITDGwDMzb9wz59t4J29aq8ZznSEfFH9TYHUM0CAfE=; b=gZ5S4Q/jvpzUDPCvv/GJJH6AM1FPPZJ8lI3N9kRZqeoq4enr0u1toO5HNu3HYs4Hn3 062gq95zRuA9ZABMFMyvFahl/WSTSkU+9UkN2svCL+NxhhdcIDPStecyfGXXp3x15hI2 glG/8k8XVAERCSUYTzDcSdas7k5P8+89kFrjkDF+lOU7NAoeIt46HBzAgw0aDd3Gg67U pow8ABM1UMYLWtr491NeDhiF9gp9zW7h0x95g5QuPesjuUQuAQ1PG88rz34bN+JK+wCO VwVQIoYEVt8uF3ftiZFosfjjcvtf1zmQgZUFH3fhYYrnWk6wi5PxPlBQ551Y1ipc0Mvm m+lw== X-Gm-Message-State: AElRT7FOo7XSHMGf2xxIsNm6V4yARihuyX+fFgoa4YDxgeYezBGgiVgp z5YTdaDp8gX47wmoEB9Z+dNlqWNEB1W35aed2JLvAXYbRsd1 MIME-Version: 1.0 X-Received: by 10.107.183.4 with SMTP id h4mr22859362iof.99.1522360862430; Thu, 29 Mar 2018 15:01:02 -0700 (PDT) Date: Thu, 29 Mar 2018 15:01:02 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <94eb2c0b8e086ce11505689442f9@google.com> Subject: KASAN: stack-out-of-bounds Read in rdma_bind_addr (2) From: syzbot To: dasaratharaman.chandramouli@intel.com, dledford@redhat.com, jgg@ziepe.ca, leonro@mellanox.com, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, markb@mellanox.com, monis@mellanox.com, parav@mellanox.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot hit the following crash on upstream commit 0b412605ef5f5c64b31f19e2910b1d5eba9929c3 (Thu Mar 29 01:07:23 2018 +0000) Merge tag 'drm-fixes-for-v4.16-rc8' of git://people.freedesktop.org/~airlied/linux syzbot dashboard link: https://syzkaller.appspot.com/bug?extid=4b6afe4bdd99cb99e664 So far this crash happened 4 times on upstream. C reproducer: https://syzkaller.appspot.com/x/repro.c?id=6021023174492160 syzkaller reproducer: https://syzkaller.appspot.com/x/repro.syz?id=6269942299099136 Raw console output: https://syzkaller.appspot.com/x/log.txt?id=6347752745205760 Kernel config: https://syzkaller.appspot.com/x/.config?id=-8440362230543204781 compiler: gcc (GCC) 7.1.1 20170620 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+4b6afe4bdd99cb99e664@syzkaller.appspotmail.com It will help syzbot understand when the bug is fixed. See footer for details. If you forward the report, please keep this part and the footer. ================================================================== BUG: KASAN: stack-out-of-bounds in memcpy include/linux/string.h:345 [inline] BUG: KASAN: stack-out-of-bounds in rdma_bind_addr+0x13b/0x1d60 drivers/infiniband/core/cma.c:3361 Read of size 48 at addr ffff8801af717a50 by task syzkaller366236/4421 CPU: 0 PID: 4421 Comm: syzkaller366236 Not tainted 4.16.0-rc7+ #5 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x194/0x24d lib/dump_stack.c:53 print_address_description+0x73/0x250 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report+0x23c/0x360 mm/kasan/report.c:412 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x137/0x190 mm/kasan/kasan.c:267 memcpy+0x23/0x50 mm/kasan/kasan.c:302 memcpy include/linux/string.h:345 [inline] rdma_bind_addr+0x13b/0x1d60 drivers/infiniband/core/cma.c:3361 ucma_bind_ip+0x10a/0x190 drivers/infiniband/core/ucma.c:639 ucma_write+0x2d6/0x3d0 drivers/infiniband/core/ucma.c:1649 __vfs_write+0xef/0x970 fs/read_write.c:480 vfs_write+0x189/0x510 fs/read_write.c:544 SYSC_write fs/read_write.c:589 [inline] SyS_write+0xef/0x220 fs/read_write.c:581 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x43fdd9 RSP: 002b:00007ffc69ab4bb8 EFLAGS: 00000217 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fdd9 RDX: 0000000000000090 RSI: 0000000020000080 RDI: 0000000000000003 RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8 R10: 00000000004002c8 R11: 0000000000000217 R12: 0000000000401700 R13: 0000000000401790 R14: 0000000000000000 R15: 0000000000000000 The buggy address belongs to the page: page:ffffea0006bdc5c0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0x2fffc0000000000() raw: 02fffc0000000000 0000000000000000 0000000000000000 00000000ffffffff raw: 0000000000000000 ffffea0006bd0101 0000000000000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801af717900: 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 04 f2 ffff8801af717980: f2 f2 f2 f2 f2 f2 04 f2 f2 f2 f3 f3 f3 f3 00 00 > ffff8801af717a00: 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 f2 f2 ^ ffff8801af717a80: f2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 ffff8801af717b00: f1 f1 f1 00 f2 f2 f2 f3 f3 f3 f3 00 00 00 00 00 ================================================================== --- This bug is generated by a dumb bot. It may contain errors. See https://goo.gl/tpsmEJ for details. Direct all questions to syzkaller@googlegroups.com. syzbot will keep track of this bug report. If you forgot to add the Reported-by tag, once the fix for this bug is merged into any tree, please reply to this email with: #syz fix: exact-commit-title If you want to test a patch for this bug, please reply with: #syz test: git://repo/address.git branch and provide the patch inline or as an attachment. 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 in the email body.