Home | History | Annotate | Download | only in report
      1 TITLE: KASAN: wild-memory-access in sg_read
      2 CORRUPTED: Y
      3 
      4 [   56.874510] ==================================================================
      5 [   56.881919] BUG: KASAN: wild-memory-access in sg_read+0x1296/0x1440
      6 [   56.886161] kasan: CONFIG_KASAN_INLINE enabled
      7 [   56.886164] kasan: GPF could be caused by NULL-ptr deref or user memory access
      8 [   56.886173] general protection fault: 0000 [#1] PREEMPT SMP KASAN
      9 [   56.886178] Dumping ftrace buffer:
     10 [   56.886182]    (ftrace buffer empty)
     11 [   56.886186] Modules linked in:
     12 [   56.886194] CPU: 1 PID: 11774 Comm: syz-executor7 Not tainted 4.9.72-gcb7518e #10
     13 [   56.886198] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
     14 [   56.886203] task: ffff8801c45f9800 task.stack: ffff8801c5770000
     15 [   56.886222] RIP: 0010:[<ffffffff8144d081>]  [<ffffffff8144d081>] __free_pages+0x21/0x80
     16 [   56.886226] RSP: 0018:ffff8801c5777940  EFLAGS: 00010a07
     17 [   56.886230] RAX: dffffc0000000000 RBX: dead4ead00000000 RCX: ffffffff82664f9b
     18 [   56.886234] RDX: 1bd5a9d5a0000003 RSI: 0000000000000001 RDI: dead4ead0000001c
     19 [   56.886238] RBP: ffff8801c5777950 R08: 0000000000000001 R09: 0000000000000001
     20 [   56.886241] R10: 0000000000000000 R11: ffff8801c45f9800 R12: 0000000000000004
     21 [   56.886245] R13: 0000000000000020 R14: ffff8801cc62c200 R15: dffffc0000000000
     22 [   56.886251] FS:  0000000000000000(0000) GS:ffff8801db300000(0063) knlGS:00000000f6ff7b40
     23 [   56.886255] CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
     24 [   56.886259] CR2: 0000000020bb7000 CR3: 00000001c9cec000 CR4: 00000000001406e0
     25 [   56.886267] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
     26 [   56.886272] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
     27 [   56.886273] Stack:
     28 [   56.886285]  0000000000000001 ffff8801cc62c358 ffff8801c57779b0 ffffffff82664fc1
     29 [   56.886299]  ffff8801cc62c370 ffffed00398c586b ffffed00398c586e ffff8801cc62c368
     30 [   56.886308]  dead4ead00000000 ffff8801cc62c340 0000000000000000 0000000000000000
     31 [   56.886310] Call Trace:
     32 [   56.886319]  [<ffffffff82664fc1>] sg_remove_scat.isra.19+0x1c1/0x2d0
     33 [   56.886330]  [<ffffffff82665385>] sg_finish_rem_req+0x2b5/0x340
     34 [   56.886340]  [<ffffffff82665766>] sg_new_read.isra.20+0x356/0x3e0
     35 [   56.886347]  [<ffffffff82663745>] ? sg_get_rq_mark+0x145/0x190
     36 [   56.886357]  [<ffffffff8266703d>] sg_read+0x8bd/0x1440
     37 [   56.886366]  [<ffffffff82666780>] ? sg_proc_seq_show_debug+0xd10/0xd10
     38 [   56.886378]  [<ffffffff81641d00>] ? fsnotify+0xf30/0xf30
     39 [   56.886387]  [<ffffffff81bd97f9>] ? avc_policy_seqno+0x9/0x20
     40 [   56.886396]  [<ffffffff8156a4e1>] do_loop_readv_writev.part.17+0x141/0x1e0
     41 [   56.886403]  [<ffffffff81bd08b9>] ? security_file_permission+0x89/0x1e0
     42 [   56.886410]  [<ffffffff82666780>] ? sg_proc_seq_show_debug+0xd10/0xd10
     43 [   56.886417]  [<ffffffff82666780>] ? sg_proc_seq_show_debug+0xd10/0xd10
     44 [   56.886424]  [<ffffffff8156f402>] compat_do_readv_writev+0x522/0x760
     45 [   56.886431]  [<ffffffff8156eee0>] ? do_pwritev+0x1a0/0x1a0
     46 [   56.886439]  [<ffffffff812e2010>] ? exit_robust_list+0x230/0x230
     47 [   56.886448]  [<ffffffff81df90fb>] ? check_preemption_disabled+0x3b/0x200
     48 [   56.886455]  [<ffffffff815cec41>] ? __fget+0x201/0x3a0
     49 [   56.886461]  [<ffffffff815cec68>] ? __fget+0x228/0x3a0
     50 [   56.886467]  [<ffffffff815cea87>] ? __fget+0x47/0x3a0
     51 [   56.886474]  [<ffffffff8156f723>] compat_readv+0xe3/0x150
     52 [   56.886482]  [<ffffffff8156f884>] do_compat_readv+0xf4/0x1d0
     53 [   56.886489]  [<ffffffff8156f790>] ? compat_readv+0x150/0x150
     54 [   56.886496]  [<ffffffff815714a0>] ? SyS_read+0x1b0/0x1b0
     55 [   56.886504]  [<ffffffff81571df6>] compat_SyS_readv+0x26/0x30
     56 [   56.886511]  [<ffffffff81571dd0>] ? SyS_pwritev2+0x80/0x80
     57 [   56.886518]  [<ffffffff81006fc7>] do_fast_syscall_32+0x2f7/0x890
     58 [   56.886525]  [<ffffffff81003036>] ? trace_hardirqs_off_thunk+0x1a/0x1c
     59 [   56.886534]  [<ffffffff838b0be1>] entry_SYSENTER_compat+0x51/0x60
     60 [   56.886639] Code: e9 27 fc ff ff 0f 1f 44 00 00 48 b8 00 00 00 00 00 fc ff df 55 48 89 e5 53 48 89 fb 48 83 c7 1c 48 89 fa 48 83 ec 08 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 3d 
     61 [   56.886647] RIP  [<ffffffff8144d081>] __free_pages+0x21/0x80
     62 [   56.886649]  RSP <ffff8801c5777940>
     63 [   56.886657] ---[ end trace 8afff88f0ca340d1 ]---
     64 [   56.886660] Kernel panic - not syncing: Fatal exception
     65 [   57.259120] Read of size 4060 at addr ffe70874503c9000 by task syz-executor6/11770
     66 [   57.266791] 
     67 [   57.268394] CPU: 0 PID: 11770 Comm: syz-executor6 Tainted: G      D         4.9.72-gcb7518e #10
     68 [   57.277195] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
     69 [   57.286519]  ffff8801c3dd7ad8 ffffffff81d922b9 ffe70874503c9000 0000000000000fdc
     70 [   57.294479]  0000000000000000 ffff8801c202c540 ffff8801c9c14340 ffff8801c3dd7b20
     71 [   57.302441]  ffffffff8153bebe ffffffff82667a16 0000000000000286 112de43e2a9805f9
     72 [   57.310407] Call Trace:
     73 [   57.312966]  [<ffffffff81d922b9>] dump_stack+0xc1/0x128
     74 [   57.318304]  [<ffffffff8153bebe>] kasan_report+0x15e/0x360
     75 [   57.323898]  [<ffffffff82667a16>] ? sg_read+0x1296/0x1440
     76 [   57.329403]  [<ffffffff8153a9e7>] check_memory_region+0x137/0x190
     77 [   57.335604]  [<ffffffff8153aa51>] kasan_check_read+0x11/0x20
     78 [   57.341368]  [<ffffffff82667a16>] sg_read+0x1296/0x1440
     79 [   57.346702]  [<ffffffff82666780>] ? sg_proc_seq_show_debug+0xd10/0xd10
     80 [   57.353337]  [<ffffffff8123a020>] ? debug_check_no_locks_freed+0x2c0/0x2c0
     81 [   57.360327]  [<ffffffff82666780>] ? sg_proc_seq_show_debug+0xd10/0xd10
     82 [   57.366963]  [<ffffffff81569903>] __vfs_read+0x103/0x670
     83 [   57.372381]  [<ffffffff81569800>] ? default_llseek+0x290/0x290
     84 [   57.378323]  [<ffffffff81640e56>] ? fsnotify+0x86/0xf30
     85 [   57.383655]  [<ffffffff81641d00>] ? fsnotify+0xf30/0xf30
     86 [   57.389076]  [<ffffffff81bd97f9>] ? avc_policy_seqno+0x9/0x20
     87 [   57.394932]  [<ffffffff81bea142>] ? selinux_file_permission+0x82/0x460
     88 [   57.401568]  [<ffffffff81bd08b9>] ? security_file_permission+0x89/0x1e0
     89 [   57.408290]  [<ffffffff8156d3b5>] ? rw_verify_area+0xe5/0x2b0
     90 [   57.414143]  [<ffffffff8156d69e>] vfs_read+0x11e/0x380
     91 [   57.419389]  [<ffffffff815713c9>] SyS_read+0xd9/0x1b0
     92 [   57.424548]  [<ffffffff815712f0>] ? vfs_copy_file_range+0x740/0x740
     93 [   57.430921]  [<ffffffff8167a6bc>] ? compat_SyS_ioctl+0x8c/0x2050
     94 [   57.437038]  [<ffffffff81006d9f>] ? do_fast_syscall_32+0xcf/0x890
     95 [   57.443239]  [<ffffffff815712f0>] ? vfs_copy_file_range+0x740/0x740
     96 [   57.449610]  [<ffffffff81006fc7>] do_fast_syscall_32+0x2f7/0x890
     97 [   57.455725]  [<ffffffff81003036>] ? trace_hardirqs_off_thunk+0x1a/0x1c
     98 [   57.462365]  [<ffffffff838b0be1>] entry_SYSENTER_compat+0x51/0x60
     99 [   57.468563] ==================================================================
    100