← Commit list

d56003054

Jan Klötzke
Jan Klötzke
2020-11-22
SUCCESS Duration: 150s

Subject

mdev: re-initialize if uevent messages were lost

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

util-linux/mdev.c+10 -0
@@ -1199,6 +1199,16 @@ static void daemon_loop(char *temp, int fd)
len = safe_read(fd, netbuf, sizeof(netbuf) - 1);
if (len < 0) {
+ if (errno == ENOBUFS) {
+ /*
+ * We ran out of socket receive buffer space.
+ * Start from scratch.
+ */
+ dbg1s("uevent overrun, rescanning");
+ close(fd);
+ fd = daemon_init(temp);
+ continue;
+ }
bb_simple_perror_msg_and_die("read");
}
end = netbuf + len;