From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.4 required=3.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A75DFC2BA1E for ; Mon, 6 Apr 2020 18:16:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 90DD92064A for ; Mon, 6 Apr 2020 18:16:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726865AbgDFSQO (ORCPT ); Mon, 6 Apr 2020 14:16:14 -0400 Received: from mail-il1-f199.google.com ([209.85.166.199]:56950 "EHLO mail-il1-f199.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726523AbgDFSQO (ORCPT ); Mon, 6 Apr 2020 14:16:14 -0400 Received: by mail-il1-f199.google.com with SMTP id 191so15830377ilb.23 for ; Mon, 06 Apr 2020 11:16:13 -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=ZJqNZn8LEubj1nzduXSuA2Dna6rbbp3U6TLqK8HEJm8=; b=mW8Aff6L/M4Olg20/JFNN/1wDWgjfi9C38d0OOAb/K5i3dghZ+68/i9F73/JyZlg9R 5eGKsIrVCuVLfay6tmn19Z2DjPYVEmuXYatvpW/rggeCA/ZrA3MY9L0GA4nPxWOuu0Rn BanwI5/Cqw5aACwlOOhCRpwNT424QekPvRgsB7aVl6dXGcGI+33KtrirPl5ZCL6fjcJJ LeHKYnDIeXZjNKE2a7ctO5CNZdsd+prS98YEuM1ApOBjZwH4CPuTADcMdt7+qnYQHOAX BgQ3xDQAoMN+DfxnTJmJxC36FTWLp3hJYOimOemJY5sz1lYzKqdVIoflTrr4Sfp/PL2x th2w== X-Gm-Message-State: AGi0PuZMWHhQ8Ah/hrvn/wrutW+GvXVfX/VmuRsx8X1MPTA27oXDOrua xhtOAysmiZ3j1vCaveJkRqjz3G7O7tjT09V+Rrg6jHIwow5d X-Google-Smtp-Source: APiQypL4+QSe/MgeSLSE1bofXL2FFuFiqWpUKjOZwV45cWKksWyjWgBnRov9afCG8lwmxhCKWvQhwESESc/Hf4m1TMd28QTp45C1 MIME-Version: 1.0 X-Received: by 2002:a02:a49a:: with SMTP id d26mr561686jam.117.1586196973157; Mon, 06 Apr 2020 11:16:13 -0700 (PDT) Date: Mon, 06 Apr 2020 11:16:13 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000021008f05a2a34336@google.com> Subject: KASAN: user-memory-access Read in put_page From: syzbot To: akpm@linux-foundation.org, bgeffon@google.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, peterx@redhat.com, syzkaller-bugs@googlegroups.com, torvalds@linux-foundation.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: bef7b2a7 Merge tag 'devicetree-for-5.7' of git://git.kerne.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16940efbe00000 kernel config: https://syzkaller.appspot.com/x/.config?x=f72ba8a207627d60 dashboard link: https://syzkaller.appspot.com/bug?extid=b4501d3e966ff59f6090 compiler: clang version 10.0.0 (https://github.com/llvm/llvm-project/ c2443155a0fb245c8f17f2c1c72b6ea391e86e81) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15d79efbe00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1705901be00000 The bug was bisected to: commit 4426e945df588f2878affddf88a51259200f7e29 Author: Peter Xu Date: Thu Apr 2 04:08:49 2020 +0000 mm/gup: allow VM_FAULT_RETRY for multiple times bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1441b1fbe00000 final crash: https://syzkaller.appspot.com/x/report.txt?x=1641b1fbe00000 console output: https://syzkaller.appspot.com/x/log.txt?x=1241b1fbe00000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+b4501d3e966ff59f6090@syzkaller.appspotmail.com Fixes: 4426e945df58 ("mm/gup: allow VM_FAULT_RETRY for multiple times") ================================================================== BUG: KASAN: user-memory-access in atomic_read include/asm-generic/atomic-instrumented.h:26 [inline] BUG: KASAN: user-memory-access in page_ref_count include/linux/page_ref.h:67 [inline] BUG: KASAN: user-memory-access in put_page_testzero include/linux/mm.h:675 [inline] BUG: KASAN: user-memory-access in put_page+0x110/0x1d0 include/linux/mm.h:1136 Read of size 4 at addr 00003fbf7e8680b0 by task syz-executor574/7201 CPU: 0 PID: 7201 Comm: syz-executor574 Not tainted 5.6.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1e9/0x30e lib/dump_stack.c:118 __kasan_report+0x122/0x190 mm/kasan/report.c:507 kasan_report+0x4d/0x80 mm/kasan/common.c:648 ================================================================== Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 7201 Comm: syz-executor574 Tainted: G B 5.6.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1e9/0x30e lib/dump_stack.c:118 panic+0x264/0x7a0 kernel/panic.c:221 end_report mm/kasan/report.c:96 [inline] __kasan_report+0x187/0x190 mm/kasan/report.c:510 kasan_report+0x4d/0x80 mm/kasan/common.c:648 Kernel Offset: disabled Rebooting in 86400 seconds.. --- This bug 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 bug report. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#bisection syzbot can test patches for this bug, for details see: https://goo.gl/tpsmEJ#testing-patches From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.4 required=3.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D03FC2BA17 for ; Mon, 6 Apr 2020 18:16:15 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 1128D2064A for ; Mon, 6 Apr 2020 18:16:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1128D2064A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id B70738E000F; Mon, 6 Apr 2020 14:16:14 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B211B8E000D; Mon, 6 Apr 2020 14:16:14 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A37158E000F; Mon, 6 Apr 2020 14:16:14 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0233.hostedemail.com [216.40.44.233]) by kanga.kvack.org (Postfix) with ESMTP id 8CEFB8E000D for ; Mon, 6 Apr 2020 14:16:14 -0400 (EDT) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 56A3A801B147 for ; Mon, 6 Apr 2020 18:16:14 +0000 (UTC) X-FDA: 76678234668.14.talk74_8dbceea470954 X-HE-Tag: talk74_8dbceea470954 X-Filterd-Recvd-Size: 5192 Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) by imf21.hostedemail.com (Postfix) with ESMTP for ; Mon, 6 Apr 2020 18:16:13 +0000 (UTC) Received: by mail-io1-f70.google.com with SMTP id v13so613333iox.6 for ; Mon, 06 Apr 2020 11:16:13 -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=ZJqNZn8LEubj1nzduXSuA2Dna6rbbp3U6TLqK8HEJm8=; b=UFzoBI41pXxQndBZDSVV0Bl02ImiZQSVF7BHG70E3AGbkMo89ZP6wJ6gUATcWxGO6e +qwbxUWfj9pYhNftFFiiDpoE4gyP2BZQPgo7ehY6Ico7xbcMmyRk/uawzAF9GTYV90S4 fo7YOGrN+NEzHo+4BtcP6JqtPRDJIfgx1duEvSac8DqbDWwsO9a39VoMVCzTFCvXGVwP Q720DefiMIgnvLbaWQNi79Rax9V/gTQatG+1z0vwhuMUR3TwihIAGLHt0SN1Op1qyU1n 1XMdaI9OunCLePsXmYLK5AoD1R20scNu8CqDL8hbKzBPI8EsCbqijKLA5ALLetzHrIvO xteQ== X-Gm-Message-State: AGi0PuZgzq4MRx2IsgEnKngdcGTl3y3n4LA+CYt6hs3AKohRe9aAR3BR kOL44nwH0w3MX9uEf4i0IB05iVqW9Eu+zkl+rM3KM4YKrdvO X-Google-Smtp-Source: APiQypL4+QSe/MgeSLSE1bofXL2FFuFiqWpUKjOZwV45cWKksWyjWgBnRov9afCG8lwmxhCKWvQhwESESc/Hf4m1TMd28QTp45C1 MIME-Version: 1.0 X-Received: by 2002:a02:a49a:: with SMTP id d26mr561686jam.117.1586196973157; Mon, 06 Apr 2020 11:16:13 -0700 (PDT) Date: Mon, 06 Apr 2020 11:16:13 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000021008f05a2a34336@google.com> Subject: KASAN: user-memory-access Read in put_page From: syzbot To: akpm@linux-foundation.org, bgeffon@google.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, peterx@redhat.com, syzkaller-bugs@googlegroups.com, torvalds@linux-foundation.org Content-Type: text/plain; charset="UTF-8" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hello, syzbot found the following crash on: HEAD commit: bef7b2a7 Merge tag 'devicetree-for-5.7' of git://git.kerne.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16940efbe00000 kernel config: https://syzkaller.appspot.com/x/.config?x=f72ba8a207627d60 dashboard link: https://syzkaller.appspot.com/bug?extid=b4501d3e966ff59f6090 compiler: clang version 10.0.0 (https://github.com/llvm/llvm-project/ c2443155a0fb245c8f17f2c1c72b6ea391e86e81) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15d79efbe00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1705901be00000 The bug was bisected to: commit 4426e945df588f2878affddf88a51259200f7e29 Author: Peter Xu Date: Thu Apr 2 04:08:49 2020 +0000 mm/gup: allow VM_FAULT_RETRY for multiple times bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1441b1fbe00000 final crash: https://syzkaller.appspot.com/x/report.txt?x=1641b1fbe00000 console output: https://syzkaller.appspot.com/x/log.txt?x=1241b1fbe00000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+b4501d3e966ff59f6090@syzkaller.appspotmail.com Fixes: 4426e945df58 ("mm/gup: allow VM_FAULT_RETRY for multiple times") ================================================================== BUG: KASAN: user-memory-access in atomic_read include/asm-generic/atomic-instrumented.h:26 [inline] BUG: KASAN: user-memory-access in page_ref_count include/linux/page_ref.h:67 [inline] BUG: KASAN: user-memory-access in put_page_testzero include/linux/mm.h:675 [inline] BUG: KASAN: user-memory-access in put_page+0x110/0x1d0 include/linux/mm.h:1136 Read of size 4 at addr 00003fbf7e8680b0 by task syz-executor574/7201 CPU: 0 PID: 7201 Comm: syz-executor574 Not tainted 5.6.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1e9/0x30e lib/dump_stack.c:118 __kasan_report+0x122/0x190 mm/kasan/report.c:507 kasan_report+0x4d/0x80 mm/kasan/common.c:648 ================================================================== Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 7201 Comm: syz-executor574 Tainted: G B 5.6.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1e9/0x30e lib/dump_stack.c:118 panic+0x264/0x7a0 kernel/panic.c:221 end_report mm/kasan/report.c:96 [inline] __kasan_report+0x187/0x190 mm/kasan/report.c:510 kasan_report+0x4d/0x80 mm/kasan/common.c:648 Kernel Offset: disabled Rebooting in 86400 seconds.. --- This bug 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 bug report. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#bisection syzbot can test patches for this bug, for details see: https://goo.gl/tpsmEJ#testing-patches