Re: [PATCH 15/16] pramfs: test module
From: Marco Stornelli
Date: Mon Oct 11 2010 - 03:08:12 EST
2010/10/10 Randy Dunlap <rdunlap@xxxxxxxxxxxx>:
> On Sun, 10 Oct 2010 18:37:49 +0200 Marco Stornelli wrote:
>
> Above 2 lines need to indented more.
>
Ack.
>> + return 1;
>> + }
>> +
>> + /*
>> + * Attempt an unprotected clear of checksum information in the
>> + * superblock, this should cause a kernel page protection fault.
>> + */
>> + printk("%s: writing to kernel VA %p\n", __func__, psb);
>> + psb->s_sum = 0;
>> +
>> + return 0;
>> +}
>> +
>> +void test_pramfs_write_cleanup(void) {}
>> +
>> +/* Module information */
>> +MODULE_LICENSE("GPL");
>> +module_init(test_pramfs_write);
>> +module_exit(test_pramfs_write_cleanup);
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/