From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 49E6D43C9F; Wed, 13 Mar 2024 13:11:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ADC6D40A84; Wed, 13 Mar 2024 13:11:49 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 9E2D1402B8 for ; Wed, 13 Mar 2024 13:11:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1710331907; 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=2R3WOEWNv3tkgXSOicEs4NDwhHd8P0IoQ/Uv8QD2PKk=; b=URLiowxLx7ssLy6Hbn/Te8BfINFQJngogrCzT6Yc08lGANJOs6WNettahzW9pcUVhs6wGq PfChG46w7uUT1VN8JstCuaNa4Ng0Xdqqncl/wiRLDoIiYU8HNpS2yBFK2ZxqT47usPZgrB 5Tg3u2Ia08vdy7ueRg4SNyIOcatOqw4= Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-32-MXXcm62BPKylI9yFPcUzOw-1; Wed, 13 Mar 2024 08:11:43 -0400 X-MC-Unique: MXXcm62BPKylI9yFPcUzOw-1 Received: by mail-lj1-f198.google.com with SMTP id 38308e7fff4ca-2d32d9a312eso47394681fa.2 for ; Wed, 13 Mar 2024 05:11:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710331902; x=1710936702; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2R3WOEWNv3tkgXSOicEs4NDwhHd8P0IoQ/Uv8QD2PKk=; b=a6RvEbLjgggklRt0eRvg0IvFjThP4bLbZktmX1+qUKuQ8FWskWqkiJtAZBlmI24UyT wEMu3+AyWtZeKMhKR3+RuyyXT7cd00+8x8fQFM1DfR8oCDLNruWk3bKua/xsyX7rUDuN 9fcrfGml71T/I1dUX96aMwSmqhEtb1fJvKTkO0ZvWgo9FmGlAAk63Ses90M82FDRqsVD +dSqSCz/3AFPVMMLrcRstfhv/G0JKjBBzmHoEQqqtgHM+Ekn/8UGHYzCQpsMZdoE+pbP 7ZAzhAi8mm7JXHePvGFQSFAt8CilHwV0BHfdnayU2LmpXLNPplS5Ue0VgxdbHcqMutv/ lZaA== X-Gm-Message-State: AOJu0Yw/WYNLpLKmn0oG1BugqPxn9IVYjhIZUlc1Ur5t9BpFlr8G9X33 pakYMeK+MKWCbr/U+jguWtWytmfgg5cemwsEMv3AnkYUaNbMrNGZC1r3LF3ZKAbq8ME386za5bh bwWPlsNakDJFZGhA3NRCyQxzVSkQontUnj6AzbGn2Xn5vE1dz3y/eWKq+UcO12n0s2gLyzfLPPU /QAs3cnyHOtbjnpjQ= X-Received: by 2002:a2e:890e:0:b0:2d2:c8ee:c99b with SMTP id d14-20020a2e890e000000b002d2c8eec99bmr9088576lji.29.1710331902288; Wed, 13 Mar 2024 05:11:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHUCwdWUW9bCMn6THudkESY4S0FkfxbsLYjTfjiXQwvYknzrhs+3c0vu7G6FBnAgJ8kXTeJQu8563HsXDh3Fv0= X-Received: by 2002:a2e:890e:0:b0:2d2:c8ee:c99b with SMTP id d14-20020a2e890e000000b002d2c8eec99bmr9088557lji.29.1710331901915; Wed, 13 Mar 2024 05:11:41 -0700 (PDT) MIME-Version: 1.0 References: <20240312145326.1377818-1-aconole@redhat.com> In-Reply-To: <20240312145326.1377818-1-aconole@redhat.com> From: David Marchand Date: Wed, 13 Mar 2024 13:11:30 +0100 Message-ID: Subject: Re: [PATCH] github: Reduce ASLR entropy to be compatible with asan in llvm 14. To: Aaron Conole , Ferruh Yigit , Akhil Goyal , Jerin Jacob Kollanukkaran , Maxime Coquelin , Ajit Khaparde , Raslan Darawsheh Cc: dev@dpdk.org, Ilya Maximets , Michael Santana , Thomas Monjalon , Kevin Traynor , Luca Boccassi , "Xueming(Steven) Li" X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Tue, Mar 12, 2024 at 3:53=E2=80=AFPM Aaron Conole w= rote: > > GitHub recently started using newer Ubuntu 22.04 LTS container images, > versioned 20240310.1.0 which use 32-bit entropy for ASLR: > > $ sudo sysctl -a | grep vm.mmap.rnd > vm.mmap_rnd_bits =3D 32 > vm.mmap_rnd_compat_bits =3D 16 > > This breaks builds (such as the one at > https://github.com/DPDK/dpdk/actions/runs/8234334617/job/22515850325) by > causing a random segfault when ASAN is used, because older ASAN gets > confused by memory mappings and crashes. > > The issue is fixed in newer releases of LLVM: > https://github.com/llvm/llvm-project/commit/fb77ca05ffb4f8e666878f2f671= 8a9fb4d686839 > https://reviews.llvm.org/D148280 > > But these are not available in Ubuntu 22.04 image. > > This should be fixed by GitHub, but until new images are available > reducing ASLR entropy manually to 28 bits to make builds work. > > Reported-at: https://github.com/actions/runner-images/issues/9491 > Signed-off-by: Aaron Conole > Suggested-by: Ilya Maximets Thanks Aaron, I applied this workaround for now. Heads up to subtree maintainers. We have some false positive test failures in GHA for the past days. Please rebase to DPDK main repository or pick this fix in your trees. Thanks. --=20 David Marchand