Commit Graph

231530 Commits

Author SHA1 Message Date
manu
7ac57848aa Fix use-after-free on failed unmount with extended attribute enabled
When unmount failed, for instance because the mount is still busy,
UFS1 extended attributes structures were left freed while the kernel
assumes extended attributes were still enabled. This led to using
UFS1 extended attributes structures after free. With LOCKDEBUG, with
quickly triggers a panic.

The problem is fixed by:
1) clear MNT_EXTATTR flag after extended attributes structures are freed
2) attempt to restart extended attributes after failed unmount
2) set MNT_EXTATTR correctly after extended attributes restart

As a side effect, extended attribute structures are now only initialized
when extended attributes are started for the filesystem.
2014-11-14 10:09:50 +00:00
uebayasi
3dcb1bdb52 Minimal linker script test. 2014-11-14 09:03:39 +00:00
skrll
958e3256f0 IPL_SCHED -> IPL_VM
Something isn't MP safe.
2014-11-14 08:20:22 +00:00
snj
6c5df44231 mention etcupdate and reorder a bit 2014-11-14 07:06:40 +00:00
christos
8b9bd2bc1b add erfl erfcl 2014-11-14 03:31:41 +00:00
jmcneill
e409ea22ce disable hdmi and tcon before setting up the display 2014-11-14 01:05:57 +00:00
jmcneill
0f7c85b8f8 Add support for interlaced video modes. 2014-11-14 00:31:54 +00:00
snj
a421a92931 adapt to modern ISO image naming conventions 2014-11-13 22:32:53 +00:00
snj
c7e38e4844 fix tyop 2014-11-13 22:29:30 +00:00
christos
1a5ec845d4 add a couple more dummies (erf, erfc) 2014-11-13 21:43:27 +00:00
christos
8d93fd0227 move to the right offset 2014-11-13 17:46:49 +00:00
christos
299b0ec7bb fix strict aliasing violations 2014-11-13 17:19:29 +00:00
hannken
0bac62655e Change ntfs to vcache.
- Use (inumber, attrtype, attrname) as key.
- Inline ntfs_fget() and ntfs_frele() as they only get called once.
2014-11-13 16:51:53 +00:00
hannken
a26eea283a - Change ntfs_vgetex() to always load the ntnode and fnode.
- Take the vnode attributes from the NAME attribute.
- Remove now unused ntfs_times() and ntfs_filesize().
- Treat nodes without an unnamed DATA attribute as zero-sized regular files.
2014-11-13 16:51:10 +00:00
hannken
6f8e2ffe40 - Fix ntfs_ntlookupattr() to make the examples from the man page work.
- Fix ntfs_loadntnode() to always read full cluster to prevent buffer
  cache inconsistency.
- Change ntfs_vgetex() and ntfs_fget() to take a const attrname and
  always pass a possibly empty string.
