I have android marshmallow running in an emulator and I executed the following commands:
adb root
adb mount -o remount,rw /system
adb push file /system/file
and the output is
adb: error: failed to copy 'file' to '/system/file': Read-only file system
the weird thing is, before remounting the system partition is mounted as
/dev/block/vda /system ext4 ro,seclabel,relatime,data=ordered 0 0
and after remounting it is mounted as
/dev/block/vda /system ext4 rw,seclabel,relatime,data=ordered 0 0
which seems to be read/writeable. after pushing it is
/dev/block/vda /system ext4 ro,seclabel,relatime,data=ordered 0 0
again. Even weirder, the system seems to be writable once:
root@generic_x86:/system # mount | grep system
/dev/block/vda /system ext4 rw,seclabel,relatime,data=ordered 0 0
root@generic_x86:/system # touch foo
root@generic_x86:/system # touch foo2
touch: 'foo2': Read-only file system
root@generic_x86:/system # mount | grep system
/dev/block/vda /system ext4 ro,seclabel,relatime,data=ordered 0 0
root@generic_x86:/system # ls -la foo*
-rw-rw-rw- root root 0 2016-09-07 15:50 foo
After that i have to restart the device because the system partition can not be remounted again.