#7000 closed bug (fixed)
[kernel] panics on driver reload
Reported by: | diver | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | System/Kernel | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | #7110 | |
Platform: | All |
Description
This is hrev39880 gcc4hybrid in VirtualBox 3.0.12 with Intel PRO/1000 T Server (82543GC).
mv /system/add-ons/kernel/drivers/bin/ipro1000 ~/ ifconfig del /dev/net/ipro1000/0 mv ~/ipro1000 /system/add-ons/kernel/drivers/bin
Attachments (1)
Change History (15)
by , 14 years ago
comment:1 by , 14 years ago
Summary: | [kernel] crashes on driver reload → [kernel] panics on driver reload |
---|
comment:2 by , 14 years ago
comment:4 by , 14 years ago
Blocking: | 7110 added |
---|
follow-up: 6 comment:5 by , 11 years ago
With the arrival of package management, the test case no longer applies. Perhaps a driver could be put in its own package in order to reproduce the issue. I'm not sure how to otherwise force a driver to reload.
comment:6 by , 11 years ago
Replying to luroh:
With the arrival of package management, the test case no longer applies. Perhaps a driver could be put in its own package in order to reproduce the issue. I'm not sure how to otherwise force a driver to reload.
A driver can be put in /system/non-packaged/add-ons/kernel... etc. This could be a way to reproduce the issue.
comment:7 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Ah, good idea, jackburton. So I:
- Copied the ipro1000 driver to the desktop.
- Rebooted and blacklisted the ipro1000 driver from the Boot Menu.
- Moved the ipro1000 driver into system/non-packaged/add-ons/kernel/drivers/bin and Haiku picked up and activated the driver just fine.
- Moved the driver back to the desktop.
- Ran 'ifconfig del /dev/net/ipro1000/0'
- Moved the driver back again. No KDL but Haiku didn't pick up the driver.
Turns out that only every other time you move the driver into place is it picked up and activated. I have seen something very similar when moving hpkgs in and out of the packaged/ folder. Will file a new ticket if there isn't one already.
comment:8 by , 11 years ago
Since the driver was still in use when you removed it, the system could not unload it. At this point, it would only mark the driver as being deleted.
When you move it back, the system should only try to reload the driver when it needs it again. Have you tried if an "ls /dev/net" let Haiku to pick it up again?
comment:9 by , 11 years ago
comment:10 by , 11 years ago
What happens then if you try to open the driver, eg. via echo test > /dev/net/ipro1000/0
?
comment:12 by , 11 years ago
What does nothing mean? Could the driver be opened? Could you add its interface again?
comment:13 by , 11 years ago
The prompt returns and that's it. No error. Running 'ifconfig add /dev/net/ipro1000/0' returns 'ifconfig: Could not add interface: No such device'
comment:14 by , 11 years ago
Decided to try that myself in hrev47314 (vbox), so I:
- Copied the ipro1000 driver into
/system/non-packaged/add-ons/kernel/drivers/bin
and created a relative link into/system/non-packaged/add-ons/kernel/drivers/dev/net
- Created
/system/settings/packages
file containing:Package 'haiku' { EntryBlacklist { 'add-ons/kernel/drivers/dev/net/ipro1000' } }
- Rebooted and made sure that non-packaged diver is loaded via
listimage | grep ipro1000
- Moved the driver:
mv /system/non-packaged/add-ons/kernel/drivers/bin/ipro1000 ~/
- Ran
ifconfig del /dev/net/ipro1000/0
- Got a crash as in #7042.
Can you confirm that you get the same issue under VirtualBox 3.2.12?