···1341134113421342fs/namei.c primitives that consume filesystem references (do_renameat2(),13431343do_linkat(), do_symlinkat(), do_mkdirat(), do_mknodat(), do_unlinkat()13441344-and do_rmdir()) are getting replaced with non-consuming analogues13451345-(filename_renameat2(), etc.) Replaced so far: do_renameat2(), do_linkat(),13461346-do_symlinkat(), do_mkdirat(), do_mknodat().13441344+and do_rmdir()) are gone; they are replaced with non-consuming analogues13451345+(filename_renameat2(), etc.)13461346+Callers are adjusted - responsibility for dropping the filenames belongs13471347+to them now.
+2-1
fs/coredump.c
···895895 * privs and don't want to unlink another user's coredump.896896 */897897 if (!coredump_force_suid_safe(cprm)) {898898+ CLASS(filename_kernel, name)(cn->corename);898899 /*899900 * If it doesn't exist, that's fine. If there's some900901 * other problem, we'll catch it at the filp_open().901902 */902902- do_unlinkat(AT_FDCWD, getname_kernel(cn->corename));903903+ filename_unlinkat(AT_FDCWD, name);903904 }904905905906 /*