Menu

Commit [r128]  Maximize  Restore  History

KingCobra Module Linux Kernel 4.0.5 port

-----------------------------------------------------
- vfs_write() has a problem in 4.0.5
- the filp_open() args and flags which were working in 3.15.5 cause a
kernel panic implicitly and nothing was written to logs
- It took a very long time to figure out the reason to be vfs_write and filp_open
- O_CREAT, O_RDWR and O_LARGEFILE cause the panic and only O_APPEND is working, but
does not do vfs_write(). All other VIRGO Queue + KingCobra functionalities work viz.,
enqueueing, workqueue handler invocation, dequeueing, invoking kingcobra kernelspace service
request function from VIRGO queue handler, timestamp, timestamp and IP parser, reply_to_publisher etc.,
- As mentioned in Greg Kroah Hartman's "Driving me nuts", persistence in Kernel space is
a bad idea but still seems to be a necessary stuff - yet only vfs calls are used which have to be safe
- Thus KingCobra has to be in-memory only in 4.0.5 if vfs_write() doesn't work
- Intriguingly cloudfs filesystems primitives - virgo_cloud_open, virgo_cloud_read, virgo_cloud_write etc.,
work perfectly and append to a file.
- kern.logs for these have been added to testlogs
- Module.symvers has been recreated for 4.0.5
- updated .ko and .mod.c

(Commit backlog due to repo outage which was resolved today - GitHub KingCobra already has the above changes)

ka_shrinivaasan 2015-07-26

changed /c-src/kingcobra_driver_build.sh
changed /c-src/kingcobra_main_kernelspace.c
changed /c-src/kingcobra_main_kernelspace.ko
changed /c-src/kingcobra_main_kernelspace.mod.c
changed /c-src/kingcobra_main_kernelspace.mod.o
changed /c-src/kingcobra_main_kernelspace.o
added /c-src/testlogs/kern.log.VIRGOQueuePlusKingCobra.17July2015
added /c-src/testlogs/kern.log.VIRGOQueuePlusKingCobra.18July2015
added /c-src/testlogs/kern.log.VIRGOQueuePlusKingCobra.22July2015
/c-src/kingcobra_driver_build.sh Diff Switch to side-by-side view
Loading...
/c-src/kingcobra_main_kernelspace.c Diff Switch to side-by-side view
Loading...
/c-src/kingcobra_main_kernelspace.ko
Binary file was changed.
/c-src/kingcobra_main_kernelspace.mod.c Diff Switch to side-by-side view
Loading...
/c-src/kingcobra_main_kernelspace.mod.o
Binary file was changed.
/c-src/kingcobra_main_kernelspace.o
Binary file was changed.
/c-src/testlogs/kern.log.VIRGOQueuePlusKingCobra.17July2015 Diff Switch to side-by-side view
Loading...
/c-src/testlogs/kern.log.VIRGOQueuePlusKingCobra.18July2015 Diff Switch to side-by-side view
Loading...
/c-src/testlogs/kern.log.VIRGOQueuePlusKingCobra.22July2015 Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB