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 CCA28C3DA4A for ; Mon, 19 Aug 2024 08:29:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4DD436B0085; Mon, 19 Aug 2024 04:29:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 48DA06B0089; Mon, 19 Aug 2024 04:29:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3A3606B008A; Mon, 19 Aug 2024 04:29:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 1B1046B0085 for ; Mon, 19 Aug 2024 04:29:04 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 923E481099 for ; Mon, 19 Aug 2024 08:29:03 +0000 (UTC) X-FDA: 82468319766.09.7F3E0C5 Received: from mail-vs1-f41.google.com (mail-vs1-f41.google.com [209.85.217.41]) by imf26.hostedemail.com (Postfix) with ESMTP id ED311140009 for ; Mon, 19 Aug 2024 08:29:01 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=linaro.org header.s=google header.b="oRWEE/SN"; spf=pass (imf26.hostedemail.com: domain of naresh.kamboju@linaro.org designates 209.85.217.41 as permitted sender) smtp.mailfrom=naresh.kamboju@linaro.org; dmarc=pass (policy=none) header.from=linaro.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724056081; 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:in-reply-to: references:dkim-signature; bh=UpX4LsrqwRDqFBD8C2IBSkZVW31sWUBwFvypF0QOuuo=; b=ISiW0UxwwaTJ7fPN07HCtA6wno+lnfnWkm8cF1cy+oHskgxz0Ua1zPBbodQnSYJNY1n2x7 EIyrjFdpCmIJRVe+Ot59Uc4jsCwPRgjVJz34uJUCDWcpsSIJ8snMpsbI7YDY+NGxVOYbQr MxHuszml6tCQIgdFdT0VKD2j91nDv/Q= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=linaro.org header.s=google header.b="oRWEE/SN"; spf=pass (imf26.hostedemail.com: domain of naresh.kamboju@linaro.org designates 209.85.217.41 as permitted sender) smtp.mailfrom=naresh.kamboju@linaro.org; dmarc=pass (policy=none) header.from=linaro.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724056081; a=rsa-sha256; cv=none; b=xoAOt7dqWQ8pYIXUJC3QBJ2sMZ2+MwDIqulvQ2r3ALsc/HVj7DGTaHlfsTX6Xb0A8EcVFI nuGiNnBSlUDpNjIIE76wxADSaaU7FTY6OmbP83pXOMfvZkO3TT5qtv7hok5EEgn6D5zL5U vDSS7jgPE/IaBLFHm5rRo4d2rRC50tM= Received: by mail-vs1-f41.google.com with SMTP id ada2fe7eead31-495d1a6db75so1351132137.1 for ; Mon, 19 Aug 2024 01:29:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724056140; x=1724660940; darn=kvack.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=UpX4LsrqwRDqFBD8C2IBSkZVW31sWUBwFvypF0QOuuo=; b=oRWEE/SNRuDJiz5kPreVD/CdO+pl/zos1KuoLek52wV/ZXzMfbrIujsjkSqD8nHe7J kw+jgw3DUe1DEVn2lyqJSzDHF1yvvaKCjhBKR9uTcAwpuaWUzDnwr7lsoe67bZAoN3VW Mku/6lIDyiJ6PNOV95XOkApm3fhnXJvTZ3W+95fle1gDsvgTdh0r4uBRiyh4fyaZ0wZz OR0gmESTBWKl4PpWUxaL1nzUIOdAuu4XXe1hLpef2n5z6T27bblKc7yuqX15MS/OILp/ /sqqX486eym9rrLgj1nAe2e0KoHkgx/MU7WE+O2Yh+2iRpf7M8cOLx91HyTLxxCPk/PJ qe1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724056140; x=1724660940; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=UpX4LsrqwRDqFBD8C2IBSkZVW31sWUBwFvypF0QOuuo=; b=lfcoEndFE+0bzFySQ45MinV8NrtUuvh1gu4jB5rnnOgUTIkjPnjUxGpyYubJ1HyPMj q6yOmtrrkuhH+guIgsxviY4pAVUjX956iT9W31OwyVMVu0SJkuk8pwD+Au+VI44Q1KYv ZT+su4saBuH34GO79r0uOXw7jcQiqUNw7s0ZV2XxOq0W1y7irBMat/R5WYqUwFyWan3q 9AIv/sBURODVBW52qQVge+Kns0zl2LKxfxkWDTffsIAsqtv5SvKebGRFO+lcLWueLvXD 0lIfrk+XzIl7ubxhHWujcu0Vj5D4jV2d6KQt4bZnzEKF9b2AXwS5cdqhZrhb/r+8iYwI QmcQ== X-Gm-Message-State: AOJu0Yypcbx8hKMVe6kDJkjpDDTcLb8tyvXhbyfSi3fApD5Dxcrl74VF MnAuT3rU/P/7nh05HHUTM+vsZ8kCoDOKuxWjc5VbJlYZUH4reO1NeMLn91ZnVBikePAqaCjxjmY tO/r1PiEWm0RT0ObZdguyaBi4qj4P4NeZJHF/y+RHs2e03OvL70o= X-Google-Smtp-Source: AGHT+IHKVi6WKmdyAQ6QyA73ge60UMveA7EfNgA9AWldj2xZheTdlekHgzFhLgWv7yt/BTmNdTQkVOzDSqv76IZiO/8= X-Received: by 2002:a05:6102:5487:b0:495:6aeb:a0e9 with SMTP id ada2fe7eead31-49779881408mr11886459137.4.1724056140489; Mon, 19 Aug 2024 01:29:00 -0700 (PDT) MIME-Version: 1.0 From: Naresh Kamboju Date: Mon, 19 Aug 2024 13:58:49 +0530 Message-ID: Subject: gcc-8: mm/swapfile.c:863:40: error: array subscript 1 is above array bounds of 'struct list_head[1]' [-Werror=array-bounds] To: linux-mm , open list , lkft-triage@lists.linaro.org, Linux Regressions Cc: Kairui Song , Barry Song <21cnbao@gmail.com>, Chris Li , "Huang, Ying" , Hugh Dickins , Kalesh Singh , Ryan Roberts , Andrew Morton , Anders Roxell Content-Type: text/plain; charset="UTF-8" X-Stat-Signature: xueuifzqteqiisfpe7es9hffnenugd1k X-Rspam-User: X-Rspamd-Queue-Id: ED311140009 X-Rspamd-Server: rspam02 X-HE-Tag: 1724056141-366807 X-HE-Meta: U2FsdGVkX1+qiIfVOcarrnHx5TmH7S5hXCkaGnPbjBWryzP1kyq3x2WbB24Tu6y1GrQSU/jvXHxoYvljBSkB2KPIjnsF/qiZbdCQdnxExG3cLR3bWHVKAcz3Xv894H6bCE4L3+qqvDAg9ch2tc9fpyvHdDcrdkEB1NlsfeG3J2qQlIqy7yB46hlHYFjskjNNcOtPEDXUxhyKJyoICAR8+p6VYIgNr1x3+++RYMkeFYitqX/O7lVK7icBnpS/CS5kPI+5rPJm1x2/k897opLjOdH/974BaI8Tejns/EWWODqzMCXR8wxN9o4auj9MKRWp4OdXBvdH/L3RpoQmgKTqk6tT2WLsM2fNc4YOXiEF4aN9F/VUjAwvZ/FcAgwENpYrEryMnFrU80qsZTWGDsk+Yg3rMYUqsSNCBRAynP/VNkg3ELXKtd7Oub4j+Ijj4fbSiyGimJBon0Q0u136yEDRBg8dLVCrbJiUjMXbOIs+/p94+si6Ks3sPPrf6meIIByCiVPRsbWCJFr5FMrpbzlmoGDke2r6QRJVInqRIKPajmciNWCkFOfq07wIoieRym5SEmBKwYHfRyHZwm5Ou9SkC5d52dBRJCSfd1luy/yaCIZInlJRg4ehwizb/gVUSItseTYOz7qo2QmieA1TcBzTZwp5gRwR3TAfUMYrpUJxY7ddLANZqDBiT9I20duyfSRKVRVNZs5Z535VIOmsQL4ZAXr5pZzqvDnchDXV/X0ALJYlxStZQ8INOW5WAVQ/O1MXkea4fnQJJV3f0S025kFj/Cu/e5q5EqploRVMMC0WFTuvCKy9C+A0n5mO4Pu75PIyXcM1jLeRlUGMYDzPYwFbwzoysyXtxQ1RbliPasthryZZKWXh91I5f7e7/lKvMLIR9WO7DYBnc1lDN/V3RMDyyBSZsnvDrLY0+2+g5Lxm52GEKKuSMDgJdA7xvaYJhT7KyvOK2jKQA1ozEfAqvXw 1IjlK905 qa/rmJWRhmS2saOOj2KAFjOE4wy6xfaW01raCKV35q5j98Gf/EerXzONdYegagMxZ0tXGB88n0+qMi9+jA5u0BaBmD15Y1+jzLLYloWR0YxNh9x2/37C4hrV7haHPHlRaJamiaXYDzFCawJdH2B35kcVjBZzotD0JDnHRu0/5RkyLqyQYE9wyAAeOxlmmyhnbMbkQa4CoklMB6z+zTjw5f77hwjIGLN8BrR+tKkLgqzare6Bq2YkBShA7Mz3y8P6j+LXGfrtU7ICxj/jnpU+k9IL9KlR4js8AVEvP5DxDNnK3ATODww7cQZeGHYDtcl5yiWGsOGdOQ1D84SpIsE1qAjfFbbot1w6q/Fyw 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: List-Subscribe: List-Unsubscribe: The x86 builds failed with gcc-8 due to following build warnings / errors on Linux next-20240802 to next-20240819. x86_64 defconfig gcc-8 build failed x86_64 defconfig gcc-13 build pass First seen on the next-20240802 tag. GOOD: next-20240730 BAD: next-20240802 Reported-by: Linux Kernel Functional Testing Build errors: -------- mm/swapfile.c: In function 'scan_swap_map_slots.constprop': mm/swapfile.c:863:40: error: array subscript 1 is above array bounds of 'struct list_head[1]' [-Werror=array-bounds] while (!list_empty(&si->frag_clusters[o])) { ~~~~~~~~~~~~~~~~~^~~ mm/swapfile.c:872:43: error: array subscript 1 is above array bounds of 'struct list_head[1]' [-Werror=array-bounds] while (!list_empty(&si->nonfull_clusters[o])) { ~~~~~~~~~~~~~~~~~~~~^~~ In file included from include/linux/list.h:5, from include/linux/wait.h:7, from include/linux/wait_bit.h:8, from include/linux/fs.h:6, from include/linux/highmem.h:5, from include/linux/bvec.h:10, from include/linux/blk_types.h:10, from include/linux/blkdev.h:9, from mm/swapfile.c:9: include/linux/list.h:612:18: error: array subscript 1 is above array bounds of 'struct list_head[1]' [-Werror=array-bounds] list_entry((ptr)->next, type, member) ^~ include/linux/container_of.h:19:26: note: in definition of macro 'container_of' void *__mptr = (void *)(ptr); \ ^~~ include/linux/list.h:612:2: note: in expansion of macro 'list_entry' list_entry((ptr)->next, type, member) ^~~~~~~~~~ mm/swapfile.c:873:9: note: in expansion of macro 'list_first_entry' ci = list_first_entry(&si->nonfull_clusters[o], ^~~~~~~~~~~~~~~~ include/linux/list.h:612:18: error: array subscript 1 is above array bounds of 'struct list_head[1]' [-Werror=array-bounds] list_entry((ptr)->next, type, member) ^~ include/linux/container_of.h:19:26: note: in definition of macro 'container_of' void *__mptr = (void *)(ptr); \ ^~~ include/linux/list.h:612:2: note: in expansion of macro 'list_entry' list_entry((ptr)->next, type, member) ^~~~~~~~~~ mm/swapfile.c:864:9: note: in expansion of macro 'list_first_entry' ci = list_first_entry(&si->frag_clusters[o], ^~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Steps to reproduce: ------- # tuxmake --runtime podman --target-arch x86_64 --toolchain gcc-8 --kconfig x86_64_defconfig Build log link, ------ - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240819/testrun/24918869/suite/build/test/gcc-8-x86_64_defconfig/log metadata: ----- git describe: next-20240802 git repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next git short_log: f524a5e4dfb7 ("Add linux-next specific files for 20240802") config: https://storage.tuxsuite.com/public/linaro/lkft/builds/2k6wLr4UFODrd3snUDTPPevXpPY/config download_url: https://storage.tuxsuite.com/public/linaro/lkft/builds/2k6wLr4UFODrd3snUDTPPevXpPY/ toolchain: gcc-8 arch: x86_64 -- Linaro LKFT https://lkft.linaro.org