Comments (6)
That is uh, quite excellent. I tried just setting that hostname which wasn't enough to reproduce it for some super strange reason (that would have been nice :-)
But looking at the backtrace it looks like we're continuously looking up a cname. Do you have something on the network publishing aliases, like avahi-aliases or some code otherwise like https://github.com/airtonix/avahi-aliases/blob/master/avahi_aliases/bin/avahi-alias ?
I can reproduce it if I use that script to publish a CNAME for ourselves, triggers the recursion. So we should detect this recursive lookup and fail out.
from avahi.
Yes, there is also code that adds an alias.
from avahi.
I think some kind to limited TTL should be used on CNAME follows. And lookup_handle_cname should create new lookup only if previous queries did not contain the current destination pointer. Not sure if we keep that history, I think we should. At least for cnames.
from avahi.
It seems to me we just need to check l->cname_lookups for equal key. If we find it, then this lookup contains loop and we have to abort the search, call lookup_drop_cname to remove this search. Not sure how do we make search failed. Another check might ensure n->refs <= 1. But l->cname_lookups seems better place to check.
from avahi.
I revamped this issue in #501. @pemensik I wonder if RH assigned a CVE?
from avahi.
I haven't found a vulnerability bug for avahi, which would sound similar. No CVE id for this issue it seems.
from avahi.
Related Issues (20)
- Hosts are no longer discovered HOT 9
- Update avahi-resolve and avahi-browse to support a mode to force lookup over mdns only HOT 4
- There is a memory leak in dnsconfd
- Add cups service disable HOT 2
- simple-protocol.c:575: simple_protocol_restart_queries: Assertion `server' failed.
- avahi-daemon responds to A queries on 127.0.0.1 but not ::1 HOT 5
- avahi no longer responds to legacy unicast queries on ::1 HOT 2
- Fix various wide-area-dns limitations HOT 1
- Attempting to use internal strlcpy with newer versions of glibc causes compiler error HOT 17
- returning service types as services HOT 23
- avahi fails under UBSan with clang >= 17 because of `-fsanitize=function`
- Additional resource records are put in the answer section instead of the additional section HOT 5
- New Feature: Support wide-area DNS-SD publishing HOT 9
- The CI should run the python tests
- avahi fails to compile with `-Werror`
- ServiceTypeDatabase.py: TypeError: cannot use a string pattern on a bytes-like object
- Statically defined avahi service inaccessible, whilst manual published equivalent is accessible HOT 3
- The service is not published after the start HOT 4
- Integrate avahi with Weblate
- avahi fails to compile with "cannot stat 'service-types.db.coming': No such file or directory" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avahi.