[Nexus 7 Original Development] thepasto:
Great kernel!! Just found a little bug when i was trying to enable zram. Here's dmesg output.

<6>[ 307.208264] attempt to access beyond end of device
<6>[ 307.208395] zram0: rw=0, want=3384173704, limit=199512
<2>[ 307.208459] kernel BUG at fs/bio.c:416!
<1>[ 307.208914] Unable to handle kernel NULL pointer dereference at virtual address 00000000
<1>[ 307.208982] pgd = d14c8000
<1>[ 307.209094] [00000000] *pgd=00000000
<0>[ 307.209218] Internal error: Oops: 805 [#1] PREEMPT SMP
<4>[ 307.209283] Modules linked in:
<4>[ 307.209457] CPU: 0 Not tainted (3.1.10-intersectRaven+ #1)
<4>[ 307.209534] PC is at __bug+0x18/0x24
<4>[ 307.209598] LR is at __bug+0x14/0x24
<4>[ 307.209713] pc : [<c0012234>] lr : [<c0012230>] psr: 60000013
<4>[ 307.209716] sp : ca59dbc0 ip : 00000000 fp : c0a21090
<4>[ 307.209889] r10: c9b66400 r9 : d705afc8 r8 : ca59c000
<4>[ 307.209951] r7 : ca59c000 r6 : 0fd00000 r5 : fffffffb r4 : c9b66400
<4>[ 307.210067] r3 : 00000000 r2 : 00000001 r1 : 00ebe000 r0 : 00000031
<4>[ 307.210132] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
<4>[ 307.210249] Control: 10c5387d Table: 914c804a DAC: 00000015
<4>[ 307.210312]
<4>[ 307.210313] PC: 0xc00121b4:
<4>[ 307.210483] 21b4 e1a04000 e24dd010 e590003c eb021883 e3500000 0a00000f e2841034 e594002c
<4>[ 307.211124] 21d4 e891000e e88d000f ea000003 e59d000c eb02187a e3500000 0a000008 e1a0000d
<4>[ 307.211711] 21f4 eb000b21 e3500000 aafffff7 e3a00000 e28dd010 e8bd8010 e594003c eafffffb
<4>[ 307.212349] 2214 e59d000c eafffff9 e92d4008 e1a02001 e1a01000 e59f000c eb19fe2a e3a03000
<4>[ 307.212991] 2234 e5833000 eafffffe c0816568 e3060584 e92d4008 e3a01e2f e34c0081 ebfffff1
<4>[ 307.213580] 2254 e1a01000 e306059c e92d4008 e34c0081 eb19fe1c e3060584 e3a01fb5 e34c0081
<4>[ 307.214221] 2274 ebffffe8 e1a02000 e30605bc e92d4008 e34c0081 e1a03001 e1a0100e eb19fe11
<4>[ 307.214861] 2294 e3060584 e3a01faa e34c0081 ebffffdd e92d4ff0 e24dd06c e1a0c00d e1a06002
<4>[ 307.215497]
<4>[ 307.215499] LR: 0xc00121b0:
<4>[ 307.215617] 21b0 e92d4010 e1a04000 e24dd010 e590003c eb021883 e3500000 0a00000f e2841034
<4>[ 307.216251] 21d0 e594002c e891000e e88d000f ea000003 e59d000c eb02187a e3500000 0a000008
<4>[ 307.216827] 21f0 e1a0000d eb000b21 e3500000 aafffff7 e3a00000 e28dd010 e8bd8010 e594003c
<4>[ 307.217464] 2210 eafffffb e59d000c eafffff9 e92d4008 e1a02001 e1a01000 e59f000c eb19fe2a
<4>[ 307.218106] 2230 e3a03000 e5833000 eafffffe c0816568 e3060584 e92d4008 e3a01e2f e34c0081
<4>[ 307.218738] 2250 ebfffff1 e1a01000 e306059c e92d4008 e34c0081 eb19fe1c e3060584 e3a01fb5
<4>[ 307.219325] 2270 e34c0081 ebffffe8 e1a02000 e30605bc e92d4008 e34c0081 e1a03001 e1a0100e
<4>[ 307.219962] 2290 eb19fe11 e3060584 e3a01faa e34c0081 ebffffdd e92d4ff0 e24dd06c e1a0c00d
<4>[ 307.220600]
<4>[ 307.220602] SP: 0xca59db40:
<4>[ 307.220721] db40 00000002 205b6400 37303320 3830322e 5d393534 c9b60020 00000000 c9b66400
<4>[ 307.221359] db60 c0012234 60000013 ffffffff ca59dbac ca59c000 c000e698 00000031 00ebe000
<4>[ 307.221996] db80 00000001 00000000 c9b66400 fffffffb 0fd00000 ca59c000 ca59c000 d705afc8
<4>[ 307.222588] dba0 c9b66400 c0a21090 00000000 ca59dbc0 c0012230 c0012234 60000013 ffffffff
<4>[ 307.223227] dbc0 c0135b5c c013acec c0135b5c c013a8a0 00000004 00000008 00000000 c025cf38
<4>[ 307.223865] dbe0 00000100 00000000 00000000 c00ceaac 00030b58 00000000 c9b66480 00000000
<4>[ 307.224453] dc00 00000008 ffffffff 00000008 00000000 00030b58 00000000 000200da c00d4d20
<4>[ 307.225043] dc20 00000000 00000000 00000002 00000000 00000002 00011200 c183a9b4 d7958640
<4>[ 307.225687]
<4>[ 307.225688] FP: 0xc0a21010:
<4>[ 307.225806] 1010 00000000 00000000 c08d4b78 00000000 00000000 00000000 00000000 c08d4b88
<4>[ 307.226445] 1030 00000000 00000000 00000000 00000000 c08d4b9c 00000000 00000000 00000000
<4>[ 307.227087] 1050 00000000 c08d4bb4 00000000 00000000 00000000 00000000 c08d4bc8 00000000
<4>[ 307.227674] 1070 00000000 00000000 00000000 c08d4bdc 00000000 00000000 00000000 00000000
<4>[ 307.228258] 1090 c08d4cd4 00000000 00000000 00000000 00000000 c08d4ce8 00000000 00000000
<4>[ 307.228898] 10b0 00000000 00000000 c08d4c78 00000000 00000000 00000000 00000000 c08d4c60
<4>[ 307.229537] 10d0 00000000 00000000 00000000 00000000 c08d4c18 00000000 00000000 00000000
<4>[ 307.230124] 10f0 00000000 c08d4bfc 00000000 00000000 00000000 00000000 c08d4c50 00000000
<4>[ 307.230757]
<4>[ 307.230758] R4: 0xc9b66380:
<4>[ 307.230926] 6380 c9b66f00 00000000 00000000 d76f21e0 f0000001 00000001 00000001 00000000
<4>[ 307.231512] 63a0 00001000 00000000 00000000 00000004 ffffffff 00000000 c9b663c8 c0135b5c
<4>[ 307.232155] 63c0 d6042740 c013b364 c13867c0 00001000 00000000 00000000 c9b663d8 c9b663d8
<4>[ 307.232796] 63e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[ 307.233391] 6400 c9b66480 00000000 00000000 d74225a0 f0000004 00000000 00000001 00000000
<4>[ 307.234030] 6420 00001000 00000000 00000000 00000004 ffffffff 00000000 c9b66448 c0135b5c
<4>[ 307.234667] 6440 d600f080 c013b364 c11dc9c0 00001000 00000000 00010360 05000000 00200034
<4>[ 307.235306] 6460 00280008 00160017 00000000 c13b0b60 00001000 00000000 20bbe59c 23508e53
<4>[ 307.235893]
<4>[ 307.235894] R7: 0xca59bf80:
<4>[ 307.236063] bf80 cc4acc49 cc4dcc4b fffecc4e 0004f428 50cc4f0c 52cc51cc 56cc53cc 5bcc5acc
<4>[ 307.236651] bfa0 5dcc5ccc 5fcc5ecc 62cc61cc 11cc63cc fd970000 00410009 013b030f fde7fff6
<4>[ 307.237288] bfc0 04f2ffb0 fe7400dd 0066010b fc6dfc28 056e006c fff403ca 00b9ffc5 fa78fc53
<4>[ 307.237929] bfe0 04d3fca4 06f408d6 fcc2fff1 0296023c fdd1fc85 0059ff3a 00e9ff1d fbc9fe51
<4>[ 307.238570] c000 00000000 00000002 00000000 d28fed40 c09d88b4 00000000 00000015 d6e3dba0
<4>[ 307.239157] c020 d6e3cb60 ca59c000 c0996958 d28fed40 d69adf00 c18374a0 ca59d9ec ca59d938
<4>[ 307.239793] c040 c0697744 00000000 00000000 00000000 00000000 00000000 01010000 00000000
<4>[ 307.240434] c060 4014b400 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[ 307.241074]
<4>[ 307.241075] R8: 0xca59bf80:
<4>[ 307.241191] bf80 cc4acc49 cc4dcc4b fffecc4e 0004f428 50cc4f0c 52cc51cc 56cc53cc 5bcc5acc
<4>[ 307.241825] bfa0 5dcc5ccc 5fcc5ecc 62cc61cc 11cc63cc fd970000 00410009 013b030f fde7fff6
<4>[ 307.242409] bfc0 04f2ffb0 fe7400dd 0066010b fc6dfc28 056e006c fff403ca 00b9ffc5 fa78fc53
<4>[ 307.243047] bfe0 04d3fca4 06f408d6 fcc2fff1 0296023c fdd1fc85 0059ff3a 00e9ff1d fbc9fe51
<4>[ 307.243684] c000 00000000 00000002 00000000 d28fed40 c09d88b4 00000000 00000015 d6e3dba0
<4>[ 307.244325] c020 d6e3cb60 ca59c000 c0996958 d28fed40 d69adf00 c18374a0 ca59d9ec ca59d938
<4>[ 307.244912] c040 c0697744 00000000 00000000 00000000 00000000 00000000 01010000 00000000
<4>[ 307.245549] c060 4014b400 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[ 307.246189]
<4>[ 307.246191] R9: 0xd705af48:
<4>[ 307.246309] af48 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[ 307.246944] af68 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[ 307.247576] af88 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[ 307.248162] afa8 00000000 00000000 00000001 00000000 d705afb8 d705afb8 00000000 00000000
<4>[ 307.248802] afc8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[ 307.249440] afe8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[ 307.250036] b008 00000000 00000000 c04ab680 00000000 00000000 00000000 00000000 00000000
<4>[ 307.250678] b028 00000000 00000000 00000000 00000000 00000000 00000500 d705b040 d705b040
<4>[ 307.251263]
<4>[ 307.251264] R10: 0xc9b66380:
<4>[ 307.251383] 6380 c9b66f00 00000000 00000000 d76f21e0 f0000001 00000001 00000001 00000000
<4>[ 307.252021] 63a0 00001000 00000000 00000000 00000004 ffffffff 00000000 c9b663c8 c0135b5c
<4>[ 307.252663] 63c0 d6042740 c013b364 c13867c0 00001000 00000000 00000000 c9b663d8 c9b663d8
<4>[ 307.253255] 63e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<4>[ 307.253895] 6400 c9b66480 00000000 00000000 d74225a0 f0000004 00000000 00000001 00000000
<4>[ 307.254531] 6420 00001000 00000000 00000000 00000004 ffffffff 00000000 c9b66448 c0135b5c
<4>[ 307.255169] 6440 d600f080 c013b364 c11dc9c0 00001000 00000000 00010360 05000000 00200034
<4>[ 307.255759] 6460 00280008 00160017 00000000 c13b0b60 00001000 00000000 20bbe59c 23508e53
<0>[ 307.256397] Process mkswap (pid: 3434, stack limit = 0xca59c2f0)
<0>[ 307.256511] Stack: (0xca59dbc0 to 0xca59e000)
<0>[ 307.256577] dbc0: c0135b5c c013acec c0135b5c c013a8a0 00000004 00000008 00000000 c025cf38
<0>[ 307.256695] dbe0: 00000100 00000000 00000000 c00ceaac 00030b58 00000000 c9b66480 00000000
<0>[ 307.256762] dc00: 00000008 ffffffff 00000008 00000000 00030b58 00000000 000200da c00d4d20
<0>[ 307.256880] dc20: 00000000 00000000 00000002 00000000 00000002 00011200 c183a9b4 d7958640
<0>[ 307.256996] dc40: d7955fe0 c008385c 00011210 ca59c000 d600f080 c9b66400 00000008 c9b66448
<0>[ 307.257113] dc60: c0136b70 00000000 00000000 c025d444 00000041 ca59c000 00000000 d600f080
<0>[ 307.257180] dc80: d7955fe0 00000001 00000010 00000001 c0136b70 c013ab70 c9b66400 c013b4a4
<0>[ 307.257298] dca0: d600f080 c9b66400 d600f080 00000000 00000001 c9b66448 c0136b70 00000000
<0>[ 307.257417] dcc0: 00000400 c0135aec d600f0b8 d600f080 00000001 ca59dd44 00000000 00000001
<0>[ 307.257534] dce0: c01362a4 c0136238 00001000 00001000 00000000 00000000 00000c00 c11dc9c0
<0>[ 307.257601] dd00: 00001000 c0138748 d600f080 00000001 d74226e8 00000000 c11dc9c0 ca59dd48
<0>[ 307.257719] dd20: 00000000 00000000 00000000 d600f080 00000000 00000000 d7422620 ca59dd48
<0>[ 307.257838] dd40: ffffffff d600f080 000000d0 d74226e8 c11dc9c0 00000000 00000000 c11dc9c0
<0>[ 307.257905] dd60: 00000000 c06b8abc ccfa8640 00000000 00000000 c0138be0 00000400 c013c5ec
<0>[ 307.258022] dd80: ca59c000 00000400 d74226e8 c00cf2ec 00000400 00000000 ca59ddb0 c013c5ec
<0>[ 307.258140] dda0: 00000000 00000000 00001000 00000000 d6cf4400 ca59c000 ca59dec0 00000001
<0>[ 307.258259] ddc0: 00000000 00000400 00000400 d7422620 00000000 ca59c000 00000000 00000400
<0>[ 307.258326] dde0: ca59df00 d74226e8 ca59dec0 c00d032c 00000000 00000000 ca59df00 00000400
<0>[ 307.258443] de00: 00000000 d66b14d0 00000000 c00ef090 00000045 00000001 00000000 00000000
<0>[ 307.258562] de20: a0010113 d6e3cb60 ca59df00 00000001 00000400 c00e7ae8 d14c9070 d14c8000
<0>[ 307.258680] de40: 00000200 4009b000 d6e3cb60 00000000 00000000 00000000 00000000 ca59dec8
<0>[ 307.258747] de60: 00000001 ccfa8640 ca59dec0 c013caac 4009bf54 80000007 91827364 ca59de7c
<0>[ 307.258866] de80: ca59de7c ca59de84 ca59de84 00000000 ca59c000 00000000 00000000 00000000
<0>[ 307.258984] dea0: 00000000 ca59df88 fffffdee ccfa8640 bec91b4c c010c594 00000000 00000000
<0>[ 307.259050] dec0: 400fe460 00000400 00000000 00000000 00000000 00000001 ffffffff ccfa8640
<0>[ 307.259167] dee0: 00000000 00000000 00000000 00000000 d28fed40 c099eefc 00000000 00000000
<0>[ 307.259285] df00: 00000000 00000000 bec91b4c c00085dc 00000400 00000001 00000400 c00f48e4
<0>[ 307.259402] df20: 80100071 c5ffe960 00000000 00040044 00000000 d66b1bb0 40044000 40044fff
<0>[ 307.259468] df40: ccfa8640 00000400 400fe460 ca59df88 00000400 ca59c000 00000000 c010cd38
<0>[ 307.259585] df60: 00000001 00005401 00000000 00000000 ccfa8640 400fe460 00000400 c010cfc0
<0>[ 307.259703] df80: bec91b4c 00000000 00000000 00000000 00000400 00000400 400fe460 00000004
<0>[ 307.259821] dfa0: c000ed44 c000ebc0 00000400 00000400 00000003 400fe460 00000400 4f01963d
<0>[ 307.259887] dfc0: 00000400 00000400 400fe460 00000004 0616a000 00000000 00000000 bec91b4c
<0>[ 307.260004] dfe0: 400fdde4 bec91a60 4009bf67 401656d0 60010010 00000003 00000000 00000000
<4>[ 307.260140] [<c0012234>] (__bug+0x18/0x24) from [<c013acec>] (bio_put+0x54/0x58)
<4>[ 307.260211] [<c013acec>] (bio_put+0x54/0x58) from [<c013a8a0>] (bio_endio+0x34/0x48)
<4>[ 307.260342] [<c013a8a0>] (bio_endio+0x34/0x48) from [<c025cf38>] (generic_make_request+0x10c/0x570)
<4>[ 307.260465] [<c025cf38>] (generic_make_request+0x10c/0x570) from [<c025d444>] (submit_bio+0xa8/0x12c)
<4>[ 307.260585] [<c025d444>] (submit_bio+0xa8/0x12c) from [<c0135aec>] (submit_bh+0x104/0x174)
<4>[ 307.260654] [<c0135aec>] (submit_bh+0x104/0x174) from [<c0136238>] (ll_rw_block+0x90/0xc0)
<4>[ 307.260774] [<c0136238>] (ll_rw_block+0x90/0xc0) from [<c0138748>] (__block_write_begin+0x220/0x440)
<4>[ 307.260894] [<c0138748>] (__block_write_begin+0x220/0x440) from [<c0138be0>] (block_write_begin+0x44/0x80)
<4>[ 307.261022] [<c0138be0>] (block_write_begin+0x44/0x80) from [<c00cf2ec>] (generic_file_buffered_write+0x190/0x23c)
<4>[ 307.261145] [<c00cf2ec>] (generic_file_buffered_write+0x190/0x23c) from [<c00d032c>] (__generic_file_aio_write+0x274/0x4c8)
<4>[ 307.261270] [<c00d032c>] (__generic_file_aio_write+0x274/0x4c8) from [<c013caac>] (blkdev_aio_write+0x48/0xb8)
<4>[ 307.261397] [<c013caac>] (blkdev_aio_write+0x48/0xb8) from [<c010c594>] (do_sync_write+0xa4/0xe4)
<4>[ 307.261468] [<c010c594>] (do_sync_write+0xa4/0xe4) from [<c010cd38>] (vfs_write+0x9c/0x140)
<4>[ 307.261589] [<c010cd38>] (vfs_write+0x9c/0x140) from [<c010cfc0>] (sys_write+0x38/0x70)
<4>[ 307.261711] [<c010cfc0>] (sys_write+0x38/0x70) from [<c000ebc0>] (ret_fast_syscall+0x0/0x30)
<0>[ 307.261830] Code: e1a01000 e59f000c eb19fe2a e3a03000 (e5833000)