[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Update UTMP about System Runlevel Changes. [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.94' (ECDSA) to the list of known hosts. executing program executing program executing program syzkaller login: [ 365.126321][ T29] audit: type=1400 audit(1591613633.858:8): avc: denied { execmem } for pid=6803 comm="syz-executor196" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1 executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 365.341705][ T6838] ================================================================== [ 365.350836][ T6838] BUG: KASAN: use-after-free in fsnotify_detach_connector_from_object+0x25e/0x380 [ 365.360024][ T6838] Write of size 8 at addr ffff8880950a07c0 by task syz-executor196/6838 [ 365.368328][ T6838] [ 365.370640][ T6838] CPU: 1 PID: 6838 Comm: syz-executor196 Not tainted 5.7.0-syzkaller #0 [ 365.378931][ T6838] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 365.389006][ T6838] Call Trace: [ 365.393288][ T6838] dump_stack+0x188/0x20d [ 365.397601][ T6838] ? fsnotify_detach_connector_from_object+0x25e/0x380 [ 365.404476][ T6838] ? fsnotify_detach_connector_from_object+0x25e/0x380 [ 365.411809][ T6838] print_address_description.constprop.0.cold+0xd3/0x413 [ 365.418820][ T6838] ? kfree+0x285/0x2b0 [ 365.423014][ T6838] ? vprintk_func+0x97/0x1a6 [ 365.427778][ T6838] ? fsnotify_detach_connector_from_object+0x25e/0x380 [ 365.434601][ T6838] kasan_report.cold+0x1f/0x37 [ 365.439368][ T6838] ? fsnotify_detach_connector_from_object+0x25e/0x380 [ 365.446191][ T6838] check_memory_region+0x141/0x190 [ 365.451295][ T6838] fsnotify_detach_connector_from_object+0x25e/0x380 [ 365.457970][ T6838] fsnotify_put_mark+0x367/0x580 [ 365.462895][ T6838] ? __fsnotify_recalc_mask+0x290/0x290 [ 365.468457][ T6838] ? do_raw_spin_unlock+0x171/0x260 [ 365.473635][ T6838] ? inotify_free_event+0x20/0x20 [ 365.478705][ T6838] fsnotify_clear_marks_by_group+0x33f/0x490 [ 365.485029][ T6838] ? fsnotify_add_mark+0x90/0x90 [ 365.489960][ T6838] ? rwlock_bug.part.0+0x90/0x90 [ 365.494998][ T6838] ? _raw_spin_unlock_irqrestore+0x62/0xe0 [ 365.500835][ T6838] ? idr_callback.cold+0x72/0x72 [ 365.505765][ T6838] fsnotify_destroy_group+0xc9/0x300 [ 365.511035][ T6838] ? fsnotify_group_stop_queueing+0x60/0x60 [ 365.516984][ T6838] ? locks_remove_file+0x329/0x590 [ 365.522073][ T6838] ? fcntl_setlk+0xcc0/0xcc0 [ 365.526643][ T6838] ? idr_callback.cold+0x72/0x72 [ 365.531574][ T6838] inotify_release+0x33/0x40 [ 365.536197][ T6838] __fput+0x33e/0x880 [ 365.540209][ T6838] task_work_run+0xf4/0x1b0 [ 365.544716][ T6838] do_exit+0xb3f/0x2de0 [ 365.548869][ T6838] ? preempt_schedule_common+0x5e/0xc0 [ 365.554929][ T6838] ? check_memory_region+0x11b/0x190 [ 365.560196][ T6838] ? mm_update_next_owner+0x7a0/0x7a0 [ 365.565577][ T6838] ? preempt_schedule_common+0x5e/0xc0 [ 365.571033][ T6838] ? preempt_schedule_thunk+0x16/0x18 [ 365.576471][ T6838] do_group_exit+0x125/0x340 [ 365.581062][ T6838] __x64_sys_exit_group+0x3a/0x50 [ 365.586411][ T6838] do_syscall_64+0xf6/0x7d0 [ 365.590981][ T6838] entry_SYSCALL_64_after_hwframe+0x49/0xb3 [ 365.596959][ T6838] RIP: 0033:0x445368 [ 365.600948][ T6838] Code: 00 00 be 3c 00 00 00 eb 19 66 0f 1f 84 00 00 00 00 00 48 89 d7 89 f0 0f 05 48 3d 00 f0 ff ff 77 21 f4 48 89 d7 44 89 c0 0f 05 <48> 3d 00 f0 ff ff 76 e0 f7 d8 64 41 89 01 eb d8 0f 1f 84 00 00 00 [ 365.620653][ T6838] RSP: 002b:00007ffd395ea5a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 365.629055][ T6838] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445368 [ 365.637016][ T6838] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 365.644987][ T6838] RBP: 00000000004cc9f0 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 365.653021][ T6838] R10: 000000037ffffa00 R11: 0000000000000246 R12: 0000000000000001 [ 365.660976][ T6838] R13: 00000000006e0320 R14: 000000000000002d R15: 20c49ba5e353f7cf [ 365.669021][ T6838] [ 365.671379][ T6838] Allocated by task 6839: [ 365.675700][ T6838] save_stack+0x1b/0x40 [ 365.679862][ T6838] __kasan_kmalloc.constprop.0+0xbf/0xd0 [ 365.685479][ T6838] kmem_cache_alloc_trace+0x153/0x7d0 [ 365.690927][ T6838] alloc_super+0x52/0x9d0 [ 365.695231][ T6838] sget_fc+0x13f/0x790 [ 365.699395][ T6838] vfs_get_super+0x6d/0x2d0 [ 365.703873][ T6838] vfs_get_tree+0x89/0x2f0 [ 365.708350][ T6838] do_mount+0x1306/0x1b40 [ 365.712657][ T6838] __x64_sys_mount+0x18f/0x230 [ 365.717394][ T6838] do_syscall_64+0xf6/0x7d0 [ 365.722134][ T6838] entry_SYSCALL_64_after_hwframe+0x49/0xb3 [ 365.727994][ T6838] [ 365.730393][ T6838] Freed by task 2475: [ 365.734351][ T6838] save_stack+0x1b/0x40 [ 365.738480][ T6838] __kasan_slab_free+0xf7/0x140 [ 365.743312][ T6838] kfree+0x109/0x2b0 [ 365.747232][ T6838] process_one_work+0x965/0x16a0 [ 365.752159][ T6838] worker_thread+0x96/0xe20 [ 365.756635][ T6838] kthread+0x388/0x470 [ 365.760724][ T6838] ret_from_fork+0x24/0x30 [ 365.765123][ T6838] [ 365.767472][ T6838] The buggy address belongs to the object at ffff8880950a0000 [ 365.767472][ T6838] which belongs to the cache kmalloc-4k of size 4096 [ 365.781514][ T6838] The buggy address is located 1984 bytes inside of [ 365.781514][ T6838] 4096-byte region [ffff8880950a0000, ffff8880950a1000) [ 365.794947][ T6838] The buggy address belongs to the page: [ 365.800728][ T6838] page:ffffea0002542800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 head:ffffea0002542800 order:1 compound_mapcount:0 [ 365.816266][ T6838] flags: 0xfffe0000010200(slab|head) [ 365.821551][ T6838] raw: 00fffe0000010200 ffffea00023b6e88 ffffea00027e3e08 ffff8880aa002000 [ 365.830115][ T6838] raw: 0000000000000000 ffff8880950a0000 0000000100000001 0000000000000000 [ 365.838672][ T6838] page dumped because: kasan: bad access detected [ 365.845061][ T6838] [ 365.847367][ T6838] Memory state around the buggy address: [ 365.853007][ T6838] ffff8880950a0680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 365.861181][ T6838] ffff8880950a0700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 365.869251][ T6838] >ffff8880950a0780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 365.877308][ T6838] ^ [ 365.883452][ T6838] ffff8880950a0800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 365.892206][ T6838] ffff8880950a0880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 365.900240][ T6838] ================================================================== [ 365.908496][ T6838] Disabling lock debugging due to kernel taint [ 365.914894][ T6838] Kernel panic - not syncing: panic_on_warn set ... [ 365.921488][ T6838] CPU: 1 PID: 6838 Comm: syz-executor196 Tainted: G B 5.7.0-syzkaller #0 [ 365.931194][ T6838] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 365.941249][ T6838] Call Trace: [ 365.944558][ T6838] dump_stack+0x188/0x20d [ 365.948888][ T6838] ? fsnotify_detach_connector_from_object+0x230/0x380 [ 365.955793][ T6838] panic+0x2e3/0x75c [ 365.959699][ T6838] ? add_taint.cold+0x16/0x16 [ 365.964424][ T6838] ? fsnotify_detach_connector_from_object+0x25e/0x380 [ 365.971377][ T6838] ? trace_hardirqs_on+0x55/0x230 [ 365.976381][ T6838] ? fsnotify_detach_connector_from_object+0x25e/0x380 [ 365.983220][ T6838] ? fsnotify_detach_connector_from_object+0x25e/0x380 [ 365.990058][ T6838] end_report+0x4d/0x53 [ 365.994202][ T6838] kasan_report.cold+0xd/0x37 [ 365.998862][ T6838] ? fsnotify_detach_connector_from_object+0x25e/0x380 [ 366.005717][ T6838] check_memory_region+0x141/0x190 [ 366.011508][ T6838] fsnotify_detach_connector_from_object+0x25e/0x380 [ 366.018185][ T6838] fsnotify_put_mark+0x367/0x580 [ 366.023128][ T6838] ? __fsnotify_recalc_mask+0x290/0x290 [ 366.028833][ T6838] ? do_raw_spin_unlock+0x171/0x260 [ 366.034015][ T6838] ? inotify_free_event+0x20/0x20 [ 366.039021][ T6838] fsnotify_clear_marks_by_group+0x33f/0x490 [ 366.044997][ T6838] ? fsnotify_add_mark+0x90/0x90 [ 366.049913][ T6838] ? rwlock_bug.part.0+0x90/0x90 [ 366.054828][ T6838] ? _raw_spin_unlock_irqrestore+0x62/0xe0 [ 366.060733][ T6838] ? idr_callback.cold+0x72/0x72 [ 366.065667][ T6838] fsnotify_destroy_group+0xc9/0x300 [ 366.070941][ T6838] ? fsnotify_group_stop_queueing+0x60/0x60 [ 366.076829][ T6838] ? locks_remove_file+0x329/0x590 [ 366.081947][ T6838] ? fcntl_setlk+0xcc0/0xcc0 [ 366.086526][ T6838] ? idr_callback.cold+0x72/0x72 [ 366.091440][ T6838] inotify_release+0x33/0x40 [ 366.096007][ T6838] __fput+0x33e/0x880 [ 366.099994][ T6838] task_work_run+0xf4/0x1b0 [ 366.104670][ T6838] do_exit+0xb3f/0x2de0 [ 366.108812][ T6838] ? preempt_schedule_common+0x5e/0xc0 [ 366.114267][ T6838] ? check_memory_region+0x11b/0x190 [ 366.119531][ T6838] ? mm_update_next_owner+0x7a0/0x7a0 [ 366.124882][ T6838] ? preempt_schedule_common+0x5e/0xc0 [ 366.130319][ T6838] ? preempt_schedule_thunk+0x16/0x18 [ 366.135687][ T6838] do_group_exit+0x125/0x340 [ 366.140261][ T6838] __x64_sys_exit_group+0x3a/0x50 [ 366.145367][ T6838] do_syscall_64+0xf6/0x7d0 [ 366.149848][ T6838] entry_SYSCALL_64_after_hwframe+0x49/0xb3 [ 366.155714][ T6838] RIP: 0033:0x445368 [ 366.159591][ T6838] Code: 00 00 be 3c 00 00 00 eb 19 66 0f 1f 84 00 00 00 00 00 48 89 d7 89 f0 0f 05 48 3d 00 f0 ff ff 77 21 f4 48 89 d7 44 89 c0 0f 05 <48> 3d 00 f0 ff ff 76 e0 f7 d8 64 41 89 01 eb d8 0f 1f 84 00 00 00 [ 366.179430][ T6838] RSP: 002b:00007ffd395ea5a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 366.191134][ T6838] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445368 [ 366.199269][ T6838] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 366.207254][ T6838] RBP: 00000000004cc9f0 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 366.215212][ T6838] R10: 000000037ffffa00 R11: 0000000000000246 R12: 0000000000000001 [ 366.223565][ T6838] R13: 00000000006e0320 R14: 000000000000002d R15: 20c49ba5e353f7cf [ 366.233911][ T6838] Kernel Offset: disabled [ 366.238236][ T6838] Rebooting in 86400 seconds..