The man page of mmap function mentioned MAP_DENYWRITE can cause denial-of-service attacks. But why?
MAP_DENYWRITE This flag is ignored. (Long ago, it signaled that attempts to write to the underlying file should fail with ETXTBUSY. But this was a source of denial-of-service attacks.)