-
Issues with cloop driver
I'm running Knoppix 3.6 on my laptop with Celeron P4 CPU.
I have compiled and installed the vanilla kernel 2.6.7 for this CPU. Then I have downloaded and compiled the cloop driver (source from www.knoppix.net) and loaded the driver with the original compressed KNOPPIX image. Then I tried to mount /dev/cloop which lead into a kernel oops (NULL pointer access). I have debugged the driver and found out that bvec (in function make_clo_request at line 362)
struct bio_vec *bvec=&bio->bi_io_vec[vecnr];
has an illegal value (0x00000001)! The weird thing is that this problem only occurs on my notebook. On my desktop PC (CPU is Athlon XP) the driver works fine. Maybe there is a problem with gcc.
I've added some lines to the driver to avoid a kernel oops. Ok, the driver still doesn't work, but for stability and security issues pointers should be checked for a valid value.
Here is the code (inserted after line 362:
if ((void *)bvec < (void *)0x80000000) {
printk(KERN_ERR "do_clo_request: bio->bi_io_vec[%i] has illegal value %p\n", vecnr, bvec);
break;
}
I don't know if the value 0x80000000 is a good choice. On Intel systems I think it is good. But there may be a better solution.
Wouldn't it be good to implement some pointer checking code?
Similar Threads
-
By sunburnt in forum Ideas
Replies: 1
Last Post: 04-12-2005, 12:12 AM
-
By Todd in forum Customising & Remastering
Replies: 0
Last Post: 11-04-2004, 04:36 PM
-
By psirac in forum Customising & Remastering
Replies: 0
Last Post: 09-12-2004, 09:22 PM
-
By gecco in forum General Support
Replies: 1
Last Post: 05-18-2004, 02:06 PM
-
By MeglaW in forum Hardware & Booting
Replies: 1
Last Post: 03-04-2003, 04:29 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Samsung 2.5" 870 EVO SSD SATA III 250GB 500GB 1TB Internet Solid State Drive Lot
$100.00

SSD 880EVO SATA III 2.5 4TB INTERNAL SOLID STATE DRIVE
$189.99

Netac 2TB 1TB 512GB 256GB Internal SSD 2.5inch SATAIII Solid State Drive lot
$549.00

HP Samsung PM871b 2.5 SATA SSD 256GB Solid state drive
$29.99

Crucial MX500 1TB 2.5" SATA III Internal SSD CT1000MX500SSD1
$99.99

2 PACK 128 GB SSD M.2 2280 SATA Solid State Drive Major Brands, Samsung, LiteON
$28.00

Fanxiang 256GB 512GB 1TB 2TB 4TB SSD Lot 2.5'' SATA Internal Solid State Drive
$42.99

Crucial MX500 250GB 2.5" SATA III SSD - Preowned
$29.00

Samsung 860 EVO 250GB, SATA III, 2.5" Internal Solid State Drive - Black...
$30.00

Samsung 860 EVO 250GB SSD MZ-76E250 2.5" SATA III Solid State Drive -
$39.99