Let $\mathbf X := (x_1, \ldots x_n)^t$ be the column vector containing all your $x$ values, similarly $\mathbf Y := (y_1,\ldots,y_n)^t$, and finally let $\beta := (m, b)^t$.
The least-squares (LS) method computes your values $m$ and $b$ as follows: Create the design matrix $\mathbf X_d$:
$$
\mathbf X_d := \left(\begin{matrix}
x_1 & 1 \\
x_2 & 1 \\
\vdots & \vdots \\
x_n & 1 \\
\end{matrix}\right).
$$
Then, our goal can be expressed as trying to find the solution $\beta$ for the equation:
$$
\mathbf X_d \beta = \mathbf Y.
$$
Next, LS computes the Moore-Penrose pseudo-inverse (MPPI) $\mathbf X_d^+$ of $\mathbf X_d$, defined as:
$$
\mathbf X^+ := (X_d^t X_d)^{-1} X_d^t
$$
(where we presume that $(X_d^t X_d)^{-1}$ has full rank, i.e. the $x_i$ are not all the same). Then, $\beta$ is obtained as:
$$
\beta = \mathbf X^+ \mathbf Y.
$$
So this is the very formula that LS uses to compute the coefficients $\beta = (m, b)^t$ from your data. I tell you all this, because, if you presume nonnegligible errors in your data $\mathbf X$, you would have to compute the condition number of $\mathbf X_d$:
$$
cond(\mathbf X_d) := \|\mathbf X_d\| \|\mathbf X_d^+\|.
$$
If this number is large, your LS is ill-conditioned and not reliable. I.e. the error propagated from your $\mathbf X$ to your solution vector $\beta$ could blow up.
Now, presume that the condition number is small and LS can be used. Then, to actually get some error bars for $\beta$ you could apply methods of error propagation, to see how the errors are amplified by the application of the MPPI.
A more general approach, that can also be used if the formulae are not as simple as for LS, is the application of the bootstrap method. Bootstrap computes, for a given sample, approximations of complex statistics. And the variance of your vector $\beta$ is such a statistic. Python provides a ready to use implementation, and for comprehensive R packages see e.g. here or here.
Edit: As @whuber points out in the comments, there is another problem with errors in the explanatory $\mathbf X$ data: If the error of the $x$ values is comparable with the overall standard deviation of the $x$, then one could get a reduced slope estimate.