Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1574851pxb; Sun, 19 Sep 2021 23:12:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzgV/+VHq/bGpT+ymYW9WQWEfIuQzcjawFu+fMZQNFreuPsIPaRm6orCkWQ2ZI1mVSQjZ4 X-Received: by 2002:aa7:c80a:: with SMTP id a10mr27047487edt.174.1632118365230; Sun, 19 Sep 2021 23:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632118365; cv=none; d=google.com; s=arc-20160816; b=ED//XWjR/HyXA8kPBUehkXVdTtgJ86vb+tkptxEXLown1ZukmyTZcNm2SAfk3i7WQM 9W/B71DA188u73H+K6FK6N2YrM3nq8YsevzmvYwYG4Kn0LkdclWBZw8Z3Ji3gx0POQqe lf8W8CMv7XoqgNzeV2jhTD4HzpkzYbq0L77Y5wtNZa8ZVLuhdhx9rVgLIJ4ya7n6h0sh Kdlob+J67H7nz+Z3mA3TKOJozF9FchotJJePSXT2WSWb98ly5aDxdpuOZRUfyMuQandN gtocZGqe7ru2nBzxGKtrWuhMRo72+8qmbF3UHnjw/Xch0O4FS+nO6H5SFpIagCluFpWm In6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Wz4E08F7JKH6TXiOVNrFs/KWE6EvM1kqWJiilPR/ICw=; b=X9OYLnanBa+jUX/XOBEefctTFLB6hEtcEy935mNzLTj5tKbOCzGMANhEObDygbCuF6 7lDxq83KknvWg8EIB32OcHa49H2BpgywzghmQD7g6YSSzs2enK4c7wxJhT47G+Ur57e7 IDMWZqTlM/OpvALfbkqsYgykUlTDtkMuVupe3XKHI17P/2VTEeSbUYVmURLUGqpOzLqZ TOebJs59R34zvWWadTh73e4vzmMnQWoJyEmm+2uR1PClOVMj7QvvQhq2F2JPgGEpkRZa h4rs1j2t9D9Aq4rh2QU48V50IhHtd+e1a3b/gu0PoW8Lxmno6HfBJggBSigvS6XSGD67 FhAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CM+qQ3gv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c61si15458968edf.550.2021.09.19.23.12.19; Sun, 19 Sep 2021 23:12:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CM+qQ3gv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229596AbhISUoh (ORCPT + 99 others); Sun, 19 Sep 2021 16:44:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbhISUoh (ORCPT ); Sun, 19 Sep 2021 16:44:37 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51246C061574; Sun, 19 Sep 2021 13:43:11 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id v24so52642293eda.3; Sun, 19 Sep 2021 13:43:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Wz4E08F7JKH6TXiOVNrFs/KWE6EvM1kqWJiilPR/ICw=; b=CM+qQ3gvSzwQAjQSQXh0Qy0GAeQfJ9oijLVm4bB14Tb4MjJoMb/V/Fm9osdVIzvdZa ZGfL8Qf+ggKFBq5nZZAOrKOu4lHuxOKh3oJRyUNVGcuD4gOHq7NKT77eGnTpLrixfuhF +nybJKRv9Qjx9FLxTxX4WGzaFYdAMRAmsCGE9qoiH8ojupiGk2W5/j+wEoFCRsCfG+4q riHmGPuvkjf1zhVeV/rhbqT6PsfCOdYyWS/VN+iQ0QYcDgkLAmaXD9T0Omnz/VkAc1HF IyANWVVVu9fUx65rhpmBuifc/f56jpw7GO6pHaGOnnpVBrpuHLlUM4/YbQi3rATDlGrq CEKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Wz4E08F7JKH6TXiOVNrFs/KWE6EvM1kqWJiilPR/ICw=; b=3yd5dY0lpH2Q1YiWGhlZb0G59bh/iivp24OJ7/MGRGNMGrln1DttRT+jS2QvwnzNOm BI5nLOlDelq3FMILaICXuZz4gek1EZCWyPYOlt9XFGXYANUTUdg4stbcOejsAYc+VfYB v7snsIThl9onBWwjqgpqAc2fAzwl6vLtr2X4mlPi3Qq3PzJG1sKoezuVG3OfrKgspW+x WXE+D2zT/m3k8+eVckM+A8GQe71JiM4DwHtwXE91gJhOX3hp1VqpJHgF5PVHT5QwXSx3 3ytiizpx39ycUkyH0mR3L+kyLdx7DKzdX+HV35TAnd0iHIR44TNvBT12AM2DXmyV0ebF O2MQ== X-Gm-Message-State: AOAM531O8H5RGgPtdmYl6a58dDu4qcP4TS4hhv5wo11FmoxZ/51/e8Mp lue52DxBdEkFOGBrmpOYMM+gBFL0nJWkYu+5C5IF8t4/a5A= X-Received: by 2002:a17:906:3b56:: with SMTP id h22mr24422069ejf.141.1632084189798; Sun, 19 Sep 2021 13:43:09 -0700 (PDT) MIME-Version: 1.0 References: <20210918150130.GA30982@xsang-OptiPlex-9020> In-Reply-To: <20210918150130.GA30982@xsang-OptiPlex-9020> From: Andy Shevchenko Date: Sun, 19 Sep 2021 23:42:29 +0300 Message-ID: Subject: Re: [dmaengine] fe364a7d95: UBSAN:array-index-out-of-bounds_in_drivers/acpi/acpica/dswexec.c To: kernel test robot , "Rafael J. Wysocki" , ACPI Devel Maling List Cc: Andy Shevchenko , Vinod Koul , LKML , lkp@lists.01.org, kbuild test robot Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +Cc: Rafael, ACPI ml On Sun, Sep 19, 2021 at 10:41 AM kernel test robot wrote: > > > > Greeting, > > FYI, we noticed the following commit (built with gcc-9): > > commit: fe364a7d95c24e07e9b3f2ab917f01d6d8330bba ("dmaengine: dw: Program xBAR hardware for Elkhart Lake") > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master I do not believe the above commit is related to the reported issue. > in testcase: netperf > version: netperf-x86_64-2.7-0_20210908 > with following parameters: > > ip: ipv4 > runtime: 300s > nr_threads: 1 > cluster: cs-localhost > test: TCP_CRR > cpufreq_governor: performance > ucode: 0xb000280 > > test-description: Netperf is a benchmark that can be use to measure various aspect of networking performance. > test-url: http://www.netperf.org/netperf/ > > > on test machine: 96 threads 2 sockets Ice Lake with 256G memory > > caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): > > > > If you fix the issue, kindly add following tag > Reported-by: kernel test robot > > > [ 47.872842][ T1341] ================================================================================ > [ 47.884637][ T1341] UBSAN: array-index-out-of-bounds in drivers/acpi/acpica/dswexec.c:401:12 > [ 47.884644][ T1341] index -1 is out of range for type 'acpi_operand_object *[9]' > [ 47.884647][ T1341] CPU: 9 PID: 1341 Comm: systemd-udevd Not tainted 5.14.0-rc1-00001-gfe364a7d95c2-dirty #1 > [ 47.884650][ T1341] Call Trace: > 0m] Reached targ[ 47.889421][ T1346] IPMI message handler: version 39.2 > [ 47.927593][ T1341] ubsan_epilogue+0x5/0x40 > [ 47.931873][ T1341] __ubsan_handle_out_of_bounds+0x69/0x80 > [ 47.943808][ T1341] acpi_ps_parse_loop+0x4a5/0x5e4 > [ 47.948707][ T1341] acpi_ps_parse_aml+0x94/0x2c0 > [ 47.954716][ T1341] acpi_ps_execute_method+0x15e/0x193 > [ 47.959953][ T1341] acpi_ns_evaluate+0x1c7/0x25e > [ 47.964663][ T1341] acpi_evaluate_object+0x140/0x250 > [ 47.969727][ T1341] acpi_evaluate_dsm+0xac/0x140 > [ 47.974456][ T1341] acpi_nfit_ctl+0x2c0/0xa00 [nfit] > [ 47.979522][ T1341] ? lock_acquire+0xbb/0x2c0 > [ 47.983985][ T1341] intel_bus_fwa_businfo+0x6a/0xc0 [nfit] > [ 47.989580][ T1341] intel_bus_fwa_state+0x66/0x100 [nfit] > [ 47.995086][ T1341] intel_bus_fwa_capability+0x19/0x40 [nfit] > [ 48.000933][ T1341] nvdimm_bus_firmware_visible+0x35/0x80 [libnvdimm] > Startin[ 48.007478][ T1341] internal_create_group+0xde/0x380 > OpenIPMI Driver [ 48.020614][ T1341] internal_create_groups+0x3d/0xc0 > .. > [ 48.033229][ T1341] ? dev_set_name+0x53/0x80 > [ 48.037936][ T1341] nvdimm_bus_register+0x133/0x1c0 [libnvdimm] > [ 48.043959][ T1341] acpi_nfit_init+0xccf/0x1540 [nfit] > [ 48.049208][ T1341] ? get_object+0x40/0x40 > [ 48.053409][ T1341] ? call_rcu+0x197/0x5c0 > [ 48.057618][ T1341] ? lockdep_hardirqs_on_prepare+0xd4/0x180 > [ 48.063392][ T1341] ? kfree+0x33b/0x5c0 > [ 48.067341][ T1341] ? acpi_evaluate_object+0x229/0x250 > [ 48.072592][ T1341] ? acpi_nfit_add+0x196/0x200 [nfit] > [ 48.077832][ T1341] acpi_nfit_add+0x196/0x200 [nfit] > [ 48.082897][ T1341] acpi_device_probe+0x44/0x180 > Startin[ 48.087616][ T1341] really_probe+0xb3/0x340 > e command to reb[ 48.106497][ T1341] __driver_attach+0x9e/0x180 > . > [ 48.119201][ T1341] ? __device_attach_driver+0x100/0x100 > [ 48.124863][ T1341] bus_for_each_dev+0x78/0xc0 > [ 48.129409][ T1341] bus_add_driver+0x150/0x200 > [ 48.133959][ T1341] driver_register+0x6c/0xc0 > [ 48.138418][ T1341] ? 0xffffffffc065b000 > [ 48.142453][ T1341] nfit_init+0x164/0x1000 [nfit] > [ 48.147269][ T1341] do_one_initcall+0x58/0x300 > [ 48.151817][ T1341] ? kmem_cache_alloc_trace+0x58a/0x780 > 1;39mRegular bac[ 48.168887][ T1341] ? aa_get_task_label+0xc0/0x300 > kground program [ 48.175164][ T1341] ? __do_sys_finit_module+0xae/0x140 > processing daemo[ 48.181758][ T1341] __do_sys_finit_module+0xae/0x140 > [ 48.188211][ T1341] do_syscall_64+0x38/0xc0 > [ 48.193162][ T1341] entry_SYSCALL_64_after_hwframe+0x44/0xae > [ 48.198928][ T1341] RIP: 0033:0x7fbf24907f59 > [ 48.203215][ T1341] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 8b 0d 07 6f 0c 00 f7 d8 64 89 01 48 > [ 48.222712][ T1341] RSP: 002b:00007fffbc5e56e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 > [ 48.222715][ T1341] RAX: ffffffffffffffda RBX: 00005607041aae50 RCX: 00007fbf24907f59 > [ 48.222717][ T1341] RDX: 0000000000000000 RSI: 00007fbf2480ccad RDI: 000000000000000f > Startin[ 48.222719][ T1341] RBP: 00007fbf2480ccad R08: 0000000000000000 R09: 0000000000000000 > m Logging Servic[ 48.265121][ T1341] R13: 00005607042343b0 R14: 0000000000020000 R15: 00005607041aae50 > [ 48.274370][ T1341] ================================================================================ > > > > To reproduce: > > git clone https://github.com/intel/lkp-tests.git > cd lkp-tests > sudo bin/lkp install job.yaml # job file is attached in this email > bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run > sudo bin/lkp run generated-yaml-file > > # 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://lists.01.org/hyperkitty/list/lkp@lists.01.org Intel Corporation > > Thanks, > Oliver Sang > -- With Best Regards, Andy Shevchenko