Tail Debug Logging Crash issue in 2.31.7 - 2.31.9
Closed this issue · 0 comments
PettitWesley commented
This only affects you if ALL of following are true:
- You are using 2.31.7 to 2.31.9
- You are using the tail input: https://docs.fluentbit.io/manual/pipeline/inputs/tail
- You have enabled debug logging: https://github.com/aws/aws-for-fluent-bit/blob/mainline/troubleshooting/debugging.md#enable-debug-logging
Versions Impacted
2.31.7, 2.31.8 and 2.31.9
Mitigations
- Use a non-impacted version, we recommend 2.31.6 or 2.31.7
- Do not enable debug logging: https://github.com/aws/aws-for-fluent-bit/blob/mainline/troubleshooting/debugging.md#enable-debug-logging
- Do not use the tail input: https://docs.fluentbit.io/manual/pipeline/inputs/tail
Root Cause
Bad code introduced here: PettitWesley/fluent-bit@ab11d1d
Introduced in AWS for Fluent Bit here: 612f246
flb_sds_printf(&buf, "inode=%"PRIu64", %s, events: ", file->name, file->inode);
The arguments are out of order, file->inode should be first, file->name should be second.