[SRU] no WiFi card, ends with segfault

Bug #2045986 reported by psl
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
horst (Ubuntu)
Fix Released
Undecided
Unassigned
Focal
Won't Fix
Undecided
Unassigned
Jammy
Won't Fix
Undecided
Unassigned
Lunar
Won't Fix
Undecided
Unassigned
Mantic
Won't Fix
Undecided
Unassigned
Noble
Fix Released
Undecided
Unassigned

Bug Description

[ Impact ]

The usage of horst is not affect and horst is perfectly usable on a system where a wifi hardware is present.
But if any user who does not have a wifi hardware executes horst then it will segfault which is unexpected and the user will not expect a segfault.
This ultimateley affects the user experience.

[ Test Plan ]

There needs to be two tests:
1. Execute horst on a system where wifi hardware is not present to confirm the segfault is fixed.
2. Execute horst on a system where wifi hardware is present and then horst should work normally.

[ Where problems could occur ]

The patch checks if the wifi interface, which horst will try to use, is present on the system or not. It will then exit gracefully if the interface is not present instead of trying to use a non-existent device. This is not changing any other part of the code and the check is added at the beginnning. So, there is very minimum chance of it affecting the normal functioning of horst.

[ Other Info ]

* All versions from Focal are affected by this.

[ Original Bug Description ]

Ubuntu 22.04.3, amd64

PC has no WiFi card. Horst crashes:

$ horst -v
5.1 (build date: Nov 28 2021 18:51:58)

$ horst
failed to find nl80211
Segmentation fault (core dumped)

$ gdb horst
...
(gdb) run
Starting program: /usr/sbin/horst
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
failed to find nl80211

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7e40bc6 in genl_family_get_id () from /lib/x86_64-linux-gnu/libnl-genl-3.so.200
(gdb)

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

I have now tested and I can reproduce the problem in all releases from Noble, Mantic, Lunar, Jammy and Focal.

tags: added: focal jammy lunar mantic noble
Changed in horst (Ubuntu Focal):
status: New → In Progress
Changed in horst (Ubuntu Jammy):
status: New → In Progress
Changed in horst (Ubuntu Lunar):
status: New → In Progress
Changed in horst (Ubuntu Mantic):
status: New → In Progress
Changed in horst (Ubuntu Noble):
status: New → In Progress
Changed in horst (Ubuntu Focal):
assignee: nobody → Sudip Mukherjee (sudipmuk)
Changed in horst (Ubuntu Jammy):
assignee: nobody → Sudip Mukherjee (sudipmuk)
Changed in horst (Ubuntu Lunar):
assignee: nobody → Sudip Mukherjee (sudipmuk)
Changed in horst (Ubuntu Mantic):
assignee: nobody → Sudip Mukherjee (sudipmuk)
Changed in horst (Ubuntu Noble):
assignee: nobody → Sudip Mukherjee (sudipmuk)
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

debdiff for Noble attached.

summary: - no WiFi card, ends with segfault
+ [SRU] no WiFi card, ends with segfault
description: updated
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

Debdiff for Mantic attached.

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

Debdiff for Lunar attached.

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

Debdiff for Jammy attached.

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

Debdiff for Focal attached.

Changed in horst (Ubuntu Focal):
status: In Progress → Confirmed
Changed in horst (Ubuntu Jammy):
status: In Progress → Confirmed
Changed in horst (Ubuntu Lunar):
status: In Progress → Confirmed
Changed in horst (Ubuntu Mantic):
status: In Progress → Confirmed
Changed in horst (Ubuntu Noble):
status: In Progress → Confirmed
Changed in horst (Ubuntu Focal):
assignee: Sudip Mukherjee (sudipmuk) → nobody
Changed in horst (Ubuntu Jammy):
assignee: Sudip Mukherjee (sudipmuk) → nobody
Changed in horst (Ubuntu Lunar):
assignee: Sudip Mukherjee (sudipmuk) → nobody
Changed in horst (Ubuntu Mantic):
assignee: Sudip Mukherjee (sudipmuk) → nobody
Changed in horst (Ubuntu Noble):
assignee: Sudip Mukherjee (sudipmuk) → nobody
Changed in horst (Ubuntu Noble):
status: Confirmed → In Progress
Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :

Noble packaging looks good to me, tsimonq2 has uploaded it.

Simon Quigley (tsimonq2)
Changed in horst (Ubuntu Mantic):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package horst - 5.1-3ubuntu1

---------------
horst (5.1-3ubuntu1) noble; urgency=medium

  * Fix segfault by exiting if interface does not exist. (LP: #2045986)

 -- Sudip Mukherjee <email address hidden> Sun, 31 Dec 2023 21:07:23 +0000

Changed in horst (Ubuntu Noble):
status: In Progress → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote :

Description: Highly Optimized Radio Scanning Tool
 horst is a small, lightweight IEEE802.11 WLAN analyzer with a text
 interface. [...]

The SRU justification given is:

> But if any user who does not have a wifi hardware executes horst then it
> will segfault which is unexpected and the user will not expect a segfault.
> This ultimateley affects the user experience.

The user experience before this patch is an error message and a segfault.
The user experience after this patch is a different error message and (hopefully) no segfault.

This is not a significant improvement to the user experience for a package installed on a system where it is completely useless and in my view does not meet the threshold of an SRU.

Changed in horst (Ubuntu Mantic):
status: In Progress → Won't Fix
Revision history for this message
Steve Langasek (vorlon) wrote : Proposed package upload rejected

An upload of horst to mantic-proposed has been rejected from the upload queue for the following reason: "low-priority fix, rejecting for SRU".

Revision history for this message
Steve Langasek (vorlon) wrote :

An upload of horst to lunar-proposed has been rejected from the upload queue for the following reason: "low-priority fix, rejecting for SRU".

Changed in horst (Ubuntu Lunar):
status: Confirmed → Won't Fix
Revision history for this message
Steve Langasek (vorlon) wrote :

An upload of horst to jammy-proposed has been rejected from the upload queue for the following reason: "low-priority fix, rejecting for SRU".

Changed in horst (Ubuntu Jammy):
status: Confirmed → Won't Fix
Changed in horst (Ubuntu Focal):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.