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 X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1F47C43603 for ; Mon, 16 Dec 2019 11:18:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 893A12072B for ; Mon, 16 Dec 2019 11:18:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727088AbfLPLR7 (ORCPT ); Mon, 16 Dec 2019 06:17:59 -0500 Received: from www62.your-server.de ([213.133.104.62]:43420 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727059AbfLPLR7 (ORCPT ); Mon, 16 Dec 2019 06:17:59 -0500 Received: from sslproxy02.your-server.de ([78.47.166.47]) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1igoNr-0007sX-Mu; Mon, 16 Dec 2019 12:17:51 +0100 Received: from [2001:1620:665:0:5795:5b0a:e5d5:5944] (helo=linux.fritz.box) by sslproxy02.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1igoNr-0003C6-BK; Mon, 16 Dec 2019 12:17:51 +0100 Subject: Re: [PATCH] bpf: Replace BUG_ON when fp_old is NULL To: Yonghong Song , Aditya Pakki Cc: "kjlu@umn.edu" , Alexei Starovoitov , Martin Lau , Song Liu , Andrii Nakryiko , "netdev@vger.kernel.org" , "bpf@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <20191215154432.22399-1-pakki001@umn.edu> <98c13b9c-a73a-6203-4ea1-6b1180d87d97@fb.com> From: Daniel Borkmann Message-ID: <566f206c-f133-6f68-c257-2c0b3ec462fa@iogearbox.net> Date: Mon, 16 Dec 2019 12:17:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <98c13b9c-a73a-6203-4ea1-6b1180d87d97@fb.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.101.4/25665/Mon Dec 16 10:52:23 2019) Sender: bpf-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On 12/15/19 11:08 PM, Yonghong Song wrote: > On 12/15/19 7:44 AM, Aditya Pakki wrote: >> If fp_old is NULL in bpf_prog_realloc, the program does an assertion >> and crashes. However, we can continue execution by returning NULL to >> the upper callers. The patch fixes this issue. > > Could you share how to reproduce the assertion and crash? I would > like to understand the problem first before making changes in the code. > Thanks! Fully agree, Aditya, please elaborate if you have seen a crash!