Project

General

Profile

Actions

Bug #243

closed

batadv_tt_local_*: Double batadv_softif_vlan_put

Added by Sven Eckelmann over 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
03/05/2016
Due date:
% Done:

0%

Estimated time:

Description

batadv_tt_local_remove, batadv_tt_local_table_free, batadv_tt_local_purge_pending_clients (and maybe other places) uses a get + a double put of batadv_softif_vlan_put without a direct reference (pointer) in batadv_tt_local_entry. So it could be that the reference which is free'd is actually for a different object in memory or maybe was never obtained.

It looks like there should be an explicit reference (pointer) in batadv_tt_local_entry to be sure that the correct reference is free'd/put.


Related issues 1 (0 open1 closed)

Related to batman-adv - Bug #239: batadv_softif_create_vlan: Missing list checks for *list_add*ClosedAntonio Quartulli06/26/2015

Actions
Actions #1

Updated by Sven Eckelmann over 8 years ago

  • Related to Bug #239: batadv_softif_create_vlan: Missing list checks for *list_add* added
Actions #2

Updated by Sven Eckelmann over 8 years ago

Proof-of-concept patches are available in ecsv/no_double_trouble

RFC of the patch was submitted to the mailing list as https://patchwork.open-mesh.org/project/b.a.t.m.a.n./patch/1457258842-10389-1-git-send-email-sven@narfation.org/

Actions #3

Updated by Sven Eckelmann over 8 years ago

  • Status changed from New to In Progress

I've posted the cleaned up version of the RFC as patch because there was no objection regarding the idea behind the fix.

Actions #4

Updated by Marek Lindner over 8 years ago

  • Status changed from In Progress to Closed

Sven Eckelmann wrote:

I've posted the cleaned up version of the RFC as patch because there was no objection regarding the idea behind the fix.

Merged! Thanks!

Actions #5

Updated by Sven Eckelmann almost 8 years ago

  • Target version set to 2016.1
Actions

Also available in: Atom PDF