Skip to content

[TACACS]|Fix memory leak when authenticating using tacacs#72

Closed
DavidZagury wants to merge 4 commits intomasterfrom
master_tacacs_mem
Closed

[TACACS]|Fix memory leak when authenticating using tacacs#72
DavidZagury wants to merge 4 commits intomasterfrom
master_tacacs_mem

Conversation

@DavidZagury
Copy link
Owner

Why I did it

A small memory leak was found when running TACACS

Work item tracking
  • Microsoft ADO (number only):

How I did it

A patch was created for the libnss-tacplus repository that will fix the memory leak.

How to verify it

Configure TACACS
Use the python script that reproduce the consumption and monitor its memory consumption.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

+ }
+
}
- fclose(conf);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fclose(conf);

why remove this line?

+ }
+ token = strsep(&buf, delim);
}
- fclose(conf);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fclose

the same.

@Yarden-Z
Copy link

Why are we adjusting the old patch in order to fix this issue?
It causes confusion and does not create a clear path as to what we are trying to achieve here...

I'd suggest going back to the original suggestion by Deddy to have a clean overview of this specific fix.

@DavidZagury
Copy link
Owner Author

Why are we adjusting the old patch in order to fix this issue?
It causes confusion and does not create a clear path as to what we are trying to achieve here...

I'd suggest going back to the original suggestion by Deddy to have a clean overview of this specific fix.

@Yarden-Z Qi requested it.
But you are correct, and I talked about with Qi already and agreed that we can revert it back to two patches.
Will revert it today

This reverts commit 2ea206d.
This reverts commit ef8e4d6.
DavidZagury pushed a commit that referenced this pull request Jul 2, 2025
…ically (sonic-net#23157)

#### Why I did it
src/sonic-dash-ha
```
* b8ca7c1 - (HEAD -> master, origin/master, origin/HEAD) Change field_values deserializer to support serde(default) (#71) (4 hours ago) [yue-fred-gao]
* 1b6f04f - Test utils to test hamgrd in local workspace (#72) (4 hours ago) [yue-fred-gao]
```
#### How I did it
#### How to verify it
#### Description for the changelog
DavidZagury pushed a commit that referenced this pull request Sep 10, 2025
…ly (sonic-net#23898)

#### Why I did it
src/sonic-stp
```
* e3626a4 - (HEAD -> master, origin/master, origin/HEAD) [MSTP] Fixing buffer OOB Read/Write issues (#72) (20 hours ago) [Shivashankar C R]
```
#### How I did it
#### How to verify it
#### Description for the changelog
DavidZagury pushed a commit that referenced this pull request Sep 28, 2025
…ly (sonic-net#24123)

#### Why I did it
src/dhcprelay
```
* 5b078ef - (HEAD -> master, origin/master, origin/HEAD) Move DHCPv6 Relay code to dhcp6relay folder (#72) (7 minutes ago) [Shivashankar C R]
```
#### How I did it
#### How to verify it
#### Description for the changelog
DavidZagury pushed a commit that referenced this pull request Mar 15, 2026
…ly (sonic-net#25665)

#### Why I did it
src/sonic-ztp
```
* 17930d7 - (HEAD -> 202511, origin/202511) Skip ZTP service during warm boot (#72) (4 hours ago) [mssonicbld]
```
#### How I did it
#### How to verify it
#### Description for the changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants