Message ID | 20240501124023.683940-4-andrea.righi@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VTxW63rDwz23rw for <incoming@patchwork.ozlabs.org>; Wed, 1 May 2024 22:40:50 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1s29GH-0004Zg-1K; Wed, 01 May 2024 12:40:37 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <andrea.righi@canonical.com>) id 1s29GB-0004XS-QO for kernel-team@lists.ubuntu.com; Wed, 01 May 2024 12:40:31 +0000 Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 628083F15B for <kernel-team@lists.ubuntu.com>; Wed, 1 May 2024 12:40:30 +0000 (UTC) Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-a524b774e39so72200166b.1 for <kernel-team@lists.ubuntu.com>; Wed, 01 May 2024 05:40:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714567230; x=1715172030; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8PNENLAH/ZXUz9xAexOzQfIbSeZjCOwpoDfcEv9v6UA=; b=BCDC88EGpt9G/IfSNuO00VY+h7HN/WKFWU4xCj1YCSPNJLgsQuVkCa1ITylZXYG0ii bzAxGplKuue1ARZlxZYJUw2UFiRKE783BMzDxe96YF4pGEkuDbXsyCUEleSKgbTqp3Gm jhtD8tmgX/knJjYclF5yVdNhxgZtCLKai7H7Q6UxfvGLsKdQTGP5xXb5TkDbiNBCg4Fs Z+0k2We/SfvYddSfFUy5+ti6V5mQdxhxxJUFQ4BHxwytOIXeoiAyQOBgDEmNF3d7etL4 saN0TLbQamG3ynb70wBif5xRtTdp6JmKgPSNv+vuUb6+d+UB7AZRbiErsCvbxIQiwoXg lGzQ== X-Gm-Message-State: AOJu0YzdiaAK41e6LowiIKDf8AC4W+j18/1mRqaA8pCr6G8jUvRuvGku 0Zz/97MiwCbRYaLqZCHSsMXcqxD6vEzf6UFEEEKNOYfCYOMALW1YIawe8CbJ/6XOKrJ7sgSc0eG T1SDiJ7Hjrhu35BArsRoSpBGcHo5ASMn1MAP29lpbcEs5J6J1tuE7NmZ0ax8IlOqKraZFEzN3Xe lPPtAEd7IK7g== X-Received: by 2002:a17:907:7245:b0:a59:2141:5b0d with SMTP id ds5-20020a170907724500b00a5921415b0dmr5224714ejc.35.1714567229811; Wed, 01 May 2024 05:40:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFNgVuJXlihfl187sRkMrf1TgRB7eKr/nH7TLFe5dSXFv242hT7nZ3wzqwPDR0xMXjVyqHSCQ== X-Received: by 2002:a17:907:7245:b0:a59:2141:5b0d with SMTP id ds5-20020a170907724500b00a5921415b0dmr5224697ejc.35.1714567229341; Wed, 01 May 2024 05:40:29 -0700 (PDT) Received: from gpd.homenet.telecomitalia.it (host-82-49-69-7.retail.telecomitalia.it. [82.49.69.7]) by smtp.gmail.com with ESMTPSA id i7-20020a1709061e4700b00a52244ab819sm16602108ejj.170.2024.05.01.05.40.28 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 05:40:29 -0700 (PDT) From: Andrea Righi <andrea.righi@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [SRU][N][PATCH 3/4] UBUNTU: SAUCE: fan: Fix NULL pointer dereference Date: Wed, 1 May 2024 14:34:59 +0200 Message-ID: <20240501124023.683940-4-andrea.righi@canonical.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240501124023.683940-1-andrea.righi@canonical.com> References: <20240501124023.683940-1-andrea.righi@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
re-enable Ubuntu FAN in the Noble kernel
|
expand
|
diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c index a044da845559..6025822763bf 100644 --- a/net/ipv4/ipip.c +++ b/net/ipv4/ipip.c @@ -652,7 +652,7 @@ static int ipip_netlink_fan(struct nlattr *data[], struct ip_tunnel *t, struct nlattr *attr; int rem, rv; - if (!data[IFLA_IPTUN_FAN_MAP]) + if (data == NULL || !data[IFLA_IPTUN_FAN_MAP]) return 0; if (parms->iph.daddr)