Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5322945imm; Sun, 22 Jul 2018 19:29:16 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfqHmN/lDKxwldi6mJqZkUa+9cH6bZU5RMzpMbfS1lhB7BHH4O3galaxE0pE4t/011XkopT X-Received: by 2002:aa7:818b:: with SMTP id g11-v6mr11370415pfi.50.1532312956080; Sun, 22 Jul 2018 19:29:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532312956; cv=none; d=google.com; s=arc-20160816; b=0anKOwQzzbG/QTA0EYmxu+Ye/pUz3BpDKzjNey/07MF/9ihanCwlL3OEmw2dCUZenx SnfdNug504VXb/kWEXh3fFdJUlg9pNUWCwBBT7Ogq/oxOySowPXhYQjvlyxrjUfJncgv r/jOjDKMlA+C0R6XKXjoybyG4QSHYwaeDb3iKNgEZvokx3I3M6maAhd36RvpZznAGmOJ qxEA0Y/IpAoMZIdMGrzXaMzp8HOnluP5EdbZNrfbD0wVvkj7Jow4+z+ssXIkuZJsZz5i 8Fl56TAgVL9WjjNe+hbyXfUBgQ4e7qFU1PU8YQcV0lWAzyE7RkXmekX4Rz0oqBpE2wEn eaGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=EgOePrnes0wjZT2VaatlFaotLIhX1CKbMrncMhKZJcs=; b=ArcbMKKVy+JDX1OTAfOAYjHj+XeEkCcCB3fL1RazGggTueRMWxBct9pQO0hoXNoIMx Q/bQ5iXLMFnl/zzsWt4LCVtxDlQ784iwLkKGRBiuYd6B2/IfVMxdLjynIFjwYQQ50Hui I2jWRrlAhdyg7ucabe020td8E5Cb4PStMgqF7shxk9EGGKgoUwU94KD8ek2LMtpaXhB7 L7eM7aGDjUwPnd4mlo50sCeGkZBrQjVHPgZe9g0y5LDnyU5iRQ2SzawAqbK6hYGsphe2 kmquLZWhFqBaN0qvjgPgkAlTv/M7is+vCY1ZZNSxCg775s9buMYMT4o4MY7KIvaW1yLD 41RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=I4q9lpIu; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b129-v6si7997342pfa.12.2018.07.22.19.29.01; Sun, 22 Jul 2018 19:29:16 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=I4q9lpIu; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731268AbeGWD1F (ORCPT + 99 others); Sun, 22 Jul 2018 23:27:05 -0400 Received: from mail-yb0-f193.google.com ([209.85.213.193]:40743 "EHLO mail-yb0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731168AbeGWD1E (ORCPT ); Sun, 22 Jul 2018 23:27:04 -0400 Received: by mail-yb0-f193.google.com with SMTP id y11-v6so6717402ybm.7 for ; Sun, 22 Jul 2018 19:28:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=EgOePrnes0wjZT2VaatlFaotLIhX1CKbMrncMhKZJcs=; b=I4q9lpIuC1TAWCm9iDIRj1AJ2/sF3H1Y6pnBFG/BgvYos3A/VLsKOAyv8LWWAfGRX4 N+M47h+VOEFbfpzlGFeHh5BKn0FvvloCwiniLj7sfNnKo+00V9Ny63v67nZtWYOzmpmx 04PeUp3bKkfKxwXrIb5C6d9ZX9A82Suq7aGGFm4IipCsk+J82PxwVzpWYAEVkuGIfw0f wX8cBTaTgL2HISpeeY+a4AyMliXhq80QM1TF8qVnjZ+AiG7HOIgKS0oji9SFIccDDZZD rjrLfTniWBBMAoywN8JVGXlAwXXP3nsx0iX30rhmFmwR/zzlUK7KcqIkntw9kwZBz0G5 RhWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=EgOePrnes0wjZT2VaatlFaotLIhX1CKbMrncMhKZJcs=; b=mbW8k7O0Xlo+DH/sdYXRI+yIcY9a19DdF/E7NNCR8hZP2SO819fEw9AlHSB5+3hTDC tVIG+5UMxbqv6cj9I7+uNOFZkXHE0wtnEbNtv4IFa2RN8+H4L/YknOk+/PXas3zIn8tl qsTR/P2QEgm1HviSrumq76OzfojMSiGqrvn8uhfvfA+V/4JiQM4IXp6VzgoDS+z/skKD YOkytd71hFJQ1rLtRsbsf7jf0n2TWBwqJpMKuJuak5pS1FrVePefWSeNg7mXLIGMaZcc 7FUb3EFPtGHoi+AnHOb2lnUU57C+zs+Hy5hKnAaM6+BNlMe+9A7d3wEaW1oFSvMzAnMb +uwQ== X-Gm-Message-State: AOUpUlEBCmnzSPGe52RK75mAA+Y6dcMyRNdR+EtBMQNBetWtsJsUYtoV nldj0QvB7WmJHJsVnRytzRUpjw== X-Received: by 2002:a25:b489:: with SMTP id o9-v6mr6011681ybj.128.1532312891826; Sun, 22 Jul 2018 19:28:11 -0700 (PDT) Received: from eggly.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id h188-v6sm3941770ywb.2.2018.07.22.19.28.09 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Jul 2018 19:28:10 -0700 (PDT) Date: Sun, 22 Jul 2018 19:28:01 -0700 (PDT) From: Hugh Dickins X-X-Sender: hugh@eggly.anvils To: Matthew Wilcox cc: syzbot , Hugh Dickins , "Kirill A. Shutemov" , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com Subject: Re: kernel BUG at mm/shmem.c:LINE! In-Reply-To: <20180709143610.GD2662@bombadil.infradead.org> Message-ID: References: <000000000000d624c605705e9010@google.com> <20180709143610.GD2662@bombadil.infradead.org> User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 9 Jul 2018, Matthew Wilcox wrote: > On Fri, Jul 06, 2018 at 06:19:02PM -0700, syzbot wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit: 526674536360 Add linux-next specific files for 20180706 > > git tree: linux-next > > console output: https://syzkaller.appspot.com/x/log.txt?x=116d16fc400000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=c8d1cfc0cb798e48 > > dashboard link: https://syzkaller.appspot.com/bug?extid=b8e0dfee3fd8c9012771 > > compiler: gcc (GCC) 8.0.1 20180413 (experimental) > > syzkaller repro:https://syzkaller.appspot.com/x/repro.syz?x=170e462c400000 > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15f1ba2c400000 > > > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > > Reported-by: syzbot+b8e0dfee3fd8c9012771@syzkaller.appspotmail.com > > #syz fix: shmem: Convert shmem_add_to_page_cache to XArray I don't see the patch, but I do see a diff in shmem_add_to_page_cache() between mmotm 4.18.0-rc3-mm1 and current mmotm 4.18.0-rc5-mm1, relating to use of xas_create_range(). Whether or not that fixed syzbot's kernel BUG at mm/shmem.c:815! I don't know, but I'm afraid it has not fixed linux-next breakage of huge tmpfs: I get a similar page_to_pgoff BUG at mm/filemap.c:1466! Please try something like mount -o remount,huge=always /dev/shm cp /dev/zero /dev/shm Writing soon crashes in find_lock_entry(), looking up offset 0x201 but getting the page for offset 0x3c1 instead. I've spent a while on it, but better turn over to you, Matthew: my guess is that xas_create_range() does not create the layout you expect from it. Thanks, Hugh