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 BD2F2A0C4B; Fri, 5 Nov 2021 15:27:49 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AD17E41183; Fri, 5 Nov 2021 15:27: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 2E75140E5A for ; Fri, 5 Nov 2021 15:27:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1636122467; 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: in-reply-to:in-reply-to:references:references; bh=a13m1XDOKbwFv8TSHQ5iRhJmBpE3W6ODgS1oFoN/oNE=; b=FwAyXuUZEN41h+2Rmc4kb7+nHGrNV+hiV1kLOaGPfDdTNS7Tqq1MoRLovT+Rzo05W3Iz70 1udlQk2YGgKpE3QB0RD8t7pSAesqZQ2m+Ne/LqyY8/M1LmAKai9IV2KpFLvwAu/cRzdCoC F71QUTrSXyZGQ2SlEwIcNB3bezNmXio= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-402-WFfU8eUUMXKGc5UzAzb8rw-1; Fri, 05 Nov 2021 10:27:44 -0400 X-MC-Unique: WFfU8eUUMXKGc5UzAzb8rw-1 Received: by mail-lf1-f72.google.com with SMTP id x7-20020a056512130700b003fd1a7424a8so3638561lfu.5 for ; Fri, 05 Nov 2021 07:27:44 -0700 (PDT) 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=a13m1XDOKbwFv8TSHQ5iRhJmBpE3W6ODgS1oFoN/oNE=; b=ncGGTKb8g63CQR1LsjaeciiaVeyJ+K802X7N+U9P/S9Ct9pZEnTSMvfi7ga0I/HB80 2MZloajpb86upFHBKxNRy/8c3NQfp1+eovMrYA0zAWK9kE6yeN2b2cQB43FNbPZRS5Bf NSfm4KAhbP1FatM2ZVmpdRXYjP6uyevGbAtICrSdwmqOo2Y/jYmtJ872E8tasdYejryy cKKv1PzLZF/uykR/ZqT25Pb/4fSK3iZVJVzWBYet04RBnPbXkEaVzYyPsvoweCdEKBV8 BFxn+JPQBkAQLGY6bSuxM2vCoS+n5sbkI1NlrZz2FwxTJZ4E0y12HvYWrnzy3sy1fCtq P7+w== X-Gm-Message-State: AOAM531Nsq4Ynh+GlXZkvTzB6MOMkBKl3T6qC+FDB3UG9mItBPhD1KRi CIGp/jljeA6JG41MsjQLHigpsn79mw4gFbVeckGZxVf67CUhQ6jufGFkO4pmHLVBP5vyIhfyO4D CuRhpZAyT4VqIfy+SoUI= X-Received: by 2002:ac2:5d68:: with SMTP id h8mr53180173lft.217.1636122463001; Fri, 05 Nov 2021 07:27:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZPkW8nydra4UWrhOKhuMguxppFYEaaHlnxN/AhJmdMiM0uG7K/bgP1z4N7oijz4GSpjtE+nS5+0CATKXYaas= X-Received: by 2002:ac2:5d68:: with SMTP id h8mr53180153lft.217.1636122462793; Fri, 05 Nov 2021 07:27:42 -0700 (PDT) MIME-Version: 1.0 References: <20211029095310.30785-1-olivier.matz@6wind.com> In-Reply-To: <20211029095310.30785-1-olivier.matz@6wind.com> From: David Marchand Date: Fri, 5 Nov 2021 15:27:31 +0100 Message-ID: To: Olivier Matz Cc: dev , Anatoly Burakov , Maxime Coquelin , dpdk stable Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] eal/memory: fix unused SIGBUS handler 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 Sender: "dev" On Fri, Oct 29, 2021 at 11:53 AM Olivier Matz wrote: > > Since its introduction in 2018, the SIGBUS handler was never registered, > and all related functions were unused. > > A SIGBUS can be received by the application when accessing to hugepages > even if mmap() was successful, This happens especially when running > inside containers when there is not enough hugepages. In this case, we > need to recover. A similar scheme can be found in eal_memory.c. > > Fixes: 582bed1e1d1d ("mem: support mapping hugepages at runtime") > Cc: stable@dpdk.org > > Signed-off-by: Olivier Matz Reviewed-by: Maxime Coquelin Acked-by: David Marchand Applied, thanks. -- David Marchand