Hello,
syzbot found the following crash on:
HEAD commit: 68d7a45e Linux 4.14.113
git tree: linux-4.14.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=114db528a00000
kernel config:
https://syzkaller.appspot.com/x/.config?x=dbf1fde4d7489e1c
dashboard link:
https://syzkaller.appspot.com/bug?extid=266a0c54afa72fa2f9ca
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro:
https://syzkaller.appspot.com/x/repro.syz?x=11540238a00000
C reproducer:
https://syzkaller.appspot.com/x/repro.c?x=1652d477200000
IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by:
syzbot+266a0c...@syzkaller.appspotmail.com
audit: type=1400 audit(1556013232.155:36): avc: denied { map } for
pid=7147 comm="syz-executor758" path="/root/syz-executor758322811"
dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023
tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
memory commitment underflow
audit: type=1400 audit(1556013232.155:37): avc: denied { map } for
pid=7154 comm="syz-executor758" path="/dev/ashmem" dev="devtmpfs" ino=15697
scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023
tcontext=system_u:object_r:device_t:s0 tclass=chr_file permissive=1
------------[ cut here ]------------
WARNING: CPU: 0 PID: 7155 at mm/util.c:604
__vm_enough_memory.cold+0x18/0x58 mm/util.c:604
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 7155 Comm: syz-executor758 Not tainted 4.14.113 #3
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x138/0x19c lib/dump_stack.c:53
panic+0x1f2/0x438 kernel/panic.c:182
__warn.cold+0x2f/0x34 kernel/panic.c:546
report_bug+0x216/0x254 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:177 [inline]
fixup_bug arch/x86/kernel/traps.c:172 [inline]
do_error_trap+0x1bb/0x310 arch/x86/kernel/traps.c:295
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:314
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:944
RIP: 0010:__vm_enough_memory.cold+0x18/0x58 mm/util.c:604
RSP: 0018:ffff88809fe77ad8 EFLAGS: 00010286
RAX: 000000000000001b RBX: fff8000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff888082630e68 RDI: ffffed1013fcef51
RBP: ffff88809fe77b10 R08: 000000000000001b R09: ffff888082630e88
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001
R13: ffff888087124640 R14: ffffffff878035e0 R15: fff800000000d3f2
security_vm_enough_memory_mm+0x99/0xc0 security/security.c:328
shmem_acct_size mm/shmem.c:149 [inline]
__shmem_file_setup.part.0+0x262/0x400 mm/shmem.c:4245
__shmem_file_setup mm/shmem.c:4242 [inline]
shmem_file_setup mm/shmem.c:4309 [inline]
shmem_file_setup+0x50/0x70 mm/shmem.c:4307
ashmem_mmap+0x327/0x490 drivers/staging/android/ashmem.c:399
call_mmap include/linux/fs.h:1779 [inline]
mmap_region+0x858/0x1030 mm/mmap.c:1722
do_mmap+0x5b8/0xcd0 mm/mmap.c:1500
do_mmap_pgoff include/linux/mm.h:2165 [inline]
vm_mmap_pgoff+0x17a/0x1d0 mm/util.c:333
SYSC_mmap_pgoff mm/mmap.c:1550 [inline]
SyS_mmap_pgoff+0x3ca/0x520 mm/mmap.c:1508
SYSC_mmap arch/x86/kernel/sys_x86_64.c:100 [inline]
SyS_mmap+0x16/0x20 arch/x86/kernel/sys_x86_64.c:91
do_syscall_64+0x1eb/0x630 arch/x86/entry/common.c:289
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x441289
RSP: 002b:00007ffea8a14b78 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441289
RDX: 0000000000000000 RSI: 0000000000001000 RDI: 0000000020ffc000
RBP: 00000000006cb018 R08: 0000000000000003 R09: 0000000000000000
R10: 0080000000000012 R11: 0000000000000246 R12: 0000000000402000
R13: 0000000000402090 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..
---
This bug is generated by a bot. It may contain errors.
See
https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at
syzk...@googlegroups.com.
syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches