[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 12.503747] audit: type=1400 audit(1513987249.247:6): avc: denied { map } for pid=3126 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added 'ci-upstream-net-kasan-gce-9,10.128.0.27' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 23.371091] audit: type=1400 audit(1513987260.114:7): avc: denied { map } for pid=3141 comm="syzkaller166170" path="/root/syzkaller166170165" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 23.400683] ================================================================== [ 23.408148] BUG: KASAN: stack-out-of-bounds in rds_sendmsg+0x1f02/0x1f90 [ 23.414973] Read of size 8 at addr ffff8801c90f7b70 by task syzkaller166170/3141 [ 23.422473] [ 23.424071] CPU: 0 PID: 3141 Comm: syzkaller166170 Not tainted 4.15.0-rc4+ #164 [ 23.431484] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.440808] Call Trace: [ 23.443714] dump_stack+0x194/0x257 [ 23.448183] ? arch_local_irq_restore+0x53/0x53 [ 23.454819] ? show_regs_print_info+0x18/0x18 [ 23.459896] ? _raw_spin_unlock_bh+0x30/0x40 [ 23.464274] ? rds_sendmsg+0x1f02/0x1f90 [ 23.468741] print_address_description+0x73/0x250 [ 23.475288] ? rds_sendmsg+0x1f02/0x1f90 [ 23.480275] kasan_report+0x25b/0x340 [ 23.485698] __asan_report_load8_noabort+0x14/0x20 [ 23.492159] rds_sendmsg+0x1f02/0x1f90 [ 23.497250] ? rds_send_drop_to+0x19d0/0x19d0 [ 23.503191] ? find_held_lock+0x35/0x1d0 [ 23.508616] ? sock_has_perm+0x2a4/0x420 [ 23.514210] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 23.521190] ? lock_downgrade+0x980/0x980 [ 23.525660] ? dup_iter+0x1e2/0x260 [ 23.529257] ? lock_release+0xa40/0xa40 [ 23.533214] ? selinux_socket_sendmsg+0x36/0x40 [ 23.537853] ? security_socket_sendmsg+0x89/0xb0 [ 23.542578] ? rds_send_drop_to+0x19d0/0x19d0 [ 23.547053] sock_sendmsg+0xca/0x110 [ 23.550737] ___sys_sendmsg+0x320/0x8b0 [ 23.554685] ? copy_msghdr_from_user+0x590/0x590 [ 23.559411] ? __pmd_alloc+0x4e0/0x4e0 [ 23.563271] ? find_held_lock+0x35/0x1d0 [ 23.567319] ? __fget_light+0x297/0x380 [ 23.571269] ? fget_raw+0x20/0x20 [ 23.574690] ? find_held_lock+0x35/0x1d0 [ 23.578728] ? __do_page_fault+0x5f7/0xc90 [ 23.582932] ? lock_downgrade+0x980/0x980 [ 23.587063] __sys_sendmmsg+0x1ee/0x620 [ 23.591005] ? __sys_sendmmsg+0x1ee/0x620 [ 23.595126] ? SyS_sendmsg+0x50/0x50 [ 23.598815] ? mm_fault_error+0x2c0/0x2c0 [ 23.602943] ? __do_page_fault+0xc90/0xc90 [ 23.607157] ? syscall_return_slowpath+0x2ad/0x550 [ 23.612054] ? prepare_exit_to_usermode+0x340/0x340 [ 23.617054] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.622049] SyS_sendmmsg+0x35/0x60 [ 23.625647] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 23.630372] RIP: 0033:0x43fde9 [ 23.633528] RSP: 002b:00007ffd7360bcd8 EFLAGS: 00000217 ORIG_RAX: 0000000000000133 [ 23.641202] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fde9 [ 23.648437] RDX: 0000000000000001 RSI: 0000000020573000 RDI: 0000000000000003 [ 23.655674] RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000 [ 23.662914] R10: 0000000000000000 R11: 0000000000000217 R12: 0000000000401750 [ 23.670159] R13: 00000000004017e0 R14: 0000000000000000 R15: 0000000000000000 [ 23.677414] [ 23.679008] The buggy address belongs to the page: [ 23.683905] page:00000000bde87ee4 count:0 mapcount:0 mapping: (null) index:0x0 [ 23.692372] flags: 0x2fffc0000000000() [ 23.696229] raw: 02fffc0000000000 0000000000000000 0000000000000000 00000000ffffffff [ 23.704079] raw: 0000000000000000 0000000100000001 0000000000000000 0000000000000000 [ 23.711925] page dumped because: kasan: bad access detected [ 23.717599] [ 23.719193] Memory state around the buggy address: [ 23.724085] ffff8801c90f7a00: 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 f2 [ 23.731411] ffff8801c90f7a80: f2 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 00 [ 23.738739] >ffff8801c90f7b00: 00 00 00 00 00 00 f2 f2 f2 f2 00 00 00 00 04 f2 [ 23.746063] ^ [ 23.753048] ffff8801c90f7b80: f2 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 00 [ 23.760382] ffff8801c90f7c00: 00 00 00 00 00 00 f3 f3 f3 f3 00 00 00 00 00 00 [ 23.767722] ================================================================== [ 23.775070] Disabling lock debugging due to kernel taint [ 23.780701] Kernel panic - not syncing: panic_on_warn set ... [ 23.780701] [ 23.788051] CPU: 0 PID: 3141 Comm: syzkaller166170 Tainted: G B 4.15.0-rc4+ #164 [ 23.796766] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 23.806085] Call Trace: [ 23.808642] dump_stack+0x194/0x257 [ 23.812235] ? arch_local_irq_restore+0x53/0x53 [ 23.816872] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 23.821593] ? vsnprintf+0x1ed/0x1900 [ 23.825364] ? rds_sendmsg+0x1e80/0x1f90 [ 23.829394] panic+0x1e4/0x41c [ 23.832552] ? refcount_error_report+0x214/0x214 [ 23.837272] ? add_taint+0x1c/0x50 [ 23.840776] ? add_taint+0x1c/0x50 [ 23.844282] ? rds_sendmsg+0x1f02/0x1f90 [ 23.848310] kasan_end_report+0x50/0x50 [ 23.852246] kasan_report+0x144/0x340 [ 23.856015] __asan_report_load8_noabort+0x14/0x20 [ 23.860907] rds_sendmsg+0x1f02/0x1f90 [ 23.864769] ? rds_send_drop_to+0x19d0/0x19d0 [ 23.869248] ? find_held_lock+0x35/0x1d0 [ 23.873884] ? sock_has_perm+0x2a4/0x420 [ 23.877909] ? selinux_secmark_relabel_packet+0xc0/0xc0 [ 23.883235] ? lock_downgrade+0x980/0x980 [ 23.887346] ? dup_iter+0x1e2/0x260 [ 23.890940] ? lock_release+0xa40/0xa40 [ 23.894885] ? selinux_socket_sendmsg+0x36/0x40 [ 23.899522] ? security_socket_sendmsg+0x89/0xb0 [ 23.904241] ? rds_send_drop_to+0x19d0/0x19d0 [ 23.908702] sock_sendmsg+0xca/0x110 [ 23.912380] ___sys_sendmsg+0x320/0x8b0 [ 23.916321] ? copy_msghdr_from_user+0x590/0x590 [ 23.921042] ? __pmd_alloc+0x4e0/0x4e0 [ 23.924897] ? find_held_lock+0x35/0x1d0 [ 23.928952] ? __fget_light+0x297/0x380 [ 23.932896] ? fget_raw+0x20/0x20 [ 23.936317] ? find_held_lock+0x35/0x1d0 [ 23.940348] ? __do_page_fault+0x5f7/0xc90 [ 23.944548] ? lock_downgrade+0x980/0x980 [ 23.948669] __sys_sendmmsg+0x1ee/0x620 [ 23.952607] ? __sys_sendmmsg+0x1ee/0x620 [ 23.956723] ? SyS_sendmsg+0x50/0x50 [ 23.960406] ? mm_fault_error+0x2c0/0x2c0 [ 23.964525] ? __do_page_fault+0xc90/0xc90 [ 23.968734] ? syscall_return_slowpath+0x2ad/0x550 [ 23.973629] ? prepare_exit_to_usermode+0x340/0x340 [ 23.978612] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 23.983596] SyS_sendmmsg+0x35/0x60 [ 23.987192] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 23.991914] RIP: 0033:0x43fde9 [ 23.995071] RSP: 002b:00007ffd7360bcd8 EFLAGS: 00000217 ORIG_RAX: 0000000000000133 [ 24.002743] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fde9 [ 24.009979] RDX: 0000000000000001 RSI: 0000000020573000 RDI: 0000000000000003 [ 24.017227] RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000 [ 24.024462] R10: 0000000000000000 R11: 0000000000000217 R12: 0000000000401750 [ 24.031696] R13: 00000000004017e0 R14: 0000000000000000 R15: 0000000000000000 [ 24.039691] Dumping ftrace buffer: [ 24.043204] (ftrace buffer empty) [ 24.046879] Kernel Offset: disabled [ 24.050472] Rebooting in 86400 seconds..