lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <CAGW2f1HgtwdekeETXpZvm-KT6Sdw1bUas799yWjQ_jZp3kwaug@mail.gmail.com> Date: Wed, 24 Jul 2013 21:58:45 +0000 From: jon ernst <jonernst07@...il.com> To: linux-ext4@...r.kernel.org Subject: Re: [PATCH] ext4: fix a bug when we try to open a file with O_TMPFILE flag > My purpose is to trigger this bug and fix it. So I manually define this > flag for my convenience. > >> I saw it has >> been defined in header file. (fcntl.h) Did I miss anything? > > I guess that you might 'include <fcntl.h>' header file, right? But the > O_TMPFILE is defined in $LINUX/include/uapi/asm-generic/fcntl.h. So > maybe compiler couldn't find this header file. > > Regards, > - Zheng -- Got it. Thank you. BTW, the weird thing is I didn't see any discussion on ext4 mailing list before Al Viro committed this change. The first time I heard about this is someone reporting a bug about it. Document about this FLAG might be necessary. Also, about this code: /* a horrid kludge trying to make sure that this will fail on old kernels */ #define O_TMPFILE (__O_TMPFILE | O_DIRECTORY) why not doing something like this: #ifndef O_TMPFILE /* a horrid kludge trying to make sure that this will fail on old kernels */ #define O_TMPFILE (__O_TMPFILE | O_DIRECTORY) #endif Thanks, Jon -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists