Following up on what OftenBen said, it is significant IMO that so many thinkers in the last couple hundred years were worried about this. It's certainly something that comes up in sci-fi (Stand on Zanzibar and The Sheep Look Up by John Brunner, for example), and Huxley saw it as a huge threat when he wrote Brave New World Revisited. Technology has helped a lot, but at what cost? Hive worlds only "work" (and by that I mean "are hellscapes but don't fully collapse") thanks to entirely other planets devoted to farming.
Shrug. We produce more food than we could ever possibly need and people still die of starvation. Whether they die because of lack of production or lack of political will/greed seems irrelevant. Whether or not there exists enough for everyone does not determine whether or not everyone has 'enough' with 'enough' in this case being defined as 'Access to life sustaining/promoting amount of calories and nutrients.'