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 644FBC4332F for ; Tue, 22 Nov 2022 14:49:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BC17B6B0071; Tue, 22 Nov 2022 09:49:31 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B70B76B0073; Tue, 22 Nov 2022 09:49:31 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A12D48E0001; Tue, 22 Nov 2022 09:49:31 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 928A96B0071 for ; Tue, 22 Nov 2022 09:49:31 -0500 (EST) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 505541C5AEB for ; Tue, 22 Nov 2022 14:49:31 +0000 (UTC) X-FDA: 80161361742.11.CFB53DA Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf27.hostedemail.com (Postfix) with ESMTP id C98E940009 for ; Tue, 22 Nov 2022 14:49:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1669128569; 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=LpFYordntg7+u6jfwwoR9frHYqmYselVKruBLVlVEPU=; b=euB1q+6+K3DmbEsxi/eY0n3hiGrzi8YGXZwxNsDk0hm8xs7Ql1b7nJlOWBxTQWn0sgjAiW aWe3TdCZNE+GzEpyD37aGjwkN56yy7MBbI/n79gQ+HGr/R9ILq7IA6SyHKU6DTKK+zFiDA 5uo6D55Gz4Qe42ahoDvkBVbsZtWKSLU= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-163-3pY0SnwyMOmWE-0nn08xqQ-1; Tue, 22 Nov 2022 09:49:27 -0500 X-MC-Unique: 3pY0SnwyMOmWE-0nn08xqQ-1 Received: by mail-wm1-f70.google.com with SMTP id c126-20020a1c3584000000b003cfffcf7c1aso8844199wma.0 for ; Tue, 22 Nov 2022 06:49:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:subject:organization:from :references:cc:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LpFYordntg7+u6jfwwoR9frHYqmYselVKruBLVlVEPU=; b=0iun1sNqWWOB1hlmtMKQpnx4tr+J/pmfaopz9aC9FUEaVDvOyNLtt4sRQNCRriWN+/ lSiLiGsAq8rY0Tdpgz27KRC2ODgYQ6S+vWlQpoSZRuKCEV6bfxMe4WruF76b7CAp727x L6b6ChaSrIeTkFgcriHIRwU5Ftms7EHE23XgZvjUPLiFk2ZqB0kf29rExX6Zo6/JxMT5 1hO7rfbUpVvtA8Gbv8lBLP9JCbXaGWtw7CAxklP4UIE8nuCEt1Ba2Ph9BxG/R1fV4FWa cy6xjD0Rj5UspDbOvEfZjdSaLlyAulp/HTh/RBKdngGMp15hAspkrlxXaon3pzU6dBX6 mg4w== X-Gm-Message-State: ANoB5pldOrnYcBnlhhox71a6x6NpseImZBRVGGXVNehK7M3ior5vz8OJ tXjxB7Lmt8EZNdbpN7U7L5aDxKSpTG21HI6CnuO+PTOUXzDELkVUzhfZ8ZVpaSuaMYPO+dlrsZy Af0tXQBdVYys= X-Received: by 2002:a05:600c:4f51:b0:3b4:a6c4:70fb with SMTP id m17-20020a05600c4f5100b003b4a6c470fbmr2802586wmq.79.1669128566708; Tue, 22 Nov 2022 06:49:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf6WsxOeSwGRU+xEo+7inV8xZw0OiS0EJDkg0Sv8qjrGZtXbUihIch/ATJttsd61xByvPnud6g== X-Received: by 2002:a05:600c:4f51:b0:3b4:a6c4:70fb with SMTP id m17-20020a05600c4f5100b003b4a6c470fbmr2802574wmq.79.1669128566437; Tue, 22 Nov 2022 06:49:26 -0800 (PST) Received: from ?IPV6:2003:cb:c706:c300:b066:75e3:f1d2:b69b? (p200300cbc706c300b06675e3f1d2b69b.dip0.t-ipconnect.de. [2003:cb:c706:c300:b066:75e3:f1d2:b69b]) by smtp.gmail.com with ESMTPSA id iv7-20020a05600c548700b003cf87623c16sm25413265wmb.4.2022.11.22.06.49.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Nov 2022 06:49:26 -0800 (PST) Message-ID: <04031393-75b4-b4f3-d727-cf9db9cb509c@redhat.com> Date: Tue, 22 Nov 2022 15:49:25 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 To: Muhammad Usama Anjum , Peter Xu Cc: "open list : MEMORY MANAGEMENT" References: <12677bb0-198a-6ac2-2b01-ada23f43c45f@collabora.com> From: David Hildenbrand Organization: Red Hat Subject: Re: soft-dirty kselftest is crashing on next-20221122 In-Reply-To: <12677bb0-198a-6ac2-2b01-ada23f43c45f@collabora.com> X-Mimecast-Spam-Score: 0 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=1669128570; a=rsa-sha256; cv=none; b=IUQhvXos+kL8eWb2ewMj/NYDhNBjeIRq45fTEwlM34rWPNy+jOuGIS0IrlKSJfATi/zMjP Ws6GTKnfyaldd8F2tm77b19eK7vZMip+JRBSx4bbOWSCVMaNRNj8aLCLeZELT/rrczNSQ9 a4HOrZbdtCJH012COLgPyEkVHXTWd2s= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=euB1q+6+; spf=pass (imf27.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1669128570; 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=LpFYordntg7+u6jfwwoR9frHYqmYselVKruBLVlVEPU=; b=3TPaSvIjEwg+0nb6VO7lWIauuHlmNbnwP5An/5Vn/iorM6OrptJ6BDC+ZBSE6q5g6QH+0S Z8N7Ik31AhKsA1EkKSn1NCiSL9NBOFaZ/x97NHC6Ok383LcIX6ACZQeBJ1gRNshT5E/6zt aL/vZzBI5hlyRUc1/XmR514HdttKeBI= X-Rspam-User: X-Stat-Signature: fhk44xwdcc8a4isgwsqhp9o6johtg4ha X-Rspamd-Queue-Id: C98E940009 Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=euB1q+6+; spf=pass (imf27.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com X-Rspamd-Server: rspam07 X-HE-Tag: 1669128569-373088 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 22.11.22 15:00, Muhammad Usama Anjum wrote: > Hello, > > I'm getting segmentation fault when mprotect file sub-tests in soft-dirty > kselftest are run on top next-20221122 and on v6.0. These sub-tests were > added by Peter recently. Has someone noticed this already? On 6.0.7-200.fc36.x86_64, all tests pass. # ./soft-dirty TAP version 13 1..15 ok 1 Test test_simple ok 2 Test test_vma_reuse dirty bit of allocated page ok 3 Test test_vma_reuse dirty bit of reused address page ok 4 Test test_hugepage huge page allocation ok 5 Test test_hugepage huge page dirty bit ok 6 Test test_mprotect-anon dirty bit of new written page ok 7 Test test_mprotect-anon soft-dirty clear after clear_refs ok 8 Test test_mprotect-anon soft-dirty clear after marking RO ok 9 Test test_mprotect-anon soft-dirty clear after marking RW ok 10 Test test_mprotect-anon soft-dirty after rewritten ok 11 Test test_mprotect-file dirty bit of new written page ok 12 Test test_mprotect-file soft-dirty clear after clear_refs ok 13 Test test_mprotect-file soft-dirty clear after marking RO ok 14 Test test_mprotect-file soft-dirty clear after marking RW ok 15 Test test_mprotect-file soft-dirty after rewritten # Totals: pass:15 fail:0 xfail:0 xpass:0 skip:0 error:0 Same on a kernel close to mm-unstable on top of 6.1.0-rc4: # ./soft-dirty TAP version 13 1..15 ok 1 Test test_simple ok 2 Test test_vma_reuse dirty bit of allocated page ok 3 Test test_vma_reuse dirty bit of reused address page ok 4 Test test_hugepage huge page allocation ok 5 Test test_hugepage huge page dirty bit ok 6 Test test_mprotect-anon dirty bit of new written page ok 7 Test test_mprotect-anon soft-dirty clear after clear_refs ok 8 Test test_mprotect-anon soft-dirty clear after marking RO ok 9 Test test_mprotect-anon soft-dirty clear after marking RW ok 10 Test test_mprotect-anon soft-dirty after rewritten ok 11 Test test_mprotect-file dirty bit of new written page ok 12 Test test_mprotect-file soft-dirty clear after clear_refs ok 13 Test test_mprotect-file soft-dirty clear after marking RO ok 14 Test test_mprotect-file soft-dirty clear after marking RW ok 15 Test test_mprotect-file soft-dirty after rewritten # Totals: pass:15 fail:0 xfail:0 xpass:0 skip:0 error:0 Different architecture? Maybe recompile the tests? -- Thanks, David / dhildenb