Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2635087pxm; Mon, 28 Feb 2022 03:11:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrPBu/ELFLkRZ9Xy49YXLnkSuPMFdbih87kt+RCVJfER36lpl0UcaRBlA+skEeRnHavRB+ X-Received: by 2002:a17:906:4cca:b0:6ce:6a06:bf7 with SMTP id q10-20020a1709064cca00b006ce6a060bf7mr15189539ejt.109.1646046690049; Mon, 28 Feb 2022 03:11:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1646046690; cv=pass; d=google.com; s=arc-20160816; b=Ed6BILSXz9i1cYkF1ffldkXS6Eci7sGV3vaquCgDNh+QRapVrPmnxgojsZzqIcJDfV Wibu19CEDwWNjfOljB3K8UGJVT9kKdQc1zX3eNWMHH6xIkcK0wJVyTocbn+e9x7BMjW/ snIdugkL+Xhk/+pniy0Pp0lUO4A4qJmm6kgidb/lLNZSIPekxk0/HqmEbw3JD4YK6jQC LlTJ87oszrrESq5gjm1p/5O5fbwfw8xnE7sgERXEkPlLzOW+Q0oVGmxPMI0Yy1BDMNpr 1qmCOM+6//oJFUrb9TpUzsDKf+pkMheVR35TgJ3kKJz43lpYgE87ppkAIalaT/+xgMB6 CuLg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=RVM1eibO2uIdJPjNKDfek0LAcwEuvYV+Qt/29NkdGgA=; b=skGDCwR9FA8FI47SbGtrMk3Y4DxhTY+5NLEVMOJ8iVwoxvK5p4HsEUkuc6Y3YqzSI4 JxC8ID4L1fdzbKwpXKAbhHUz9+qqOO5hybAHTQboQxz3VcsbGVugBR+dcq0cpqJrPEso 4MgpS1aj48ClyaffWAV/k5xpsk0ECniLkiGgTbvQB4FsY2uXXGxHmFy0EEUbQMreJhOn RVwUh11PHVFa+b1jBtpV+Aauk2lddGAI6KWgsD80im57MFCfUXGzG8cuLOXYk9APa7MH D5ZqJcXLfVnqk+8RUsHNikGVPTwsHy6O8XVzDXqmuVB5ZFSrHFJ3FqY6O5ja2FjwVIet 3hHA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=ezBE74qF; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p4-20020a170906604400b006d12899803esi5792244ejj.422.2022.02.28.03.11.06; Mon, 28 Feb 2022 03:11:30 -0800 (PST) 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=@amd.com header.s=selector1 header.b=ezBE74qF; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235299AbiB1LAZ (ORCPT + 99 others); Mon, 28 Feb 2022 06:00:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235512AbiB1LAQ (ORCPT ); Mon, 28 Feb 2022 06:00:16 -0500 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on2073.outbound.protection.outlook.com [40.107.96.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8A3224F3F for ; Mon, 28 Feb 2022 02:59:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VNWPULWW/hb07qF9zLtTbvPWutqkjyEtDVRMjEBCn+grJpY30aPDc55rg0/Y7V+3oGgLJRq/f2ICb8KcUM35UF045kw7a0PFwjtQ2WvKJilYpNmtfIEuqIr3HCdddlVRI/GvVoM1eW30JlkoSMzTM83uYXm+bZogj+jZ55AISoS4RwSCsNjT1iQCVRLOgzFglPFIiC5oeiWcWlqNEkucCAT6AvMN10H/ZN5H08ILlCbR+SEr+cInAmGrpfBfSxN3clpc+4eH7nJxF7yS/QshlrpSP1VgcPMrEC9CLo2cjAqri9NIv7+9x7z0jv5P6K2AJBlncwPQpmTOJ6+kx+jT0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RVM1eibO2uIdJPjNKDfek0LAcwEuvYV+Qt/29NkdGgA=; b=id0P8iP19UGQSfi4RFcEMMYl4WGat+A/pyWBAHSB4caBBhw+7ZIMSUF1c2YKjHLbG8bhz+mU4WkrFk2gix1iY6uzz5MkzoPHTqIWXzW2HGfVPEtCR8eHJtY4BdSFkocehO+Wr907SVtANF3rDzeRJKDCPwcOd+dDneljsurbSFivwK3VCkF+l5ufIez6msjNvltky4DchlHbYFopksNbXoX+UxkrhUbK9dS4IvONRWromGNgCNc4cU5oftSKhNl1KIvpncakv/kGQs0RPOlCsRShi/+saOiXc7rP04rdZPBCIdtnTC74iPV++UGZ+qiH+haJnzaZY5Peg440cgy2nA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RVM1eibO2uIdJPjNKDfek0LAcwEuvYV+Qt/29NkdGgA=; b=ezBE74qFtgp2IJevVcqII49UkHv/dM27THDIYreNv5lm8RjFdu7T++nk/kCT4HkxdlJEgiuKckgZ+4yS+j3ScEvGXSQRKYcwhDLy6+COemednNYG1byjqLIwbRp6IGMzz3t4S4jpVIc8sgpN6bknAqpK66va7RNNP57EyV3rbVw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) by MW2PR12MB2508.namprd12.prod.outlook.com (2603:10b6:907:9::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.22; Mon, 28 Feb 2022 10:59:03 +0000 Received: from BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::e03f:901a:be6c:b581]) by BN8PR12MB3587.namprd12.prod.outlook.com ([fe80::e03f:901a:be6c:b581%6]) with mapi id 15.20.5017.027; Mon, 28 Feb 2022 10:59:03 +0000 Message-ID: <1879517d-f98f-6e96-7157-dccb0c872df0@amd.com> Date: Mon, 28 Feb 2022 11:58:56 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [drm/selftests] 39ec47bbfd: kernel_BUG_at_drivers/gpu/drm/drm_buddy.c Content-Language: en-US To: kernel test robot , Arunpravin Cc: 0day robot , Matthew Auld , LKML , lkp@lists.01.org, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, tzimmermann@suse.de, alexander.deucher@amd.com References: <20220227151857.GA20405@xsang-OptiPlex-9020> From: =?UTF-8?Q?Christian_K=c3=b6nig?= In-Reply-To: <20220227151857.GA20405@xsang-OptiPlex-9020> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM7PR03CA0020.eurprd03.prod.outlook.com (2603:10a6:20b:130::30) To BN8PR12MB3587.namprd12.prod.outlook.com (2603:10b6:408:43::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 99132f31-b8e4-489d-501e-08d9faa954cd X-MS-TrafficTypeDiagnostic: MW2PR12MB2508:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AnGXbY2L1B8buqA+AB2w1NdWnaHESyrYhkPFMX4MAWlh130u0Y2kysLsGnDOg82YPvnbOblVxUGacnKvMywHrJfYj09k5nb/tTjkYGrG2GecjQqtsxFCnwg8b5aj4iObHFKiOblmrDfnp4AmCu3oIpdKIiz2h+vivcvcySuwXn4EXL5KDdgROq/7yX5aZP8VjoutI+2bj9ss64/yu0uy69pBfRFnn4RSdWZnTTFkzq+Apd+al0u+5f/4JAZF1vWouulkqBUzTixfNmyFdf/yEgc4LmLZ/RB60gOanAShLKxm4jOfFr2lwaSQbTqdXTpy1xCgmN+OfVv8Vh9x3ICpWDSNWw5ATUxAcVjRV9zOnYPFVj4H3bIIUZWyBaBGenKE9xstaTkjwvha+gxv0XsRJUSCLd4ciHKfzS/cCxV2MItbVZtCIZatk4V8meNw11T1uIa2JlHuZ2m9PXYZGM+i2EhTkktrFRXnza5LS0osrKO6KOq+HEaIPa6U45YGa1pRhQ59NyWJXmaTlxcojOC92VJGCRYtQklj6sz6ZZ827M7J53lRyzby1C7RjTvIlOPAvIIaGx1yNd5lluVXxp0Jy4vLpucLhuYLPuVdHbRHdQEgKj9+5g0F73mXrLleRI2NbjiSluocSNXSM6oGkvRiPiTg7vbjAhm+YxqwuET3OvnOXSH8pLUMA8/9VL+qrpDsMwN7YQ1UEEcRcZe44oOOSTQIF5YHQuJ5Htbu8BHGFg8JsRMS4H4FKWuiZ1hu9izd6+Jm5lXXV67vVZwP44OZTTDeIeGoITqc917IeRpuS87H6AnVCPOVXS8WtZ7ouXLUXAKOb465tI8uMMN9HXEBBZ2NUvfRTWvyApoVxPqHRek= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR12MB3587.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(45080400002)(6486002)(6666004)(966005)(38100700002)(6506007)(36756003)(6512007)(6636002)(31686004)(508600001)(83380400001)(110136005)(54906003)(4326008)(31696002)(8936002)(316002)(86362001)(2616005)(5660300002)(30864003)(2906002)(186003)(66476007)(66946007)(66556008)(8676002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?OW5NU3Zobk9KOHZzN1p0dzh6UjBZUldiQ2dWNDJQUGVFbWNvYStTV3ZqMEFq?= =?utf-8?B?Y2xvQkJHQ0ZSaHdLOFNnakRBeERVQjJneXFzc2Y4aEtWTlRGRFQ5dy9aSHpw?= =?utf-8?B?M1EyMWdHYXlGbWthZExvTVdTd28vdVd6aU5pVElpbFdxSVRaaENjVFNmMkUz?= =?utf-8?B?TFF4Zm9HMnN6eTlqdXVzTUZWRTF6L3kwOHplVmRvVVpuS3U1eGJSWTZvTlVv?= =?utf-8?B?RlpnRStyNThvTkM0QjEzbFFuOERWMDJDQjJiWDRxT2ZyNjVhcEVvNnVWZ2k4?= =?utf-8?B?OWVCUkxmbGZidGpwWXdza0ptbjlGb3NLRk9yUEdVYVloSlhMYUpsbXNkeGdH?= =?utf-8?B?T3o5bU1GMF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aTZ2VGZiTCtLOG1WU0k3a3Y4d0JJd0ZQNGcx?= =?utf-8?Q?R5S/lv53y3uWHzpaAat6ATw=3D?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 99132f31-b8e4-489d-501e-08d9faa954cd X-MS-Exchange-CrossTenant-AuthSource: BN8PR12MB3587.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2022 10:59:03.0981 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: vDcFhwuTjU0mPumxWqlwJdCxTDjiNPKFZPbxbtve0EZuDcWi6a7EBVGvFPeiml1F X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR12MB2508 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Arun can you take a look at that one here? It looks like a real problem to me and not just a potential false negative like the other issue. Thanks, Christian. Am 27.02.22 um 16:18 schrieb kernel test robot: > > Greeting, > > FYI, we noticed the following commit (built with gcc-9): > > commit: 39ec47bbfd5dd3cea0b711ee9f1acdca37399c86 ("[PATCH v2 2/7] drm/selftests: add drm buddy alloc limit testcase") > url: https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2F0day-ci%2Flinux%2Fcommits%2FArunpravin%2Fdrm-selftests-Move-i915-buddy-selftests-into-drm%2F20220223-015043&data=04%7C01%7Cchristian.koenig%40amd.com%7C3101ff318a994e6eaf5f08d9fa0481ea%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637815719552700496%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=sKvsDtHufRMfSO14HdmHxvNsJiPyDZVDXCFUpWTDwFI%3D&reserved=0 > patch link: https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Fdri-devel%2F20220222174845.2175-2-Arunpravin.PaneerSelvam%40amd.com&data=04%7C01%7Cchristian.koenig%40amd.com%7C3101ff318a994e6eaf5f08d9fa0481ea%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637815719552700496%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=aWG4x27aMLcOySOUkHbLQ1NL9L8t8AF4dgXux65IIP8%3D&reserved=0 > > in testcase: boot > > on test machine: qemu-system-x86_64 -enable-kvm -cpu Icelake-Server -smp 4 -m 16G > > caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): > > > +---------------------------------------------------+------------+------------+ > | | be9e8c6c00 | 39ec47bbfd | > +---------------------------------------------------+------------+------------+ > | boot_successes | 14 | 0 | > | boot_failures | 0 | 16 | > | UBSAN:shift-out-of-bounds_in_include/linux/log2.h | 0 | 16 | > | kernel_BUG_at_drivers/gpu/drm/drm_buddy.c | 0 | 16 | > | invalid_opcode:#[##] | 0 | 16 | > | EIP:drm_buddy_init | 0 | 16 | > | Kernel_panic-not_syncing:Fatal_exception | 0 | 16 | > +---------------------------------------------------+------------+------------+ > > > If you fix the issue, kindly add following tag > Reported-by: kernel test robot > > > [ 68.124177][ T1] UBSAN: shift-out-of-bounds in include/linux/log2.h:67:13 > [ 68.125333][ T1] shift exponent 4294967295 is too large for 32-bit type 'long unsigned int' > [ 68.126563][ T1] CPU: 0 PID: 1 Comm: swapper Not tainted 5.17.0-rc2-00311-g39ec47bbfd5d #2 > [ 68.127758][ T1] Call Trace: > [ 68.128187][ T1] dump_stack_lvl (lib/dump_stack.c:108) > [ 68.128793][ T1] dump_stack (lib/dump_stack.c:114) > [ 68.129331][ T1] ubsan_epilogue (lib/ubsan.c:152) > [ 68.129958][ T1] __ubsan_handle_shift_out_of_bounds.cold (arch/x86/include/asm/smap.h:85) > [ 68.130791][ T1] ? drm_block_alloc+0x28/0x80 > [ 68.131582][ T1] ? rcu_read_lock_sched_held (kernel/rcu/update.c:125) > [ 68.132215][ T1] ? kmem_cache_alloc (include/trace/events/kmem.h:54 mm/slab.c:3501) > [ 68.132878][ T1] ? mark_free+0x2e/0x80 > [ 68.133524][ T1] drm_buddy_init.cold (include/linux/log2.h:67 drivers/gpu/drm/drm_buddy.c:131) > [ 68.134145][ T1] ? test_drm_cmdline_init (drivers/gpu/drm/selftests/test-drm_buddy.c:87) > [ 68.134770][ T1] igt_buddy_alloc_limit (drivers/gpu/drm/selftests/test-drm_buddy.c:30) > [ 68.135472][ T1] ? vprintk_default (kernel/printk/printk.c:2257) > [ 68.136057][ T1] ? test_drm_cmdline_init (drivers/gpu/drm/selftests/test-drm_buddy.c:87) > [ 68.136812][ T1] test_drm_buddy_init (drivers/gpu/drm/selftests/drm_selftest.c:77 drivers/gpu/drm/selftests/test-drm_buddy.c:95) > [ 68.137475][ T1] do_one_initcall (init/main.c:1300) > [ 68.138111][ T1] ? parse_args (kernel/params.c:609 kernel/params.c:146 kernel/params.c:188) > [ 68.138717][ T1] do_basic_setup (init/main.c:1372 init/main.c:1389 init/main.c:1408) > [ 68.139366][ T1] kernel_init_freeable (init/main.c:1617) > [ 68.140040][ T1] ? rest_init (init/main.c:1494) > [ 68.140634][ T1] kernel_init (init/main.c:1504) > [ 68.141155][ T1] ret_from_fork (arch/x86/entry/entry_32.S:772) > [ 68.141607][ T1] ================================================================================ > [ 68.146730][ T1] ------------[ cut here ]------------ > [ 68.147460][ T1] kernel BUG at drivers/gpu/drm/drm_buddy.c:140! > [ 68.148280][ T1] invalid opcode: 0000 [#1] > [ 68.148895][ T1] CPU: 0 PID: 1 Comm: swapper Not tainted 5.17.0-rc2-00311-g39ec47bbfd5d #2 > [ 68.149896][ T1] EIP: drm_buddy_init (drivers/gpu/drm/drm_buddy.c:140 (discriminator 1)) > [ 68.149896][ T1] Code: 76 00 b8 ea ff ff ff 8d 65 f4 5b 5e 5f 5d c3 8d 76 00 0f bd 45 d8 75 05 b8 ff ff ff ff 83 c0 21 e9 5e ff ff ff 8d 74 26 00 90 <0f> 0b 8d b6 00 00 00 00 0f 0b 8d b6 00 00 00 00 8b 5d 0c 0f bd 45 > All code > ======== > 0: 76 00 jbe 0x2 > 2: b8 ea ff ff ff mov $0xffffffea,%eax > 7: 8d 65 f4 lea -0xc(%rbp),%esp > a: 5b pop %rbx > b: 5e pop %rsi > c: 5f pop %rdi > d: 5d pop %rbp > e: c3 retq > f: 8d 76 00 lea 0x0(%rsi),%esi > 12: 0f bd 45 d8 bsr -0x28(%rbp),%eax > 16: 75 05 jne 0x1d > 18: b8 ff ff ff ff mov $0xffffffff,%eax > 1d: 83 c0 21 add $0x21,%eax > 20: e9 5e ff ff ff jmpq 0xffffffffffffff83 > 25: 8d 74 26 00 lea 0x0(%rsi,%riz,1),%esi > 29: 90 nop > 2a:* 0f 0b ud2 <-- trapping instruction > 2c: 8d b6 00 00 00 00 lea 0x0(%rsi),%esi > 32: 0f 0b ud2 > 34: 8d b6 00 00 00 00 lea 0x0(%rsi),%esi > 3a: 8b 5d 0c mov 0xc(%rbp),%ebx > 3d: 0f .byte 0xf > 3e: bd .byte 0xbd > 3f: 45 rex.RB > > Code starting with the faulting instruction > =========================================== > 0: 0f 0b ud2 > 2: 8d b6 00 00 00 00 lea 0x0(%rsi),%esi > 8: 0f 0b ud2 > a: 8d b6 00 00 00 00 lea 0x0(%rsi),%esi > 10: 8b 5d 0c mov 0xc(%rbp),%ebx > 13: 0f .byte 0xf > 14: bd .byte 0xbd > 15: 45 rex.RB > [ 68.149896][ T1] EAX: 8578e658 EBX: 8578e618 ECX: 8578e658 EDX: 83717c98 > [ 68.149896][ T1] ESI: 83675ee0 EDI: 00000034 EBP: 83675ec0 ESP: 83675e94 > [ 68.149896][ T1] DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068 EFLAGS: 00010297 > [ 68.149896][ T1] CR0: 80050033 CR2: 77f35844 CR3: 02a10000 CR4: 00150ed0 > [ 68.149896][ T1] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000 > [ 68.149896][ T1] DR6: fffe0ff0 DR7: 00000400 > [ 68.149896][ T1] Call Trace: > [ 68.149896][ T1] ? test_drm_cmdline_init (drivers/gpu/drm/selftests/test-drm_buddy.c:87) > [ 68.149896][ T1] igt_buddy_alloc_limit (drivers/gpu/drm/selftests/test-drm_buddy.c:30) > [ 68.149896][ T1] ? vprintk_default (kernel/printk/printk.c:2257) > [ 68.149896][ T1] ? test_drm_cmdline_init (drivers/gpu/drm/selftests/test-drm_buddy.c:87) > [ 68.149896][ T1] test_drm_buddy_init (drivers/gpu/drm/selftests/drm_selftest.c:77 drivers/gpu/drm/selftests/test-drm_buddy.c:95) > [ 68.149896][ T1] do_one_initcall (init/main.c:1300) > [ 68.149896][ T1] ? parse_args (kernel/params.c:609 kernel/params.c:146 kernel/params.c:188) > [ 68.149896][ T1] do_basic_setup (init/main.c:1372 init/main.c:1389 init/main.c:1408) > [ 68.149896][ T1] kernel_init_freeable (init/main.c:1617) > [ 68.149896][ T1] ? rest_init (init/main.c:1494) > [ 68.149896][ T1] kernel_init (init/main.c:1504) > [ 68.149896][ T1] ret_from_fork (arch/x86/entry/entry_32.S:772) > [ 68.149896][ T1] Modules linked in: > [ 68.167316][ T1] ---[ end trace 0000000000000000 ]--- > [ 68.168062][ T1] EIP: drm_buddy_init (drivers/gpu/drm/drm_buddy.c:140 (discriminator 1)) > [ 68.168739][ T1] Code: 76 00 b8 ea ff ff ff 8d 65 f4 5b 5e 5f 5d c3 8d 76 00 0f bd 45 d8 75 05 b8 ff ff ff ff 83 c0 21 e9 5e ff ff ff 8d 74 26 00 90 <0f> 0b 8d b6 00 00 00 00 0f 0b 8d b6 00 00 00 00 8b 5d 0c 0f bd 45 > All code > ======== > 0: 76 00 jbe 0x2 > 2: b8 ea ff ff ff mov $0xffffffea,%eax > 7: 8d 65 f4 lea -0xc(%rbp),%esp > a: 5b pop %rbx > b: 5e pop %rsi > c: 5f pop %rdi > d: 5d pop %rbp > e: c3 retq > f: 8d 76 00 lea 0x0(%rsi),%esi > 12: 0f bd 45 d8 bsr -0x28(%rbp),%eax > 16: 75 05 jne 0x1d > 18: b8 ff ff ff ff mov $0xffffffff,%eax > 1d: 83 c0 21 add $0x21,%eax > 20: e9 5e ff ff ff jmpq 0xffffffffffffff83 > 25: 8d 74 26 00 lea 0x0(%rsi,%riz,1),%esi > 29: 90 nop > 2a:* 0f 0b ud2 <-- trapping instruction > 2c: 8d b6 00 00 00 00 lea 0x0(%rsi),%esi > 32: 0f 0b ud2 > 34: 8d b6 00 00 00 00 lea 0x0(%rsi),%esi > 3a: 8b 5d 0c mov 0xc(%rbp),%ebx > 3d: 0f .byte 0xf > 3e: bd .byte 0xbd > 3f: 45 rex.RB > > Code starting with the faulting instruction > =========================================== > 0: 0f 0b ud2 > 2: 8d b6 00 00 00 00 lea 0x0(%rsi),%esi > 8: 0f 0b ud2 > a: 8d b6 00 00 00 00 lea 0x0(%rsi),%esi > 10: 8b 5d 0c mov 0xc(%rbp),%ebx > 13: 0f .byte 0xf > 14: bd .byte 0xbd > 15: 45 rex.RB > > > To reproduce: > > # build kernel > cd linux > cp config-5.17.0-rc2-00311-g39ec47bbfd5d .config > make HOSTCC=gcc-9 CC=gcc-9 ARCH=i386 olddefconfig prepare modules_prepare bzImage modules > make HOSTCC=gcc-9 CC=gcc-9 ARCH=i386 INSTALL_MOD_PATH= modules_install > cd > find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz > > > git clone https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fintel%2Flkp-tests.git&data=04%7C01%7Cchristian.koenig%40amd.com%7C3101ff318a994e6eaf5f08d9fa0481ea%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637815719552700496%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=NjykC%2F60KxU7%2FmTnzNMNzJReXV06mjFzQPvDM1Pyj%2F4%3D&reserved=0 > cd lkp-tests > bin/lkp qemu -k -m modules.cgz job-script # job-script is attached in this email > > # if come across any failure that blocks the test, > # please remove ~/.lkp and /lkp dir to run from a clean state. > > > > --- > 0DAY/LKP+ Test Infrastructure Open Source Technology Center > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.01.org%2Fhyperkitty%2Flist%2Flkp%40lists.01.org&data=04%7C01%7Cchristian.koenig%40amd.com%7C3101ff318a994e6eaf5f08d9fa0481ea%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637815719552700496%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=v8BQLwbrizBXoDoHb77IgXjPnvrF%2BomFQpmhNYXa8i0%3D&reserved=0 Intel Corporation > > Thanks, > Oliver Sang >