Bug 4812
Summary: | Kernel Oops in vt_ioctl() | ||
---|---|---|---|
Product: | Drivers | Reporter: | Petr Tesarik (kernel) |
Component: | Console/Framebuffers | Assignee: | Antonino Daplas (adaplas) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | ||
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.10 | Subsystem: | |
Regression: | --- | Bisected commit-id: |
Description
Petr Tesarik
2005-06-28 10:26:32 UTC
Oh, I almost forgot, the console driver thinks something is accessing the device: root@metuzalem:~# deallocvt 3 VT_DISALLOCATE: Device or resource busy deallocvt: could not deallocate console 3 (No, this won't crash, since deallocvt opens /dev/tty and passes 3 as an argument the VT_DISALLOCATE sysctl.) OK, still digging into the problem (before I shut down the system), I have found out that the VT_GETSTATE ioctl sets the corresponding bit in v_state, which means that the following condition is true: console_driver->ttys[3] && console_driver->ttys[3]->count Bug already fixed in linus' tree. I'll close this bug. Please reopen if there are still problems Oh, I see what you mean. Is it possible for tty->driver_data to be NULL? If not, we can add this test: if (!tty->driver_data) return -ENOENOIOCTLCMD; Oh, I see what you mean, so I'll reopen it again. Is it possible for tty->driver_data to be NULL? If not, we can add this test: if (!tty->driver_data) return -ENOENOIOCTLCMD; I believe we have a bug fix for this. It's now in 2.6.13-rc6-mm2. |