Corners in M-theory