Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp265001rwi; Fri, 14 Oct 2022 01:24:43 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6kQPZyxlZEg/f2tLBxt5tXxDXC3IffdayZDvhkNnLJGy+O/ggGcjHr6Bk8YJ+/j3m7E7lX X-Received: by 2002:a05:6402:1bc6:b0:45c:7611:d86e with SMTP id ch6-20020a0564021bc600b0045c7611d86emr3330631edb.194.1665735883404; Fri, 14 Oct 2022 01:24:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665735883; cv=none; d=google.com; s=arc-20160816; b=keeHFq8fVecCxikE1FFeKUl8F7Mk530BLEEgwm+Yi3ydA4VGbtyGknH34KK9m/eiRQ JBbXG49hIYFJP+j8oWWO3vA2mwvib59QUo8SSaV7bhxgan3RuJOKlNJ3xtRPU5GRLFzT GvKfcesBTeqHQ7m4QN3coY30XletsH2U1iwpnzjk+hPH8kwHt5uCNDKIiPTdJauIdx58 H3FY4VF5w5Qqn3qnCTjIPeJBEKZg0Ra/Gx1I1+L62YoOe+R1uAn4QwHTz+zqTXO7KB+q ElJ7VpR8f0dwl2IeSmIVQjTVzqPrisleglqp7tOHgiPdtLpm22vs+FZ84Nyxll1GszjL KdXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=YKCTjUXkgWXHelzxl7iwE9MFXdtFxf+ctoNJ6hwB31w=; b=COoN7SLWzKICIsTvlqUYcHdTU1s67+L2qN9SH189PWVLmiGiQ0eT/EH52OlvH6x58l glsg1UDskYfJaheY44Dxd8T2h+KPKjI1gljlkeGgrfKC5Gcl4Z9g8OgO/ozdEBbbBi1N q0Q5zOVQnfdEQVcyW1eLS++xJhiFcuFP3Q2MGC/aeH4qWvBkwsbf76LanlfEKTf0e56o E1YJeXv27g+fqH0RZYrS2FH5fPOYLYmJM8II7EmeCB+vLReZon2wBDbyc3atRDNHeIPZ QVt0p09wm9mLSsCmt6145aPBjhOVZPGuPyxKDVnhjQv3Xy0K/7PhaSxKK9QUHlFJWzEJ 95Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=d+G7iCu4; dkim=neutral (no key) header.i=@suse.cz header.b=rC2JV+OV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h10-20020a05640250ca00b00457e1c8cb07si2277934edb.374.2022.10.14.01.24.17; Fri, 14 Oct 2022 01:24:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=d+G7iCu4; dkim=neutral (no key) header.i=@suse.cz header.b=rC2JV+OV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229769AbiJNHy0 (ORCPT + 99 others); Fri, 14 Oct 2022 03:54:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbiJNHyY (ORCPT ); Fri, 14 Oct 2022 03:54:24 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E82F71B6C9D for ; Fri, 14 Oct 2022 00:54:23 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id A94A11F385; Fri, 14 Oct 2022 07:54:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1665734062; h=from:from:reply-to: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=YKCTjUXkgWXHelzxl7iwE9MFXdtFxf+ctoNJ6hwB31w=; b=d+G7iCu4/46sYKXEXRYF34PpehqY2SvKQ+zLHYaKdgh2JQdykEuqRi1cdXUZ/JfFSSwO/b QWprGOA4RFfRkX9+hvJM8u1ikvQlIKPl1BkIepHd92GUsBohyq6bv1KrF2utGrXc2xgvQL LOMoQ6aXDGjbU4yIhE/klUTllwQJvIw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1665734062; h=from:from:reply-to: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=YKCTjUXkgWXHelzxl7iwE9MFXdtFxf+ctoNJ6hwB31w=; b=rC2JV+OVOSeKfGDRmoqiyFNwGLXkJid3OiC5YuhjuebKh8UQsaMIIs0HT8wVdR9mcS/3jK nuK/kkmu5yLJrDAQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 9263713A4A; Fri, 14 Oct 2022 07:54:22 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id /2MLI64VSWMMaQAAMHmgww (envelope-from ); Fri, 14 Oct 2022 07:54:22 +0000 Message-ID: <8ef3a72d-8719-aeaf-1a03-9b7cb1a03cc4@suse.cz> Date: Fri, 14 Oct 2022 09:54:22 +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: kernel BUG in page_try_dup_anon_rmap Content-Language: en-US To: Wei Chen , Matthew Wilcox , hughd@google.com, dhowells@redhat.com Cc: linux-kernel@vger.kernel.org References: From: Vlastimil Babka In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/10/22 14:25, Wei Chen wrote: > Dear Linux Developer, > > Recently when using our tool to fuzz kernel, the following crash was triggered: > > HEAD commit: 03c765b0e3b4 Linux 5.19-rc4 That's a rather odd version to report against, now that there's v6.0 final? (not to mention 5.19 final, months ago) Or is v5.19-rc4 just the first affected tag and the bug persists until v6.0? > git tree: upstream > compiler: clang 12.0.0 > console output: > https://drive.google.com/file/d/16ht-2pDp_nU_nXhobMfHaQraVt4qfzBK/view?usp=sharing > kernel config: https://drive.google.com/file/d/1lNGU17X6Ui1NDLE4XCRu3I6f9lzhCBcH/view?usp=sharing > > Unfortunately, I don't have any reproducer for this crash yet. > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > Reported-by: Wei Chen > > kernel BUG at include/linux/mm.h:1585! > invalid opcode: 0000 [#1] PREEMPT SMP KASAN > CPU: 0 PID: 20332 Comm: syz-executor Not tainted 5.19.0-rc4 #1 > Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS > 1.13.0-1ubuntu1.1 04/01/2014 > RIP: 0010:page_try_dup_anon_rmap+0x927/0x1120 > Code: e6 ff 0f 00 00 31 ff e8 87 75 b2 ff 4c 89 e0 48 25 ff 0f 00 00 > 0f 84 0e 01 00 00 e8 c3 70 b2 ff e9 43 03 00 00 e8 b9 70 b2 ff <0f> 0b > e8 b2 70 b2 ff 4c 89 e7 48 c7 c6 80 96 9e 8a e8 03 91 ee ff > RSP: 0018:ffffc900088e7368 EFLAGS: 00010287 > RAX: ffffffff81d29967 RBX: 0000000000000000 RCX: 0000000000040000 > RDX: ffffc900084b9000 RSI: 00000000000023c4 RDI: 00000000000023c5 > RBP: ffff88802e3a0670 R08: ffffffff81d29420 R09: fffff9400011d001 > R10: fffff9400011d001 R11: 0000000000000000 R12: ffffea00008e8000 > R13: dffffc0000000000 R14: ffff88802e3a0670 R15: 1ffff11005c740ce > FS: 00007fa374806700(0000) GS:ffff888063c00000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 00007fa3737b8000 CR3: 000000002f26f000 CR4: 0000000000750ef0 > DR0: 0000000020000080 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 > PKRU: 55555554 > Call Trace: > > copy_hugetlb_page_range+0xc9d/0x1cc0 > copy_page_range+0x424/0x1b40 > dup_mmap+0xa72/0xf80 > dup_mm+0x8c/0x310 > copy_process+0x2b3b/0x60d0 > kernel_clone+0x21a/0x7d0 > __do_sys_fork+0x9e/0xf0 > do_syscall_64+0x3d/0x90 > entry_SYSCALL_64_after_hwframe+0x46/0xb0 > RIP: 0033:0x7fa373695c4d > Code: 02 b8 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa 48 89 f8 48 > 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d > 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 > RSP: 002b:00007fa374805c58 EFLAGS: 00000246 ORIG_RAX: 0000000000000039 > RAX: ffffffffffffffda RBX: 00007fa3737bc0a0 RCX: 00007fa373695c4d > RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 > RBP: 00007fa37370ed80 R08: 0000000000000000 R09: 0000000000000000 > R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa3737bc0a0 > R13: 00007ffc0a3c127f R14: 00007ffc0a3c1420 R15: 00007fa374805dc0 > > Modules linked in: > Dumping ftrace buffer: > (ftrace buffer empty) > ---[ end trace 0000000000000000 ]--- > RIP: 0010:page_try_dup_anon_rmap+0x927/0x1120 > Code: e6 ff 0f 00 00 31 ff e8 87 75 b2 ff 4c 89 e0 48 25 ff 0f 00 00 > 0f 84 0e 01 00 00 e8 c3 70 b2 ff e9 43 03 00 00 e8 b9 70 b2 ff <0f> 0b > e8 b2 70 b2 ff 4c 89 e7 48 c7 c6 80 96 9e 8a e8 03 91 ee ff > RSP: 0018:ffffc900088e7368 EFLAGS: 00010287 > RAX: ffffffff81d29967 RBX: 0000000000000000 RCX: 0000000000040000 > RDX: ffffc900084b9000 RSI: 00000000000023c4 RDI: 00000000000023c5 > RBP: ffff88802e3a0670 R08: ffffffff81d29420 R09: fffff9400011d001 > R10: fffff9400011d001 R11: 0000000000000000 R12: ffffea00008e8000 > R13: dffffc0000000000 R14: ffff88802e3a0670 R15: 1ffff11005c740ce > FS: 00007fa374806700(0000) GS:ffff888063c00000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 00007fa3737b8000 CR3: 000000002f26f000 CR4: 0000000000750ef0 > DR0: 0000000020000080 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 > PKRU: 55555554 > > Best, > Wei