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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE4C0C433FE for ; Wed, 26 Oct 2022 14:46:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 324EB8E0002; Wed, 26 Oct 2022 10:46:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2D5B98E0001; Wed, 26 Oct 2022 10:46:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 19DCA8E0002; Wed, 26 Oct 2022 10:46:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 095308E0001 for ; Wed, 26 Oct 2022 10:46:26 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id BA092160A7E for ; Wed, 26 Oct 2022 14:46:25 +0000 (UTC) X-FDA: 80063376330.01.35855AC Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf29.hostedemail.com (Postfix) with ESMTP id 4C4C4120019 for ; Wed, 26 Oct 2022 14:46:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666795584; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=M9+Xbb5RQBhXFVF0gto838Senf/9nz2P5jsm5fcrSvM=; b=HUSeUfo99kQThMsrjQvE1u7hD2dGxLqtaFlAoc6dJ7byHinGxZ2UPiwjVEEzVNkfD6Hokx Zei1YyCpDcR7NGffpsphVjHliGeZNMf0TtNMOMQ/TOoXrrKM7T4GP7Ri6ZUZlvR0fAJBvg S6xRq2t2Ke22gpOblUAcmI++9QhH4Ss= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-131-FMoJbidRMHydDHnalzVLVQ-1; Wed, 26 Oct 2022 10:46:23 -0400 X-MC-Unique: FMoJbidRMHydDHnalzVLVQ-1 Received: by mail-wr1-f69.google.com with SMTP id p7-20020adfba87000000b0022cc6f805b1so6150751wrg.21 for ; Wed, 26 Oct 2022 07:46:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=M9+Xbb5RQBhXFVF0gto838Senf/9nz2P5jsm5fcrSvM=; b=B3oyL8Ygq4942h3fNILXBqxlMjnao2t1ittaRPdj2xmyuoh2WvZ67H5xZG1TokaCLP iVDuI6FXRd49Sf8TNVuDEyuCGiHFTHBbI+3HH/E/YwafCdNkFBTgHLzukf6tThykQ/Cj sx41GBxXz03Ix6xqTIHgbAPitdg3P1Ga9BmF1c21N357cSJI4cYOWSNlJRaLE+0Wk+Oj rPSsUXT0VItFwphTBues234IaaRcT1MyBTPyBaG4DV+CrcTNLt9ONibTv169xidVqifG Uy6v2TCOXE7RQTnTPKjaJivbdrL6XZkK7QY2Fev++/XUyTaUM8fiyjHexkhCCP7h8U/D 1v8g== X-Gm-Message-State: ACrzQf3MfdDvJXFswvwZAnMtwcaFxvT6MYAo9LO5ETcBNuV55nm2EaZp j8QFeHMBf84QnWIT+HJw1yMILPAL7cFPwIAHFo/x0v610e79bynmPrUypM6Z3usVOGnavDHTps3 BL70p8YEcSI4= X-Received: by 2002:adf:fb43:0:b0:22b:64:8414 with SMTP id c3-20020adffb43000000b0022b00648414mr29850899wrs.70.1666795581732; Wed, 26 Oct 2022 07:46:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6qzzVrO9wpr3qnIOHUcJaAfmjQ5F5tBnpRNBBzgF413+NO9Ot/9ckpUBdSy/jA4ZFu8I3Ujw== X-Received: by 2002:adf:fb43:0:b0:22b:64:8414 with SMTP id c3-20020adffb43000000b0022b00648414mr29850881wrs.70.1666795581450; Wed, 26 Oct 2022 07:46:21 -0700 (PDT) Received: from ?IPV6:2003:cb:c706:5b00:c9f4:7535:9360:70d7? (p200300cbc7065b00c9f47535936070d7.dip0.t-ipconnect.de. [2003:cb:c706:5b00:c9f4:7535:9360:70d7]) by smtp.gmail.com with ESMTPSA id m17-20020a056000009100b0022eafed36ebsm5567280wrx.73.2022.10.26.07.46.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Oct 2022 07:46:20 -0700 (PDT) Message-ID: Date: Wed, 26 Oct 2022 16:46:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [syzbot] WARNING in __split_huge_page_tail To: Dmitry Vyukov Cc: syzbot , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com, Mel Gorman , Hugh Dickins References: <000000000000aa2b2805ebea9137@google.com> <9a450a11-531d-8e1a-4c77-70102aa7f424@redhat.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: X-Mimecast-Spam-Score: 1 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1666795585; a=rsa-sha256; cv=none; b=SZmGbf1y+MzqzXvD3DOZkwn+S7fSbjnUmZzCwDnmQW5Jk7MHNCeJOWpz0XwbDjWFjI3QPC waEOyyIn87CP5tt2PibwBiUa4VRFakjA0SpfDPZygyySzqDSJrtE+oyLUsFLctMtcDnRSC DJ+5ClQc4vgBKrFi0SNVRmy1njqPg3c= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=HUSeUfo9; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf29.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1666795585; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=M9+Xbb5RQBhXFVF0gto838Senf/9nz2P5jsm5fcrSvM=; b=5320E89+j9C8C15Rycxvt4jVJAWoujg7RAb//eDt4xDIeAthKm/yI33KXsYo4NNZsq+Z1l MzUtK0n1yhOXOOE5ya9DbDoOIeE+IzgvbNK8GRtu9yw9I9KA9NLSUfMjKJkxfyWqNg5CVq P9RsuXyBDzjJwhTfyU9mOgX/8hIUVz4= X-Rspam-User: Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=HUSeUfo9; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf29.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com X-Rspamd-Server: rspam11 X-Stat-Signature: 4xeetqojenc4rxtdc4rr3jababnyzn9f X-Rspamd-Queue-Id: 4C4C4120019 X-HE-Tag: 1666795585-367202 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: On 26.10.22 15:25, Dmitry Vyukov wrote: > On Wed, 26 Oct 2022 at 02:54, David Hildenbrand wrote: >> >> On 26.10.22 08:59, syzbot wrote: >>> Hello, >>> >>> syzbot found the following issue on: >>> >>> HEAD commit: 4da34b7d175d Merge tag 'thermal-6.1-rc2' of git://git.kern.. >>> git tree: upstream >>> console+strace: https://syzkaller.appspot.com/x/log.txt?x=113bd8bc880000 >>> kernel config: https://syzkaller.appspot.com/x/.config?x=4789759e8a6d5f57 >>> dashboard link: https://syzkaller.appspot.com/bug?extid=273b547b15eb58ea35e8 >>> compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 >>> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=161e1f62880000 >>> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16dd4fe6880000 >>> >>> Downloadable assets: >>> disk image: https://storage.googleapis.com/syzbot-assets/a61ddb36c296/disk-4da34b7d.raw.xz >>> vmlinux: https://storage.googleapis.com/syzbot-assets/ceee41246252/vmlinux-4da34b7d.xz >>> >>> IMPORTANT: if you fix the issue, please add the following tag to the commit: >>> Reported-by: syzbot+273b547b15eb58ea35e8@syzkaller.appspotmail.com >>> >>> tlb_finish_mmu+0xcb/0x200 mm/mmu_gather.c:363 >>> exit_mmap+0x2b1/0x670 mm/mmap.c:3098 >>> __mmput+0x114/0x3b0 kernel/fork.c:1185 >>> exit_mm+0x217/0x2f0 kernel/exit.c:516 >>> do_exit+0x5e7/0x2070 kernel/exit.c:807 >>> do_group_exit+0x1fd/0x2b0 kernel/exit.c:950 >>> __do_sys_exit_group kernel/exit.c:961 [inline] >>> __se_sys_exit_group kernel/exit.c:959 [inline] >>> __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:959 >>> do_syscall_x64 arch/x86/entry/common.c:50 [inline] >>> do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 >>> entry_SYSCALL_64_after_hwframe+0x63/0xcd >>> ------------[ cut here ]------------ >>> WARNING: CPU: 0 PID: 3908 at mm/huge_memory.c:2465 __split_huge_page_tail+0x81c/0x1080 mm/huge_memory.c:2465 >> >> Is this the >> >> VM_BUG_ON_PAGE(atomic_read(&page_tail->_mapcount) != -1, page_tail); >> >> assertion? > > Hi David, > > You can check the sources for that revision, but on the dashboard > there are clickable links for all source references: > https://syzkaller.appspot.com/bug?extid=273b547b15eb58ea35e8 > > In this case it points to: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/mm/huge_memory.c?id=4da34b7d175dc99b8befebd69e96546c960d526c#n2465 > Ah, thanks! ... so if (!folio_test_swapcache(page_folio(head))) { VM_WARN_ON_ONCE_PAGE(page_tail->private != 0, head); page_tail->private = 0; } I recall that there was a patch either from Hugh or Mel floating around that might be related. -- Thanks, David / dhildenb