def get_bad_messages(rules, task):
    """
    Get the bad messages for a certain task.

    :param task: the name of the task
    :return: a list of signatures of bad messages.
    """
    if task == "service_architecture_workloads":
        return ["posix_fallocate failed"]

    return rules['bad_messages']