- Change printf to dprintf.
- Get rid of dead fields i_next, i_prev of struct ntnode.
2014-11-13 16:49:56 +00:00
joerg
44867f9155 Adjust flags to allow building with clang. 2014-11-13 16:37:39 +00:00
tsutsui
30bc235eca Stop building a.out kernels so that mkldscript.sh is no longer necessary.
Tested "build.sh release", and the default ELF GENERIC kernel loaded by
the native bootloader just works on LUNA-II.
2014-11-13 16:18:38 +00:00
christos
cb8dda3c0e Add sysctl to selectively log arp packets from unknown network. (Adrien URBAN). 2014-11-13 16:11:18 +00:00
christos
d60f5081e2 add log_unknown_network 2014-11-13 16:10:21 +00:00
christos
039e20963e Use VAX_LABELOFFSET here; It needs to be the machine-specific one. Thanks
to gcc-4.8 for discovering the bug and to Atari for having a LABELOFFSET of
516 > 512 :-)
XXX: Perhaps we should put all those constants in <sys/bootblock.h> instead
of spreading them around.
2014-11-13 16:02:25 +00:00
uebayasi
2f06dcafd4 Revise a plan about link-set.
(I was ignorant 2 weeks ago.)
2014-11-13 15:25:48 +00:00
uebayasi
4c0e1c7bb3 Missing dependency on ldscript files. 2014-11-13 15:03:06 +00:00
uebayasi
5065266d77 `ld -r' needs ${LINKFORMAT}. This fixes the experimental config(1) modular
build for MIPS64 ports.
2014-11-13 13:44:31 +00:00
apb
7fa35347f7 regen from doc/BUILDING.mdoc revision 1.107.
This reinstates documentation for "extsrc" which was lost in 2009.
2014-11-13 08:42:35 +00:00
apb
d1f4f392c7 Document "extsrc". This was added to src/BUILDING in revision 1.90
dated 2009-11-30, but was not added to src/doc/BUILDING.mdoc,
so the changes were lost.

The original log message was:
- - - -
revision 1.90
date: 2009-11-30 16:13:22 +0000;  author: uebayasi;  state: Exp;  lines: +22 -0;
Support "extsrc", externally added programs and libraries.  Users can write
their own reach-overs, cross-build, install, and get set files just like base
and X11 / X.org.  (These sets are not included as TNF releases.)
- - - -
2014-11-13 08:25:31 +00:00
snj
62a9ce094f catch up with current ISO naming conventions 2014-11-13 08:16:42 +00:00
apb
4a6eb64432 Synchronise the "-s" part of the usage message with postinstall.
A colon-separated list of tgz files is no longer accepted; you
must use multiple -s options instead.
2014-11-13 07:11:06 +00:00
mlelstv
a735dbad97 libdm is needed by LVM early in the boot process. Fixes bin/49357. 2014-11-13 07:03:23 +00:00
uebayasi
c54b571b70 List of all link-set names. 2014-11-13 06:14:47 +00:00
christos
3cbbf4418f do the dependencies in a simpler way using a separate target 2014-11-13 02:31:24 +00:00
uebayasi
67ba08fd77 If mkldscript.sh is used to build ${PROG}, depend on it. 2014-11-13 01:09:59 +00:00
jmcneill
4de477773e On 2GB systems, we have to subtract AWIN_SDRAM_PBASE from the physical address. 2014-11-12 23:12:27 +00:00
aymeric
072d5fd039 Remove the syslogging of a dial out login warning based on the tty name, because
the test is sloppy and doesn't correspond to the current naming anyway.
OK gdt@
PR#377 can remain closed.
2014-11-12 22:23:38 +00:00
aymeric
1885c4ecdf update the example to use dty00 instead of ttyd0 to reflect a current practice 2014-11-12 21:56:48 +00:00
jmcneill
44c3fb8a8a fix pll5x rate calculation 2014-11-12 21:27:48 +00:00
apb
48c555dba9 Fix tab/space inconsistency in comment. 2014-11-12 19:41:24 +00:00
christos
741166e931 sync both instances of the ldscript. 2014-11-12 19:33:32 +00:00
apb
87504aab72 Change the order of arguments to check_ids, placing the two file names
adjacent to each other.  Also add a comment explaining the "start"
argument and the "SKIP" special value.
2014-11-12 19:31:05 +00:00
jmcneill
b9e92a94cc add awinhdmiaudio 2014-11-12 17:38:56 +00:00
jmcneill
53e6b3723d Add A20 HDMI audio support. Basically the same as A31, except we need to use dedicated DMA mode here (A31 DMA controller only supports "normal DMA" mode). 2014-11-12 17:38:14 +00:00
chs
f55015c45a apply several changes from intelfb.c revs 1.7 through 1.9:
- provide a setmode callback for genfb
 - add a pmf shutdown handler to switch genfb into polling mode
 - no need to call drm_fb_helper_set_config after genfb attaches,
   as the setmode callback is called by genfb_attach
2014-11-12 16:07:17 +00:00
joerg
706f66c9f4 If the internals are not explicitly requested, use #include_next to pick
up the system version. <locale> from libc++ requires this and is used by
src/tools/elftosb2.
2014-11-12 15:08:52 +00:00
christos
9e2fae1cfa add -t to mkldscript 2014-11-12 13:24:34 +00:00
christos
f0d25730ac restore previous functionality, and add what we need with -t <template> 2014-11-12 13:23:41 +00:00
manu
2cab231d44 Support for UFS1 extended attributes in GENERIC and GENERIC-like kernels
This change just brings UFS1 extended attribute *support* in the kernel,
extended attributes are not enabled unless three conditions are met:
1) filesystem is UFS1 (newfs -O1)
2) .attribute/system and .attribute/user directories are created at fs root
3) filesystem is mounted with -o extattr

Some GENERIC kernels are obviously memory constrained, the extended
attributes options were not enabled for them, but just added commented out.
(kernel were considered memory constrained if QUOTA option was disabled)
2014-11-12 10:47:20 +00:00
manu
efbefee25c Allow setxattr to be called with a NULL value, instead of crashing. 2014-11-12 05:08:43 +00:00
christos
7dfb21477f fix description setting. 2014-11-12 04:53:13 +00:00
enami
6f209f1fc0 List missing compatmodules keyword in the comment. 2014-11-12 03:49:26 +00:00
enami
548e0e4664 Add compatmodules keyword so that build.sh -V MKCOMPATMODULES=no won't fail. 2014-11-12 03:48:30 +00:00
christos
df51b41a7f PR/47704: Takahiro HAYASHI: Fix -L flag 2014-11-12 03:34:59 +00:00